UnitTestProtoFile.cs 585 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226
  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<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder> internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable
  798. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Builder>(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. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor
  801. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0];
  802. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable
  803. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor,
  804. new string[] { "Bb", });
  805. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor
  806. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1];
  807. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable
  808. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor,
  809. new string[] { "A", });
  810. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor
  811. = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2];
  812. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder> internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable
  813. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder>(internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor,
  814. new string[] { "A", });
  815. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_ForeignMessage__Descriptor
  816. = Descriptor.MessageTypes[1];
  817. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder> internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable
  818. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder>(internal__static_protobuf_unittest_ForeignMessage__Descriptor,
  819. new string[] { "C", });
  820. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllExtensions__Descriptor
  821. = Descriptor.MessageTypes[2];
  822. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable
  823. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder>(internal__static_protobuf_unittest_TestAllExtensions__Descriptor,
  824. new string[] { });
  825. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor
  826. = Descriptor.MessageTypes[3];
  827. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder> internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable
  828. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Builder>(internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor,
  829. new string[] { "A", });
  830. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor
  831. = Descriptor.MessageTypes[4];
  832. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder> internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable
  833. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Builder>(internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor,
  834. new string[] { "A", });
  835. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequired__Descriptor
  836. = Descriptor.MessageTypes[5];
  837. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder> internal__static_protobuf_unittest_TestRequired__FieldAccessorTable
  838. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequired, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder>(internal__static_protobuf_unittest_TestRequired__Descriptor,
  839. 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", });
  840. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRequiredForeign__Descriptor
  841. = Descriptor.MessageTypes[6];
  842. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder> internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable
  843. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Builder>(internal__static_protobuf_unittest_TestRequiredForeign__Descriptor,
  844. new string[] { "OptionalMessage", "RepeatedMessage", "Dummy", });
  845. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestForeignNested__Descriptor
  846. = Descriptor.MessageTypes[7];
  847. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder> internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable
  848. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Builder>(internal__static_protobuf_unittest_TestForeignNested__Descriptor,
  849. new string[] { "ForeignNested", });
  850. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessage__Descriptor
  851. = Descriptor.MessageTypes[8];
  852. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder> internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable
  853. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Builder>(internal__static_protobuf_unittest_TestEmptyMessage__Descriptor,
  854. new string[] { });
  855. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor
  856. = Descriptor.MessageTypes[9];
  857. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable
  858. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder>(internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor,
  859. new string[] { });
  860. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor
  861. = Descriptor.MessageTypes[10];
  862. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder> internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable
  863. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Builder>(internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor,
  864. new string[] { "A", "Bb", });
  865. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor
  866. = Descriptor.MessageTypes[11];
  867. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder> internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable
  868. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder>(internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor,
  869. new string[] { "A", "I", });
  870. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor
  871. = Descriptor.MessageTypes[12];
  872. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder> internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable
  873. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder>(internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor,
  874. new string[] { "Bb", });
  875. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor
  876. = Descriptor.MessageTypes[13];
  877. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder> internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable
  878. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder>(internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor,
  879. new string[] { "A", "OptionalInt32", });
  880. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor
  881. = Descriptor.MessageTypes[14];
  882. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder> internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable
  883. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor,
  884. new string[] { "A", "Foo", "Bar", });
  885. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor
  886. = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[0];
  887. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable
  888. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor,
  889. new string[] { "A", });
  890. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor
  891. = internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor.NestedTypes[1];
  892. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder> internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable
  893. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder>(internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor,
  894. new string[] { "A", });
  895. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor
  896. = Descriptor.MessageTypes[15];
  897. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable
  898. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor,
  899. new string[] { "OptionalNestedMessage", });
  900. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor
  901. = internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor.NestedTypes[0];
  902. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder> internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable
  903. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder>(internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor,
  904. new string[] { "NestedmessageRepeatedInt32", "NestedmessageRepeatedForeignmessage", });
  905. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor
  906. = Descriptor.MessageTypes[16];
  907. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder> internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable
  908. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Builder>(internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor,
  909. new string[] { "PrimitiveField", "StringField", "EnumField", "MessageField", "StringPieceField", "CordField", "RepeatedPrimitiveField", "RepeatedStringField", "RepeatedEnumField", "RepeatedMessageField", "RepeatedStringPieceField", "RepeatedCordField", });
  910. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestFieldOrderings__Descriptor
  911. = Descriptor.MessageTypes[17];
  912. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable
  913. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder>(internal__static_protobuf_unittest_TestFieldOrderings__Descriptor,
  914. new string[] { "MyString", "MyInt", "MyFloat", });
  915. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor
  916. = Descriptor.MessageTypes[18];
  917. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder> internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable
  918. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Builder>(internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor,
  919. new string[] { "EscapedBytes", "LargeUint32", "LargeUint64", "SmallInt32", "SmallInt64", "Utf8String", });
  920. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooRequest__Descriptor
  921. = Descriptor.MessageTypes[19];
  922. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder> internal__static_protobuf_unittest_FooRequest__FieldAccessorTable
  923. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooRequest, global::Google.ProtocolBuffers.TestProtos.FooRequest.Builder>(internal__static_protobuf_unittest_FooRequest__Descriptor,
  924. new string[] { });
  925. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_FooResponse__Descriptor
  926. = Descriptor.MessageTypes[20];
  927. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder> internal__static_protobuf_unittest_FooResponse__FieldAccessorTable
  928. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(internal__static_protobuf_unittest_FooResponse__Descriptor,
  929. new string[] { });
  930. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarRequest__Descriptor
  931. = Descriptor.MessageTypes[21];
  932. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder> internal__static_protobuf_unittest_BarRequest__FieldAccessorTable
  933. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarRequest, global::Google.ProtocolBuffers.TestProtos.BarRequest.Builder>(internal__static_protobuf_unittest_BarRequest__Descriptor,
  934. new string[] { });
  935. internal static readonly pbd::MessageDescriptor internal__static_protobuf_unittest_BarResponse__Descriptor
  936. = Descriptor.MessageTypes[22];
  937. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder> internal__static_protobuf_unittest_BarResponse__FieldAccessorTable
  938. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(internal__static_protobuf_unittest_BarResponse__Descriptor,
  939. new string[] { });
  940. #endregion
  941. }
  942. #region Enums
  943. public enum ForeignEnum {
  944. FOREIGN_FOO = 4,
  945. FOREIGN_BAR = 5,
  946. FOREIGN_BAZ = 6,
  947. }
  948. public enum TestEnumWithDupValue {
  949. FOO1 = 1,
  950. BAR1 = 2,
  951. BAZ = 3,
  952. FOO2 = 1,
  953. BAR2 = 2,
  954. }
  955. public enum TestSparseEnum {
  956. SPARSE_A = 123,
  957. SPARSE_B = 62374,
  958. SPARSE_C = 12589234,
  959. SPARSE_D = -15,
  960. SPARSE_E = -53452,
  961. SPARSE_F = 0,
  962. SPARSE_G = 2,
  963. }
  964. #endregion
  965. #region Messages
  966. public sealed partial class TestAllTypes : pb::GeneratedMessage<TestAllTypes, TestAllTypes.Builder> {
  967. private static readonly TestAllTypes defaultInstance = new TestAllTypes();
  968. public static TestAllTypes DefaultInstance {
  969. get { return defaultInstance; }
  970. }
  971. public override TestAllTypes DefaultInstanceForType {
  972. get { return defaultInstance; }
  973. }
  974. protected override TestAllTypes ThisMessage {
  975. get { return this; }
  976. }
  977. public static pbd::MessageDescriptor Descriptor {
  978. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__Descriptor; }
  979. }
  980. protected override pb::FieldAccess.FieldAccessorTable<TestAllTypes, TestAllTypes.Builder> InternalFieldAccessors {
  981. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable; }
  982. }
  983. #region Nested types
  984. public static class Types {
  985. public enum NestedEnum {
  986. FOO = 1,
  987. BAR = 2,
  988. BAZ = 3,
  989. }
  990. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  991. private static readonly NestedMessage defaultInstance = new NestedMessage();
  992. public static NestedMessage DefaultInstance {
  993. get { return defaultInstance; }
  994. }
  995. public override NestedMessage DefaultInstanceForType {
  996. get { return defaultInstance; }
  997. }
  998. protected override NestedMessage ThisMessage {
  999. get { return this; }
  1000. }
  1001. public static pbd::MessageDescriptor Descriptor {
  1002. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor; }
  1003. }
  1004. protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
  1005. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable; }
  1006. }
  1007. // optional int32 bb = 1;
  1008. private bool hasBb;
  1009. private int bb_ = 0;
  1010. public bool HasBb {
  1011. get { return hasBb; }
  1012. }
  1013. public int Bb {
  1014. get { return bb_; }
  1015. }
  1016. public override bool IsInitialized {
  1017. get {
  1018. return true;
  1019. }
  1020. }
  1021. public override void WriteTo(pb::CodedOutputStream output) {
  1022. if (HasBb) {
  1023. output.WriteInt32(1, Bb);
  1024. }
  1025. UnknownFields.WriteTo(output);
  1026. }
  1027. private int memoizedSerializedSize = -1;
  1028. public override int SerializedSize {
  1029. get {
  1030. int size = memoizedSerializedSize;
  1031. if (size != -1) return size;
  1032. size = 0;
  1033. if (HasBb) {
  1034. size += pb::CodedOutputStream.ComputeInt32Size(1, Bb);
  1035. }
  1036. size += UnknownFields.SerializedSize;
  1037. memoizedSerializedSize = size;
  1038. return size;
  1039. }
  1040. }
  1041. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data) {
  1042. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1043. }
  1044. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::ByteString data,
  1045. pb::ExtensionRegistry extensionRegistry) {
  1046. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1047. .BuildParsed();
  1048. }
  1049. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(byte[] data) {
  1050. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1051. }
  1052. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(byte[] data,
  1053. pb::ExtensionRegistry extensionRegistry) {
  1054. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1055. .BuildParsed();
  1056. }
  1057. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  1058. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1059. }
  1060. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(
  1061. global::System.IO.Stream input,
  1062. pb::ExtensionRegistry extensionRegistry) {
  1063. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1064. .BuildParsed();
  1065. }
  1066. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  1067. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1068. }
  1069. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  1070. pb::ExtensionRegistry extensionRegistry) {
  1071. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1072. .BuildParsed();
  1073. }
  1074. public static Builder CreateBuilder() { return new Builder(); }
  1075. public override Builder CreateBuilderForType() { return new Builder(); }
  1076. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage prototype) {
  1077. return (Builder) new Builder().MergeFrom(prototype);
  1078. }
  1079. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage, Builder> {
  1080. protected override Builder ThisBuilder {
  1081. get { return this; }
  1082. }
  1083. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder()
  1084. public Builder() {}
  1085. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage();
  1086. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage MessageBeingBuilt {
  1087. get { return result; }
  1088. }
  1089. public override Builder Clear() {
  1090. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage();
  1091. return this;
  1092. }
  1093. public override Builder Clone() {
  1094. return new Builder().MergeFrom(result);
  1095. }
  1096. public override pbd::MessageDescriptor DescriptorForType {
  1097. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Descriptor; }
  1098. }
  1099. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage DefaultInstanceForType {
  1100. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance; }
  1101. }
  1102. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage BuildPartial() {
  1103. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage returnMe = result;
  1104. result = null;
  1105. return returnMe;
  1106. }
  1107. public override Builder MergeFrom(pb::IMessage other) {
  1108. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage) {
  1109. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage) other);
  1110. } else {
  1111. base.MergeFrom(other);
  1112. return this;
  1113. }
  1114. }
  1115. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage other) {
  1116. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) return this;
  1117. if (other.HasBb) {
  1118. Bb = other.Bb;
  1119. }
  1120. this.MergeUnknownFields(other.UnknownFields);
  1121. return this;
  1122. }
  1123. public override Builder MergeFrom(pb::CodedInputStream input) {
  1124. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1125. }
  1126. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1127. pb::UnknownFieldSet.Builder unknownFields =
  1128. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1129. while (true) {
  1130. uint tag = input.ReadTag();
  1131. switch (tag) {
  1132. case 0:
  1133. this.UnknownFields = unknownFields.Build();
  1134. return this;
  1135. default: {
  1136. if (!ParseUnknownField(input, unknownFields,
  1137. extensionRegistry, tag)) {
  1138. this.UnknownFields = unknownFields.Build();
  1139. return this;
  1140. }
  1141. break;
  1142. }
  1143. case 8: {
  1144. Bb = input.ReadInt32();
  1145. break;
  1146. }
  1147. }
  1148. }
  1149. }
  1150. // optional int32 bb = 1;
  1151. public bool HasBb {
  1152. get { return result.HasBb; }
  1153. }
  1154. public int Bb {
  1155. get { return result.Bb; }
  1156. set { SetBb(value); }
  1157. }
  1158. public Builder SetBb(int value) {
  1159. result.hasBb = true;
  1160. result.bb_ = value;
  1161. return this;
  1162. }
  1163. public Builder ClearBb() {
  1164. result.hasBb = false;
  1165. result.bb_ = 0;
  1166. return this;
  1167. }
  1168. }
  1169. }
  1170. public sealed partial class OptionalGroup : pb::GeneratedMessage<OptionalGroup, OptionalGroup.Builder> {
  1171. private static readonly OptionalGroup defaultInstance = new OptionalGroup();
  1172. public static OptionalGroup DefaultInstance {
  1173. get { return defaultInstance; }
  1174. }
  1175. public override OptionalGroup DefaultInstanceForType {
  1176. get { return defaultInstance; }
  1177. }
  1178. protected override OptionalGroup ThisMessage {
  1179. get { return this; }
  1180. }
  1181. public static pbd::MessageDescriptor Descriptor {
  1182. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__Descriptor; }
  1183. }
  1184. protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup, OptionalGroup.Builder> InternalFieldAccessors {
  1185. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_OptionalGroup__FieldAccessorTable; }
  1186. }
  1187. // optional int32 a = 17;
  1188. private bool hasA;
  1189. private int a_ = 0;
  1190. public bool HasA {
  1191. get { return hasA; }
  1192. }
  1193. public int A {
  1194. get { return a_; }
  1195. }
  1196. public override bool IsInitialized {
  1197. get {
  1198. return true;
  1199. }
  1200. }
  1201. public override void WriteTo(pb::CodedOutputStream output) {
  1202. if (HasA) {
  1203. output.WriteInt32(17, A);
  1204. }
  1205. UnknownFields.WriteTo(output);
  1206. }
  1207. private int memoizedSerializedSize = -1;
  1208. public override int SerializedSize {
  1209. get {
  1210. int size = memoizedSerializedSize;
  1211. if (size != -1) return size;
  1212. size = 0;
  1213. if (HasA) {
  1214. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  1215. }
  1216. size += UnknownFields.SerializedSize;
  1217. memoizedSerializedSize = size;
  1218. return size;
  1219. }
  1220. }
  1221. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data) {
  1222. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1223. }
  1224. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::ByteString data,
  1225. pb::ExtensionRegistry extensionRegistry) {
  1226. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1227. .BuildParsed();
  1228. }
  1229. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data) {
  1230. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1231. }
  1232. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(byte[] data,
  1233. pb::ExtensionRegistry extensionRegistry) {
  1234. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1235. .BuildParsed();
  1236. }
  1237. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(global::System.IO.Stream input) {
  1238. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1239. }
  1240. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(
  1241. global::System.IO.Stream input,
  1242. pb::ExtensionRegistry extensionRegistry) {
  1243. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1244. .BuildParsed();
  1245. }
  1246. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input) {
  1247. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1248. }
  1249. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup ParseFrom(pb::CodedInputStream input,
  1250. pb::ExtensionRegistry extensionRegistry) {
  1251. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1252. .BuildParsed();
  1253. }
  1254. public static Builder CreateBuilder() { return new Builder(); }
  1255. public override Builder CreateBuilderForType() { return new Builder(); }
  1256. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup prototype) {
  1257. return (Builder) new Builder().MergeFrom(prototype);
  1258. }
  1259. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup, Builder> {
  1260. protected override Builder ThisBuilder {
  1261. get { return this; }
  1262. }
  1263. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder()
  1264. public Builder() {}
  1265. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup();
  1266. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup MessageBeingBuilt {
  1267. get { return result; }
  1268. }
  1269. public override Builder Clear() {
  1270. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup();
  1271. return this;
  1272. }
  1273. public override Builder Clone() {
  1274. return new Builder().MergeFrom(result);
  1275. }
  1276. public override pbd::MessageDescriptor DescriptorForType {
  1277. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Descriptor; }
  1278. }
  1279. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup DefaultInstanceForType {
  1280. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance; }
  1281. }
  1282. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup BuildPartial() {
  1283. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup returnMe = result;
  1284. result = null;
  1285. return returnMe;
  1286. }
  1287. public override Builder MergeFrom(pb::IMessage other) {
  1288. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup) {
  1289. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup) other);
  1290. } else {
  1291. base.MergeFrom(other);
  1292. return this;
  1293. }
  1294. }
  1295. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup other) {
  1296. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) return this;
  1297. if (other.HasA) {
  1298. A = other.A;
  1299. }
  1300. this.MergeUnknownFields(other.UnknownFields);
  1301. return this;
  1302. }
  1303. public override Builder MergeFrom(pb::CodedInputStream input) {
  1304. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1305. }
  1306. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1307. pb::UnknownFieldSet.Builder unknownFields =
  1308. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1309. while (true) {
  1310. uint tag = input.ReadTag();
  1311. switch (tag) {
  1312. case 0:
  1313. this.UnknownFields = unknownFields.Build();
  1314. return this;
  1315. default: {
  1316. if (!ParseUnknownField(input, unknownFields,
  1317. extensionRegistry, tag)) {
  1318. this.UnknownFields = unknownFields.Build();
  1319. return this;
  1320. }
  1321. break;
  1322. }
  1323. case 136: {
  1324. A = input.ReadInt32();
  1325. break;
  1326. }
  1327. }
  1328. }
  1329. }
  1330. // optional int32 a = 17;
  1331. public bool HasA {
  1332. get { return result.HasA; }
  1333. }
  1334. public int A {
  1335. get { return result.A; }
  1336. set { SetA(value); }
  1337. }
  1338. public Builder SetA(int value) {
  1339. result.hasA = true;
  1340. result.a_ = value;
  1341. return this;
  1342. }
  1343. public Builder ClearA() {
  1344. result.hasA = false;
  1345. result.a_ = 0;
  1346. return this;
  1347. }
  1348. }
  1349. }
  1350. public sealed partial class RepeatedGroup : pb::GeneratedMessage<RepeatedGroup, RepeatedGroup.Builder> {
  1351. private static readonly RepeatedGroup defaultInstance = new RepeatedGroup();
  1352. public static RepeatedGroup DefaultInstance {
  1353. get { return defaultInstance; }
  1354. }
  1355. public override RepeatedGroup DefaultInstanceForType {
  1356. get { return defaultInstance; }
  1357. }
  1358. protected override RepeatedGroup ThisMessage {
  1359. get { return this; }
  1360. }
  1361. public static pbd::MessageDescriptor Descriptor {
  1362. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__Descriptor; }
  1363. }
  1364. protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup, RepeatedGroup.Builder> InternalFieldAccessors {
  1365. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllTypes_RepeatedGroup__FieldAccessorTable; }
  1366. }
  1367. // optional int32 a = 47;
  1368. private bool hasA;
  1369. private int a_ = 0;
  1370. public bool HasA {
  1371. get { return hasA; }
  1372. }
  1373. public int A {
  1374. get { return a_; }
  1375. }
  1376. public override bool IsInitialized {
  1377. get {
  1378. return true;
  1379. }
  1380. }
  1381. public override void WriteTo(pb::CodedOutputStream output) {
  1382. if (HasA) {
  1383. output.WriteInt32(47, A);
  1384. }
  1385. UnknownFields.WriteTo(output);
  1386. }
  1387. private int memoizedSerializedSize = -1;
  1388. public override int SerializedSize {
  1389. get {
  1390. int size = memoizedSerializedSize;
  1391. if (size != -1) return size;
  1392. size = 0;
  1393. if (HasA) {
  1394. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  1395. }
  1396. size += UnknownFields.SerializedSize;
  1397. memoizedSerializedSize = size;
  1398. return size;
  1399. }
  1400. }
  1401. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data) {
  1402. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1403. }
  1404. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::ByteString data,
  1405. pb::ExtensionRegistry extensionRegistry) {
  1406. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1407. .BuildParsed();
  1408. }
  1409. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data) {
  1410. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1411. }
  1412. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(byte[] data,
  1413. pb::ExtensionRegistry extensionRegistry) {
  1414. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1415. .BuildParsed();
  1416. }
  1417. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(global::System.IO.Stream input) {
  1418. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1419. }
  1420. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(
  1421. global::System.IO.Stream input,
  1422. pb::ExtensionRegistry extensionRegistry) {
  1423. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1424. .BuildParsed();
  1425. }
  1426. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input) {
  1427. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1428. }
  1429. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup ParseFrom(pb::CodedInputStream input,
  1430. pb::ExtensionRegistry extensionRegistry) {
  1431. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1432. .BuildParsed();
  1433. }
  1434. public static Builder CreateBuilder() { return new Builder(); }
  1435. public override Builder CreateBuilderForType() { return new Builder(); }
  1436. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup prototype) {
  1437. return (Builder) new Builder().MergeFrom(prototype);
  1438. }
  1439. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup, Builder> {
  1440. protected override Builder ThisBuilder {
  1441. get { return this; }
  1442. }
  1443. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder()
  1444. public Builder() {}
  1445. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup();
  1446. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup MessageBeingBuilt {
  1447. get { return result; }
  1448. }
  1449. public override Builder Clear() {
  1450. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup();
  1451. return this;
  1452. }
  1453. public override Builder Clone() {
  1454. return new Builder().MergeFrom(result);
  1455. }
  1456. public override pbd::MessageDescriptor DescriptorForType {
  1457. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Descriptor; }
  1458. }
  1459. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup DefaultInstanceForType {
  1460. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance; }
  1461. }
  1462. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup BuildPartial() {
  1463. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup returnMe = result;
  1464. result = null;
  1465. return returnMe;
  1466. }
  1467. public override Builder MergeFrom(pb::IMessage other) {
  1468. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup) {
  1469. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup) other);
  1470. } else {
  1471. base.MergeFrom(other);
  1472. return this;
  1473. }
  1474. }
  1475. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup other) {
  1476. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.DefaultInstance) return this;
  1477. if (other.HasA) {
  1478. A = other.A;
  1479. }
  1480. this.MergeUnknownFields(other.UnknownFields);
  1481. return this;
  1482. }
  1483. public override Builder MergeFrom(pb::CodedInputStream input) {
  1484. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1485. }
  1486. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1487. pb::UnknownFieldSet.Builder unknownFields =
  1488. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1489. while (true) {
  1490. uint tag = input.ReadTag();
  1491. switch (tag) {
  1492. case 0:
  1493. this.UnknownFields = unknownFields.Build();
  1494. return this;
  1495. default: {
  1496. if (!ParseUnknownField(input, unknownFields,
  1497. extensionRegistry, tag)) {
  1498. this.UnknownFields = unknownFields.Build();
  1499. return this;
  1500. }
  1501. break;
  1502. }
  1503. case 376: {
  1504. A = input.ReadInt32();
  1505. break;
  1506. }
  1507. }
  1508. }
  1509. }
  1510. // optional int32 a = 47;
  1511. public bool HasA {
  1512. get { return result.HasA; }
  1513. }
  1514. public int A {
  1515. get { return result.A; }
  1516. set { SetA(value); }
  1517. }
  1518. public Builder SetA(int value) {
  1519. result.hasA = true;
  1520. result.a_ = value;
  1521. return this;
  1522. }
  1523. public Builder ClearA() {
  1524. result.hasA = false;
  1525. result.a_ = 0;
  1526. return this;
  1527. }
  1528. }
  1529. }
  1530. }
  1531. #endregion
  1532. // optional int32 optional_int32 = 1;
  1533. private bool hasOptionalInt32;
  1534. private int optionalInt32_ = 0;
  1535. public bool HasOptionalInt32 {
  1536. get { return hasOptionalInt32; }
  1537. }
  1538. public int OptionalInt32 {
  1539. get { return optionalInt32_; }
  1540. }
  1541. // optional int64 optional_int64 = 2;
  1542. private bool hasOptionalInt64;
  1543. private long optionalInt64_ = 0L;
  1544. public bool HasOptionalInt64 {
  1545. get { return hasOptionalInt64; }
  1546. }
  1547. public long OptionalInt64 {
  1548. get { return optionalInt64_; }
  1549. }
  1550. // optional uint32 optional_uint32 = 3;
  1551. private bool hasOptionalUint32;
  1552. private uint optionalUint32_ = 0;
  1553. public bool HasOptionalUint32 {
  1554. get { return hasOptionalUint32; }
  1555. }
  1556. public uint OptionalUint32 {
  1557. get { return optionalUint32_; }
  1558. }
  1559. // optional uint64 optional_uint64 = 4;
  1560. private bool hasOptionalUint64;
  1561. private ulong optionalUint64_ = 0UL;
  1562. public bool HasOptionalUint64 {
  1563. get { return hasOptionalUint64; }
  1564. }
  1565. public ulong OptionalUint64 {
  1566. get { return optionalUint64_; }
  1567. }
  1568. // optional sint32 optional_sint32 = 5;
  1569. private bool hasOptionalSint32;
  1570. private int optionalSint32_ = 0;
  1571. public bool HasOptionalSint32 {
  1572. get { return hasOptionalSint32; }
  1573. }
  1574. public int OptionalSint32 {
  1575. get { return optionalSint32_; }
  1576. }
  1577. // optional sint64 optional_sint64 = 6;
  1578. private bool hasOptionalSint64;
  1579. private long optionalSint64_ = 0L;
  1580. public bool HasOptionalSint64 {
  1581. get { return hasOptionalSint64; }
  1582. }
  1583. public long OptionalSint64 {
  1584. get { return optionalSint64_; }
  1585. }
  1586. // optional fixed32 optional_fixed32 = 7;
  1587. private bool hasOptionalFixed32;
  1588. private uint optionalFixed32_ = 0;
  1589. public bool HasOptionalFixed32 {
  1590. get { return hasOptionalFixed32; }
  1591. }
  1592. public uint OptionalFixed32 {
  1593. get { return optionalFixed32_; }
  1594. }
  1595. // optional fixed64 optional_fixed64 = 8;
  1596. private bool hasOptionalFixed64;
  1597. private ulong optionalFixed64_ = 0UL;
  1598. public bool HasOptionalFixed64 {
  1599. get { return hasOptionalFixed64; }
  1600. }
  1601. public ulong OptionalFixed64 {
  1602. get { return optionalFixed64_; }
  1603. }
  1604. // optional sfixed32 optional_sfixed32 = 9;
  1605. private bool hasOptionalSfixed32;
  1606. private int optionalSfixed32_ = 0;
  1607. public bool HasOptionalSfixed32 {
  1608. get { return hasOptionalSfixed32; }
  1609. }
  1610. public int OptionalSfixed32 {
  1611. get { return optionalSfixed32_; }
  1612. }
  1613. // optional sfixed64 optional_sfixed64 = 10;
  1614. private bool hasOptionalSfixed64;
  1615. private long optionalSfixed64_ = 0L;
  1616. public bool HasOptionalSfixed64 {
  1617. get { return hasOptionalSfixed64; }
  1618. }
  1619. public long OptionalSfixed64 {
  1620. get { return optionalSfixed64_; }
  1621. }
  1622. // optional float optional_float = 11;
  1623. private bool hasOptionalFloat;
  1624. private float optionalFloat_ = 0F;
  1625. public bool HasOptionalFloat {
  1626. get { return hasOptionalFloat; }
  1627. }
  1628. public float OptionalFloat {
  1629. get { return optionalFloat_; }
  1630. }
  1631. // optional double optional_double = 12;
  1632. private bool hasOptionalDouble;
  1633. private double optionalDouble_ = 0D;
  1634. public bool HasOptionalDouble {
  1635. get { return hasOptionalDouble; }
  1636. }
  1637. public double OptionalDouble {
  1638. get { return optionalDouble_; }
  1639. }
  1640. // optional bool optional_bool = 13;
  1641. private bool hasOptionalBool;
  1642. private bool optionalBool_ = false;
  1643. public bool HasOptionalBool {
  1644. get { return hasOptionalBool; }
  1645. }
  1646. public bool OptionalBool {
  1647. get { return optionalBool_; }
  1648. }
  1649. // optional string optional_string = 14;
  1650. private bool hasOptionalString;
  1651. private string optionalString_ = "";
  1652. public bool HasOptionalString {
  1653. get { return hasOptionalString; }
  1654. }
  1655. public string OptionalString {
  1656. get { return optionalString_; }
  1657. }
  1658. // optional bytes optional_bytes = 15;
  1659. private bool hasOptionalBytes;
  1660. private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
  1661. public bool HasOptionalBytes {
  1662. get { return hasOptionalBytes; }
  1663. }
  1664. public pb::ByteString OptionalBytes {
  1665. get { return optionalBytes_; }
  1666. }
  1667. // optional group OptionalGroup = 16 {
  1668. private bool hasOptionalGroup;
  1669. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
  1670. public bool HasOptionalGroup {
  1671. get { return hasOptionalGroup; }
  1672. }
  1673. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
  1674. get { return optionalGroup_; }
  1675. }
  1676. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  1677. private bool hasOptionalNestedMessage;
  1678. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  1679. public bool HasOptionalNestedMessage {
  1680. get { return hasOptionalNestedMessage; }
  1681. }
  1682. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  1683. get { return optionalNestedMessage_; }
  1684. }
  1685. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  1686. private bool hasOptionalForeignMessage;
  1687. private global::Google.ProtocolBuffers.TestProtos.ForeignMessage optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  1688. public bool HasOptionalForeignMessage {
  1689. get { return hasOptionalForeignMessage; }
  1690. }
  1691. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
  1692. get { return optionalForeignMessage_; }
  1693. }
  1694. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  1695. private bool hasOptionalImportMessage;
  1696. private global::Google.ProtocolBuffers.TestProtos.ImportMessage optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
  1697. public bool HasOptionalImportMessage {
  1698. get { return hasOptionalImportMessage; }
  1699. }
  1700. public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
  1701. get { return optionalImportMessage_; }
  1702. }
  1703. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  1704. private bool hasOptionalNestedEnum;
  1705. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
  1706. public bool HasOptionalNestedEnum {
  1707. get { return hasOptionalNestedEnum; }
  1708. }
  1709. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum { get { return optionalNestedEnum_; }}
  1710. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  1711. private bool hasOptionalForeignEnum;
  1712. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  1713. public bool HasOptionalForeignEnum {
  1714. get { return hasOptionalForeignEnum; }
  1715. }
  1716. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum { get { return optionalForeignEnum_; }}
  1717. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  1718. private bool hasOptionalImportEnum;
  1719. private global::Google.ProtocolBuffers.TestProtos.ImportEnum optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
  1720. public bool HasOptionalImportEnum {
  1721. get { return hasOptionalImportEnum; }
  1722. }
  1723. public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum { get { return optionalImportEnum_; }}
  1724. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  1725. private bool hasOptionalStringPiece;
  1726. private string optionalStringPiece_ = "";
  1727. public bool HasOptionalStringPiece {
  1728. get { return hasOptionalStringPiece; }
  1729. }
  1730. public string OptionalStringPiece {
  1731. get { return optionalStringPiece_; }
  1732. }
  1733. // optional string optional_cord = 25 [ctype = CORD];
  1734. private bool hasOptionalCord;
  1735. private string optionalCord_ = "";
  1736. public bool HasOptionalCord {
  1737. get { return hasOptionalCord; }
  1738. }
  1739. public string OptionalCord {
  1740. get { return optionalCord_; }
  1741. }
  1742. // repeated int32 repeated_int32 = 31;
  1743. private scg::IList<int> repeatedInt32_ = pbc::Lists<int>.Empty;
  1744. public scg::IList<int> RepeatedInt32List {
  1745. get { return repeatedInt32_; }
  1746. }
  1747. public int RepeatedInt32Count {
  1748. get { return repeatedInt32_.Count; }
  1749. }
  1750. public int GetRepeatedInt32(int index) {
  1751. return repeatedInt32_[index];
  1752. }
  1753. // repeated int64 repeated_int64 = 32;
  1754. private scg::IList<long> repeatedInt64_ = pbc::Lists<long>.Empty;
  1755. public scg::IList<long> RepeatedInt64List {
  1756. get { return repeatedInt64_; }
  1757. }
  1758. public int RepeatedInt64Count {
  1759. get { return repeatedInt64_.Count; }
  1760. }
  1761. public long GetRepeatedInt64(int index) {
  1762. return repeatedInt64_[index];
  1763. }
  1764. // repeated uint32 repeated_uint32 = 33;
  1765. private scg::IList<uint> repeatedUint32_ = pbc::Lists<uint>.Empty;
  1766. public scg::IList<uint> RepeatedUint32List {
  1767. get { return repeatedUint32_; }
  1768. }
  1769. public int RepeatedUint32Count {
  1770. get { return repeatedUint32_.Count; }
  1771. }
  1772. public uint GetRepeatedUint32(int index) {
  1773. return repeatedUint32_[index];
  1774. }
  1775. // repeated uint64 repeated_uint64 = 34;
  1776. private scg::IList<ulong> repeatedUint64_ = pbc::Lists<ulong>.Empty;
  1777. public scg::IList<ulong> RepeatedUint64List {
  1778. get { return repeatedUint64_; }
  1779. }
  1780. public int RepeatedUint64Count {
  1781. get { return repeatedUint64_.Count; }
  1782. }
  1783. public ulong GetRepeatedUint64(int index) {
  1784. return repeatedUint64_[index];
  1785. }
  1786. // repeated sint32 repeated_sint32 = 35;
  1787. private scg::IList<int> repeatedSint32_ = pbc::Lists<int>.Empty;
  1788. public scg::IList<int> RepeatedSint32List {
  1789. get { return repeatedSint32_; }
  1790. }
  1791. public int RepeatedSint32Count {
  1792. get { return repeatedSint32_.Count; }
  1793. }
  1794. public int GetRepeatedSint32(int index) {
  1795. return repeatedSint32_[index];
  1796. }
  1797. // repeated sint64 repeated_sint64 = 36;
  1798. private scg::IList<long> repeatedSint64_ = pbc::Lists<long>.Empty;
  1799. public scg::IList<long> RepeatedSint64List {
  1800. get { return repeatedSint64_; }
  1801. }
  1802. public int RepeatedSint64Count {
  1803. get { return repeatedSint64_.Count; }
  1804. }
  1805. public long GetRepeatedSint64(int index) {
  1806. return repeatedSint64_[index];
  1807. }
  1808. // repeated fixed32 repeated_fixed32 = 37;
  1809. private scg::IList<uint> repeatedFixed32_ = pbc::Lists<uint>.Empty;
  1810. public scg::IList<uint> RepeatedFixed32List {
  1811. get { return repeatedFixed32_; }
  1812. }
  1813. public int RepeatedFixed32Count {
  1814. get { return repeatedFixed32_.Count; }
  1815. }
  1816. public uint GetRepeatedFixed32(int index) {
  1817. return repeatedFixed32_[index];
  1818. }
  1819. // repeated fixed64 repeated_fixed64 = 38;
  1820. private scg::IList<ulong> repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  1821. public scg::IList<ulong> RepeatedFixed64List {
  1822. get { return repeatedFixed64_; }
  1823. }
  1824. public int RepeatedFixed64Count {
  1825. get { return repeatedFixed64_.Count; }
  1826. }
  1827. public ulong GetRepeatedFixed64(int index) {
  1828. return repeatedFixed64_[index];
  1829. }
  1830. // repeated sfixed32 repeated_sfixed32 = 39;
  1831. private scg::IList<int> repeatedSfixed32_ = pbc::Lists<int>.Empty;
  1832. public scg::IList<int> RepeatedSfixed32List {
  1833. get { return repeatedSfixed32_; }
  1834. }
  1835. public int RepeatedSfixed32Count {
  1836. get { return repeatedSfixed32_.Count; }
  1837. }
  1838. public int GetRepeatedSfixed32(int index) {
  1839. return repeatedSfixed32_[index];
  1840. }
  1841. // repeated sfixed64 repeated_sfixed64 = 40;
  1842. private scg::IList<long> repeatedSfixed64_ = pbc::Lists<long>.Empty;
  1843. public scg::IList<long> RepeatedSfixed64List {
  1844. get { return repeatedSfixed64_; }
  1845. }
  1846. public int RepeatedSfixed64Count {
  1847. get { return repeatedSfixed64_.Count; }
  1848. }
  1849. public long GetRepeatedSfixed64(int index) {
  1850. return repeatedSfixed64_[index];
  1851. }
  1852. // repeated float repeated_float = 41;
  1853. private scg::IList<float> repeatedFloat_ = pbc::Lists<float>.Empty;
  1854. public scg::IList<float> RepeatedFloatList {
  1855. get { return repeatedFloat_; }
  1856. }
  1857. public int RepeatedFloatCount {
  1858. get { return repeatedFloat_.Count; }
  1859. }
  1860. public float GetRepeatedFloat(int index) {
  1861. return repeatedFloat_[index];
  1862. }
  1863. // repeated double repeated_double = 42;
  1864. private scg::IList<double> repeatedDouble_ = pbc::Lists<double>.Empty;
  1865. public scg::IList<double> RepeatedDoubleList {
  1866. get { return repeatedDouble_; }
  1867. }
  1868. public int RepeatedDoubleCount {
  1869. get { return repeatedDouble_.Count; }
  1870. }
  1871. public double GetRepeatedDouble(int index) {
  1872. return repeatedDouble_[index];
  1873. }
  1874. // repeated bool repeated_bool = 43;
  1875. private scg::IList<bool> repeatedBool_ = pbc::Lists<bool>.Empty;
  1876. public scg::IList<bool> RepeatedBoolList {
  1877. get { return repeatedBool_; }
  1878. }
  1879. public int RepeatedBoolCount {
  1880. get { return repeatedBool_.Count; }
  1881. }
  1882. public bool GetRepeatedBool(int index) {
  1883. return repeatedBool_[index];
  1884. }
  1885. // repeated string repeated_string = 44;
  1886. private scg::IList<string> repeatedString_ = pbc::Lists<string>.Empty;
  1887. public scg::IList<string> RepeatedStringList {
  1888. get { return repeatedString_; }
  1889. }
  1890. public int RepeatedStringCount {
  1891. get { return repeatedString_.Count; }
  1892. }
  1893. public string GetRepeatedString(int index) {
  1894. return repeatedString_[index];
  1895. }
  1896. // repeated bytes repeated_bytes = 45;
  1897. private scg::IList<pb::ByteString> repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  1898. public scg::IList<pb::ByteString> RepeatedBytesList {
  1899. get { return repeatedBytes_; }
  1900. }
  1901. public int RepeatedBytesCount {
  1902. get { return repeatedBytes_.Count; }
  1903. }
  1904. public pb::ByteString GetRepeatedBytes(int index) {
  1905. return repeatedBytes_[index];
  1906. }
  1907. // repeated group RepeatedGroup = 46 {
  1908. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> repeatedGroup_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty;
  1909. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  1910. get { return repeatedGroup_; }
  1911. }
  1912. public int RepeatedGroupCount
  1913. { get { return repeatedGroup_.Count; }
  1914. }
  1915. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  1916. return repeatedGroup_ [index];
  1917. }
  1918. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  1919. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> repeatedNestedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty;
  1920. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  1921. get { return repeatedNestedMessage_; }
  1922. }
  1923. public int RepeatedNestedMessageCount
  1924. { get { return repeatedNestedMessage_.Count; }
  1925. }
  1926. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  1927. return repeatedNestedMessage_ [index];
  1928. }
  1929. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  1930. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedForeignMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  1931. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
  1932. get { return repeatedForeignMessage_; }
  1933. }
  1934. public int RepeatedForeignMessageCount
  1935. { get { return repeatedForeignMessage_.Count; }
  1936. }
  1937. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
  1938. return repeatedForeignMessage_ [index];
  1939. }
  1940. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  1941. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> repeatedImportMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty;
  1942. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
  1943. get { return repeatedImportMessage_; }
  1944. }
  1945. public int RepeatedImportMessageCount
  1946. { get { return repeatedImportMessage_.Count; }
  1947. }
  1948. public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
  1949. return repeatedImportMessage_ [index];
  1950. }
  1951. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  1952. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> ();
  1953. public scg.IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  1954. get { return pbc::Lists.AsReadOnly(repeatedNestedEnum_); }
  1955. }
  1956. public int RepeatedNestedEnumCount {
  1957. get { return repeatedNestedEnum_.Count; }
  1958. }
  1959. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  1960. return repeatedNestedEnum_[index];
  1961. }
  1962. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  1963. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> ();
  1964. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
  1965. get { return pbc::Lists.AsReadOnly(repeatedForeignEnum_); }
  1966. }
  1967. public int RepeatedForeignEnumCount {
  1968. get { return repeatedForeignEnum_.Count; }
  1969. }
  1970. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
  1971. return repeatedForeignEnum_[index];
  1972. }
  1973. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  1974. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum> ();
  1975. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
  1976. get { return pbc::Lists.AsReadOnly(repeatedImportEnum_); }
  1977. }
  1978. public int RepeatedImportEnumCount {
  1979. get { return repeatedImportEnum_.Count; }
  1980. }
  1981. public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
  1982. return repeatedImportEnum_[index];
  1983. }
  1984. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  1985. private scg::IList<string> repeatedStringPiece_ = pbc::Lists<string>.Empty;
  1986. public scg::IList<string> RepeatedStringPieceList {
  1987. get { return repeatedStringPiece_; }
  1988. }
  1989. public int RepeatedStringPieceCount {
  1990. get { return repeatedStringPiece_.Count; }
  1991. }
  1992. public string GetRepeatedStringPiece(int index) {
  1993. return repeatedStringPiece_[index];
  1994. }
  1995. // repeated string repeated_cord = 55 [ctype = CORD];
  1996. private scg::IList<string> repeatedCord_ = pbc::Lists<string>.Empty;
  1997. public scg::IList<string> RepeatedCordList {
  1998. get { return repeatedCord_; }
  1999. }
  2000. public int RepeatedCordCount {
  2001. get { return repeatedCord_.Count; }
  2002. }
  2003. public string GetRepeatedCord(int index) {
  2004. return repeatedCord_[index];
  2005. }
  2006. // optional int32 default_int32 = 61 [default = 41];
  2007. private bool hasDefaultInt32;
  2008. private int defaultInt32_ = 41;
  2009. public bool HasDefaultInt32 {
  2010. get { return hasDefaultInt32; }
  2011. }
  2012. public int DefaultInt32 {
  2013. get { return defaultInt32_; }
  2014. }
  2015. // optional int64 default_int64 = 62 [default = 42];
  2016. private bool hasDefaultInt64;
  2017. private long defaultInt64_ = 42L;
  2018. public bool HasDefaultInt64 {
  2019. get { return hasDefaultInt64; }
  2020. }
  2021. public long DefaultInt64 {
  2022. get { return defaultInt64_; }
  2023. }
  2024. // optional uint32 default_uint32 = 63 [default = 43];
  2025. private bool hasDefaultUint32;
  2026. private uint defaultUint32_ = 43;
  2027. public bool HasDefaultUint32 {
  2028. get { return hasDefaultUint32; }
  2029. }
  2030. public uint DefaultUint32 {
  2031. get { return defaultUint32_; }
  2032. }
  2033. // optional uint64 default_uint64 = 64 [default = 44];
  2034. private bool hasDefaultUint64;
  2035. private ulong defaultUint64_ = 44UL;
  2036. public bool HasDefaultUint64 {
  2037. get { return hasDefaultUint64; }
  2038. }
  2039. public ulong DefaultUint64 {
  2040. get { return defaultUint64_; }
  2041. }
  2042. // optional sint32 default_sint32 = 65 [default = -45];
  2043. private bool hasDefaultSint32;
  2044. private int defaultSint32_ = -45;
  2045. public bool HasDefaultSint32 {
  2046. get { return hasDefaultSint32; }
  2047. }
  2048. public int DefaultSint32 {
  2049. get { return defaultSint32_; }
  2050. }
  2051. // optional sint64 default_sint64 = 66 [default = 46];
  2052. private bool hasDefaultSint64;
  2053. private long defaultSint64_ = 46L;
  2054. public bool HasDefaultSint64 {
  2055. get { return hasDefaultSint64; }
  2056. }
  2057. public long DefaultSint64 {
  2058. get { return defaultSint64_; }
  2059. }
  2060. // optional fixed32 default_fixed32 = 67 [default = 47];
  2061. private bool hasDefaultFixed32;
  2062. private uint defaultFixed32_ = 47;
  2063. public bool HasDefaultFixed32 {
  2064. get { return hasDefaultFixed32; }
  2065. }
  2066. public uint DefaultFixed32 {
  2067. get { return defaultFixed32_; }
  2068. }
  2069. // optional fixed64 default_fixed64 = 68 [default = 48];
  2070. private bool hasDefaultFixed64;
  2071. private ulong defaultFixed64_ = 48UL;
  2072. public bool HasDefaultFixed64 {
  2073. get { return hasDefaultFixed64; }
  2074. }
  2075. public ulong DefaultFixed64 {
  2076. get { return defaultFixed64_; }
  2077. }
  2078. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  2079. private bool hasDefaultSfixed32;
  2080. private int defaultSfixed32_ = 49;
  2081. public bool HasDefaultSfixed32 {
  2082. get { return hasDefaultSfixed32; }
  2083. }
  2084. public int DefaultSfixed32 {
  2085. get { return defaultSfixed32_; }
  2086. }
  2087. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  2088. private bool hasDefaultSfixed64;
  2089. private long defaultSfixed64_ = -50L;
  2090. public bool HasDefaultSfixed64 {
  2091. get { return hasDefaultSfixed64; }
  2092. }
  2093. public long DefaultSfixed64 {
  2094. get { return defaultSfixed64_; }
  2095. }
  2096. // optional float default_float = 71 [default = 51.5];
  2097. private bool hasDefaultFloat;
  2098. private float defaultFloat_ = 51.5F;
  2099. public bool HasDefaultFloat {
  2100. get { return hasDefaultFloat; }
  2101. }
  2102. public float DefaultFloat {
  2103. get { return defaultFloat_; }
  2104. }
  2105. // optional double default_double = 72 [default = 52000];
  2106. private bool hasDefaultDouble;
  2107. private double defaultDouble_ = 52000D;
  2108. public bool HasDefaultDouble {
  2109. get { return hasDefaultDouble; }
  2110. }
  2111. public double DefaultDouble {
  2112. get { return defaultDouble_; }
  2113. }
  2114. // optional bool default_bool = 73 [default = true];
  2115. private bool hasDefaultBool;
  2116. private bool defaultBool_ = true;
  2117. public bool HasDefaultBool {
  2118. get { return hasDefaultBool; }
  2119. }
  2120. public bool DefaultBool {
  2121. get { return defaultBool_; }
  2122. }
  2123. // optional string default_string = 74 [default = "hello"];
  2124. private bool hasDefaultString;
  2125. private string defaultString_ = "hello";
  2126. public bool HasDefaultString {
  2127. get { return hasDefaultString; }
  2128. }
  2129. public string DefaultString {
  2130. get { return defaultString_; }
  2131. }
  2132. // optional bytes default_bytes = 75 [default = "world"];
  2133. private bool hasDefaultBytes;
  2134. private pb::ByteString defaultBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue);
  2135. public bool HasDefaultBytes {
  2136. get { return hasDefaultBytes; }
  2137. }
  2138. public pb::ByteString DefaultBytes {
  2139. get { return defaultBytes_; }
  2140. }
  2141. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  2142. private bool hasDefaultNestedEnum;
  2143. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
  2144. public bool HasDefaultNestedEnum {
  2145. get { return hasDefaultNestedEnum; }
  2146. }
  2147. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum { get { return defaultNestedEnum_; }}
  2148. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  2149. private bool hasDefaultForeignEnum;
  2150. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
  2151. public bool HasDefaultForeignEnum {
  2152. get { return hasDefaultForeignEnum; }
  2153. }
  2154. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum { get { return defaultForeignEnum_; }}
  2155. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  2156. private bool hasDefaultImportEnum;
  2157. private global::Google.ProtocolBuffers.TestProtos.ImportEnum defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
  2158. public bool HasDefaultImportEnum {
  2159. get { return hasDefaultImportEnum; }
  2160. }
  2161. public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum { get { return defaultImportEnum_; }}
  2162. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  2163. private bool hasDefaultStringPiece;
  2164. private string defaultStringPiece_ = "abc";
  2165. public bool HasDefaultStringPiece {
  2166. get { return hasDefaultStringPiece; }
  2167. }
  2168. public string DefaultStringPiece {
  2169. get { return defaultStringPiece_; }
  2170. }
  2171. // optional string default_cord = 85 [default = "123", ctype = CORD];
  2172. private bool hasDefaultCord;
  2173. private string defaultCord_ = "123";
  2174. public bool HasDefaultCord {
  2175. get { return hasDefaultCord; }
  2176. }
  2177. public string DefaultCord {
  2178. get { return defaultCord_; }
  2179. }
  2180. public override bool IsInitialized {
  2181. get {
  2182. return true;
  2183. }
  2184. }
  2185. public override void WriteTo(pb::CodedOutputStream output) {
  2186. if (HasOptionalInt32) {
  2187. output.WriteInt32(1, OptionalInt32);
  2188. }
  2189. if (HasOptionalInt64) {
  2190. output.WriteInt64(2, OptionalInt64);
  2191. }
  2192. if (HasOptionalUint32) {
  2193. output.WriteUInt32(3, OptionalUint32);
  2194. }
  2195. if (HasOptionalUint64) {
  2196. output.WriteUInt64(4, OptionalUint64);
  2197. }
  2198. if (HasOptionalSint32) {
  2199. output.WriteSInt32(5, OptionalSint32);
  2200. }
  2201. if (HasOptionalSint64) {
  2202. output.WriteSInt64(6, OptionalSint64);
  2203. }
  2204. if (HasOptionalFixed32) {
  2205. output.WriteFixed32(7, OptionalFixed32);
  2206. }
  2207. if (HasOptionalFixed64) {
  2208. output.WriteFixed64(8, OptionalFixed64);
  2209. }
  2210. if (HasOptionalSfixed32) {
  2211. output.WriteSFixed32(9, OptionalSfixed32);
  2212. }
  2213. if (HasOptionalSfixed64) {
  2214. output.WriteSFixed64(10, OptionalSfixed64);
  2215. }
  2216. if (HasOptionalFloat) {
  2217. output.WriteFloat(11, OptionalFloat);
  2218. }
  2219. if (HasOptionalDouble) {
  2220. output.WriteDouble(12, OptionalDouble);
  2221. }
  2222. if (HasOptionalBool) {
  2223. output.WriteBool(13, OptionalBool);
  2224. }
  2225. if (HasOptionalString) {
  2226. output.WriteString(14, OptionalString);
  2227. }
  2228. if (HasOptionalBytes) {
  2229. output.WriteBytes(15, OptionalBytes);
  2230. }
  2231. if (HasOptionalGroup) {
  2232. output.WriteGroup(16, OptionalGroup);
  2233. }
  2234. if (HasOptionalNestedMessage) {
  2235. output.WriteMessage(18, OptionalNestedMessage);
  2236. }
  2237. if (HasOptionalForeignMessage) {
  2238. output.WriteMessage(19, OptionalForeignMessage);
  2239. }
  2240. if (HasOptionalImportMessage) {
  2241. output.WriteMessage(20, OptionalImportMessage);
  2242. }
  2243. if (HasOptionalNestedEnum) {
  2244. output.WriteEnum(21, (int) OptionalNestedEnum);
  2245. }
  2246. if (HasOptionalForeignEnum) {
  2247. output.WriteEnum(22, (int) OptionalForeignEnum);
  2248. }
  2249. if (HasOptionalImportEnum) {
  2250. output.WriteEnum(23, (int) OptionalImportEnum);
  2251. }
  2252. if (HasOptionalStringPiece) {
  2253. output.WriteString(24, OptionalStringPiece);
  2254. }
  2255. if (HasOptionalCord) {
  2256. output.WriteString(25, OptionalCord);
  2257. }
  2258. foreach (int element in RepeatedInt32List) {
  2259. output.WriteInt32(31, element);
  2260. }
  2261. foreach (long element in RepeatedInt64List) {
  2262. output.WriteInt64(32, element);
  2263. }
  2264. foreach (uint element in RepeatedUint32List) {
  2265. output.WriteUInt32(33, element);
  2266. }
  2267. foreach (ulong element in RepeatedUint64List) {
  2268. output.WriteUInt64(34, element);
  2269. }
  2270. foreach (int element in RepeatedSint32List) {
  2271. output.WriteSInt32(35, element);
  2272. }
  2273. foreach (long element in RepeatedSint64List) {
  2274. output.WriteSInt64(36, element);
  2275. }
  2276. foreach (uint element in RepeatedFixed32List) {
  2277. output.WriteFixed32(37, element);
  2278. }
  2279. foreach (ulong element in RepeatedFixed64List) {
  2280. output.WriteFixed64(38, element);
  2281. }
  2282. foreach (int element in RepeatedSfixed32List) {
  2283. output.WriteSFixed32(39, element);
  2284. }
  2285. foreach (long element in RepeatedSfixed64List) {
  2286. output.WriteSFixed64(40, element);
  2287. }
  2288. foreach (float element in RepeatedFloatList) {
  2289. output.WriteFloat(41, element);
  2290. }
  2291. foreach (double element in RepeatedDoubleList) {
  2292. output.WriteDouble(42, element);
  2293. }
  2294. foreach (bool element in RepeatedBoolList) {
  2295. output.WriteBool(43, element);
  2296. }
  2297. foreach (string element in RepeatedStringList) {
  2298. output.WriteString(44, element);
  2299. }
  2300. foreach (pb::ByteString element in RepeatedBytesList) {
  2301. output.WriteBytes(45, element);
  2302. }
  2303. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2304. output.WriteGroup(46, element);
  2305. }
  2306. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2307. output.WriteMessage(48, element);
  2308. }
  2309. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
  2310. output.WriteMessage(49, element);
  2311. }
  2312. foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
  2313. output.WriteMessage(50, element);
  2314. }
  2315. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2316. output.WriteEnum(51, (int) element);
  2317. }
  2318. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) {
  2319. output.WriteEnum(52, (int) element);
  2320. }
  2321. foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) {
  2322. output.WriteEnum(53, (int) element);
  2323. }
  2324. foreach (string element in RepeatedStringPieceList) {
  2325. output.WriteString(54, element);
  2326. }
  2327. foreach (string element in RepeatedCordList) {
  2328. output.WriteString(55, element);
  2329. }
  2330. if (HasDefaultInt32) {
  2331. output.WriteInt32(61, DefaultInt32);
  2332. }
  2333. if (HasDefaultInt64) {
  2334. output.WriteInt64(62, DefaultInt64);
  2335. }
  2336. if (HasDefaultUint32) {
  2337. output.WriteUInt32(63, DefaultUint32);
  2338. }
  2339. if (HasDefaultUint64) {
  2340. output.WriteUInt64(64, DefaultUint64);
  2341. }
  2342. if (HasDefaultSint32) {
  2343. output.WriteSInt32(65, DefaultSint32);
  2344. }
  2345. if (HasDefaultSint64) {
  2346. output.WriteSInt64(66, DefaultSint64);
  2347. }
  2348. if (HasDefaultFixed32) {
  2349. output.WriteFixed32(67, DefaultFixed32);
  2350. }
  2351. if (HasDefaultFixed64) {
  2352. output.WriteFixed64(68, DefaultFixed64);
  2353. }
  2354. if (HasDefaultSfixed32) {
  2355. output.WriteSFixed32(69, DefaultSfixed32);
  2356. }
  2357. if (HasDefaultSfixed64) {
  2358. output.WriteSFixed64(70, DefaultSfixed64);
  2359. }
  2360. if (HasDefaultFloat) {
  2361. output.WriteFloat(71, DefaultFloat);
  2362. }
  2363. if (HasDefaultDouble) {
  2364. output.WriteDouble(72, DefaultDouble);
  2365. }
  2366. if (HasDefaultBool) {
  2367. output.WriteBool(73, DefaultBool);
  2368. }
  2369. if (HasDefaultString) {
  2370. output.WriteString(74, DefaultString);
  2371. }
  2372. if (HasDefaultBytes) {
  2373. output.WriteBytes(75, DefaultBytes);
  2374. }
  2375. if (HasDefaultNestedEnum) {
  2376. output.WriteEnum(81, (int) DefaultNestedEnum);
  2377. }
  2378. if (HasDefaultForeignEnum) {
  2379. output.WriteEnum(82, (int) DefaultForeignEnum);
  2380. }
  2381. if (HasDefaultImportEnum) {
  2382. output.WriteEnum(83, (int) DefaultImportEnum);
  2383. }
  2384. if (HasDefaultStringPiece) {
  2385. output.WriteString(84, DefaultStringPiece);
  2386. }
  2387. if (HasDefaultCord) {
  2388. output.WriteString(85, DefaultCord);
  2389. }
  2390. UnknownFields.WriteTo(output);
  2391. }
  2392. private int memoizedSerializedSize = -1;
  2393. public override int SerializedSize {
  2394. get {
  2395. int size = memoizedSerializedSize;
  2396. if (size != -1) return size;
  2397. size = 0;
  2398. if (HasOptionalInt32) {
  2399. size += pb::CodedOutputStream.ComputeInt32Size(1, OptionalInt32);
  2400. }
  2401. if (HasOptionalInt64) {
  2402. size += pb::CodedOutputStream.ComputeInt64Size(2, OptionalInt64);
  2403. }
  2404. if (HasOptionalUint32) {
  2405. size += pb::CodedOutputStream.ComputeUInt32Size(3, OptionalUint32);
  2406. }
  2407. if (HasOptionalUint64) {
  2408. size += pb::CodedOutputStream.ComputeUInt64Size(4, OptionalUint64);
  2409. }
  2410. if (HasOptionalSint32) {
  2411. size += pb::CodedOutputStream.ComputeSInt32Size(5, OptionalSint32);
  2412. }
  2413. if (HasOptionalSint64) {
  2414. size += pb::CodedOutputStream.ComputeSInt64Size(6, OptionalSint64);
  2415. }
  2416. if (HasOptionalFixed32) {
  2417. size += pb::CodedOutputStream.ComputeFixed32Size(7, OptionalFixed32);
  2418. }
  2419. if (HasOptionalFixed64) {
  2420. size += pb::CodedOutputStream.ComputeFixed64Size(8, OptionalFixed64);
  2421. }
  2422. if (HasOptionalSfixed32) {
  2423. size += pb::CodedOutputStream.ComputeSFixed32Size(9, OptionalSfixed32);
  2424. }
  2425. if (HasOptionalSfixed64) {
  2426. size += pb::CodedOutputStream.ComputeSFixed64Size(10, OptionalSfixed64);
  2427. }
  2428. if (HasOptionalFloat) {
  2429. size += pb::CodedOutputStream.ComputeFloatSize(11, OptionalFloat);
  2430. }
  2431. if (HasOptionalDouble) {
  2432. size += pb::CodedOutputStream.ComputeDoubleSize(12, OptionalDouble);
  2433. }
  2434. if (HasOptionalBool) {
  2435. size += pb::CodedOutputStream.ComputeBoolSize(13, OptionalBool);
  2436. }
  2437. if (HasOptionalString) {
  2438. size += pb::CodedOutputStream.ComputeStringSize(14, OptionalString);
  2439. }
  2440. if (HasOptionalBytes) {
  2441. size += pb::CodedOutputStream.ComputeBytesSize(15, OptionalBytes);
  2442. }
  2443. if (HasOptionalGroup) {
  2444. size += pb::CodedOutputStream.ComputeGroupSize(16, OptionalGroup);
  2445. }
  2446. if (HasOptionalNestedMessage) {
  2447. size += pb::CodedOutputStream.ComputeMessageSize(18, OptionalNestedMessage);
  2448. }
  2449. if (HasOptionalForeignMessage) {
  2450. size += pb::CodedOutputStream.ComputeMessageSize(19, OptionalForeignMessage);
  2451. }
  2452. if (HasOptionalImportMessage) {
  2453. size += pb::CodedOutputStream.ComputeMessageSize(20, OptionalImportMessage);
  2454. }
  2455. if (HasOptionalNestedEnum) {
  2456. size += pb::CodedOutputStream
  2457. .ComputeEnumSize(21, (int) OptionalNestedEnum);
  2458. }
  2459. if (HasOptionalForeignEnum) {
  2460. size += pb::CodedOutputStream
  2461. .ComputeEnumSize(22, (int) OptionalForeignEnum);
  2462. }
  2463. if (HasOptionalImportEnum) {
  2464. size += pb::CodedOutputStream
  2465. .ComputeEnumSize(23, (int) OptionalImportEnum);
  2466. }
  2467. if (HasOptionalStringPiece) {
  2468. size += pb::CodedOutputStream.ComputeStringSize(24, OptionalStringPiece);
  2469. }
  2470. if (HasOptionalCord) {
  2471. size += pb::CodedOutputStream.ComputeStringSize(25, OptionalCord);
  2472. }
  2473. foreach (int element in RepeatedInt32List) {
  2474. size += pb::CodedOutputStream
  2475. .ComputeInt32Size(31, element);
  2476. }
  2477. foreach (long element in RepeatedInt64List) {
  2478. size += pb::CodedOutputStream
  2479. .ComputeInt64Size(32, element);
  2480. }
  2481. foreach (uint element in RepeatedUint32List) {
  2482. size += pb::CodedOutputStream
  2483. .ComputeUInt32Size(33, element);
  2484. }
  2485. foreach (ulong element in RepeatedUint64List) {
  2486. size += pb::CodedOutputStream
  2487. .ComputeUInt64Size(34, element);
  2488. }
  2489. foreach (int element in RepeatedSint32List) {
  2490. size += pb::CodedOutputStream
  2491. .ComputeSInt32Size(35, element);
  2492. }
  2493. foreach (long element in RepeatedSint64List) {
  2494. size += pb::CodedOutputStream
  2495. .ComputeSInt64Size(36, element);
  2496. }
  2497. foreach (uint element in RepeatedFixed32List) {
  2498. size += pb::CodedOutputStream
  2499. .ComputeFixed32Size(37, element);
  2500. }
  2501. foreach (ulong element in RepeatedFixed64List) {
  2502. size += pb::CodedOutputStream
  2503. .ComputeFixed64Size(38, element);
  2504. }
  2505. foreach (int element in RepeatedSfixed32List) {
  2506. size += pb::CodedOutputStream
  2507. .ComputeSFixed32Size(39, element);
  2508. }
  2509. foreach (long element in RepeatedSfixed64List) {
  2510. size += pb::CodedOutputStream
  2511. .ComputeSFixed64Size(40, element);
  2512. }
  2513. foreach (float element in RepeatedFloatList) {
  2514. size += pb::CodedOutputStream
  2515. .ComputeFloatSize(41, element);
  2516. }
  2517. foreach (double element in RepeatedDoubleList) {
  2518. size += pb::CodedOutputStream
  2519. .ComputeDoubleSize(42, element);
  2520. }
  2521. foreach (bool element in RepeatedBoolList) {
  2522. size += pb::CodedOutputStream
  2523. .ComputeBoolSize(43, element);
  2524. }
  2525. foreach (string element in RepeatedStringList) {
  2526. size += pb::CodedOutputStream
  2527. .ComputeStringSize(44, element);
  2528. }
  2529. foreach (pb::ByteString element in RepeatedBytesList) {
  2530. size += pb::CodedOutputStream
  2531. .ComputeBytesSize(45, element);
  2532. }
  2533. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup element in RepeatedGroupList) {
  2534. size += pb::CodedOutputStream.ComputeGroupSize(46, element);
  2535. }
  2536. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage element in RepeatedNestedMessageList) {
  2537. size += pb::CodedOutputStream.ComputeMessageSize(48, element);
  2538. }
  2539. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedForeignMessageList) {
  2540. size += pb::CodedOutputStream.ComputeMessageSize(49, element);
  2541. }
  2542. foreach (global::Google.ProtocolBuffers.TestProtos.ImportMessage element in RepeatedImportMessageList) {
  2543. size += pb::CodedOutputStream.ComputeMessageSize(50, element);
  2544. }
  2545. foreach (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum element in RepeatedNestedEnumList) {
  2546. size += pb::CodedOutputStream
  2547. .ComputeEnumSize(51, (int) element);
  2548. }
  2549. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedForeignEnumList) {
  2550. size += pb::CodedOutputStream
  2551. .ComputeEnumSize(52, (int) element);
  2552. }
  2553. foreach (global::Google.ProtocolBuffers.TestProtos.ImportEnum element in RepeatedImportEnumList) {
  2554. size += pb::CodedOutputStream
  2555. .ComputeEnumSize(53, (int) element);
  2556. }
  2557. foreach (string element in RepeatedStringPieceList) {
  2558. size += pb::CodedOutputStream
  2559. .ComputeStringSize(54, element);
  2560. }
  2561. foreach (string element in RepeatedCordList) {
  2562. size += pb::CodedOutputStream
  2563. .ComputeStringSize(55, element);
  2564. }
  2565. if (HasDefaultInt32) {
  2566. size += pb::CodedOutputStream.ComputeInt32Size(61, DefaultInt32);
  2567. }
  2568. if (HasDefaultInt64) {
  2569. size += pb::CodedOutputStream.ComputeInt64Size(62, DefaultInt64);
  2570. }
  2571. if (HasDefaultUint32) {
  2572. size += pb::CodedOutputStream.ComputeUInt32Size(63, DefaultUint32);
  2573. }
  2574. if (HasDefaultUint64) {
  2575. size += pb::CodedOutputStream.ComputeUInt64Size(64, DefaultUint64);
  2576. }
  2577. if (HasDefaultSint32) {
  2578. size += pb::CodedOutputStream.ComputeSInt32Size(65, DefaultSint32);
  2579. }
  2580. if (HasDefaultSint64) {
  2581. size += pb::CodedOutputStream.ComputeSInt64Size(66, DefaultSint64);
  2582. }
  2583. if (HasDefaultFixed32) {
  2584. size += pb::CodedOutputStream.ComputeFixed32Size(67, DefaultFixed32);
  2585. }
  2586. if (HasDefaultFixed64) {
  2587. size += pb::CodedOutputStream.ComputeFixed64Size(68, DefaultFixed64);
  2588. }
  2589. if (HasDefaultSfixed32) {
  2590. size += pb::CodedOutputStream.ComputeSFixed32Size(69, DefaultSfixed32);
  2591. }
  2592. if (HasDefaultSfixed64) {
  2593. size += pb::CodedOutputStream.ComputeSFixed64Size(70, DefaultSfixed64);
  2594. }
  2595. if (HasDefaultFloat) {
  2596. size += pb::CodedOutputStream.ComputeFloatSize(71, DefaultFloat);
  2597. }
  2598. if (HasDefaultDouble) {
  2599. size += pb::CodedOutputStream.ComputeDoubleSize(72, DefaultDouble);
  2600. }
  2601. if (HasDefaultBool) {
  2602. size += pb::CodedOutputStream.ComputeBoolSize(73, DefaultBool);
  2603. }
  2604. if (HasDefaultString) {
  2605. size += pb::CodedOutputStream.ComputeStringSize(74, DefaultString);
  2606. }
  2607. if (HasDefaultBytes) {
  2608. size += pb::CodedOutputStream.ComputeBytesSize(75, DefaultBytes);
  2609. }
  2610. if (HasDefaultNestedEnum) {
  2611. size += pb::CodedOutputStream
  2612. .ComputeEnumSize(81, (int) DefaultNestedEnum);
  2613. }
  2614. if (HasDefaultForeignEnum) {
  2615. size += pb::CodedOutputStream
  2616. .ComputeEnumSize(82, (int) DefaultForeignEnum);
  2617. }
  2618. if (HasDefaultImportEnum) {
  2619. size += pb::CodedOutputStream
  2620. .ComputeEnumSize(83, (int) DefaultImportEnum);
  2621. }
  2622. if (HasDefaultStringPiece) {
  2623. size += pb::CodedOutputStream.ComputeStringSize(84, DefaultStringPiece);
  2624. }
  2625. if (HasDefaultCord) {
  2626. size += pb::CodedOutputStream.ComputeStringSize(85, DefaultCord);
  2627. }
  2628. size += UnknownFields.SerializedSize;
  2629. memoizedSerializedSize = size;
  2630. return size;
  2631. }
  2632. }
  2633. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::ByteString data) {
  2634. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2635. }
  2636. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::ByteString data,
  2637. pb::ExtensionRegistry extensionRegistry) {
  2638. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2639. .BuildParsed();
  2640. }
  2641. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(byte[] data) {
  2642. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2643. }
  2644. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(byte[] data,
  2645. pb::ExtensionRegistry extensionRegistry) {
  2646. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2647. .BuildParsed();
  2648. }
  2649. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(global::System.IO.Stream input) {
  2650. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2651. }
  2652. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(
  2653. global::System.IO.Stream input,
  2654. pb::ExtensionRegistry extensionRegistry) {
  2655. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2656. .BuildParsed();
  2657. }
  2658. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::CodedInputStream input) {
  2659. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2660. }
  2661. public static global::Google.ProtocolBuffers.TestProtos.TestAllTypes ParseFrom(pb::CodedInputStream input,
  2662. pb::ExtensionRegistry extensionRegistry) {
  2663. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2664. .BuildParsed();
  2665. }
  2666. public static Builder CreateBuilder() { return new Builder(); }
  2667. public override Builder CreateBuilderForType() { return new Builder(); }
  2668. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllTypes prototype) {
  2669. return (Builder) new Builder().MergeFrom(prototype);
  2670. }
  2671. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllTypes, Builder> {
  2672. protected override Builder ThisBuilder {
  2673. get { return this; }
  2674. }
  2675. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllTypes.CreateBuilder()
  2676. public Builder() {}
  2677. global::Google.ProtocolBuffers.TestProtos.TestAllTypes result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes();
  2678. protected override global::Google.ProtocolBuffers.TestProtos.TestAllTypes MessageBeingBuilt {
  2679. get { return result; }
  2680. }
  2681. public override Builder Clear() {
  2682. result = new global::Google.ProtocolBuffers.TestProtos.TestAllTypes();
  2683. return this;
  2684. }
  2685. public override Builder Clone() {
  2686. return new Builder().MergeFrom(result);
  2687. }
  2688. public override pbd::MessageDescriptor DescriptorForType {
  2689. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor; }
  2690. }
  2691. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes DefaultInstanceForType {
  2692. get { return global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance; }
  2693. }
  2694. public override global::Google.ProtocolBuffers.TestProtos.TestAllTypes BuildPartial() {
  2695. result.repeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.repeatedInt32_);
  2696. result.repeatedInt64_ = pbc::Lists<long>.AsReadOnly(result.repeatedInt64_);
  2697. result.repeatedUint32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_);
  2698. result.repeatedUint64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_);
  2699. result.repeatedSint32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSint32_);
  2700. result.repeatedSint64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSint64_);
  2701. result.repeatedFixed32_ = pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_);
  2702. result.repeatedFixed64_ = pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_);
  2703. result.repeatedSfixed32_ = pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_);
  2704. result.repeatedSfixed64_ = pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_);
  2705. result.repeatedFloat_ = pbc::Lists<float>.AsReadOnly(result.repeatedFloat_);
  2706. result.repeatedDouble_ = pbc::Lists<double>.AsReadOnly(result.repeatedDouble_);
  2707. result.repeatedBool_ = pbc::Lists<bool>.AsReadOnly(result.repeatedBool_);
  2708. result.repeatedString_ = pbc::Lists<string>.AsReadOnly(result.repeatedString_);
  2709. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_);
  2710. if (result.repeatedGroup_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  2711. result.repeatedGroup_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.AsReadOnly(result.repeatedGroup_);
  2712. }
  2713. if (result.repeatedNestedMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  2714. result.repeatedNestedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.AsReadOnly(result.repeatedNestedMessage_);
  2715. }
  2716. if (result.repeatedForeignMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  2717. result.repeatedForeignMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.AsReadOnly(result.repeatedForeignMessage_);
  2718. }
  2719. if (result.repeatedImportMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  2720. result.repeatedImportMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.AsReadOnly(result.repeatedImportMessage_);
  2721. }
  2722. result.repeatedNestedEnum_ = pbc::Lists.AsReadOnly(result.repeatedNestedEnum_);
  2723. result.repeatedForeignEnum_ = pbc::Lists.AsReadOnly(result.repeatedForeignEnum_);
  2724. result.repeatedImportEnum_ = pbc::Lists.AsReadOnly(result.repeatedImportEnum_);
  2725. result.repeatedStringPiece_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_);
  2726. result.repeatedCord_ = pbc::Lists<string>.AsReadOnly(result.repeatedCord_);
  2727. global::Google.ProtocolBuffers.TestProtos.TestAllTypes returnMe = result;
  2728. result = null;
  2729. return returnMe;
  2730. }
  2731. public override Builder MergeFrom(pb::IMessage other) {
  2732. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllTypes) {
  2733. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllTypes) other);
  2734. } else {
  2735. base.MergeFrom(other);
  2736. return this;
  2737. }
  2738. }
  2739. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllTypes other) {
  2740. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllTypes.DefaultInstance) return this;
  2741. if (other.HasOptionalInt32) {
  2742. OptionalInt32 = other.OptionalInt32;
  2743. }
  2744. if (other.HasOptionalInt64) {
  2745. OptionalInt64 = other.OptionalInt64;
  2746. }
  2747. if (other.HasOptionalUint32) {
  2748. OptionalUint32 = other.OptionalUint32;
  2749. }
  2750. if (other.HasOptionalUint64) {
  2751. OptionalUint64 = other.OptionalUint64;
  2752. }
  2753. if (other.HasOptionalSint32) {
  2754. OptionalSint32 = other.OptionalSint32;
  2755. }
  2756. if (other.HasOptionalSint64) {
  2757. OptionalSint64 = other.OptionalSint64;
  2758. }
  2759. if (other.HasOptionalFixed32) {
  2760. OptionalFixed32 = other.OptionalFixed32;
  2761. }
  2762. if (other.HasOptionalFixed64) {
  2763. OptionalFixed64 = other.OptionalFixed64;
  2764. }
  2765. if (other.HasOptionalSfixed32) {
  2766. OptionalSfixed32 = other.OptionalSfixed32;
  2767. }
  2768. if (other.HasOptionalSfixed64) {
  2769. OptionalSfixed64 = other.OptionalSfixed64;
  2770. }
  2771. if (other.HasOptionalFloat) {
  2772. OptionalFloat = other.OptionalFloat;
  2773. }
  2774. if (other.HasOptionalDouble) {
  2775. OptionalDouble = other.OptionalDouble;
  2776. }
  2777. if (other.HasOptionalBool) {
  2778. OptionalBool = other.OptionalBool;
  2779. }
  2780. if (other.HasOptionalString) {
  2781. OptionalString = other.OptionalString;
  2782. }
  2783. if (other.HasOptionalBytes) {
  2784. OptionalBytes = other.OptionalBytes;
  2785. }
  2786. if (other.HasOptionalGroup) {
  2787. MergeOptionalGroup(other.OptionalGroup);
  2788. }
  2789. if (other.HasOptionalNestedMessage) {
  2790. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  2791. }
  2792. if (other.HasOptionalForeignMessage) {
  2793. MergeOptionalForeignMessage(other.OptionalForeignMessage);
  2794. }
  2795. if (other.HasOptionalImportMessage) {
  2796. MergeOptionalImportMessage(other.OptionalImportMessage);
  2797. }
  2798. if (other.HasOptionalNestedEnum) {
  2799. OptionalNestedEnum = other.OptionalNestedEnum;
  2800. }
  2801. if (other.HasOptionalForeignEnum) {
  2802. OptionalForeignEnum = other.OptionalForeignEnum;
  2803. }
  2804. if (other.HasOptionalImportEnum) {
  2805. OptionalImportEnum = other.OptionalImportEnum;
  2806. }
  2807. if (other.HasOptionalStringPiece) {
  2808. OptionalStringPiece = other.OptionalStringPiece;
  2809. }
  2810. if (other.HasOptionalCord) {
  2811. OptionalCord = other.OptionalCord;
  2812. }
  2813. if (other.repeatedInt32_.Count != 0) {
  2814. if (result.repeatedInt32_.Count == 0) {
  2815. result.repeatedInt32_ = new scg::List<int>();
  2816. }
  2817. base.AddRange(other.repeatedInt32_, result.repeatedInt32_);
  2818. }
  2819. if (other.repeatedInt64_.Count != 0) {
  2820. if (result.repeatedInt64_.Count == 0) {
  2821. result.repeatedInt64_ = new scg::List<long>();
  2822. }
  2823. base.AddRange(other.repeatedInt64_, result.repeatedInt64_);
  2824. }
  2825. if (other.repeatedUint32_.Count != 0) {
  2826. if (result.repeatedUint32_.Count == 0) {
  2827. result.repeatedUint32_ = new scg::List<uint>();
  2828. }
  2829. base.AddRange(other.repeatedUint32_, result.repeatedUint32_);
  2830. }
  2831. if (other.repeatedUint64_.Count != 0) {
  2832. if (result.repeatedUint64_.Count == 0) {
  2833. result.repeatedUint64_ = new scg::List<ulong>();
  2834. }
  2835. base.AddRange(other.repeatedUint64_, result.repeatedUint64_);
  2836. }
  2837. if (other.repeatedSint32_.Count != 0) {
  2838. if (result.repeatedSint32_.Count == 0) {
  2839. result.repeatedSint32_ = new scg::List<int>();
  2840. }
  2841. base.AddRange(other.repeatedSint32_, result.repeatedSint32_);
  2842. }
  2843. if (other.repeatedSint64_.Count != 0) {
  2844. if (result.repeatedSint64_.Count == 0) {
  2845. result.repeatedSint64_ = new scg::List<long>();
  2846. }
  2847. base.AddRange(other.repeatedSint64_, result.repeatedSint64_);
  2848. }
  2849. if (other.repeatedFixed32_.Count != 0) {
  2850. if (result.repeatedFixed32_.Count == 0) {
  2851. result.repeatedFixed32_ = new scg::List<uint>();
  2852. }
  2853. base.AddRange(other.repeatedFixed32_, result.repeatedFixed32_);
  2854. }
  2855. if (other.repeatedFixed64_.Count != 0) {
  2856. if (result.repeatedFixed64_.Count == 0) {
  2857. result.repeatedFixed64_ = new scg::List<ulong>();
  2858. }
  2859. base.AddRange(other.repeatedFixed64_, result.repeatedFixed64_);
  2860. }
  2861. if (other.repeatedSfixed32_.Count != 0) {
  2862. if (result.repeatedSfixed32_.Count == 0) {
  2863. result.repeatedSfixed32_ = new scg::List<int>();
  2864. }
  2865. base.AddRange(other.repeatedSfixed32_, result.repeatedSfixed32_);
  2866. }
  2867. if (other.repeatedSfixed64_.Count != 0) {
  2868. if (result.repeatedSfixed64_.Count == 0) {
  2869. result.repeatedSfixed64_ = new scg::List<long>();
  2870. }
  2871. base.AddRange(other.repeatedSfixed64_, result.repeatedSfixed64_);
  2872. }
  2873. if (other.repeatedFloat_.Count != 0) {
  2874. if (result.repeatedFloat_.Count == 0) {
  2875. result.repeatedFloat_ = new scg::List<float>();
  2876. }
  2877. base.AddRange(other.repeatedFloat_, result.repeatedFloat_);
  2878. }
  2879. if (other.repeatedDouble_.Count != 0) {
  2880. if (result.repeatedDouble_.Count == 0) {
  2881. result.repeatedDouble_ = new scg::List<double>();
  2882. }
  2883. base.AddRange(other.repeatedDouble_, result.repeatedDouble_);
  2884. }
  2885. if (other.repeatedBool_.Count != 0) {
  2886. if (result.repeatedBool_.Count == 0) {
  2887. result.repeatedBool_ = new scg::List<bool>();
  2888. }
  2889. base.AddRange(other.repeatedBool_, result.repeatedBool_);
  2890. }
  2891. if (other.repeatedString_.Count != 0) {
  2892. if (result.repeatedString_.Count == 0) {
  2893. result.repeatedString_ = new scg::List<string>();
  2894. }
  2895. base.AddRange(other.repeatedString_, result.repeatedString_);
  2896. }
  2897. if (other.repeatedBytes_.Count != 0) {
  2898. if (result.repeatedBytes_.Count == 0) {
  2899. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  2900. }
  2901. base.AddRange(other.repeatedBytes_, result.repeatedBytes_);
  2902. }
  2903. if (other.repeatedGroup_.Count != 0) {
  2904. if (result.repeatedGroup_.Count == 0) {
  2905. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  2906. }
  2907. base.AddRange(other.repeatedGroup_, result.repeatedGroup_);
  2908. }
  2909. if (other.repeatedNestedMessage_.Count != 0) {
  2910. if (result.repeatedNestedMessage_.Count == 0) {
  2911. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  2912. }
  2913. base.AddRange(other.repeatedNestedMessage_, result.repeatedNestedMessage_);
  2914. }
  2915. if (other.repeatedForeignMessage_.Count != 0) {
  2916. if (result.repeatedForeignMessage_.Count == 0) {
  2917. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  2918. }
  2919. base.AddRange(other.repeatedForeignMessage_, result.repeatedForeignMessage_);
  2920. }
  2921. if (other.repeatedImportMessage_.Count != 0) {
  2922. if (result.repeatedImportMessage_.Count == 0) {
  2923. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  2924. }
  2925. base.AddRange(other.repeatedImportMessage_, result.repeatedImportMessage_);
  2926. }
  2927. if (other.repeatedNestedEnum_.Count != 0) {
  2928. if (result.repeatedNestedEnum_.Count == 0) {
  2929. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  2930. }
  2931. base.AddRange(other.repeatedNestedEnum_, result.repeatedNestedEnum_);
  2932. }
  2933. if (other.repeatedForeignEnum_.Count != 0) {
  2934. if (result.repeatedForeignEnum_.Count == 0) {
  2935. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  2936. }
  2937. base.AddRange(other.repeatedForeignEnum_, result.repeatedForeignEnum_);
  2938. }
  2939. if (other.repeatedImportEnum_.Count != 0) {
  2940. if (result.repeatedImportEnum_.Count == 0) {
  2941. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  2942. }
  2943. base.AddRange(other.repeatedImportEnum_, result.repeatedImportEnum_);
  2944. }
  2945. if (other.repeatedStringPiece_.Count != 0) {
  2946. if (result.repeatedStringPiece_.Count == 0) {
  2947. result.repeatedStringPiece_ = new scg::List<string>();
  2948. }
  2949. base.AddRange(other.repeatedStringPiece_, result.repeatedStringPiece_);
  2950. }
  2951. if (other.repeatedCord_.Count != 0) {
  2952. if (result.repeatedCord_.Count == 0) {
  2953. result.repeatedCord_ = new scg::List<string>();
  2954. }
  2955. base.AddRange(other.repeatedCord_, result.repeatedCord_);
  2956. }
  2957. if (other.HasDefaultInt32) {
  2958. DefaultInt32 = other.DefaultInt32;
  2959. }
  2960. if (other.HasDefaultInt64) {
  2961. DefaultInt64 = other.DefaultInt64;
  2962. }
  2963. if (other.HasDefaultUint32) {
  2964. DefaultUint32 = other.DefaultUint32;
  2965. }
  2966. if (other.HasDefaultUint64) {
  2967. DefaultUint64 = other.DefaultUint64;
  2968. }
  2969. if (other.HasDefaultSint32) {
  2970. DefaultSint32 = other.DefaultSint32;
  2971. }
  2972. if (other.HasDefaultSint64) {
  2973. DefaultSint64 = other.DefaultSint64;
  2974. }
  2975. if (other.HasDefaultFixed32) {
  2976. DefaultFixed32 = other.DefaultFixed32;
  2977. }
  2978. if (other.HasDefaultFixed64) {
  2979. DefaultFixed64 = other.DefaultFixed64;
  2980. }
  2981. if (other.HasDefaultSfixed32) {
  2982. DefaultSfixed32 = other.DefaultSfixed32;
  2983. }
  2984. if (other.HasDefaultSfixed64) {
  2985. DefaultSfixed64 = other.DefaultSfixed64;
  2986. }
  2987. if (other.HasDefaultFloat) {
  2988. DefaultFloat = other.DefaultFloat;
  2989. }
  2990. if (other.HasDefaultDouble) {
  2991. DefaultDouble = other.DefaultDouble;
  2992. }
  2993. if (other.HasDefaultBool) {
  2994. DefaultBool = other.DefaultBool;
  2995. }
  2996. if (other.HasDefaultString) {
  2997. DefaultString = other.DefaultString;
  2998. }
  2999. if (other.HasDefaultBytes) {
  3000. DefaultBytes = other.DefaultBytes;
  3001. }
  3002. if (other.HasDefaultNestedEnum) {
  3003. DefaultNestedEnum = other.DefaultNestedEnum;
  3004. }
  3005. if (other.HasDefaultForeignEnum) {
  3006. DefaultForeignEnum = other.DefaultForeignEnum;
  3007. }
  3008. if (other.HasDefaultImportEnum) {
  3009. DefaultImportEnum = other.DefaultImportEnum;
  3010. }
  3011. if (other.HasDefaultStringPiece) {
  3012. DefaultStringPiece = other.DefaultStringPiece;
  3013. }
  3014. if (other.HasDefaultCord) {
  3015. DefaultCord = other.DefaultCord;
  3016. }
  3017. this.MergeUnknownFields(other.UnknownFields);
  3018. return this;
  3019. }
  3020. public override Builder MergeFrom(pb::CodedInputStream input) {
  3021. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3022. }
  3023. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3024. pb::UnknownFieldSet.Builder unknownFields =
  3025. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3026. while (true) {
  3027. uint tag = input.ReadTag();
  3028. switch (tag) {
  3029. case 0:
  3030. this.UnknownFields = unknownFields.Build();
  3031. return this;
  3032. default: {
  3033. if (!ParseUnknownField(input, unknownFields,
  3034. extensionRegistry, tag)) {
  3035. this.UnknownFields = unknownFields.Build();
  3036. return this;
  3037. }
  3038. break;
  3039. }
  3040. case 8: {
  3041. OptionalInt32 = input.ReadInt32();
  3042. break;
  3043. }
  3044. case 16: {
  3045. OptionalInt64 = input.ReadInt64();
  3046. break;
  3047. }
  3048. case 24: {
  3049. OptionalUint32 = input.ReadUInt32();
  3050. break;
  3051. }
  3052. case 32: {
  3053. OptionalUint64 = input.ReadUInt64();
  3054. break;
  3055. }
  3056. case 40: {
  3057. OptionalSint32 = input.ReadSInt32();
  3058. break;
  3059. }
  3060. case 48: {
  3061. OptionalSint64 = input.ReadSInt64();
  3062. break;
  3063. }
  3064. case 61: {
  3065. OptionalFixed32 = input.ReadFixed32();
  3066. break;
  3067. }
  3068. case 65: {
  3069. OptionalFixed64 = input.ReadFixed64();
  3070. break;
  3071. }
  3072. case 77: {
  3073. OptionalSfixed32 = input.ReadSFixed32();
  3074. break;
  3075. }
  3076. case 81: {
  3077. OptionalSfixed64 = input.ReadSFixed64();
  3078. break;
  3079. }
  3080. case 93: {
  3081. OptionalFloat = input.ReadFloat();
  3082. break;
  3083. }
  3084. case 97: {
  3085. OptionalDouble = input.ReadDouble();
  3086. break;
  3087. }
  3088. case 104: {
  3089. OptionalBool = input.ReadBool();
  3090. break;
  3091. }
  3092. case 114: {
  3093. OptionalString = input.ReadString();
  3094. break;
  3095. }
  3096. case 122: {
  3097. OptionalBytes = input.ReadBytes();
  3098. break;
  3099. }
  3100. case 131: {
  3101. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder();
  3102. if (HasOptionalGroup) {
  3103. subBuilder.MergeFrom(OptionalGroup);
  3104. }
  3105. input.ReadGroup(16, subBuilder, extensionRegistry);
  3106. OptionalGroup = subBuilder.BuildPartial();
  3107. break;
  3108. }
  3109. case 146: {
  3110. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  3111. if (HasOptionalNestedMessage) {
  3112. subBuilder.MergeFrom(OptionalNestedMessage);
  3113. }
  3114. input.ReadMessage(subBuilder, extensionRegistry);
  3115. OptionalNestedMessage = subBuilder.BuildPartial();
  3116. break;
  3117. }
  3118. case 154: {
  3119. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  3120. if (HasOptionalForeignMessage) {
  3121. subBuilder.MergeFrom(OptionalForeignMessage);
  3122. }
  3123. input.ReadMessage(subBuilder, extensionRegistry);
  3124. OptionalForeignMessage = subBuilder.BuildPartial();
  3125. break;
  3126. }
  3127. case 162: {
  3128. global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
  3129. if (HasOptionalImportMessage) {
  3130. subBuilder.MergeFrom(OptionalImportMessage);
  3131. }
  3132. input.ReadMessage(subBuilder, extensionRegistry);
  3133. OptionalImportMessage = subBuilder.BuildPartial();
  3134. break;
  3135. }
  3136. case 168: {
  3137. int rawValue = input.ReadEnum();
  3138. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) {
  3139. unknownFields.MergeVarintField(21, (ulong) rawValue);
  3140. } else {
  3141. OptionalNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3142. }
  3143. break;
  3144. }
  3145. case 176: {
  3146. int rawValue = input.ReadEnum();
  3147. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  3148. unknownFields.MergeVarintField(22, (ulong) rawValue);
  3149. } else {
  3150. OptionalForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3151. }
  3152. break;
  3153. }
  3154. case 184: {
  3155. int rawValue = input.ReadEnum();
  3156. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) {
  3157. unknownFields.MergeVarintField(23, (ulong) rawValue);
  3158. } else {
  3159. OptionalImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3160. }
  3161. break;
  3162. }
  3163. case 194: {
  3164. OptionalStringPiece = input.ReadString();
  3165. break;
  3166. }
  3167. case 202: {
  3168. OptionalCord = input.ReadString();
  3169. break;
  3170. }
  3171. case 248: {
  3172. AddRepeatedInt32(input.ReadInt32());
  3173. break;
  3174. }
  3175. case 256: {
  3176. AddRepeatedInt64(input.ReadInt64());
  3177. break;
  3178. }
  3179. case 264: {
  3180. AddRepeatedUint32(input.ReadUInt32());
  3181. break;
  3182. }
  3183. case 272: {
  3184. AddRepeatedUint64(input.ReadUInt64());
  3185. break;
  3186. }
  3187. case 280: {
  3188. AddRepeatedSint32(input.ReadSInt32());
  3189. break;
  3190. }
  3191. case 288: {
  3192. AddRepeatedSint64(input.ReadSInt64());
  3193. break;
  3194. }
  3195. case 301: {
  3196. AddRepeatedFixed32(input.ReadFixed32());
  3197. break;
  3198. }
  3199. case 305: {
  3200. AddRepeatedFixed64(input.ReadFixed64());
  3201. break;
  3202. }
  3203. case 317: {
  3204. AddRepeatedSfixed32(input.ReadSFixed32());
  3205. break;
  3206. }
  3207. case 321: {
  3208. AddRepeatedSfixed64(input.ReadSFixed64());
  3209. break;
  3210. }
  3211. case 333: {
  3212. AddRepeatedFloat(input.ReadFloat());
  3213. break;
  3214. }
  3215. case 337: {
  3216. AddRepeatedDouble(input.ReadDouble());
  3217. break;
  3218. }
  3219. case 344: {
  3220. AddRepeatedBool(input.ReadBool());
  3221. break;
  3222. }
  3223. case 354: {
  3224. AddRepeatedString(input.ReadString());
  3225. break;
  3226. }
  3227. case 362: {
  3228. AddRepeatedBytes(input.ReadBytes());
  3229. break;
  3230. }
  3231. case 371: {
  3232. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.CreateBuilder();
  3233. input.ReadGroup(46, subBuilder, extensionRegistry);
  3234. AddRepeatedGroup(subBuilder.BuildPartial());
  3235. break;
  3236. }
  3237. case 386: {
  3238. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  3239. input.ReadMessage(subBuilder, extensionRegistry);
  3240. AddRepeatedNestedMessage(subBuilder.BuildPartial());
  3241. break;
  3242. }
  3243. case 394: {
  3244. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  3245. input.ReadMessage(subBuilder, extensionRegistry);
  3246. AddRepeatedForeignMessage(subBuilder.BuildPartial());
  3247. break;
  3248. }
  3249. case 402: {
  3250. global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder();
  3251. input.ReadMessage(subBuilder, extensionRegistry);
  3252. AddRepeatedImportMessage(subBuilder.BuildPartial());
  3253. break;
  3254. }
  3255. case 408: {
  3256. int rawValue = input.ReadEnum();
  3257. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3258. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), value)) {
  3259. unknownFields.MergeVarintField(51, (ulong) rawValue);
  3260. } else {
  3261. AddRepeatedNestedEnum(value);
  3262. }
  3263. break;
  3264. }
  3265. case 416: {
  3266. int rawValue = input.ReadEnum();
  3267. global::Google.ProtocolBuffers.TestProtos.ForeignEnum value = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3268. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), value)) {
  3269. unknownFields.MergeVarintField(52, (ulong) rawValue);
  3270. } else {
  3271. AddRepeatedForeignEnum(value);
  3272. }
  3273. break;
  3274. }
  3275. case 424: {
  3276. int rawValue = input.ReadEnum();
  3277. global::Google.ProtocolBuffers.TestProtos.ImportEnum value = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3278. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), value)) {
  3279. unknownFields.MergeVarintField(53, (ulong) rawValue);
  3280. } else {
  3281. AddRepeatedImportEnum(value);
  3282. }
  3283. break;
  3284. }
  3285. case 434: {
  3286. AddRepeatedStringPiece(input.ReadString());
  3287. break;
  3288. }
  3289. case 442: {
  3290. AddRepeatedCord(input.ReadString());
  3291. break;
  3292. }
  3293. case 488: {
  3294. DefaultInt32 = input.ReadInt32();
  3295. break;
  3296. }
  3297. case 496: {
  3298. DefaultInt64 = input.ReadInt64();
  3299. break;
  3300. }
  3301. case 504: {
  3302. DefaultUint32 = input.ReadUInt32();
  3303. break;
  3304. }
  3305. case 512: {
  3306. DefaultUint64 = input.ReadUInt64();
  3307. break;
  3308. }
  3309. case 520: {
  3310. DefaultSint32 = input.ReadSInt32();
  3311. break;
  3312. }
  3313. case 528: {
  3314. DefaultSint64 = input.ReadSInt64();
  3315. break;
  3316. }
  3317. case 541: {
  3318. DefaultFixed32 = input.ReadFixed32();
  3319. break;
  3320. }
  3321. case 545: {
  3322. DefaultFixed64 = input.ReadFixed64();
  3323. break;
  3324. }
  3325. case 557: {
  3326. DefaultSfixed32 = input.ReadSFixed32();
  3327. break;
  3328. }
  3329. case 561: {
  3330. DefaultSfixed64 = input.ReadSFixed64();
  3331. break;
  3332. }
  3333. case 573: {
  3334. DefaultFloat = input.ReadFloat();
  3335. break;
  3336. }
  3337. case 577: {
  3338. DefaultDouble = input.ReadDouble();
  3339. break;
  3340. }
  3341. case 584: {
  3342. DefaultBool = input.ReadBool();
  3343. break;
  3344. }
  3345. case 594: {
  3346. DefaultString = input.ReadString();
  3347. break;
  3348. }
  3349. case 602: {
  3350. DefaultBytes = input.ReadBytes();
  3351. break;
  3352. }
  3353. case 648: {
  3354. int rawValue = input.ReadEnum();
  3355. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum), rawValue)) {
  3356. unknownFields.MergeVarintField(81, (ulong) rawValue);
  3357. } else {
  3358. DefaultNestedEnum = (global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum) rawValue;
  3359. }
  3360. break;
  3361. }
  3362. case 656: {
  3363. int rawValue = input.ReadEnum();
  3364. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  3365. unknownFields.MergeVarintField(82, (ulong) rawValue);
  3366. } else {
  3367. DefaultForeignEnum = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  3368. }
  3369. break;
  3370. }
  3371. case 664: {
  3372. int rawValue = input.ReadEnum();
  3373. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ImportEnum), rawValue)) {
  3374. unknownFields.MergeVarintField(83, (ulong) rawValue);
  3375. } else {
  3376. DefaultImportEnum = (global::Google.ProtocolBuffers.TestProtos.ImportEnum) rawValue;
  3377. }
  3378. break;
  3379. }
  3380. case 674: {
  3381. DefaultStringPiece = input.ReadString();
  3382. break;
  3383. }
  3384. case 682: {
  3385. DefaultCord = input.ReadString();
  3386. break;
  3387. }
  3388. }
  3389. }
  3390. }
  3391. // optional int32 optional_int32 = 1;
  3392. public bool HasOptionalInt32 {
  3393. get { return result.HasOptionalInt32; }
  3394. }
  3395. public int OptionalInt32 {
  3396. get { return result.OptionalInt32; }
  3397. set { SetOptionalInt32(value); }
  3398. }
  3399. public Builder SetOptionalInt32(int value) {
  3400. result.hasOptionalInt32 = true;
  3401. result.optionalInt32_ = value;
  3402. return this;
  3403. }
  3404. public Builder ClearOptionalInt32() {
  3405. result.hasOptionalInt32 = false;
  3406. result.optionalInt32_ = 0;
  3407. return this;
  3408. }
  3409. // optional int64 optional_int64 = 2;
  3410. public bool HasOptionalInt64 {
  3411. get { return result.HasOptionalInt64; }
  3412. }
  3413. public long OptionalInt64 {
  3414. get { return result.OptionalInt64; }
  3415. set { SetOptionalInt64(value); }
  3416. }
  3417. public Builder SetOptionalInt64(long value) {
  3418. result.hasOptionalInt64 = true;
  3419. result.optionalInt64_ = value;
  3420. return this;
  3421. }
  3422. public Builder ClearOptionalInt64() {
  3423. result.hasOptionalInt64 = false;
  3424. result.optionalInt64_ = 0L;
  3425. return this;
  3426. }
  3427. // optional uint32 optional_uint32 = 3;
  3428. public bool HasOptionalUint32 {
  3429. get { return result.HasOptionalUint32; }
  3430. }
  3431. public uint OptionalUint32 {
  3432. get { return result.OptionalUint32; }
  3433. set { SetOptionalUint32(value); }
  3434. }
  3435. public Builder SetOptionalUint32(uint value) {
  3436. result.hasOptionalUint32 = true;
  3437. result.optionalUint32_ = value;
  3438. return this;
  3439. }
  3440. public Builder ClearOptionalUint32() {
  3441. result.hasOptionalUint32 = false;
  3442. result.optionalUint32_ = 0;
  3443. return this;
  3444. }
  3445. // optional uint64 optional_uint64 = 4;
  3446. public bool HasOptionalUint64 {
  3447. get { return result.HasOptionalUint64; }
  3448. }
  3449. public ulong OptionalUint64 {
  3450. get { return result.OptionalUint64; }
  3451. set { SetOptionalUint64(value); }
  3452. }
  3453. public Builder SetOptionalUint64(ulong value) {
  3454. result.hasOptionalUint64 = true;
  3455. result.optionalUint64_ = value;
  3456. return this;
  3457. }
  3458. public Builder ClearOptionalUint64() {
  3459. result.hasOptionalUint64 = false;
  3460. result.optionalUint64_ = 0UL;
  3461. return this;
  3462. }
  3463. // optional sint32 optional_sint32 = 5;
  3464. public bool HasOptionalSint32 {
  3465. get { return result.HasOptionalSint32; }
  3466. }
  3467. public int OptionalSint32 {
  3468. get { return result.OptionalSint32; }
  3469. set { SetOptionalSint32(value); }
  3470. }
  3471. public Builder SetOptionalSint32(int value) {
  3472. result.hasOptionalSint32 = true;
  3473. result.optionalSint32_ = value;
  3474. return this;
  3475. }
  3476. public Builder ClearOptionalSint32() {
  3477. result.hasOptionalSint32 = false;
  3478. result.optionalSint32_ = 0;
  3479. return this;
  3480. }
  3481. // optional sint64 optional_sint64 = 6;
  3482. public bool HasOptionalSint64 {
  3483. get { return result.HasOptionalSint64; }
  3484. }
  3485. public long OptionalSint64 {
  3486. get { return result.OptionalSint64; }
  3487. set { SetOptionalSint64(value); }
  3488. }
  3489. public Builder SetOptionalSint64(long value) {
  3490. result.hasOptionalSint64 = true;
  3491. result.optionalSint64_ = value;
  3492. return this;
  3493. }
  3494. public Builder ClearOptionalSint64() {
  3495. result.hasOptionalSint64 = false;
  3496. result.optionalSint64_ = 0L;
  3497. return this;
  3498. }
  3499. // optional fixed32 optional_fixed32 = 7;
  3500. public bool HasOptionalFixed32 {
  3501. get { return result.HasOptionalFixed32; }
  3502. }
  3503. public uint OptionalFixed32 {
  3504. get { return result.OptionalFixed32; }
  3505. set { SetOptionalFixed32(value); }
  3506. }
  3507. public Builder SetOptionalFixed32(uint value) {
  3508. result.hasOptionalFixed32 = true;
  3509. result.optionalFixed32_ = value;
  3510. return this;
  3511. }
  3512. public Builder ClearOptionalFixed32() {
  3513. result.hasOptionalFixed32 = false;
  3514. result.optionalFixed32_ = 0;
  3515. return this;
  3516. }
  3517. // optional fixed64 optional_fixed64 = 8;
  3518. public bool HasOptionalFixed64 {
  3519. get { return result.HasOptionalFixed64; }
  3520. }
  3521. public ulong OptionalFixed64 {
  3522. get { return result.OptionalFixed64; }
  3523. set { SetOptionalFixed64(value); }
  3524. }
  3525. public Builder SetOptionalFixed64(ulong value) {
  3526. result.hasOptionalFixed64 = true;
  3527. result.optionalFixed64_ = value;
  3528. return this;
  3529. }
  3530. public Builder ClearOptionalFixed64() {
  3531. result.hasOptionalFixed64 = false;
  3532. result.optionalFixed64_ = 0UL;
  3533. return this;
  3534. }
  3535. // optional sfixed32 optional_sfixed32 = 9;
  3536. public bool HasOptionalSfixed32 {
  3537. get { return result.HasOptionalSfixed32; }
  3538. }
  3539. public int OptionalSfixed32 {
  3540. get { return result.OptionalSfixed32; }
  3541. set { SetOptionalSfixed32(value); }
  3542. }
  3543. public Builder SetOptionalSfixed32(int value) {
  3544. result.hasOptionalSfixed32 = true;
  3545. result.optionalSfixed32_ = value;
  3546. return this;
  3547. }
  3548. public Builder ClearOptionalSfixed32() {
  3549. result.hasOptionalSfixed32 = false;
  3550. result.optionalSfixed32_ = 0;
  3551. return this;
  3552. }
  3553. // optional sfixed64 optional_sfixed64 = 10;
  3554. public bool HasOptionalSfixed64 {
  3555. get { return result.HasOptionalSfixed64; }
  3556. }
  3557. public long OptionalSfixed64 {
  3558. get { return result.OptionalSfixed64; }
  3559. set { SetOptionalSfixed64(value); }
  3560. }
  3561. public Builder SetOptionalSfixed64(long value) {
  3562. result.hasOptionalSfixed64 = true;
  3563. result.optionalSfixed64_ = value;
  3564. return this;
  3565. }
  3566. public Builder ClearOptionalSfixed64() {
  3567. result.hasOptionalSfixed64 = false;
  3568. result.optionalSfixed64_ = 0L;
  3569. return this;
  3570. }
  3571. // optional float optional_float = 11;
  3572. public bool HasOptionalFloat {
  3573. get { return result.HasOptionalFloat; }
  3574. }
  3575. public float OptionalFloat {
  3576. get { return result.OptionalFloat; }
  3577. set { SetOptionalFloat(value); }
  3578. }
  3579. public Builder SetOptionalFloat(float value) {
  3580. result.hasOptionalFloat = true;
  3581. result.optionalFloat_ = value;
  3582. return this;
  3583. }
  3584. public Builder ClearOptionalFloat() {
  3585. result.hasOptionalFloat = false;
  3586. result.optionalFloat_ = 0F;
  3587. return this;
  3588. }
  3589. // optional double optional_double = 12;
  3590. public bool HasOptionalDouble {
  3591. get { return result.HasOptionalDouble; }
  3592. }
  3593. public double OptionalDouble {
  3594. get { return result.OptionalDouble; }
  3595. set { SetOptionalDouble(value); }
  3596. }
  3597. public Builder SetOptionalDouble(double value) {
  3598. result.hasOptionalDouble = true;
  3599. result.optionalDouble_ = value;
  3600. return this;
  3601. }
  3602. public Builder ClearOptionalDouble() {
  3603. result.hasOptionalDouble = false;
  3604. result.optionalDouble_ = 0D;
  3605. return this;
  3606. }
  3607. // optional bool optional_bool = 13;
  3608. public bool HasOptionalBool {
  3609. get { return result.HasOptionalBool; }
  3610. }
  3611. public bool OptionalBool {
  3612. get { return result.OptionalBool; }
  3613. set { SetOptionalBool(value); }
  3614. }
  3615. public Builder SetOptionalBool(bool value) {
  3616. result.hasOptionalBool = true;
  3617. result.optionalBool_ = value;
  3618. return this;
  3619. }
  3620. public Builder ClearOptionalBool() {
  3621. result.hasOptionalBool = false;
  3622. result.optionalBool_ = false;
  3623. return this;
  3624. }
  3625. // optional string optional_string = 14;
  3626. public bool HasOptionalString {
  3627. get { return result.HasOptionalString; }
  3628. }
  3629. public string OptionalString {
  3630. get { return result.OptionalString; }
  3631. set { SetOptionalString(value); }
  3632. }
  3633. public Builder SetOptionalString(string value) {
  3634. result.hasOptionalString = true;
  3635. result.optionalString_ = value;
  3636. return this;
  3637. }
  3638. public Builder ClearOptionalString() {
  3639. result.hasOptionalString = false;
  3640. result.optionalString_ = "";
  3641. return this;
  3642. }
  3643. // optional bytes optional_bytes = 15;
  3644. public bool HasOptionalBytes {
  3645. get { return result.HasOptionalBytes; }
  3646. }
  3647. public pb::ByteString OptionalBytes {
  3648. get { return result.OptionalBytes; }
  3649. set { SetOptionalBytes(value); }
  3650. }
  3651. public Builder SetOptionalBytes(pb::ByteString value) {
  3652. result.hasOptionalBytes = true;
  3653. result.optionalBytes_ = value;
  3654. return this;
  3655. }
  3656. public Builder ClearOptionalBytes() {
  3657. result.hasOptionalBytes = false;
  3658. result.optionalBytes_ = pb::ByteString.Empty;
  3659. return this;
  3660. }
  3661. // optional group OptionalGroup = 16 {
  3662. public bool HasOptionalGroup {
  3663. get { return result.HasOptionalGroup; }
  3664. }
  3665. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup OptionalGroup {
  3666. get { return result.OptionalGroup; }
  3667. set { SetOptionalGroup(value); }
  3668. }
  3669. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
  3670. result.hasOptionalGroup = true;
  3671. result.optionalGroup_ = value;
  3672. return this;
  3673. }
  3674. public Builder SetOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.Builder builderForValue) {
  3675. result.hasOptionalGroup = true;
  3676. result.optionalGroup_ = builderForValue.Build();
  3677. return this;
  3678. }
  3679. public Builder MergeOptionalGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup value) {
  3680. if (result.HasOptionalGroup &&
  3681. result.optionalGroup_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance) {
  3682. result.optionalGroup_ =
  3683. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.CreateBuilder(result.optionalGroup_).MergeFrom(value).BuildPartial();
  3684. } else {
  3685. result.optionalGroup_ = value;
  3686. }
  3687. result.hasOptionalGroup = true;
  3688. return this;
  3689. }
  3690. public Builder ClearOptionalGroup() {
  3691. result.hasOptionalGroup = false;
  3692. result.optionalGroup_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.OptionalGroup.DefaultInstance;
  3693. return this;
  3694. }
  3695. // optional .protobuf_unittest.TestAllTypes.NestedMessage optional_nested_message = 18;
  3696. public bool HasOptionalNestedMessage {
  3697. get { return result.HasOptionalNestedMessage; }
  3698. }
  3699. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
  3700. get { return result.OptionalNestedMessage; }
  3701. set { SetOptionalNestedMessage(value); }
  3702. }
  3703. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  3704. result.hasOptionalNestedMessage = true;
  3705. result.optionalNestedMessage_ = value;
  3706. return this;
  3707. }
  3708. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  3709. result.hasOptionalNestedMessage = true;
  3710. result.optionalNestedMessage_ = builderForValue.Build();
  3711. return this;
  3712. }
  3713. public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  3714. if (result.HasOptionalNestedMessage &&
  3715. result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  3716. result.optionalNestedMessage_ =
  3717. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  3718. } else {
  3719. result.optionalNestedMessage_ = value;
  3720. }
  3721. result.hasOptionalNestedMessage = true;
  3722. return this;
  3723. }
  3724. public Builder ClearOptionalNestedMessage() {
  3725. result.hasOptionalNestedMessage = false;
  3726. result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  3727. return this;
  3728. }
  3729. // optional .protobuf_unittest.ForeignMessage optional_foreign_message = 19;
  3730. public bool HasOptionalForeignMessage {
  3731. get { return result.HasOptionalForeignMessage; }
  3732. }
  3733. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage OptionalForeignMessage {
  3734. get { return result.OptionalForeignMessage; }
  3735. set { SetOptionalForeignMessage(value); }
  3736. }
  3737. public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  3738. result.hasOptionalForeignMessage = true;
  3739. result.optionalForeignMessage_ = value;
  3740. return this;
  3741. }
  3742. public Builder SetOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  3743. result.hasOptionalForeignMessage = true;
  3744. result.optionalForeignMessage_ = builderForValue.Build();
  3745. return this;
  3746. }
  3747. public Builder MergeOptionalForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  3748. if (result.HasOptionalForeignMessage &&
  3749. result.optionalForeignMessage_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
  3750. result.optionalForeignMessage_ =
  3751. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.optionalForeignMessage_).MergeFrom(value).BuildPartial();
  3752. } else {
  3753. result.optionalForeignMessage_ = value;
  3754. }
  3755. result.hasOptionalForeignMessage = true;
  3756. return this;
  3757. }
  3758. public Builder ClearOptionalForeignMessage() {
  3759. result.hasOptionalForeignMessage = false;
  3760. result.optionalForeignMessage_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  3761. return this;
  3762. }
  3763. // optional .protobuf_unittest_import.ImportMessage optional_import_message = 20;
  3764. public bool HasOptionalImportMessage {
  3765. get { return result.HasOptionalImportMessage; }
  3766. }
  3767. public global::Google.ProtocolBuffers.TestProtos.ImportMessage OptionalImportMessage {
  3768. get { return result.OptionalImportMessage; }
  3769. set { SetOptionalImportMessage(value); }
  3770. }
  3771. public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  3772. result.hasOptionalImportMessage = true;
  3773. result.optionalImportMessage_ = value;
  3774. return this;
  3775. }
  3776. public Builder SetOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  3777. result.hasOptionalImportMessage = true;
  3778. result.optionalImportMessage_ = builderForValue.Build();
  3779. return this;
  3780. }
  3781. public Builder MergeOptionalImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  3782. if (result.HasOptionalImportMessage &&
  3783. result.optionalImportMessage_ != global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance) {
  3784. result.optionalImportMessage_ =
  3785. global::Google.ProtocolBuffers.TestProtos.ImportMessage.CreateBuilder(result.optionalImportMessage_).MergeFrom(value).BuildPartial();
  3786. } else {
  3787. result.optionalImportMessage_ = value;
  3788. }
  3789. result.hasOptionalImportMessage = true;
  3790. return this;
  3791. }
  3792. public Builder ClearOptionalImportMessage() {
  3793. result.hasOptionalImportMessage = false;
  3794. result.optionalImportMessage_ = global::Google.ProtocolBuffers.TestProtos.ImportMessage.DefaultInstance;
  3795. return this;
  3796. }
  3797. // optional .protobuf_unittest.TestAllTypes.NestedEnum optional_nested_enum = 21;
  3798. public bool HasOptionalNestedEnum {
  3799. get { return result.HasOptionalNestedEnum; }
  3800. }
  3801. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
  3802. get { return result.OptionalNestedEnum; }
  3803. set { SetOptionalNestedEnum(value); }
  3804. }
  3805. public Builder SetOptionalNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  3806. result.hasOptionalNestedEnum = true;
  3807. result.optionalNestedEnum_ = value;
  3808. return this;
  3809. }
  3810. public Builder ClearOptionalNestedEnum() {
  3811. result.hasOptionalNestedEnum = false;
  3812. result.optionalNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.FOO;
  3813. return this;
  3814. }
  3815. // optional .protobuf_unittest.ForeignEnum optional_foreign_enum = 22;
  3816. public bool HasOptionalForeignEnum {
  3817. get { return result.HasOptionalForeignEnum; }
  3818. }
  3819. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum OptionalForeignEnum {
  3820. get { return result.OptionalForeignEnum; }
  3821. set { SetOptionalForeignEnum(value); }
  3822. }
  3823. public Builder SetOptionalForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  3824. result.hasOptionalForeignEnum = true;
  3825. result.optionalForeignEnum_ = value;
  3826. return this;
  3827. }
  3828. public Builder ClearOptionalForeignEnum() {
  3829. result.hasOptionalForeignEnum = false;
  3830. result.optionalForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  3831. return this;
  3832. }
  3833. // optional .protobuf_unittest_import.ImportEnum optional_import_enum = 23;
  3834. public bool HasOptionalImportEnum {
  3835. get { return result.HasOptionalImportEnum; }
  3836. }
  3837. public global::Google.ProtocolBuffers.TestProtos.ImportEnum OptionalImportEnum {
  3838. get { return result.OptionalImportEnum; }
  3839. set { SetOptionalImportEnum(value); }
  3840. }
  3841. public Builder SetOptionalImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  3842. result.hasOptionalImportEnum = true;
  3843. result.optionalImportEnum_ = value;
  3844. return this;
  3845. }
  3846. public Builder ClearOptionalImportEnum() {
  3847. result.hasOptionalImportEnum = false;
  3848. result.optionalImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_FOO;
  3849. return this;
  3850. }
  3851. // optional string optional_string_piece = 24 [ctype = STRING_PIECE];
  3852. public bool HasOptionalStringPiece {
  3853. get { return result.HasOptionalStringPiece; }
  3854. }
  3855. public string OptionalStringPiece {
  3856. get { return result.OptionalStringPiece; }
  3857. set { SetOptionalStringPiece(value); }
  3858. }
  3859. public Builder SetOptionalStringPiece(string value) {
  3860. result.hasOptionalStringPiece = true;
  3861. result.optionalStringPiece_ = value;
  3862. return this;
  3863. }
  3864. public Builder ClearOptionalStringPiece() {
  3865. result.hasOptionalStringPiece = false;
  3866. result.optionalStringPiece_ = "";
  3867. return this;
  3868. }
  3869. // optional string optional_cord = 25 [ctype = CORD];
  3870. public bool HasOptionalCord {
  3871. get { return result.HasOptionalCord; }
  3872. }
  3873. public string OptionalCord {
  3874. get { return result.OptionalCord; }
  3875. set { SetOptionalCord(value); }
  3876. }
  3877. public Builder SetOptionalCord(string value) {
  3878. result.hasOptionalCord = true;
  3879. result.optionalCord_ = value;
  3880. return this;
  3881. }
  3882. public Builder ClearOptionalCord() {
  3883. result.hasOptionalCord = false;
  3884. result.optionalCord_ = "";
  3885. return this;
  3886. }
  3887. // repeated int32 repeated_int32 = 31;
  3888. public scg::IList<int> RepeatedInt32List {
  3889. get { return pbc::Lists<int>.AsReadOnly(result.repeatedInt32_); }
  3890. }
  3891. public int RepeatedInt32Count {
  3892. get { return result.RepeatedInt32Count; }
  3893. }
  3894. public int GetRepeatedInt32(int index) {
  3895. return result.GetRepeatedInt32(index);
  3896. }
  3897. public Builder SetRepeatedInt32(int index, int value) {
  3898. result.repeatedInt32_[index] = value;
  3899. return this;
  3900. }
  3901. public Builder AddRepeatedInt32(int value) {
  3902. if (result.repeatedInt32_.Count == 0) {
  3903. result.repeatedInt32_ = new scg::List<int>();
  3904. }
  3905. result.repeatedInt32_.Add(value);
  3906. return this;
  3907. }
  3908. public Builder AddRangeRepeatedInt32(scg::IEnumerable<int> values) {
  3909. if (result.repeatedInt32_.Count == 0) {
  3910. result.repeatedInt32_ = new scg::List<int>();
  3911. }
  3912. base.AddRange(values, result.repeatedInt32_);
  3913. return this;
  3914. }
  3915. public Builder ClearRepeatedInt32() {
  3916. result.repeatedInt32_ = pbc::Lists<int>.Empty;
  3917. return this;
  3918. }
  3919. // repeated int64 repeated_int64 = 32;
  3920. public scg::IList<long> RepeatedInt64List {
  3921. get { return pbc::Lists<long>.AsReadOnly(result.repeatedInt64_); }
  3922. }
  3923. public int RepeatedInt64Count {
  3924. get { return result.RepeatedInt64Count; }
  3925. }
  3926. public long GetRepeatedInt64(int index) {
  3927. return result.GetRepeatedInt64(index);
  3928. }
  3929. public Builder SetRepeatedInt64(int index, long value) {
  3930. result.repeatedInt64_[index] = value;
  3931. return this;
  3932. }
  3933. public Builder AddRepeatedInt64(long value) {
  3934. if (result.repeatedInt64_.Count == 0) {
  3935. result.repeatedInt64_ = new scg::List<long>();
  3936. }
  3937. result.repeatedInt64_.Add(value);
  3938. return this;
  3939. }
  3940. public Builder AddRangeRepeatedInt64(scg::IEnumerable<long> values) {
  3941. if (result.repeatedInt64_.Count == 0) {
  3942. result.repeatedInt64_ = new scg::List<long>();
  3943. }
  3944. base.AddRange(values, result.repeatedInt64_);
  3945. return this;
  3946. }
  3947. public Builder ClearRepeatedInt64() {
  3948. result.repeatedInt64_ = pbc::Lists<long>.Empty;
  3949. return this;
  3950. }
  3951. // repeated uint32 repeated_uint32 = 33;
  3952. public scg::IList<uint> RepeatedUint32List {
  3953. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedUint32_); }
  3954. }
  3955. public int RepeatedUint32Count {
  3956. get { return result.RepeatedUint32Count; }
  3957. }
  3958. public uint GetRepeatedUint32(int index) {
  3959. return result.GetRepeatedUint32(index);
  3960. }
  3961. public Builder SetRepeatedUint32(int index, uint value) {
  3962. result.repeatedUint32_[index] = value;
  3963. return this;
  3964. }
  3965. public Builder AddRepeatedUint32(uint value) {
  3966. if (result.repeatedUint32_.Count == 0) {
  3967. result.repeatedUint32_ = new scg::List<uint>();
  3968. }
  3969. result.repeatedUint32_.Add(value);
  3970. return this;
  3971. }
  3972. public Builder AddRangeRepeatedUint32(scg::IEnumerable<uint> values) {
  3973. if (result.repeatedUint32_.Count == 0) {
  3974. result.repeatedUint32_ = new scg::List<uint>();
  3975. }
  3976. base.AddRange(values, result.repeatedUint32_);
  3977. return this;
  3978. }
  3979. public Builder ClearRepeatedUint32() {
  3980. result.repeatedUint32_ = pbc::Lists<uint>.Empty;
  3981. return this;
  3982. }
  3983. // repeated uint64 repeated_uint64 = 34;
  3984. public scg::IList<ulong> RepeatedUint64List {
  3985. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedUint64_); }
  3986. }
  3987. public int RepeatedUint64Count {
  3988. get { return result.RepeatedUint64Count; }
  3989. }
  3990. public ulong GetRepeatedUint64(int index) {
  3991. return result.GetRepeatedUint64(index);
  3992. }
  3993. public Builder SetRepeatedUint64(int index, ulong value) {
  3994. result.repeatedUint64_[index] = value;
  3995. return this;
  3996. }
  3997. public Builder AddRepeatedUint64(ulong value) {
  3998. if (result.repeatedUint64_.Count == 0) {
  3999. result.repeatedUint64_ = new scg::List<ulong>();
  4000. }
  4001. result.repeatedUint64_.Add(value);
  4002. return this;
  4003. }
  4004. public Builder AddRangeRepeatedUint64(scg::IEnumerable<ulong> values) {
  4005. if (result.repeatedUint64_.Count == 0) {
  4006. result.repeatedUint64_ = new scg::List<ulong>();
  4007. }
  4008. base.AddRange(values, result.repeatedUint64_);
  4009. return this;
  4010. }
  4011. public Builder ClearRepeatedUint64() {
  4012. result.repeatedUint64_ = pbc::Lists<ulong>.Empty;
  4013. return this;
  4014. }
  4015. // repeated sint32 repeated_sint32 = 35;
  4016. public scg::IList<int> RepeatedSint32List {
  4017. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSint32_); }
  4018. }
  4019. public int RepeatedSint32Count {
  4020. get { return result.RepeatedSint32Count; }
  4021. }
  4022. public int GetRepeatedSint32(int index) {
  4023. return result.GetRepeatedSint32(index);
  4024. }
  4025. public Builder SetRepeatedSint32(int index, int value) {
  4026. result.repeatedSint32_[index] = value;
  4027. return this;
  4028. }
  4029. public Builder AddRepeatedSint32(int value) {
  4030. if (result.repeatedSint32_.Count == 0) {
  4031. result.repeatedSint32_ = new scg::List<int>();
  4032. }
  4033. result.repeatedSint32_.Add(value);
  4034. return this;
  4035. }
  4036. public Builder AddRangeRepeatedSint32(scg::IEnumerable<int> values) {
  4037. if (result.repeatedSint32_.Count == 0) {
  4038. result.repeatedSint32_ = new scg::List<int>();
  4039. }
  4040. base.AddRange(values, result.repeatedSint32_);
  4041. return this;
  4042. }
  4043. public Builder ClearRepeatedSint32() {
  4044. result.repeatedSint32_ = pbc::Lists<int>.Empty;
  4045. return this;
  4046. }
  4047. // repeated sint64 repeated_sint64 = 36;
  4048. public scg::IList<long> RepeatedSint64List {
  4049. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSint64_); }
  4050. }
  4051. public int RepeatedSint64Count {
  4052. get { return result.RepeatedSint64Count; }
  4053. }
  4054. public long GetRepeatedSint64(int index) {
  4055. return result.GetRepeatedSint64(index);
  4056. }
  4057. public Builder SetRepeatedSint64(int index, long value) {
  4058. result.repeatedSint64_[index] = value;
  4059. return this;
  4060. }
  4061. public Builder AddRepeatedSint64(long value) {
  4062. if (result.repeatedSint64_.Count == 0) {
  4063. result.repeatedSint64_ = new scg::List<long>();
  4064. }
  4065. result.repeatedSint64_.Add(value);
  4066. return this;
  4067. }
  4068. public Builder AddRangeRepeatedSint64(scg::IEnumerable<long> values) {
  4069. if (result.repeatedSint64_.Count == 0) {
  4070. result.repeatedSint64_ = new scg::List<long>();
  4071. }
  4072. base.AddRange(values, result.repeatedSint64_);
  4073. return this;
  4074. }
  4075. public Builder ClearRepeatedSint64() {
  4076. result.repeatedSint64_ = pbc::Lists<long>.Empty;
  4077. return this;
  4078. }
  4079. // repeated fixed32 repeated_fixed32 = 37;
  4080. public scg::IList<uint> RepeatedFixed32List {
  4081. get { return pbc::Lists<uint>.AsReadOnly(result.repeatedFixed32_); }
  4082. }
  4083. public int RepeatedFixed32Count {
  4084. get { return result.RepeatedFixed32Count; }
  4085. }
  4086. public uint GetRepeatedFixed32(int index) {
  4087. return result.GetRepeatedFixed32(index);
  4088. }
  4089. public Builder SetRepeatedFixed32(int index, uint value) {
  4090. result.repeatedFixed32_[index] = value;
  4091. return this;
  4092. }
  4093. public Builder AddRepeatedFixed32(uint value) {
  4094. if (result.repeatedFixed32_.Count == 0) {
  4095. result.repeatedFixed32_ = new scg::List<uint>();
  4096. }
  4097. result.repeatedFixed32_.Add(value);
  4098. return this;
  4099. }
  4100. public Builder AddRangeRepeatedFixed32(scg::IEnumerable<uint> values) {
  4101. if (result.repeatedFixed32_.Count == 0) {
  4102. result.repeatedFixed32_ = new scg::List<uint>();
  4103. }
  4104. base.AddRange(values, result.repeatedFixed32_);
  4105. return this;
  4106. }
  4107. public Builder ClearRepeatedFixed32() {
  4108. result.repeatedFixed32_ = pbc::Lists<uint>.Empty;
  4109. return this;
  4110. }
  4111. // repeated fixed64 repeated_fixed64 = 38;
  4112. public scg::IList<ulong> RepeatedFixed64List {
  4113. get { return pbc::Lists<ulong>.AsReadOnly(result.repeatedFixed64_); }
  4114. }
  4115. public int RepeatedFixed64Count {
  4116. get { return result.RepeatedFixed64Count; }
  4117. }
  4118. public ulong GetRepeatedFixed64(int index) {
  4119. return result.GetRepeatedFixed64(index);
  4120. }
  4121. public Builder SetRepeatedFixed64(int index, ulong value) {
  4122. result.repeatedFixed64_[index] = value;
  4123. return this;
  4124. }
  4125. public Builder AddRepeatedFixed64(ulong value) {
  4126. if (result.repeatedFixed64_.Count == 0) {
  4127. result.repeatedFixed64_ = new scg::List<ulong>();
  4128. }
  4129. result.repeatedFixed64_.Add(value);
  4130. return this;
  4131. }
  4132. public Builder AddRangeRepeatedFixed64(scg::IEnumerable<ulong> values) {
  4133. if (result.repeatedFixed64_.Count == 0) {
  4134. result.repeatedFixed64_ = new scg::List<ulong>();
  4135. }
  4136. base.AddRange(values, result.repeatedFixed64_);
  4137. return this;
  4138. }
  4139. public Builder ClearRepeatedFixed64() {
  4140. result.repeatedFixed64_ = pbc::Lists<ulong>.Empty;
  4141. return this;
  4142. }
  4143. // repeated sfixed32 repeated_sfixed32 = 39;
  4144. public scg::IList<int> RepeatedSfixed32List {
  4145. get { return pbc::Lists<int>.AsReadOnly(result.repeatedSfixed32_); }
  4146. }
  4147. public int RepeatedSfixed32Count {
  4148. get { return result.RepeatedSfixed32Count; }
  4149. }
  4150. public int GetRepeatedSfixed32(int index) {
  4151. return result.GetRepeatedSfixed32(index);
  4152. }
  4153. public Builder SetRepeatedSfixed32(int index, int value) {
  4154. result.repeatedSfixed32_[index] = value;
  4155. return this;
  4156. }
  4157. public Builder AddRepeatedSfixed32(int value) {
  4158. if (result.repeatedSfixed32_.Count == 0) {
  4159. result.repeatedSfixed32_ = new scg::List<int>();
  4160. }
  4161. result.repeatedSfixed32_.Add(value);
  4162. return this;
  4163. }
  4164. public Builder AddRangeRepeatedSfixed32(scg::IEnumerable<int> values) {
  4165. if (result.repeatedSfixed32_.Count == 0) {
  4166. result.repeatedSfixed32_ = new scg::List<int>();
  4167. }
  4168. base.AddRange(values, result.repeatedSfixed32_);
  4169. return this;
  4170. }
  4171. public Builder ClearRepeatedSfixed32() {
  4172. result.repeatedSfixed32_ = pbc::Lists<int>.Empty;
  4173. return this;
  4174. }
  4175. // repeated sfixed64 repeated_sfixed64 = 40;
  4176. public scg::IList<long> RepeatedSfixed64List {
  4177. get { return pbc::Lists<long>.AsReadOnly(result.repeatedSfixed64_); }
  4178. }
  4179. public int RepeatedSfixed64Count {
  4180. get { return result.RepeatedSfixed64Count; }
  4181. }
  4182. public long GetRepeatedSfixed64(int index) {
  4183. return result.GetRepeatedSfixed64(index);
  4184. }
  4185. public Builder SetRepeatedSfixed64(int index, long value) {
  4186. result.repeatedSfixed64_[index] = value;
  4187. return this;
  4188. }
  4189. public Builder AddRepeatedSfixed64(long value) {
  4190. if (result.repeatedSfixed64_.Count == 0) {
  4191. result.repeatedSfixed64_ = new scg::List<long>();
  4192. }
  4193. result.repeatedSfixed64_.Add(value);
  4194. return this;
  4195. }
  4196. public Builder AddRangeRepeatedSfixed64(scg::IEnumerable<long> values) {
  4197. if (result.repeatedSfixed64_.Count == 0) {
  4198. result.repeatedSfixed64_ = new scg::List<long>();
  4199. }
  4200. base.AddRange(values, result.repeatedSfixed64_);
  4201. return this;
  4202. }
  4203. public Builder ClearRepeatedSfixed64() {
  4204. result.repeatedSfixed64_ = pbc::Lists<long>.Empty;
  4205. return this;
  4206. }
  4207. // repeated float repeated_float = 41;
  4208. public scg::IList<float> RepeatedFloatList {
  4209. get { return pbc::Lists<float>.AsReadOnly(result.repeatedFloat_); }
  4210. }
  4211. public int RepeatedFloatCount {
  4212. get { return result.RepeatedFloatCount; }
  4213. }
  4214. public float GetRepeatedFloat(int index) {
  4215. return result.GetRepeatedFloat(index);
  4216. }
  4217. public Builder SetRepeatedFloat(int index, float value) {
  4218. result.repeatedFloat_[index] = value;
  4219. return this;
  4220. }
  4221. public Builder AddRepeatedFloat(float value) {
  4222. if (result.repeatedFloat_.Count == 0) {
  4223. result.repeatedFloat_ = new scg::List<float>();
  4224. }
  4225. result.repeatedFloat_.Add(value);
  4226. return this;
  4227. }
  4228. public Builder AddRangeRepeatedFloat(scg::IEnumerable<float> values) {
  4229. if (result.repeatedFloat_.Count == 0) {
  4230. result.repeatedFloat_ = new scg::List<float>();
  4231. }
  4232. base.AddRange(values, result.repeatedFloat_);
  4233. return this;
  4234. }
  4235. public Builder ClearRepeatedFloat() {
  4236. result.repeatedFloat_ = pbc::Lists<float>.Empty;
  4237. return this;
  4238. }
  4239. // repeated double repeated_double = 42;
  4240. public scg::IList<double> RepeatedDoubleList {
  4241. get { return pbc::Lists<double>.AsReadOnly(result.repeatedDouble_); }
  4242. }
  4243. public int RepeatedDoubleCount {
  4244. get { return result.RepeatedDoubleCount; }
  4245. }
  4246. public double GetRepeatedDouble(int index) {
  4247. return result.GetRepeatedDouble(index);
  4248. }
  4249. public Builder SetRepeatedDouble(int index, double value) {
  4250. result.repeatedDouble_[index] = value;
  4251. return this;
  4252. }
  4253. public Builder AddRepeatedDouble(double value) {
  4254. if (result.repeatedDouble_.Count == 0) {
  4255. result.repeatedDouble_ = new scg::List<double>();
  4256. }
  4257. result.repeatedDouble_.Add(value);
  4258. return this;
  4259. }
  4260. public Builder AddRangeRepeatedDouble(scg::IEnumerable<double> values) {
  4261. if (result.repeatedDouble_.Count == 0) {
  4262. result.repeatedDouble_ = new scg::List<double>();
  4263. }
  4264. base.AddRange(values, result.repeatedDouble_);
  4265. return this;
  4266. }
  4267. public Builder ClearRepeatedDouble() {
  4268. result.repeatedDouble_ = pbc::Lists<double>.Empty;
  4269. return this;
  4270. }
  4271. // repeated bool repeated_bool = 43;
  4272. public scg::IList<bool> RepeatedBoolList {
  4273. get { return pbc::Lists<bool>.AsReadOnly(result.repeatedBool_); }
  4274. }
  4275. public int RepeatedBoolCount {
  4276. get { return result.RepeatedBoolCount; }
  4277. }
  4278. public bool GetRepeatedBool(int index) {
  4279. return result.GetRepeatedBool(index);
  4280. }
  4281. public Builder SetRepeatedBool(int index, bool value) {
  4282. result.repeatedBool_[index] = value;
  4283. return this;
  4284. }
  4285. public Builder AddRepeatedBool(bool value) {
  4286. if (result.repeatedBool_.Count == 0) {
  4287. result.repeatedBool_ = new scg::List<bool>();
  4288. }
  4289. result.repeatedBool_.Add(value);
  4290. return this;
  4291. }
  4292. public Builder AddRangeRepeatedBool(scg::IEnumerable<bool> values) {
  4293. if (result.repeatedBool_.Count == 0) {
  4294. result.repeatedBool_ = new scg::List<bool>();
  4295. }
  4296. base.AddRange(values, result.repeatedBool_);
  4297. return this;
  4298. }
  4299. public Builder ClearRepeatedBool() {
  4300. result.repeatedBool_ = pbc::Lists<bool>.Empty;
  4301. return this;
  4302. }
  4303. // repeated string repeated_string = 44;
  4304. public scg::IList<string> RepeatedStringList {
  4305. get { return pbc::Lists<string>.AsReadOnly(result.repeatedString_); }
  4306. }
  4307. public int RepeatedStringCount {
  4308. get { return result.RepeatedStringCount; }
  4309. }
  4310. public string GetRepeatedString(int index) {
  4311. return result.GetRepeatedString(index);
  4312. }
  4313. public Builder SetRepeatedString(int index, string value) {
  4314. result.repeatedString_[index] = value;
  4315. return this;
  4316. }
  4317. public Builder AddRepeatedString(string value) {
  4318. if (result.repeatedString_.Count == 0) {
  4319. result.repeatedString_ = new scg::List<string>();
  4320. }
  4321. result.repeatedString_.Add(value);
  4322. return this;
  4323. }
  4324. public Builder AddRangeRepeatedString(scg::IEnumerable<string> values) {
  4325. if (result.repeatedString_.Count == 0) {
  4326. result.repeatedString_ = new scg::List<string>();
  4327. }
  4328. base.AddRange(values, result.repeatedString_);
  4329. return this;
  4330. }
  4331. public Builder ClearRepeatedString() {
  4332. result.repeatedString_ = pbc::Lists<string>.Empty;
  4333. return this;
  4334. }
  4335. // repeated bytes repeated_bytes = 45;
  4336. public scg::IList<pb::ByteString> RepeatedBytesList {
  4337. get { return pbc::Lists<pb::ByteString>.AsReadOnly(result.repeatedBytes_); }
  4338. }
  4339. public int RepeatedBytesCount {
  4340. get { return result.RepeatedBytesCount; }
  4341. }
  4342. public pb::ByteString GetRepeatedBytes(int index) {
  4343. return result.GetRepeatedBytes(index);
  4344. }
  4345. public Builder SetRepeatedBytes(int index, pb::ByteString value) {
  4346. result.repeatedBytes_[index] = value;
  4347. return this;
  4348. }
  4349. public Builder AddRepeatedBytes(pb::ByteString value) {
  4350. if (result.repeatedBytes_.Count == 0) {
  4351. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4352. }
  4353. result.repeatedBytes_.Add(value);
  4354. return this;
  4355. }
  4356. public Builder AddRangeRepeatedBytes(scg::IEnumerable<pb::ByteString> values) {
  4357. if (result.repeatedBytes_.Count == 0) {
  4358. result.repeatedBytes_ = new scg::List<pb::ByteString>();
  4359. }
  4360. base.AddRange(values, result.repeatedBytes_);
  4361. return this;
  4362. }
  4363. public Builder ClearRepeatedBytes() {
  4364. result.repeatedBytes_ = pbc::Lists<pb::ByteString>.Empty;
  4365. return this;
  4366. }
  4367. // repeated group RepeatedGroup = 46 {
  4368. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> RepeatedGroupList {
  4369. get { return pbc::Lists.AsReadOnly(result.repeatedGroup_); }
  4370. }
  4371. public int RepeatedGroupCount {
  4372. get { return result.RepeatedGroupCount; }
  4373. }
  4374. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup GetRepeatedGroup(int index) {
  4375. return result.GetRepeatedGroup(index);
  4376. }
  4377. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
  4378. result.repeatedGroup_[index] = value;
  4379. return this;
  4380. }
  4381. public Builder SetRepeatedGroup(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4382. result.repeatedGroup_[index] = builderForValue.Build();
  4383. return this;
  4384. }
  4385. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup value) {
  4386. if (result.repeatedGroup_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  4387. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  4388. }
  4389. result.repeatedGroup_.Add(value);
  4390. return this;
  4391. }
  4392. public Builder AddRepeatedGroup(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup.Builder builderForValue) {
  4393. if (result.repeatedGroup_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  4394. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  4395. }
  4396. result.repeatedGroup_.Add(builderForValue.Build());
  4397. return this;
  4398. }
  4399. public Builder AddRangeRepeatedGroup(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup> values) {
  4400. if (result.repeatedGroup_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty) {
  4401. result.repeatedGroup_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>();
  4402. }
  4403. base.AddRange(values, result.repeatedGroup_);
  4404. return this;
  4405. }
  4406. public Builder ClearRepeatedGroup() {
  4407. result.repeatedGroup_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.RepeatedGroup>.Empty;
  4408. return this;
  4409. }
  4410. // repeated .protobuf_unittest.TestAllTypes.NestedMessage repeated_nested_message = 48;
  4411. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> RepeatedNestedMessageList {
  4412. get { return pbc::Lists.AsReadOnly(result.repeatedNestedMessage_); }
  4413. }
  4414. public int RepeatedNestedMessageCount {
  4415. get { return result.RepeatedNestedMessageCount; }
  4416. }
  4417. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage GetRepeatedNestedMessage(int index) {
  4418. return result.GetRepeatedNestedMessage(index);
  4419. }
  4420. public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4421. result.repeatedNestedMessage_[index] = value;
  4422. return this;
  4423. }
  4424. public Builder SetRepeatedNestedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4425. result.repeatedNestedMessage_[index] = builderForValue.Build();
  4426. return this;
  4427. }
  4428. public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  4429. if (result.repeatedNestedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  4430. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  4431. }
  4432. result.repeatedNestedMessage_.Add(value);
  4433. return this;
  4434. }
  4435. public Builder AddRepeatedNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  4436. if (result.repeatedNestedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  4437. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  4438. }
  4439. result.repeatedNestedMessage_.Add(builderForValue.Build());
  4440. return this;
  4441. }
  4442. public Builder AddRangeRepeatedNestedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage> values) {
  4443. if (result.repeatedNestedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty) {
  4444. result.repeatedNestedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>();
  4445. }
  4446. base.AddRange(values, result.repeatedNestedMessage_);
  4447. return this;
  4448. }
  4449. public Builder ClearRepeatedNestedMessage() {
  4450. result.repeatedNestedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage>.Empty;
  4451. return this;
  4452. }
  4453. // repeated .protobuf_unittest.ForeignMessage repeated_foreign_message = 49;
  4454. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedForeignMessageList {
  4455. get { return pbc::Lists.AsReadOnly(result.repeatedForeignMessage_); }
  4456. }
  4457. public int RepeatedForeignMessageCount {
  4458. get { return result.RepeatedForeignMessageCount; }
  4459. }
  4460. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedForeignMessage(int index) {
  4461. return result.GetRepeatedForeignMessage(index);
  4462. }
  4463. public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  4464. result.repeatedForeignMessage_[index] = value;
  4465. return this;
  4466. }
  4467. public Builder SetRepeatedForeignMessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  4468. result.repeatedForeignMessage_[index] = builderForValue.Build();
  4469. return this;
  4470. }
  4471. public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  4472. if (result.repeatedForeignMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  4473. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  4474. }
  4475. result.repeatedForeignMessage_.Add(value);
  4476. return this;
  4477. }
  4478. public Builder AddRepeatedForeignMessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  4479. if (result.repeatedForeignMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  4480. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  4481. }
  4482. result.repeatedForeignMessage_.Add(builderForValue.Build());
  4483. return this;
  4484. }
  4485. public Builder AddRangeRepeatedForeignMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  4486. if (result.repeatedForeignMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  4487. result.repeatedForeignMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  4488. }
  4489. base.AddRange(values, result.repeatedForeignMessage_);
  4490. return this;
  4491. }
  4492. public Builder ClearRepeatedForeignMessage() {
  4493. result.repeatedForeignMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  4494. return this;
  4495. }
  4496. // repeated .protobuf_unittest_import.ImportMessage repeated_import_message = 50;
  4497. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportMessage> RepeatedImportMessageList {
  4498. get { return pbc::Lists.AsReadOnly(result.repeatedImportMessage_); }
  4499. }
  4500. public int RepeatedImportMessageCount {
  4501. get { return result.RepeatedImportMessageCount; }
  4502. }
  4503. public global::Google.ProtocolBuffers.TestProtos.ImportMessage GetRepeatedImportMessage(int index) {
  4504. return result.GetRepeatedImportMessage(index);
  4505. }
  4506. public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  4507. result.repeatedImportMessage_[index] = value;
  4508. return this;
  4509. }
  4510. public Builder SetRepeatedImportMessage(int index, global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  4511. result.repeatedImportMessage_[index] = builderForValue.Build();
  4512. return this;
  4513. }
  4514. public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage value) {
  4515. if (result.repeatedImportMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  4516. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  4517. }
  4518. result.repeatedImportMessage_.Add(value);
  4519. return this;
  4520. }
  4521. public Builder AddRepeatedImportMessage(global::Google.ProtocolBuffers.TestProtos.ImportMessage.Builder builderForValue) {
  4522. if (result.repeatedImportMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  4523. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  4524. }
  4525. result.repeatedImportMessage_.Add(builderForValue.Build());
  4526. return this;
  4527. }
  4528. public Builder AddRangeRepeatedImportMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportMessage> values) {
  4529. if (result.repeatedImportMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty) {
  4530. result.repeatedImportMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportMessage>();
  4531. }
  4532. base.AddRange(values, result.repeatedImportMessage_);
  4533. return this;
  4534. }
  4535. public Builder ClearRepeatedImportMessage() {
  4536. result.repeatedImportMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportMessage>.Empty;
  4537. return this;
  4538. }
  4539. // repeated .protobuf_unittest.TestAllTypes.NestedEnum repeated_nested_enum = 51;
  4540. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> RepeatedNestedEnumList {
  4541. get { return pbc::Lists.AsReadOnly(result.repeatedNestedEnum_); }
  4542. }
  4543. public int RepeatedNestedEnumCount {
  4544. get { return result.RepeatedNestedEnumCount; }
  4545. }
  4546. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum GetRepeatedNestedEnum(int index) {
  4547. return result.GetRepeatedNestedEnum(index);
  4548. }
  4549. public Builder SetRepeatedNestedEnum(int index, global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4550. result.repeatedNestedEnum_[index] = value;
  4551. return this;
  4552. }
  4553. public Builder AddRepeatedNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4554. if (result.repeatedNestedEnum_.Count == 0) {
  4555. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  4556. }
  4557. result.repeatedNestedEnum_.Add(value);
  4558. return this;
  4559. }
  4560. public Builder AddRangeRepeatedNestedEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum> values) {
  4561. if (result.repeatedNestedEnum_.Count == 0) {
  4562. result.repeatedNestedEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>();
  4563. }
  4564. base.AddRange(values, result.repeatedNestedEnum_);
  4565. return this;
  4566. }
  4567. public Builder ClearRepeatedNestedEnum() {
  4568. result.repeatedNestedEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum>.Empty;
  4569. return this;
  4570. }
  4571. // repeated .protobuf_unittest.ForeignEnum repeated_foreign_enum = 52;
  4572. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedForeignEnumList {
  4573. get { return pbc::Lists.AsReadOnly(result.repeatedForeignEnum_); }
  4574. }
  4575. public int RepeatedForeignEnumCount {
  4576. get { return result.RepeatedForeignEnumCount; }
  4577. }
  4578. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedForeignEnum(int index) {
  4579. return result.GetRepeatedForeignEnum(index);
  4580. }
  4581. public Builder SetRepeatedForeignEnum(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4582. result.repeatedForeignEnum_[index] = value;
  4583. return this;
  4584. }
  4585. public Builder AddRepeatedForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4586. if (result.repeatedForeignEnum_.Count == 0) {
  4587. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  4588. }
  4589. result.repeatedForeignEnum_.Add(value);
  4590. return this;
  4591. }
  4592. public Builder AddRangeRepeatedForeignEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  4593. if (result.repeatedForeignEnum_.Count == 0) {
  4594. result.repeatedForeignEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  4595. }
  4596. base.AddRange(values, result.repeatedForeignEnum_);
  4597. return this;
  4598. }
  4599. public Builder ClearRepeatedForeignEnum() {
  4600. result.repeatedForeignEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.Empty;
  4601. return this;
  4602. }
  4603. // repeated .protobuf_unittest_import.ImportEnum repeated_import_enum = 53;
  4604. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ImportEnum> RepeatedImportEnumList {
  4605. get { return pbc::Lists.AsReadOnly(result.repeatedImportEnum_); }
  4606. }
  4607. public int RepeatedImportEnumCount {
  4608. get { return result.RepeatedImportEnumCount; }
  4609. }
  4610. public global::Google.ProtocolBuffers.TestProtos.ImportEnum GetRepeatedImportEnum(int index) {
  4611. return result.GetRepeatedImportEnum(index);
  4612. }
  4613. public Builder SetRepeatedImportEnum(int index, global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  4614. result.repeatedImportEnum_[index] = value;
  4615. return this;
  4616. }
  4617. public Builder AddRepeatedImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  4618. if (result.repeatedImportEnum_.Count == 0) {
  4619. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  4620. }
  4621. result.repeatedImportEnum_.Add(value);
  4622. return this;
  4623. }
  4624. public Builder AddRangeRepeatedImportEnum(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ImportEnum> values) {
  4625. if (result.repeatedImportEnum_.Count == 0) {
  4626. result.repeatedImportEnum_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ImportEnum>();
  4627. }
  4628. base.AddRange(values, result.repeatedImportEnum_);
  4629. return this;
  4630. }
  4631. public Builder ClearRepeatedImportEnum() {
  4632. result.repeatedImportEnum_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ImportEnum>.Empty;
  4633. return this;
  4634. }
  4635. // repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
  4636. public scg::IList<string> RepeatedStringPieceList {
  4637. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPiece_); }
  4638. }
  4639. public int RepeatedStringPieceCount {
  4640. get { return result.RepeatedStringPieceCount; }
  4641. }
  4642. public string GetRepeatedStringPiece(int index) {
  4643. return result.GetRepeatedStringPiece(index);
  4644. }
  4645. public Builder SetRepeatedStringPiece(int index, string value) {
  4646. result.repeatedStringPiece_[index] = value;
  4647. return this;
  4648. }
  4649. public Builder AddRepeatedStringPiece(string value) {
  4650. if (result.repeatedStringPiece_.Count == 0) {
  4651. result.repeatedStringPiece_ = new scg::List<string>();
  4652. }
  4653. result.repeatedStringPiece_.Add(value);
  4654. return this;
  4655. }
  4656. public Builder AddRangeRepeatedStringPiece(scg::IEnumerable<string> values) {
  4657. if (result.repeatedStringPiece_.Count == 0) {
  4658. result.repeatedStringPiece_ = new scg::List<string>();
  4659. }
  4660. base.AddRange(values, result.repeatedStringPiece_);
  4661. return this;
  4662. }
  4663. public Builder ClearRepeatedStringPiece() {
  4664. result.repeatedStringPiece_ = pbc::Lists<string>.Empty;
  4665. return this;
  4666. }
  4667. // repeated string repeated_cord = 55 [ctype = CORD];
  4668. public scg::IList<string> RepeatedCordList {
  4669. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCord_); }
  4670. }
  4671. public int RepeatedCordCount {
  4672. get { return result.RepeatedCordCount; }
  4673. }
  4674. public string GetRepeatedCord(int index) {
  4675. return result.GetRepeatedCord(index);
  4676. }
  4677. public Builder SetRepeatedCord(int index, string value) {
  4678. result.repeatedCord_[index] = value;
  4679. return this;
  4680. }
  4681. public Builder AddRepeatedCord(string value) {
  4682. if (result.repeatedCord_.Count == 0) {
  4683. result.repeatedCord_ = new scg::List<string>();
  4684. }
  4685. result.repeatedCord_.Add(value);
  4686. return this;
  4687. }
  4688. public Builder AddRangeRepeatedCord(scg::IEnumerable<string> values) {
  4689. if (result.repeatedCord_.Count == 0) {
  4690. result.repeatedCord_ = new scg::List<string>();
  4691. }
  4692. base.AddRange(values, result.repeatedCord_);
  4693. return this;
  4694. }
  4695. public Builder ClearRepeatedCord() {
  4696. result.repeatedCord_ = pbc::Lists<string>.Empty;
  4697. return this;
  4698. }
  4699. // optional int32 default_int32 = 61 [default = 41];
  4700. public bool HasDefaultInt32 {
  4701. get { return result.HasDefaultInt32; }
  4702. }
  4703. public int DefaultInt32 {
  4704. get { return result.DefaultInt32; }
  4705. set { SetDefaultInt32(value); }
  4706. }
  4707. public Builder SetDefaultInt32(int value) {
  4708. result.hasDefaultInt32 = true;
  4709. result.defaultInt32_ = value;
  4710. return this;
  4711. }
  4712. public Builder ClearDefaultInt32() {
  4713. result.hasDefaultInt32 = false;
  4714. result.defaultInt32_ = 41;
  4715. return this;
  4716. }
  4717. // optional int64 default_int64 = 62 [default = 42];
  4718. public bool HasDefaultInt64 {
  4719. get { return result.HasDefaultInt64; }
  4720. }
  4721. public long DefaultInt64 {
  4722. get { return result.DefaultInt64; }
  4723. set { SetDefaultInt64(value); }
  4724. }
  4725. public Builder SetDefaultInt64(long value) {
  4726. result.hasDefaultInt64 = true;
  4727. result.defaultInt64_ = value;
  4728. return this;
  4729. }
  4730. public Builder ClearDefaultInt64() {
  4731. result.hasDefaultInt64 = false;
  4732. result.defaultInt64_ = 42L;
  4733. return this;
  4734. }
  4735. // optional uint32 default_uint32 = 63 [default = 43];
  4736. public bool HasDefaultUint32 {
  4737. get { return result.HasDefaultUint32; }
  4738. }
  4739. public uint DefaultUint32 {
  4740. get { return result.DefaultUint32; }
  4741. set { SetDefaultUint32(value); }
  4742. }
  4743. public Builder SetDefaultUint32(uint value) {
  4744. result.hasDefaultUint32 = true;
  4745. result.defaultUint32_ = value;
  4746. return this;
  4747. }
  4748. public Builder ClearDefaultUint32() {
  4749. result.hasDefaultUint32 = false;
  4750. result.defaultUint32_ = 43;
  4751. return this;
  4752. }
  4753. // optional uint64 default_uint64 = 64 [default = 44];
  4754. public bool HasDefaultUint64 {
  4755. get { return result.HasDefaultUint64; }
  4756. }
  4757. public ulong DefaultUint64 {
  4758. get { return result.DefaultUint64; }
  4759. set { SetDefaultUint64(value); }
  4760. }
  4761. public Builder SetDefaultUint64(ulong value) {
  4762. result.hasDefaultUint64 = true;
  4763. result.defaultUint64_ = value;
  4764. return this;
  4765. }
  4766. public Builder ClearDefaultUint64() {
  4767. result.hasDefaultUint64 = false;
  4768. result.defaultUint64_ = 44UL;
  4769. return this;
  4770. }
  4771. // optional sint32 default_sint32 = 65 [default = -45];
  4772. public bool HasDefaultSint32 {
  4773. get { return result.HasDefaultSint32; }
  4774. }
  4775. public int DefaultSint32 {
  4776. get { return result.DefaultSint32; }
  4777. set { SetDefaultSint32(value); }
  4778. }
  4779. public Builder SetDefaultSint32(int value) {
  4780. result.hasDefaultSint32 = true;
  4781. result.defaultSint32_ = value;
  4782. return this;
  4783. }
  4784. public Builder ClearDefaultSint32() {
  4785. result.hasDefaultSint32 = false;
  4786. result.defaultSint32_ = -45;
  4787. return this;
  4788. }
  4789. // optional sint64 default_sint64 = 66 [default = 46];
  4790. public bool HasDefaultSint64 {
  4791. get { return result.HasDefaultSint64; }
  4792. }
  4793. public long DefaultSint64 {
  4794. get { return result.DefaultSint64; }
  4795. set { SetDefaultSint64(value); }
  4796. }
  4797. public Builder SetDefaultSint64(long value) {
  4798. result.hasDefaultSint64 = true;
  4799. result.defaultSint64_ = value;
  4800. return this;
  4801. }
  4802. public Builder ClearDefaultSint64() {
  4803. result.hasDefaultSint64 = false;
  4804. result.defaultSint64_ = 46L;
  4805. return this;
  4806. }
  4807. // optional fixed32 default_fixed32 = 67 [default = 47];
  4808. public bool HasDefaultFixed32 {
  4809. get { return result.HasDefaultFixed32; }
  4810. }
  4811. public uint DefaultFixed32 {
  4812. get { return result.DefaultFixed32; }
  4813. set { SetDefaultFixed32(value); }
  4814. }
  4815. public Builder SetDefaultFixed32(uint value) {
  4816. result.hasDefaultFixed32 = true;
  4817. result.defaultFixed32_ = value;
  4818. return this;
  4819. }
  4820. public Builder ClearDefaultFixed32() {
  4821. result.hasDefaultFixed32 = false;
  4822. result.defaultFixed32_ = 47;
  4823. return this;
  4824. }
  4825. // optional fixed64 default_fixed64 = 68 [default = 48];
  4826. public bool HasDefaultFixed64 {
  4827. get { return result.HasDefaultFixed64; }
  4828. }
  4829. public ulong DefaultFixed64 {
  4830. get { return result.DefaultFixed64; }
  4831. set { SetDefaultFixed64(value); }
  4832. }
  4833. public Builder SetDefaultFixed64(ulong value) {
  4834. result.hasDefaultFixed64 = true;
  4835. result.defaultFixed64_ = value;
  4836. return this;
  4837. }
  4838. public Builder ClearDefaultFixed64() {
  4839. result.hasDefaultFixed64 = false;
  4840. result.defaultFixed64_ = 48UL;
  4841. return this;
  4842. }
  4843. // optional sfixed32 default_sfixed32 = 69 [default = 49];
  4844. public bool HasDefaultSfixed32 {
  4845. get { return result.HasDefaultSfixed32; }
  4846. }
  4847. public int DefaultSfixed32 {
  4848. get { return result.DefaultSfixed32; }
  4849. set { SetDefaultSfixed32(value); }
  4850. }
  4851. public Builder SetDefaultSfixed32(int value) {
  4852. result.hasDefaultSfixed32 = true;
  4853. result.defaultSfixed32_ = value;
  4854. return this;
  4855. }
  4856. public Builder ClearDefaultSfixed32() {
  4857. result.hasDefaultSfixed32 = false;
  4858. result.defaultSfixed32_ = 49;
  4859. return this;
  4860. }
  4861. // optional sfixed64 default_sfixed64 = 70 [default = -50];
  4862. public bool HasDefaultSfixed64 {
  4863. get { return result.HasDefaultSfixed64; }
  4864. }
  4865. public long DefaultSfixed64 {
  4866. get { return result.DefaultSfixed64; }
  4867. set { SetDefaultSfixed64(value); }
  4868. }
  4869. public Builder SetDefaultSfixed64(long value) {
  4870. result.hasDefaultSfixed64 = true;
  4871. result.defaultSfixed64_ = value;
  4872. return this;
  4873. }
  4874. public Builder ClearDefaultSfixed64() {
  4875. result.hasDefaultSfixed64 = false;
  4876. result.defaultSfixed64_ = -50L;
  4877. return this;
  4878. }
  4879. // optional float default_float = 71 [default = 51.5];
  4880. public bool HasDefaultFloat {
  4881. get { return result.HasDefaultFloat; }
  4882. }
  4883. public float DefaultFloat {
  4884. get { return result.DefaultFloat; }
  4885. set { SetDefaultFloat(value); }
  4886. }
  4887. public Builder SetDefaultFloat(float value) {
  4888. result.hasDefaultFloat = true;
  4889. result.defaultFloat_ = value;
  4890. return this;
  4891. }
  4892. public Builder ClearDefaultFloat() {
  4893. result.hasDefaultFloat = false;
  4894. result.defaultFloat_ = 51.5F;
  4895. return this;
  4896. }
  4897. // optional double default_double = 72 [default = 52000];
  4898. public bool HasDefaultDouble {
  4899. get { return result.HasDefaultDouble; }
  4900. }
  4901. public double DefaultDouble {
  4902. get { return result.DefaultDouble; }
  4903. set { SetDefaultDouble(value); }
  4904. }
  4905. public Builder SetDefaultDouble(double value) {
  4906. result.hasDefaultDouble = true;
  4907. result.defaultDouble_ = value;
  4908. return this;
  4909. }
  4910. public Builder ClearDefaultDouble() {
  4911. result.hasDefaultDouble = false;
  4912. result.defaultDouble_ = 52000D;
  4913. return this;
  4914. }
  4915. // optional bool default_bool = 73 [default = true];
  4916. public bool HasDefaultBool {
  4917. get { return result.HasDefaultBool; }
  4918. }
  4919. public bool DefaultBool {
  4920. get { return result.DefaultBool; }
  4921. set { SetDefaultBool(value); }
  4922. }
  4923. public Builder SetDefaultBool(bool value) {
  4924. result.hasDefaultBool = true;
  4925. result.defaultBool_ = value;
  4926. return this;
  4927. }
  4928. public Builder ClearDefaultBool() {
  4929. result.hasDefaultBool = false;
  4930. result.defaultBool_ = true;
  4931. return this;
  4932. }
  4933. // optional string default_string = 74 [default = "hello"];
  4934. public bool HasDefaultString {
  4935. get { return result.HasDefaultString; }
  4936. }
  4937. public string DefaultString {
  4938. get { return result.DefaultString; }
  4939. set { SetDefaultString(value); }
  4940. }
  4941. public Builder SetDefaultString(string value) {
  4942. result.hasDefaultString = true;
  4943. result.defaultString_ = value;
  4944. return this;
  4945. }
  4946. public Builder ClearDefaultString() {
  4947. result.hasDefaultString = false;
  4948. result.defaultString_ = "hello";
  4949. return this;
  4950. }
  4951. // optional bytes default_bytes = 75 [default = "world"];
  4952. public bool HasDefaultBytes {
  4953. get { return result.HasDefaultBytes; }
  4954. }
  4955. public pb::ByteString DefaultBytes {
  4956. get { return result.DefaultBytes; }
  4957. set { SetDefaultBytes(value); }
  4958. }
  4959. public Builder SetDefaultBytes(pb::ByteString value) {
  4960. result.hasDefaultBytes = true;
  4961. result.defaultBytes_ = value;
  4962. return this;
  4963. }
  4964. public Builder ClearDefaultBytes() {
  4965. result.hasDefaultBytes = false;
  4966. result.defaultBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Descriptor.Fields[62].DefaultValue);
  4967. return this;
  4968. }
  4969. // optional .protobuf_unittest.TestAllTypes.NestedEnum default_nested_enum = 81 [default = BAR];
  4970. public bool HasDefaultNestedEnum {
  4971. get { return result.HasDefaultNestedEnum; }
  4972. }
  4973. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum DefaultNestedEnum {
  4974. get { return result.DefaultNestedEnum; }
  4975. set { SetDefaultNestedEnum(value); }
  4976. }
  4977. public Builder SetDefaultNestedEnum(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum value) {
  4978. result.hasDefaultNestedEnum = true;
  4979. result.defaultNestedEnum_ = value;
  4980. return this;
  4981. }
  4982. public Builder ClearDefaultNestedEnum() {
  4983. result.hasDefaultNestedEnum = false;
  4984. result.defaultNestedEnum_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedEnum.BAR;
  4985. return this;
  4986. }
  4987. // optional .protobuf_unittest.ForeignEnum default_foreign_enum = 82 [default = FOREIGN_BAR];
  4988. public bool HasDefaultForeignEnum {
  4989. get { return result.HasDefaultForeignEnum; }
  4990. }
  4991. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum DefaultForeignEnum {
  4992. get { return result.DefaultForeignEnum; }
  4993. set { SetDefaultForeignEnum(value); }
  4994. }
  4995. public Builder SetDefaultForeignEnum(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  4996. result.hasDefaultForeignEnum = true;
  4997. result.defaultForeignEnum_ = value;
  4998. return this;
  4999. }
  5000. public Builder ClearDefaultForeignEnum() {
  5001. result.hasDefaultForeignEnum = false;
  5002. result.defaultForeignEnum_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_BAR;
  5003. return this;
  5004. }
  5005. // optional .protobuf_unittest_import.ImportEnum default_import_enum = 83 [default = IMPORT_BAR];
  5006. public bool HasDefaultImportEnum {
  5007. get { return result.HasDefaultImportEnum; }
  5008. }
  5009. public global::Google.ProtocolBuffers.TestProtos.ImportEnum DefaultImportEnum {
  5010. get { return result.DefaultImportEnum; }
  5011. set { SetDefaultImportEnum(value); }
  5012. }
  5013. public Builder SetDefaultImportEnum(global::Google.ProtocolBuffers.TestProtos.ImportEnum value) {
  5014. result.hasDefaultImportEnum = true;
  5015. result.defaultImportEnum_ = value;
  5016. return this;
  5017. }
  5018. public Builder ClearDefaultImportEnum() {
  5019. result.hasDefaultImportEnum = false;
  5020. result.defaultImportEnum_ = global::Google.ProtocolBuffers.TestProtos.ImportEnum.IMPORT_BAR;
  5021. return this;
  5022. }
  5023. // optional string default_string_piece = 84 [default = "abc", ctype = STRING_PIECE];
  5024. public bool HasDefaultStringPiece {
  5025. get { return result.HasDefaultStringPiece; }
  5026. }
  5027. public string DefaultStringPiece {
  5028. get { return result.DefaultStringPiece; }
  5029. set { SetDefaultStringPiece(value); }
  5030. }
  5031. public Builder SetDefaultStringPiece(string value) {
  5032. result.hasDefaultStringPiece = true;
  5033. result.defaultStringPiece_ = value;
  5034. return this;
  5035. }
  5036. public Builder ClearDefaultStringPiece() {
  5037. result.hasDefaultStringPiece = false;
  5038. result.defaultStringPiece_ = "abc";
  5039. return this;
  5040. }
  5041. // optional string default_cord = 85 [default = "123", ctype = CORD];
  5042. public bool HasDefaultCord {
  5043. get { return result.HasDefaultCord; }
  5044. }
  5045. public string DefaultCord {
  5046. get { return result.DefaultCord; }
  5047. set { SetDefaultCord(value); }
  5048. }
  5049. public Builder SetDefaultCord(string value) {
  5050. result.hasDefaultCord = true;
  5051. result.defaultCord_ = value;
  5052. return this;
  5053. }
  5054. public Builder ClearDefaultCord() {
  5055. result.hasDefaultCord = false;
  5056. result.defaultCord_ = "123";
  5057. return this;
  5058. }
  5059. }
  5060. }
  5061. public sealed partial class ForeignMessage : pb::GeneratedMessage<ForeignMessage, ForeignMessage.Builder> {
  5062. private static readonly ForeignMessage defaultInstance = new ForeignMessage();
  5063. public static ForeignMessage DefaultInstance {
  5064. get { return defaultInstance; }
  5065. }
  5066. public override ForeignMessage DefaultInstanceForType {
  5067. get { return defaultInstance; }
  5068. }
  5069. protected override ForeignMessage ThisMessage {
  5070. get { return this; }
  5071. }
  5072. public static pbd::MessageDescriptor Descriptor {
  5073. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__Descriptor; }
  5074. }
  5075. protected override pb::FieldAccess.FieldAccessorTable<ForeignMessage, ForeignMessage.Builder> InternalFieldAccessors {
  5076. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_ForeignMessage__FieldAccessorTable; }
  5077. }
  5078. // optional int32 c = 1;
  5079. private bool hasC;
  5080. private int c_ = 0;
  5081. public bool HasC {
  5082. get { return hasC; }
  5083. }
  5084. public int C {
  5085. get { return c_; }
  5086. }
  5087. public override bool IsInitialized {
  5088. get {
  5089. return true;
  5090. }
  5091. }
  5092. public override void WriteTo(pb::CodedOutputStream output) {
  5093. if (HasC) {
  5094. output.WriteInt32(1, C);
  5095. }
  5096. UnknownFields.WriteTo(output);
  5097. }
  5098. private int memoizedSerializedSize = -1;
  5099. public override int SerializedSize {
  5100. get {
  5101. int size = memoizedSerializedSize;
  5102. if (size != -1) return size;
  5103. size = 0;
  5104. if (HasC) {
  5105. size += pb::CodedOutputStream.ComputeInt32Size(1, C);
  5106. }
  5107. size += UnknownFields.SerializedSize;
  5108. memoizedSerializedSize = size;
  5109. return size;
  5110. }
  5111. }
  5112. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::ByteString data) {
  5113. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5114. }
  5115. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::ByteString data,
  5116. pb::ExtensionRegistry extensionRegistry) {
  5117. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5118. .BuildParsed();
  5119. }
  5120. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(byte[] data) {
  5121. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5122. }
  5123. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(byte[] data,
  5124. pb::ExtensionRegistry extensionRegistry) {
  5125. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5126. .BuildParsed();
  5127. }
  5128. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(global::System.IO.Stream input) {
  5129. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5130. }
  5131. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(
  5132. global::System.IO.Stream input,
  5133. pb::ExtensionRegistry extensionRegistry) {
  5134. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5135. .BuildParsed();
  5136. }
  5137. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::CodedInputStream input) {
  5138. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5139. }
  5140. public static global::Google.ProtocolBuffers.TestProtos.ForeignMessage ParseFrom(pb::CodedInputStream input,
  5141. pb::ExtensionRegistry extensionRegistry) {
  5142. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5143. .BuildParsed();
  5144. }
  5145. public static Builder CreateBuilder() { return new Builder(); }
  5146. public override Builder CreateBuilderForType() { return new Builder(); }
  5147. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.ForeignMessage prototype) {
  5148. return (Builder) new Builder().MergeFrom(prototype);
  5149. }
  5150. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.ForeignMessage, Builder> {
  5151. protected override Builder ThisBuilder {
  5152. get { return this; }
  5153. }
  5154. // Construct using global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder()
  5155. public Builder() {}
  5156. global::Google.ProtocolBuffers.TestProtos.ForeignMessage result = new global::Google.ProtocolBuffers.TestProtos.ForeignMessage();
  5157. protected override global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageBeingBuilt {
  5158. get { return result; }
  5159. }
  5160. public override Builder Clear() {
  5161. result = new global::Google.ProtocolBuffers.TestProtos.ForeignMessage();
  5162. return this;
  5163. }
  5164. public override Builder Clone() {
  5165. return new Builder().MergeFrom(result);
  5166. }
  5167. public override pbd::MessageDescriptor DescriptorForType {
  5168. get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Descriptor; }
  5169. }
  5170. public override global::Google.ProtocolBuffers.TestProtos.ForeignMessage DefaultInstanceForType {
  5171. get { return global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance; }
  5172. }
  5173. public override global::Google.ProtocolBuffers.TestProtos.ForeignMessage BuildPartial() {
  5174. global::Google.ProtocolBuffers.TestProtos.ForeignMessage returnMe = result;
  5175. result = null;
  5176. return returnMe;
  5177. }
  5178. public override Builder MergeFrom(pb::IMessage other) {
  5179. if (other is global::Google.ProtocolBuffers.TestProtos.ForeignMessage) {
  5180. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.ForeignMessage) other);
  5181. } else {
  5182. base.MergeFrom(other);
  5183. return this;
  5184. }
  5185. }
  5186. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.ForeignMessage other) {
  5187. if (other == global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) return this;
  5188. if (other.HasC) {
  5189. C = other.C;
  5190. }
  5191. this.MergeUnknownFields(other.UnknownFields);
  5192. return this;
  5193. }
  5194. public override Builder MergeFrom(pb::CodedInputStream input) {
  5195. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5196. }
  5197. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5198. pb::UnknownFieldSet.Builder unknownFields =
  5199. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5200. while (true) {
  5201. uint tag = input.ReadTag();
  5202. switch (tag) {
  5203. case 0:
  5204. this.UnknownFields = unknownFields.Build();
  5205. return this;
  5206. default: {
  5207. if (!ParseUnknownField(input, unknownFields,
  5208. extensionRegistry, tag)) {
  5209. this.UnknownFields = unknownFields.Build();
  5210. return this;
  5211. }
  5212. break;
  5213. }
  5214. case 8: {
  5215. C = input.ReadInt32();
  5216. break;
  5217. }
  5218. }
  5219. }
  5220. }
  5221. // optional int32 c = 1;
  5222. public bool HasC {
  5223. get { return result.HasC; }
  5224. }
  5225. public int C {
  5226. get { return result.C; }
  5227. set { SetC(value); }
  5228. }
  5229. public Builder SetC(int value) {
  5230. result.hasC = true;
  5231. result.c_ = value;
  5232. return this;
  5233. }
  5234. public Builder ClearC() {
  5235. result.hasC = false;
  5236. result.c_ = 0;
  5237. return this;
  5238. }
  5239. }
  5240. }
  5241. public sealed partial class TestAllExtensions : pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder> {
  5242. private static readonly TestAllExtensions defaultInstance = new TestAllExtensions();
  5243. public static TestAllExtensions DefaultInstance {
  5244. get { return defaultInstance; }
  5245. }
  5246. public override TestAllExtensions DefaultInstanceForType {
  5247. get { return defaultInstance; }
  5248. }
  5249. protected override TestAllExtensions ThisMessage {
  5250. get { return this; }
  5251. }
  5252. public static pbd::MessageDescriptor Descriptor {
  5253. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__Descriptor; }
  5254. }
  5255. protected override pb::FieldAccess.FieldAccessorTable<TestAllExtensions, TestAllExtensions.Builder> InternalFieldAccessors {
  5256. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestAllExtensions__FieldAccessorTable; }
  5257. }
  5258. public override bool IsInitialized {
  5259. get {
  5260. if (!ExtensionsAreInitialized) return false;
  5261. return true;
  5262. }
  5263. }
  5264. public override void WriteTo(pb::CodedOutputStream output) {
  5265. pb::ExtendableMessage<TestAllExtensions, TestAllExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  5266. extensionWriter.WriteUntil(536870912, output);
  5267. UnknownFields.WriteTo(output);
  5268. }
  5269. private int memoizedSerializedSize = -1;
  5270. public override int SerializedSize {
  5271. get {
  5272. int size = memoizedSerializedSize;
  5273. if (size != -1) return size;
  5274. size = 0;
  5275. size += ExtensionsSerializedSize;
  5276. size += UnknownFields.SerializedSize;
  5277. memoizedSerializedSize = size;
  5278. return size;
  5279. }
  5280. }
  5281. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::ByteString data) {
  5282. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5283. }
  5284. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::ByteString data,
  5285. pb::ExtensionRegistry extensionRegistry) {
  5286. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5287. .BuildParsed();
  5288. }
  5289. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(byte[] data) {
  5290. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5291. }
  5292. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(byte[] data,
  5293. pb::ExtensionRegistry extensionRegistry) {
  5294. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5295. .BuildParsed();
  5296. }
  5297. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(global::System.IO.Stream input) {
  5298. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5299. }
  5300. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(
  5301. global::System.IO.Stream input,
  5302. pb::ExtensionRegistry extensionRegistry) {
  5303. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5304. .BuildParsed();
  5305. }
  5306. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::CodedInputStream input) {
  5307. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5308. }
  5309. public static global::Google.ProtocolBuffers.TestProtos.TestAllExtensions ParseFrom(pb::CodedInputStream input,
  5310. pb::ExtensionRegistry extensionRegistry) {
  5311. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5312. .BuildParsed();
  5313. }
  5314. public static Builder CreateBuilder() { return new Builder(); }
  5315. public override Builder CreateBuilderForType() { return new Builder(); }
  5316. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestAllExtensions prototype) {
  5317. return (Builder) new Builder().MergeFrom(prototype);
  5318. }
  5319. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestAllExtensions, global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Builder> {
  5320. protected override Builder ThisBuilder {
  5321. get { return this; }
  5322. }
  5323. // Construct using global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.CreateBuilder()
  5324. public Builder() {}
  5325. global::Google.ProtocolBuffers.TestProtos.TestAllExtensions result = new global::Google.ProtocolBuffers.TestProtos.TestAllExtensions();
  5326. protected override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions MessageBeingBuilt {
  5327. get { return result; }
  5328. }
  5329. public override Builder Clear() {
  5330. result = new global::Google.ProtocolBuffers.TestProtos.TestAllExtensions();
  5331. return this;
  5332. }
  5333. public override Builder Clone() {
  5334. return new Builder().MergeFrom(result);
  5335. }
  5336. public override pbd::MessageDescriptor DescriptorForType {
  5337. get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.Descriptor; }
  5338. }
  5339. public override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions DefaultInstanceForType {
  5340. get { return global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance; }
  5341. }
  5342. public override global::Google.ProtocolBuffers.TestProtos.TestAllExtensions BuildPartial() {
  5343. global::Google.ProtocolBuffers.TestProtos.TestAllExtensions returnMe = result;
  5344. result = null;
  5345. return returnMe;
  5346. }
  5347. public override Builder MergeFrom(pb::IMessage other) {
  5348. if (other is global::Google.ProtocolBuffers.TestProtos.TestAllExtensions) {
  5349. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestAllExtensions) other);
  5350. } else {
  5351. base.MergeFrom(other);
  5352. return this;
  5353. }
  5354. }
  5355. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestAllExtensions other) {
  5356. if (other == global::Google.ProtocolBuffers.TestProtos.TestAllExtensions.DefaultInstance) return this;
  5357. this.MergeUnknownFields(other.UnknownFields);
  5358. return this;
  5359. }
  5360. public override Builder MergeFrom(pb::CodedInputStream input) {
  5361. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5362. }
  5363. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5364. pb::UnknownFieldSet.Builder unknownFields =
  5365. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5366. while (true) {
  5367. uint tag = input.ReadTag();
  5368. switch (tag) {
  5369. case 0:
  5370. this.UnknownFields = unknownFields.Build();
  5371. return this;
  5372. default: {
  5373. if (!ParseUnknownField(input, unknownFields,
  5374. extensionRegistry, tag)) {
  5375. this.UnknownFields = unknownFields.Build();
  5376. return this;
  5377. }
  5378. break;
  5379. }
  5380. }
  5381. }
  5382. }
  5383. }
  5384. }
  5385. public sealed partial class OptionalGroup_extension : pb::GeneratedMessage<OptionalGroup_extension, OptionalGroup_extension.Builder> {
  5386. private static readonly OptionalGroup_extension defaultInstance = new OptionalGroup_extension();
  5387. public static OptionalGroup_extension DefaultInstance {
  5388. get { return defaultInstance; }
  5389. }
  5390. public override OptionalGroup_extension DefaultInstanceForType {
  5391. get { return defaultInstance; }
  5392. }
  5393. protected override OptionalGroup_extension ThisMessage {
  5394. get { return this; }
  5395. }
  5396. public static pbd::MessageDescriptor Descriptor {
  5397. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__Descriptor; }
  5398. }
  5399. protected override pb::FieldAccess.FieldAccessorTable<OptionalGroup_extension, OptionalGroup_extension.Builder> InternalFieldAccessors {
  5400. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_OptionalGroup_extension__FieldAccessorTable; }
  5401. }
  5402. // optional int32 a = 17;
  5403. private bool hasA;
  5404. private int a_ = 0;
  5405. public bool HasA {
  5406. get { return hasA; }
  5407. }
  5408. public int A {
  5409. get { return a_; }
  5410. }
  5411. public override bool IsInitialized {
  5412. get {
  5413. return true;
  5414. }
  5415. }
  5416. public override void WriteTo(pb::CodedOutputStream output) {
  5417. if (HasA) {
  5418. output.WriteInt32(17, A);
  5419. }
  5420. UnknownFields.WriteTo(output);
  5421. }
  5422. private int memoizedSerializedSize = -1;
  5423. public override int SerializedSize {
  5424. get {
  5425. int size = memoizedSerializedSize;
  5426. if (size != -1) return size;
  5427. size = 0;
  5428. if (HasA) {
  5429. size += pb::CodedOutputStream.ComputeInt32Size(17, A);
  5430. }
  5431. size += UnknownFields.SerializedSize;
  5432. memoizedSerializedSize = size;
  5433. return size;
  5434. }
  5435. }
  5436. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::ByteString data) {
  5437. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5438. }
  5439. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::ByteString data,
  5440. pb::ExtensionRegistry extensionRegistry) {
  5441. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5442. .BuildParsed();
  5443. }
  5444. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(byte[] data) {
  5445. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5446. }
  5447. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(byte[] data,
  5448. pb::ExtensionRegistry extensionRegistry) {
  5449. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5450. .BuildParsed();
  5451. }
  5452. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(global::System.IO.Stream input) {
  5453. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5454. }
  5455. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(
  5456. global::System.IO.Stream input,
  5457. pb::ExtensionRegistry extensionRegistry) {
  5458. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5459. .BuildParsed();
  5460. }
  5461. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::CodedInputStream input) {
  5462. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5463. }
  5464. public static global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension ParseFrom(pb::CodedInputStream input,
  5465. pb::ExtensionRegistry extensionRegistry) {
  5466. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5467. .BuildParsed();
  5468. }
  5469. public static Builder CreateBuilder() { return new Builder(); }
  5470. public override Builder CreateBuilderForType() { return new Builder(); }
  5471. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension prototype) {
  5472. return (Builder) new Builder().MergeFrom(prototype);
  5473. }
  5474. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension, Builder> {
  5475. protected override Builder ThisBuilder {
  5476. get { return this; }
  5477. }
  5478. // Construct using global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.CreateBuilder()
  5479. public Builder() {}
  5480. global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension result = new global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension();
  5481. protected override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension MessageBeingBuilt {
  5482. get { return result; }
  5483. }
  5484. public override Builder Clear() {
  5485. result = new global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension();
  5486. return this;
  5487. }
  5488. public override Builder Clone() {
  5489. return new Builder().MergeFrom(result);
  5490. }
  5491. public override pbd::MessageDescriptor DescriptorForType {
  5492. get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.Descriptor; }
  5493. }
  5494. public override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension DefaultInstanceForType {
  5495. get { return global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance; }
  5496. }
  5497. public override global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension BuildPartial() {
  5498. global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension returnMe = result;
  5499. result = null;
  5500. return returnMe;
  5501. }
  5502. public override Builder MergeFrom(pb::IMessage other) {
  5503. if (other is global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension) {
  5504. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension) other);
  5505. } else {
  5506. base.MergeFrom(other);
  5507. return this;
  5508. }
  5509. }
  5510. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension other) {
  5511. if (other == global::Google.ProtocolBuffers.TestProtos.OptionalGroup_extension.DefaultInstance) return this;
  5512. if (other.HasA) {
  5513. A = other.A;
  5514. }
  5515. this.MergeUnknownFields(other.UnknownFields);
  5516. return this;
  5517. }
  5518. public override Builder MergeFrom(pb::CodedInputStream input) {
  5519. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5520. }
  5521. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5522. pb::UnknownFieldSet.Builder unknownFields =
  5523. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5524. while (true) {
  5525. uint tag = input.ReadTag();
  5526. switch (tag) {
  5527. case 0:
  5528. this.UnknownFields = unknownFields.Build();
  5529. return this;
  5530. default: {
  5531. if (!ParseUnknownField(input, unknownFields,
  5532. extensionRegistry, tag)) {
  5533. this.UnknownFields = unknownFields.Build();
  5534. return this;
  5535. }
  5536. break;
  5537. }
  5538. case 136: {
  5539. A = input.ReadInt32();
  5540. break;
  5541. }
  5542. }
  5543. }
  5544. }
  5545. // optional int32 a = 17;
  5546. public bool HasA {
  5547. get { return result.HasA; }
  5548. }
  5549. public int A {
  5550. get { return result.A; }
  5551. set { SetA(value); }
  5552. }
  5553. public Builder SetA(int value) {
  5554. result.hasA = true;
  5555. result.a_ = value;
  5556. return this;
  5557. }
  5558. public Builder ClearA() {
  5559. result.hasA = false;
  5560. result.a_ = 0;
  5561. return this;
  5562. }
  5563. }
  5564. }
  5565. public sealed partial class RepeatedGroup_extension : pb::GeneratedMessage<RepeatedGroup_extension, RepeatedGroup_extension.Builder> {
  5566. private static readonly RepeatedGroup_extension defaultInstance = new RepeatedGroup_extension();
  5567. public static RepeatedGroup_extension DefaultInstance {
  5568. get { return defaultInstance; }
  5569. }
  5570. public override RepeatedGroup_extension DefaultInstanceForType {
  5571. get { return defaultInstance; }
  5572. }
  5573. protected override RepeatedGroup_extension ThisMessage {
  5574. get { return this; }
  5575. }
  5576. public static pbd::MessageDescriptor Descriptor {
  5577. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__Descriptor; }
  5578. }
  5579. protected override pb::FieldAccess.FieldAccessorTable<RepeatedGroup_extension, RepeatedGroup_extension.Builder> InternalFieldAccessors {
  5580. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_RepeatedGroup_extension__FieldAccessorTable; }
  5581. }
  5582. // optional int32 a = 47;
  5583. private bool hasA;
  5584. private int a_ = 0;
  5585. public bool HasA {
  5586. get { return hasA; }
  5587. }
  5588. public int A {
  5589. get { return a_; }
  5590. }
  5591. public override bool IsInitialized {
  5592. get {
  5593. return true;
  5594. }
  5595. }
  5596. public override void WriteTo(pb::CodedOutputStream output) {
  5597. if (HasA) {
  5598. output.WriteInt32(47, A);
  5599. }
  5600. UnknownFields.WriteTo(output);
  5601. }
  5602. private int memoizedSerializedSize = -1;
  5603. public override int SerializedSize {
  5604. get {
  5605. int size = memoizedSerializedSize;
  5606. if (size != -1) return size;
  5607. size = 0;
  5608. if (HasA) {
  5609. size += pb::CodedOutputStream.ComputeInt32Size(47, A);
  5610. }
  5611. size += UnknownFields.SerializedSize;
  5612. memoizedSerializedSize = size;
  5613. return size;
  5614. }
  5615. }
  5616. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::ByteString data) {
  5617. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5618. }
  5619. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::ByteString data,
  5620. pb::ExtensionRegistry extensionRegistry) {
  5621. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5622. .BuildParsed();
  5623. }
  5624. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(byte[] data) {
  5625. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5626. }
  5627. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(byte[] data,
  5628. pb::ExtensionRegistry extensionRegistry) {
  5629. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5630. .BuildParsed();
  5631. }
  5632. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(global::System.IO.Stream input) {
  5633. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5634. }
  5635. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(
  5636. global::System.IO.Stream input,
  5637. pb::ExtensionRegistry extensionRegistry) {
  5638. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5639. .BuildParsed();
  5640. }
  5641. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::CodedInputStream input) {
  5642. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5643. }
  5644. public static global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension ParseFrom(pb::CodedInputStream input,
  5645. pb::ExtensionRegistry extensionRegistry) {
  5646. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5647. .BuildParsed();
  5648. }
  5649. public static Builder CreateBuilder() { return new Builder(); }
  5650. public override Builder CreateBuilderForType() { return new Builder(); }
  5651. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension prototype) {
  5652. return (Builder) new Builder().MergeFrom(prototype);
  5653. }
  5654. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension, Builder> {
  5655. protected override Builder ThisBuilder {
  5656. get { return this; }
  5657. }
  5658. // Construct using global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.CreateBuilder()
  5659. public Builder() {}
  5660. global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension result = new global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension();
  5661. protected override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension MessageBeingBuilt {
  5662. get { return result; }
  5663. }
  5664. public override Builder Clear() {
  5665. result = new global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension();
  5666. return this;
  5667. }
  5668. public override Builder Clone() {
  5669. return new Builder().MergeFrom(result);
  5670. }
  5671. public override pbd::MessageDescriptor DescriptorForType {
  5672. get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.Descriptor; }
  5673. }
  5674. public override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension DefaultInstanceForType {
  5675. get { return global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance; }
  5676. }
  5677. public override global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension BuildPartial() {
  5678. global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension returnMe = result;
  5679. result = null;
  5680. return returnMe;
  5681. }
  5682. public override Builder MergeFrom(pb::IMessage other) {
  5683. if (other is global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension) {
  5684. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension) other);
  5685. } else {
  5686. base.MergeFrom(other);
  5687. return this;
  5688. }
  5689. }
  5690. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension other) {
  5691. if (other == global::Google.ProtocolBuffers.TestProtos.RepeatedGroup_extension.DefaultInstance) return this;
  5692. if (other.HasA) {
  5693. A = other.A;
  5694. }
  5695. this.MergeUnknownFields(other.UnknownFields);
  5696. return this;
  5697. }
  5698. public override Builder MergeFrom(pb::CodedInputStream input) {
  5699. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5700. }
  5701. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5702. pb::UnknownFieldSet.Builder unknownFields =
  5703. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5704. while (true) {
  5705. uint tag = input.ReadTag();
  5706. switch (tag) {
  5707. case 0:
  5708. this.UnknownFields = unknownFields.Build();
  5709. return this;
  5710. default: {
  5711. if (!ParseUnknownField(input, unknownFields,
  5712. extensionRegistry, tag)) {
  5713. this.UnknownFields = unknownFields.Build();
  5714. return this;
  5715. }
  5716. break;
  5717. }
  5718. case 376: {
  5719. A = input.ReadInt32();
  5720. break;
  5721. }
  5722. }
  5723. }
  5724. }
  5725. // optional int32 a = 47;
  5726. public bool HasA {
  5727. get { return result.HasA; }
  5728. }
  5729. public int A {
  5730. get { return result.A; }
  5731. set { SetA(value); }
  5732. }
  5733. public Builder SetA(int value) {
  5734. result.hasA = true;
  5735. result.a_ = value;
  5736. return this;
  5737. }
  5738. public Builder ClearA() {
  5739. result.hasA = false;
  5740. result.a_ = 0;
  5741. return this;
  5742. }
  5743. }
  5744. }
  5745. public sealed partial class TestRequired : pb::GeneratedMessage<TestRequired, TestRequired.Builder> {
  5746. private static readonly TestRequired defaultInstance = new TestRequired();
  5747. public static TestRequired DefaultInstance {
  5748. get { return defaultInstance; }
  5749. }
  5750. public override TestRequired DefaultInstanceForType {
  5751. get { return defaultInstance; }
  5752. }
  5753. protected override TestRequired ThisMessage {
  5754. get { return this; }
  5755. }
  5756. public static pbd::MessageDescriptor Descriptor {
  5757. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__Descriptor; }
  5758. }
  5759. protected override pb::FieldAccess.FieldAccessorTable<TestRequired, TestRequired.Builder> InternalFieldAccessors {
  5760. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequired__FieldAccessorTable; }
  5761. }
  5762. public static readonly pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.TestProtos.TestRequired> Single =
  5763. pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[0]);
  5764. public static readonly
  5765. pb::GeneratedExtensionBase<scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired>> Multi =
  5766. pb::GeneratedRepeatExtension<global::Google.ProtocolBuffers.TestProtos.TestRequired>.CreateInstance(Descriptor.Extensions[1]);
  5767. #region Nested types
  5768. public static class Types {
  5769. }
  5770. #endregion
  5771. // required int32 a = 1;
  5772. private bool hasA;
  5773. private int a_ = 0;
  5774. public bool HasA {
  5775. get { return hasA; }
  5776. }
  5777. public int A {
  5778. get { return a_; }
  5779. }
  5780. // optional int32 dummy2 = 2;
  5781. private bool hasDummy2;
  5782. private int dummy2_ = 0;
  5783. public bool HasDummy2 {
  5784. get { return hasDummy2; }
  5785. }
  5786. public int Dummy2 {
  5787. get { return dummy2_; }
  5788. }
  5789. // required int32 b = 3;
  5790. private bool hasB;
  5791. private int b_ = 0;
  5792. public bool HasB {
  5793. get { return hasB; }
  5794. }
  5795. public int B {
  5796. get { return b_; }
  5797. }
  5798. // optional int32 dummy4 = 4;
  5799. private bool hasDummy4;
  5800. private int dummy4_ = 0;
  5801. public bool HasDummy4 {
  5802. get { return hasDummy4; }
  5803. }
  5804. public int Dummy4 {
  5805. get { return dummy4_; }
  5806. }
  5807. // optional int32 dummy5 = 5;
  5808. private bool hasDummy5;
  5809. private int dummy5_ = 0;
  5810. public bool HasDummy5 {
  5811. get { return hasDummy5; }
  5812. }
  5813. public int Dummy5 {
  5814. get { return dummy5_; }
  5815. }
  5816. // optional int32 dummy6 = 6;
  5817. private bool hasDummy6;
  5818. private int dummy6_ = 0;
  5819. public bool HasDummy6 {
  5820. get { return hasDummy6; }
  5821. }
  5822. public int Dummy6 {
  5823. get { return dummy6_; }
  5824. }
  5825. // optional int32 dummy7 = 7;
  5826. private bool hasDummy7;
  5827. private int dummy7_ = 0;
  5828. public bool HasDummy7 {
  5829. get { return hasDummy7; }
  5830. }
  5831. public int Dummy7 {
  5832. get { return dummy7_; }
  5833. }
  5834. // optional int32 dummy8 = 8;
  5835. private bool hasDummy8;
  5836. private int dummy8_ = 0;
  5837. public bool HasDummy8 {
  5838. get { return hasDummy8; }
  5839. }
  5840. public int Dummy8 {
  5841. get { return dummy8_; }
  5842. }
  5843. // optional int32 dummy9 = 9;
  5844. private bool hasDummy9;
  5845. private int dummy9_ = 0;
  5846. public bool HasDummy9 {
  5847. get { return hasDummy9; }
  5848. }
  5849. public int Dummy9 {
  5850. get { return dummy9_; }
  5851. }
  5852. // optional int32 dummy10 = 10;
  5853. private bool hasDummy10;
  5854. private int dummy10_ = 0;
  5855. public bool HasDummy10 {
  5856. get { return hasDummy10; }
  5857. }
  5858. public int Dummy10 {
  5859. get { return dummy10_; }
  5860. }
  5861. // optional int32 dummy11 = 11;
  5862. private bool hasDummy11;
  5863. private int dummy11_ = 0;
  5864. public bool HasDummy11 {
  5865. get { return hasDummy11; }
  5866. }
  5867. public int Dummy11 {
  5868. get { return dummy11_; }
  5869. }
  5870. // optional int32 dummy12 = 12;
  5871. private bool hasDummy12;
  5872. private int dummy12_ = 0;
  5873. public bool HasDummy12 {
  5874. get { return hasDummy12; }
  5875. }
  5876. public int Dummy12 {
  5877. get { return dummy12_; }
  5878. }
  5879. // optional int32 dummy13 = 13;
  5880. private bool hasDummy13;
  5881. private int dummy13_ = 0;
  5882. public bool HasDummy13 {
  5883. get { return hasDummy13; }
  5884. }
  5885. public int Dummy13 {
  5886. get { return dummy13_; }
  5887. }
  5888. // optional int32 dummy14 = 14;
  5889. private bool hasDummy14;
  5890. private int dummy14_ = 0;
  5891. public bool HasDummy14 {
  5892. get { return hasDummy14; }
  5893. }
  5894. public int Dummy14 {
  5895. get { return dummy14_; }
  5896. }
  5897. // optional int32 dummy15 = 15;
  5898. private bool hasDummy15;
  5899. private int dummy15_ = 0;
  5900. public bool HasDummy15 {
  5901. get { return hasDummy15; }
  5902. }
  5903. public int Dummy15 {
  5904. get { return dummy15_; }
  5905. }
  5906. // optional int32 dummy16 = 16;
  5907. private bool hasDummy16;
  5908. private int dummy16_ = 0;
  5909. public bool HasDummy16 {
  5910. get { return hasDummy16; }
  5911. }
  5912. public int Dummy16 {
  5913. get { return dummy16_; }
  5914. }
  5915. // optional int32 dummy17 = 17;
  5916. private bool hasDummy17;
  5917. private int dummy17_ = 0;
  5918. public bool HasDummy17 {
  5919. get { return hasDummy17; }
  5920. }
  5921. public int Dummy17 {
  5922. get { return dummy17_; }
  5923. }
  5924. // optional int32 dummy18 = 18;
  5925. private bool hasDummy18;
  5926. private int dummy18_ = 0;
  5927. public bool HasDummy18 {
  5928. get { return hasDummy18; }
  5929. }
  5930. public int Dummy18 {
  5931. get { return dummy18_; }
  5932. }
  5933. // optional int32 dummy19 = 19;
  5934. private bool hasDummy19;
  5935. private int dummy19_ = 0;
  5936. public bool HasDummy19 {
  5937. get { return hasDummy19; }
  5938. }
  5939. public int Dummy19 {
  5940. get { return dummy19_; }
  5941. }
  5942. // optional int32 dummy20 = 20;
  5943. private bool hasDummy20;
  5944. private int dummy20_ = 0;
  5945. public bool HasDummy20 {
  5946. get { return hasDummy20; }
  5947. }
  5948. public int Dummy20 {
  5949. get { return dummy20_; }
  5950. }
  5951. // optional int32 dummy21 = 21;
  5952. private bool hasDummy21;
  5953. private int dummy21_ = 0;
  5954. public bool HasDummy21 {
  5955. get { return hasDummy21; }
  5956. }
  5957. public int Dummy21 {
  5958. get { return dummy21_; }
  5959. }
  5960. // optional int32 dummy22 = 22;
  5961. private bool hasDummy22;
  5962. private int dummy22_ = 0;
  5963. public bool HasDummy22 {
  5964. get { return hasDummy22; }
  5965. }
  5966. public int Dummy22 {
  5967. get { return dummy22_; }
  5968. }
  5969. // optional int32 dummy23 = 23;
  5970. private bool hasDummy23;
  5971. private int dummy23_ = 0;
  5972. public bool HasDummy23 {
  5973. get { return hasDummy23; }
  5974. }
  5975. public int Dummy23 {
  5976. get { return dummy23_; }
  5977. }
  5978. // optional int32 dummy24 = 24;
  5979. private bool hasDummy24;
  5980. private int dummy24_ = 0;
  5981. public bool HasDummy24 {
  5982. get { return hasDummy24; }
  5983. }
  5984. public int Dummy24 {
  5985. get { return dummy24_; }
  5986. }
  5987. // optional int32 dummy25 = 25;
  5988. private bool hasDummy25;
  5989. private int dummy25_ = 0;
  5990. public bool HasDummy25 {
  5991. get { return hasDummy25; }
  5992. }
  5993. public int Dummy25 {
  5994. get { return dummy25_; }
  5995. }
  5996. // optional int32 dummy26 = 26;
  5997. private bool hasDummy26;
  5998. private int dummy26_ = 0;
  5999. public bool HasDummy26 {
  6000. get { return hasDummy26; }
  6001. }
  6002. public int Dummy26 {
  6003. get { return dummy26_; }
  6004. }
  6005. // optional int32 dummy27 = 27;
  6006. private bool hasDummy27;
  6007. private int dummy27_ = 0;
  6008. public bool HasDummy27 {
  6009. get { return hasDummy27; }
  6010. }
  6011. public int Dummy27 {
  6012. get { return dummy27_; }
  6013. }
  6014. // optional int32 dummy28 = 28;
  6015. private bool hasDummy28;
  6016. private int dummy28_ = 0;
  6017. public bool HasDummy28 {
  6018. get { return hasDummy28; }
  6019. }
  6020. public int Dummy28 {
  6021. get { return dummy28_; }
  6022. }
  6023. // optional int32 dummy29 = 29;
  6024. private bool hasDummy29;
  6025. private int dummy29_ = 0;
  6026. public bool HasDummy29 {
  6027. get { return hasDummy29; }
  6028. }
  6029. public int Dummy29 {
  6030. get { return dummy29_; }
  6031. }
  6032. // optional int32 dummy30 = 30;
  6033. private bool hasDummy30;
  6034. private int dummy30_ = 0;
  6035. public bool HasDummy30 {
  6036. get { return hasDummy30; }
  6037. }
  6038. public int Dummy30 {
  6039. get { return dummy30_; }
  6040. }
  6041. // optional int32 dummy31 = 31;
  6042. private bool hasDummy31;
  6043. private int dummy31_ = 0;
  6044. public bool HasDummy31 {
  6045. get { return hasDummy31; }
  6046. }
  6047. public int Dummy31 {
  6048. get { return dummy31_; }
  6049. }
  6050. // optional int32 dummy32 = 32;
  6051. private bool hasDummy32;
  6052. private int dummy32_ = 0;
  6053. public bool HasDummy32 {
  6054. get { return hasDummy32; }
  6055. }
  6056. public int Dummy32 {
  6057. get { return dummy32_; }
  6058. }
  6059. // required int32 c = 33;
  6060. private bool hasC;
  6061. private int c_ = 0;
  6062. public bool HasC {
  6063. get { return hasC; }
  6064. }
  6065. public int C {
  6066. get { return c_; }
  6067. }
  6068. public override bool IsInitialized {
  6069. get {
  6070. if (!hasA) return false;
  6071. if (!hasB) return false;
  6072. if (!hasC) return false;
  6073. return true;
  6074. }
  6075. }
  6076. public override void WriteTo(pb::CodedOutputStream output) {
  6077. if (HasA) {
  6078. output.WriteInt32(1, A);
  6079. }
  6080. if (HasDummy2) {
  6081. output.WriteInt32(2, Dummy2);
  6082. }
  6083. if (HasB) {
  6084. output.WriteInt32(3, B);
  6085. }
  6086. if (HasDummy4) {
  6087. output.WriteInt32(4, Dummy4);
  6088. }
  6089. if (HasDummy5) {
  6090. output.WriteInt32(5, Dummy5);
  6091. }
  6092. if (HasDummy6) {
  6093. output.WriteInt32(6, Dummy6);
  6094. }
  6095. if (HasDummy7) {
  6096. output.WriteInt32(7, Dummy7);
  6097. }
  6098. if (HasDummy8) {
  6099. output.WriteInt32(8, Dummy8);
  6100. }
  6101. if (HasDummy9) {
  6102. output.WriteInt32(9, Dummy9);
  6103. }
  6104. if (HasDummy10) {
  6105. output.WriteInt32(10, Dummy10);
  6106. }
  6107. if (HasDummy11) {
  6108. output.WriteInt32(11, Dummy11);
  6109. }
  6110. if (HasDummy12) {
  6111. output.WriteInt32(12, Dummy12);
  6112. }
  6113. if (HasDummy13) {
  6114. output.WriteInt32(13, Dummy13);
  6115. }
  6116. if (HasDummy14) {
  6117. output.WriteInt32(14, Dummy14);
  6118. }
  6119. if (HasDummy15) {
  6120. output.WriteInt32(15, Dummy15);
  6121. }
  6122. if (HasDummy16) {
  6123. output.WriteInt32(16, Dummy16);
  6124. }
  6125. if (HasDummy17) {
  6126. output.WriteInt32(17, Dummy17);
  6127. }
  6128. if (HasDummy18) {
  6129. output.WriteInt32(18, Dummy18);
  6130. }
  6131. if (HasDummy19) {
  6132. output.WriteInt32(19, Dummy19);
  6133. }
  6134. if (HasDummy20) {
  6135. output.WriteInt32(20, Dummy20);
  6136. }
  6137. if (HasDummy21) {
  6138. output.WriteInt32(21, Dummy21);
  6139. }
  6140. if (HasDummy22) {
  6141. output.WriteInt32(22, Dummy22);
  6142. }
  6143. if (HasDummy23) {
  6144. output.WriteInt32(23, Dummy23);
  6145. }
  6146. if (HasDummy24) {
  6147. output.WriteInt32(24, Dummy24);
  6148. }
  6149. if (HasDummy25) {
  6150. output.WriteInt32(25, Dummy25);
  6151. }
  6152. if (HasDummy26) {
  6153. output.WriteInt32(26, Dummy26);
  6154. }
  6155. if (HasDummy27) {
  6156. output.WriteInt32(27, Dummy27);
  6157. }
  6158. if (HasDummy28) {
  6159. output.WriteInt32(28, Dummy28);
  6160. }
  6161. if (HasDummy29) {
  6162. output.WriteInt32(29, Dummy29);
  6163. }
  6164. if (HasDummy30) {
  6165. output.WriteInt32(30, Dummy30);
  6166. }
  6167. if (HasDummy31) {
  6168. output.WriteInt32(31, Dummy31);
  6169. }
  6170. if (HasDummy32) {
  6171. output.WriteInt32(32, Dummy32);
  6172. }
  6173. if (HasC) {
  6174. output.WriteInt32(33, C);
  6175. }
  6176. UnknownFields.WriteTo(output);
  6177. }
  6178. private int memoizedSerializedSize = -1;
  6179. public override int SerializedSize {
  6180. get {
  6181. int size = memoizedSerializedSize;
  6182. if (size != -1) return size;
  6183. size = 0;
  6184. if (HasA) {
  6185. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  6186. }
  6187. if (HasDummy2) {
  6188. size += pb::CodedOutputStream.ComputeInt32Size(2, Dummy2);
  6189. }
  6190. if (HasB) {
  6191. size += pb::CodedOutputStream.ComputeInt32Size(3, B);
  6192. }
  6193. if (HasDummy4) {
  6194. size += pb::CodedOutputStream.ComputeInt32Size(4, Dummy4);
  6195. }
  6196. if (HasDummy5) {
  6197. size += pb::CodedOutputStream.ComputeInt32Size(5, Dummy5);
  6198. }
  6199. if (HasDummy6) {
  6200. size += pb::CodedOutputStream.ComputeInt32Size(6, Dummy6);
  6201. }
  6202. if (HasDummy7) {
  6203. size += pb::CodedOutputStream.ComputeInt32Size(7, Dummy7);
  6204. }
  6205. if (HasDummy8) {
  6206. size += pb::CodedOutputStream.ComputeInt32Size(8, Dummy8);
  6207. }
  6208. if (HasDummy9) {
  6209. size += pb::CodedOutputStream.ComputeInt32Size(9, Dummy9);
  6210. }
  6211. if (HasDummy10) {
  6212. size += pb::CodedOutputStream.ComputeInt32Size(10, Dummy10);
  6213. }
  6214. if (HasDummy11) {
  6215. size += pb::CodedOutputStream.ComputeInt32Size(11, Dummy11);
  6216. }
  6217. if (HasDummy12) {
  6218. size += pb::CodedOutputStream.ComputeInt32Size(12, Dummy12);
  6219. }
  6220. if (HasDummy13) {
  6221. size += pb::CodedOutputStream.ComputeInt32Size(13, Dummy13);
  6222. }
  6223. if (HasDummy14) {
  6224. size += pb::CodedOutputStream.ComputeInt32Size(14, Dummy14);
  6225. }
  6226. if (HasDummy15) {
  6227. size += pb::CodedOutputStream.ComputeInt32Size(15, Dummy15);
  6228. }
  6229. if (HasDummy16) {
  6230. size += pb::CodedOutputStream.ComputeInt32Size(16, Dummy16);
  6231. }
  6232. if (HasDummy17) {
  6233. size += pb::CodedOutputStream.ComputeInt32Size(17, Dummy17);
  6234. }
  6235. if (HasDummy18) {
  6236. size += pb::CodedOutputStream.ComputeInt32Size(18, Dummy18);
  6237. }
  6238. if (HasDummy19) {
  6239. size += pb::CodedOutputStream.ComputeInt32Size(19, Dummy19);
  6240. }
  6241. if (HasDummy20) {
  6242. size += pb::CodedOutputStream.ComputeInt32Size(20, Dummy20);
  6243. }
  6244. if (HasDummy21) {
  6245. size += pb::CodedOutputStream.ComputeInt32Size(21, Dummy21);
  6246. }
  6247. if (HasDummy22) {
  6248. size += pb::CodedOutputStream.ComputeInt32Size(22, Dummy22);
  6249. }
  6250. if (HasDummy23) {
  6251. size += pb::CodedOutputStream.ComputeInt32Size(23, Dummy23);
  6252. }
  6253. if (HasDummy24) {
  6254. size += pb::CodedOutputStream.ComputeInt32Size(24, Dummy24);
  6255. }
  6256. if (HasDummy25) {
  6257. size += pb::CodedOutputStream.ComputeInt32Size(25, Dummy25);
  6258. }
  6259. if (HasDummy26) {
  6260. size += pb::CodedOutputStream.ComputeInt32Size(26, Dummy26);
  6261. }
  6262. if (HasDummy27) {
  6263. size += pb::CodedOutputStream.ComputeInt32Size(27, Dummy27);
  6264. }
  6265. if (HasDummy28) {
  6266. size += pb::CodedOutputStream.ComputeInt32Size(28, Dummy28);
  6267. }
  6268. if (HasDummy29) {
  6269. size += pb::CodedOutputStream.ComputeInt32Size(29, Dummy29);
  6270. }
  6271. if (HasDummy30) {
  6272. size += pb::CodedOutputStream.ComputeInt32Size(30, Dummy30);
  6273. }
  6274. if (HasDummy31) {
  6275. size += pb::CodedOutputStream.ComputeInt32Size(31, Dummy31);
  6276. }
  6277. if (HasDummy32) {
  6278. size += pb::CodedOutputStream.ComputeInt32Size(32, Dummy32);
  6279. }
  6280. if (HasC) {
  6281. size += pb::CodedOutputStream.ComputeInt32Size(33, C);
  6282. }
  6283. size += UnknownFields.SerializedSize;
  6284. memoizedSerializedSize = size;
  6285. return size;
  6286. }
  6287. }
  6288. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::ByteString data) {
  6289. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6290. }
  6291. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::ByteString data,
  6292. pb::ExtensionRegistry extensionRegistry) {
  6293. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6294. .BuildParsed();
  6295. }
  6296. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(byte[] data) {
  6297. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6298. }
  6299. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(byte[] data,
  6300. pb::ExtensionRegistry extensionRegistry) {
  6301. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  6302. .BuildParsed();
  6303. }
  6304. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(global::System.IO.Stream input) {
  6305. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6306. }
  6307. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(
  6308. global::System.IO.Stream input,
  6309. pb::ExtensionRegistry extensionRegistry) {
  6310. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6311. .BuildParsed();
  6312. }
  6313. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::CodedInputStream input) {
  6314. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6315. }
  6316. public static global::Google.ProtocolBuffers.TestProtos.TestRequired ParseFrom(pb::CodedInputStream input,
  6317. pb::ExtensionRegistry extensionRegistry) {
  6318. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  6319. .BuildParsed();
  6320. }
  6321. public static Builder CreateBuilder() { return new Builder(); }
  6322. public override Builder CreateBuilderForType() { return new Builder(); }
  6323. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRequired prototype) {
  6324. return (Builder) new Builder().MergeFrom(prototype);
  6325. }
  6326. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRequired, Builder> {
  6327. protected override Builder ThisBuilder {
  6328. get { return this; }
  6329. }
  6330. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder()
  6331. public Builder() {}
  6332. global::Google.ProtocolBuffers.TestProtos.TestRequired result = new global::Google.ProtocolBuffers.TestProtos.TestRequired();
  6333. protected override global::Google.ProtocolBuffers.TestProtos.TestRequired MessageBeingBuilt {
  6334. get { return result; }
  6335. }
  6336. public override Builder Clear() {
  6337. result = new global::Google.ProtocolBuffers.TestProtos.TestRequired();
  6338. return this;
  6339. }
  6340. public override Builder Clone() {
  6341. return new Builder().MergeFrom(result);
  6342. }
  6343. public override pbd::MessageDescriptor DescriptorForType {
  6344. get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.Descriptor; }
  6345. }
  6346. public override global::Google.ProtocolBuffers.TestProtos.TestRequired DefaultInstanceForType {
  6347. get { return global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance; }
  6348. }
  6349. public override global::Google.ProtocolBuffers.TestProtos.TestRequired BuildPartial() {
  6350. global::Google.ProtocolBuffers.TestProtos.TestRequired returnMe = result;
  6351. result = null;
  6352. return returnMe;
  6353. }
  6354. public override Builder MergeFrom(pb::IMessage other) {
  6355. if (other is global::Google.ProtocolBuffers.TestProtos.TestRequired) {
  6356. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRequired) other);
  6357. } else {
  6358. base.MergeFrom(other);
  6359. return this;
  6360. }
  6361. }
  6362. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRequired other) {
  6363. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) return this;
  6364. if (other.HasA) {
  6365. A = other.A;
  6366. }
  6367. if (other.HasDummy2) {
  6368. Dummy2 = other.Dummy2;
  6369. }
  6370. if (other.HasB) {
  6371. B = other.B;
  6372. }
  6373. if (other.HasDummy4) {
  6374. Dummy4 = other.Dummy4;
  6375. }
  6376. if (other.HasDummy5) {
  6377. Dummy5 = other.Dummy5;
  6378. }
  6379. if (other.HasDummy6) {
  6380. Dummy6 = other.Dummy6;
  6381. }
  6382. if (other.HasDummy7) {
  6383. Dummy7 = other.Dummy7;
  6384. }
  6385. if (other.HasDummy8) {
  6386. Dummy8 = other.Dummy8;
  6387. }
  6388. if (other.HasDummy9) {
  6389. Dummy9 = other.Dummy9;
  6390. }
  6391. if (other.HasDummy10) {
  6392. Dummy10 = other.Dummy10;
  6393. }
  6394. if (other.HasDummy11) {
  6395. Dummy11 = other.Dummy11;
  6396. }
  6397. if (other.HasDummy12) {
  6398. Dummy12 = other.Dummy12;
  6399. }
  6400. if (other.HasDummy13) {
  6401. Dummy13 = other.Dummy13;
  6402. }
  6403. if (other.HasDummy14) {
  6404. Dummy14 = other.Dummy14;
  6405. }
  6406. if (other.HasDummy15) {
  6407. Dummy15 = other.Dummy15;
  6408. }
  6409. if (other.HasDummy16) {
  6410. Dummy16 = other.Dummy16;
  6411. }
  6412. if (other.HasDummy17) {
  6413. Dummy17 = other.Dummy17;
  6414. }
  6415. if (other.HasDummy18) {
  6416. Dummy18 = other.Dummy18;
  6417. }
  6418. if (other.HasDummy19) {
  6419. Dummy19 = other.Dummy19;
  6420. }
  6421. if (other.HasDummy20) {
  6422. Dummy20 = other.Dummy20;
  6423. }
  6424. if (other.HasDummy21) {
  6425. Dummy21 = other.Dummy21;
  6426. }
  6427. if (other.HasDummy22) {
  6428. Dummy22 = other.Dummy22;
  6429. }
  6430. if (other.HasDummy23) {
  6431. Dummy23 = other.Dummy23;
  6432. }
  6433. if (other.HasDummy24) {
  6434. Dummy24 = other.Dummy24;
  6435. }
  6436. if (other.HasDummy25) {
  6437. Dummy25 = other.Dummy25;
  6438. }
  6439. if (other.HasDummy26) {
  6440. Dummy26 = other.Dummy26;
  6441. }
  6442. if (other.HasDummy27) {
  6443. Dummy27 = other.Dummy27;
  6444. }
  6445. if (other.HasDummy28) {
  6446. Dummy28 = other.Dummy28;
  6447. }
  6448. if (other.HasDummy29) {
  6449. Dummy29 = other.Dummy29;
  6450. }
  6451. if (other.HasDummy30) {
  6452. Dummy30 = other.Dummy30;
  6453. }
  6454. if (other.HasDummy31) {
  6455. Dummy31 = other.Dummy31;
  6456. }
  6457. if (other.HasDummy32) {
  6458. Dummy32 = other.Dummy32;
  6459. }
  6460. if (other.HasC) {
  6461. C = other.C;
  6462. }
  6463. this.MergeUnknownFields(other.UnknownFields);
  6464. return this;
  6465. }
  6466. public override Builder MergeFrom(pb::CodedInputStream input) {
  6467. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6468. }
  6469. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6470. pb::UnknownFieldSet.Builder unknownFields =
  6471. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6472. while (true) {
  6473. uint tag = input.ReadTag();
  6474. switch (tag) {
  6475. case 0:
  6476. this.UnknownFields = unknownFields.Build();
  6477. return this;
  6478. default: {
  6479. if (!ParseUnknownField(input, unknownFields,
  6480. extensionRegistry, tag)) {
  6481. this.UnknownFields = unknownFields.Build();
  6482. return this;
  6483. }
  6484. break;
  6485. }
  6486. case 8: {
  6487. A = input.ReadInt32();
  6488. break;
  6489. }
  6490. case 16: {
  6491. Dummy2 = input.ReadInt32();
  6492. break;
  6493. }
  6494. case 24: {
  6495. B = input.ReadInt32();
  6496. break;
  6497. }
  6498. case 32: {
  6499. Dummy4 = input.ReadInt32();
  6500. break;
  6501. }
  6502. case 40: {
  6503. Dummy5 = input.ReadInt32();
  6504. break;
  6505. }
  6506. case 48: {
  6507. Dummy6 = input.ReadInt32();
  6508. break;
  6509. }
  6510. case 56: {
  6511. Dummy7 = input.ReadInt32();
  6512. break;
  6513. }
  6514. case 64: {
  6515. Dummy8 = input.ReadInt32();
  6516. break;
  6517. }
  6518. case 72: {
  6519. Dummy9 = input.ReadInt32();
  6520. break;
  6521. }
  6522. case 80: {
  6523. Dummy10 = input.ReadInt32();
  6524. break;
  6525. }
  6526. case 88: {
  6527. Dummy11 = input.ReadInt32();
  6528. break;
  6529. }
  6530. case 96: {
  6531. Dummy12 = input.ReadInt32();
  6532. break;
  6533. }
  6534. case 104: {
  6535. Dummy13 = input.ReadInt32();
  6536. break;
  6537. }
  6538. case 112: {
  6539. Dummy14 = input.ReadInt32();
  6540. break;
  6541. }
  6542. case 120: {
  6543. Dummy15 = input.ReadInt32();
  6544. break;
  6545. }
  6546. case 128: {
  6547. Dummy16 = input.ReadInt32();
  6548. break;
  6549. }
  6550. case 136: {
  6551. Dummy17 = input.ReadInt32();
  6552. break;
  6553. }
  6554. case 144: {
  6555. Dummy18 = input.ReadInt32();
  6556. break;
  6557. }
  6558. case 152: {
  6559. Dummy19 = input.ReadInt32();
  6560. break;
  6561. }
  6562. case 160: {
  6563. Dummy20 = input.ReadInt32();
  6564. break;
  6565. }
  6566. case 168: {
  6567. Dummy21 = input.ReadInt32();
  6568. break;
  6569. }
  6570. case 176: {
  6571. Dummy22 = input.ReadInt32();
  6572. break;
  6573. }
  6574. case 184: {
  6575. Dummy23 = input.ReadInt32();
  6576. break;
  6577. }
  6578. case 192: {
  6579. Dummy24 = input.ReadInt32();
  6580. break;
  6581. }
  6582. case 200: {
  6583. Dummy25 = input.ReadInt32();
  6584. break;
  6585. }
  6586. case 208: {
  6587. Dummy26 = input.ReadInt32();
  6588. break;
  6589. }
  6590. case 216: {
  6591. Dummy27 = input.ReadInt32();
  6592. break;
  6593. }
  6594. case 224: {
  6595. Dummy28 = input.ReadInt32();
  6596. break;
  6597. }
  6598. case 232: {
  6599. Dummy29 = input.ReadInt32();
  6600. break;
  6601. }
  6602. case 240: {
  6603. Dummy30 = input.ReadInt32();
  6604. break;
  6605. }
  6606. case 248: {
  6607. Dummy31 = input.ReadInt32();
  6608. break;
  6609. }
  6610. case 256: {
  6611. Dummy32 = input.ReadInt32();
  6612. break;
  6613. }
  6614. case 264: {
  6615. C = input.ReadInt32();
  6616. break;
  6617. }
  6618. }
  6619. }
  6620. }
  6621. // required int32 a = 1;
  6622. public bool HasA {
  6623. get { return result.HasA; }
  6624. }
  6625. public int A {
  6626. get { return result.A; }
  6627. set { SetA(value); }
  6628. }
  6629. public Builder SetA(int value) {
  6630. result.hasA = true;
  6631. result.a_ = value;
  6632. return this;
  6633. }
  6634. public Builder ClearA() {
  6635. result.hasA = false;
  6636. result.a_ = 0;
  6637. return this;
  6638. }
  6639. // optional int32 dummy2 = 2;
  6640. public bool HasDummy2 {
  6641. get { return result.HasDummy2; }
  6642. }
  6643. public int Dummy2 {
  6644. get { return result.Dummy2; }
  6645. set { SetDummy2(value); }
  6646. }
  6647. public Builder SetDummy2(int value) {
  6648. result.hasDummy2 = true;
  6649. result.dummy2_ = value;
  6650. return this;
  6651. }
  6652. public Builder ClearDummy2() {
  6653. result.hasDummy2 = false;
  6654. result.dummy2_ = 0;
  6655. return this;
  6656. }
  6657. // required int32 b = 3;
  6658. public bool HasB {
  6659. get { return result.HasB; }
  6660. }
  6661. public int B {
  6662. get { return result.B; }
  6663. set { SetB(value); }
  6664. }
  6665. public Builder SetB(int value) {
  6666. result.hasB = true;
  6667. result.b_ = value;
  6668. return this;
  6669. }
  6670. public Builder ClearB() {
  6671. result.hasB = false;
  6672. result.b_ = 0;
  6673. return this;
  6674. }
  6675. // optional int32 dummy4 = 4;
  6676. public bool HasDummy4 {
  6677. get { return result.HasDummy4; }
  6678. }
  6679. public int Dummy4 {
  6680. get { return result.Dummy4; }
  6681. set { SetDummy4(value); }
  6682. }
  6683. public Builder SetDummy4(int value) {
  6684. result.hasDummy4 = true;
  6685. result.dummy4_ = value;
  6686. return this;
  6687. }
  6688. public Builder ClearDummy4() {
  6689. result.hasDummy4 = false;
  6690. result.dummy4_ = 0;
  6691. return this;
  6692. }
  6693. // optional int32 dummy5 = 5;
  6694. public bool HasDummy5 {
  6695. get { return result.HasDummy5; }
  6696. }
  6697. public int Dummy5 {
  6698. get { return result.Dummy5; }
  6699. set { SetDummy5(value); }
  6700. }
  6701. public Builder SetDummy5(int value) {
  6702. result.hasDummy5 = true;
  6703. result.dummy5_ = value;
  6704. return this;
  6705. }
  6706. public Builder ClearDummy5() {
  6707. result.hasDummy5 = false;
  6708. result.dummy5_ = 0;
  6709. return this;
  6710. }
  6711. // optional int32 dummy6 = 6;
  6712. public bool HasDummy6 {
  6713. get { return result.HasDummy6; }
  6714. }
  6715. public int Dummy6 {
  6716. get { return result.Dummy6; }
  6717. set { SetDummy6(value); }
  6718. }
  6719. public Builder SetDummy6(int value) {
  6720. result.hasDummy6 = true;
  6721. result.dummy6_ = value;
  6722. return this;
  6723. }
  6724. public Builder ClearDummy6() {
  6725. result.hasDummy6 = false;
  6726. result.dummy6_ = 0;
  6727. return this;
  6728. }
  6729. // optional int32 dummy7 = 7;
  6730. public bool HasDummy7 {
  6731. get { return result.HasDummy7; }
  6732. }
  6733. public int Dummy7 {
  6734. get { return result.Dummy7; }
  6735. set { SetDummy7(value); }
  6736. }
  6737. public Builder SetDummy7(int value) {
  6738. result.hasDummy7 = true;
  6739. result.dummy7_ = value;
  6740. return this;
  6741. }
  6742. public Builder ClearDummy7() {
  6743. result.hasDummy7 = false;
  6744. result.dummy7_ = 0;
  6745. return this;
  6746. }
  6747. // optional int32 dummy8 = 8;
  6748. public bool HasDummy8 {
  6749. get { return result.HasDummy8; }
  6750. }
  6751. public int Dummy8 {
  6752. get { return result.Dummy8; }
  6753. set { SetDummy8(value); }
  6754. }
  6755. public Builder SetDummy8(int value) {
  6756. result.hasDummy8 = true;
  6757. result.dummy8_ = value;
  6758. return this;
  6759. }
  6760. public Builder ClearDummy8() {
  6761. result.hasDummy8 = false;
  6762. result.dummy8_ = 0;
  6763. return this;
  6764. }
  6765. // optional int32 dummy9 = 9;
  6766. public bool HasDummy9 {
  6767. get { return result.HasDummy9; }
  6768. }
  6769. public int Dummy9 {
  6770. get { return result.Dummy9; }
  6771. set { SetDummy9(value); }
  6772. }
  6773. public Builder SetDummy9(int value) {
  6774. result.hasDummy9 = true;
  6775. result.dummy9_ = value;
  6776. return this;
  6777. }
  6778. public Builder ClearDummy9() {
  6779. result.hasDummy9 = false;
  6780. result.dummy9_ = 0;
  6781. return this;
  6782. }
  6783. // optional int32 dummy10 = 10;
  6784. public bool HasDummy10 {
  6785. get { return result.HasDummy10; }
  6786. }
  6787. public int Dummy10 {
  6788. get { return result.Dummy10; }
  6789. set { SetDummy10(value); }
  6790. }
  6791. public Builder SetDummy10(int value) {
  6792. result.hasDummy10 = true;
  6793. result.dummy10_ = value;
  6794. return this;
  6795. }
  6796. public Builder ClearDummy10() {
  6797. result.hasDummy10 = false;
  6798. result.dummy10_ = 0;
  6799. return this;
  6800. }
  6801. // optional int32 dummy11 = 11;
  6802. public bool HasDummy11 {
  6803. get { return result.HasDummy11; }
  6804. }
  6805. public int Dummy11 {
  6806. get { return result.Dummy11; }
  6807. set { SetDummy11(value); }
  6808. }
  6809. public Builder SetDummy11(int value) {
  6810. result.hasDummy11 = true;
  6811. result.dummy11_ = value;
  6812. return this;
  6813. }
  6814. public Builder ClearDummy11() {
  6815. result.hasDummy11 = false;
  6816. result.dummy11_ = 0;
  6817. return this;
  6818. }
  6819. // optional int32 dummy12 = 12;
  6820. public bool HasDummy12 {
  6821. get { return result.HasDummy12; }
  6822. }
  6823. public int Dummy12 {
  6824. get { return result.Dummy12; }
  6825. set { SetDummy12(value); }
  6826. }
  6827. public Builder SetDummy12(int value) {
  6828. result.hasDummy12 = true;
  6829. result.dummy12_ = value;
  6830. return this;
  6831. }
  6832. public Builder ClearDummy12() {
  6833. result.hasDummy12 = false;
  6834. result.dummy12_ = 0;
  6835. return this;
  6836. }
  6837. // optional int32 dummy13 = 13;
  6838. public bool HasDummy13 {
  6839. get { return result.HasDummy13; }
  6840. }
  6841. public int Dummy13 {
  6842. get { return result.Dummy13; }
  6843. set { SetDummy13(value); }
  6844. }
  6845. public Builder SetDummy13(int value) {
  6846. result.hasDummy13 = true;
  6847. result.dummy13_ = value;
  6848. return this;
  6849. }
  6850. public Builder ClearDummy13() {
  6851. result.hasDummy13 = false;
  6852. result.dummy13_ = 0;
  6853. return this;
  6854. }
  6855. // optional int32 dummy14 = 14;
  6856. public bool HasDummy14 {
  6857. get { return result.HasDummy14; }
  6858. }
  6859. public int Dummy14 {
  6860. get { return result.Dummy14; }
  6861. set { SetDummy14(value); }
  6862. }
  6863. public Builder SetDummy14(int value) {
  6864. result.hasDummy14 = true;
  6865. result.dummy14_ = value;
  6866. return this;
  6867. }
  6868. public Builder ClearDummy14() {
  6869. result.hasDummy14 = false;
  6870. result.dummy14_ = 0;
  6871. return this;
  6872. }
  6873. // optional int32 dummy15 = 15;
  6874. public bool HasDummy15 {
  6875. get { return result.HasDummy15; }
  6876. }
  6877. public int Dummy15 {
  6878. get { return result.Dummy15; }
  6879. set { SetDummy15(value); }
  6880. }
  6881. public Builder SetDummy15(int value) {
  6882. result.hasDummy15 = true;
  6883. result.dummy15_ = value;
  6884. return this;
  6885. }
  6886. public Builder ClearDummy15() {
  6887. result.hasDummy15 = false;
  6888. result.dummy15_ = 0;
  6889. return this;
  6890. }
  6891. // optional int32 dummy16 = 16;
  6892. public bool HasDummy16 {
  6893. get { return result.HasDummy16; }
  6894. }
  6895. public int Dummy16 {
  6896. get { return result.Dummy16; }
  6897. set { SetDummy16(value); }
  6898. }
  6899. public Builder SetDummy16(int value) {
  6900. result.hasDummy16 = true;
  6901. result.dummy16_ = value;
  6902. return this;
  6903. }
  6904. public Builder ClearDummy16() {
  6905. result.hasDummy16 = false;
  6906. result.dummy16_ = 0;
  6907. return this;
  6908. }
  6909. // optional int32 dummy17 = 17;
  6910. public bool HasDummy17 {
  6911. get { return result.HasDummy17; }
  6912. }
  6913. public int Dummy17 {
  6914. get { return result.Dummy17; }
  6915. set { SetDummy17(value); }
  6916. }
  6917. public Builder SetDummy17(int value) {
  6918. result.hasDummy17 = true;
  6919. result.dummy17_ = value;
  6920. return this;
  6921. }
  6922. public Builder ClearDummy17() {
  6923. result.hasDummy17 = false;
  6924. result.dummy17_ = 0;
  6925. return this;
  6926. }
  6927. // optional int32 dummy18 = 18;
  6928. public bool HasDummy18 {
  6929. get { return result.HasDummy18; }
  6930. }
  6931. public int Dummy18 {
  6932. get { return result.Dummy18; }
  6933. set { SetDummy18(value); }
  6934. }
  6935. public Builder SetDummy18(int value) {
  6936. result.hasDummy18 = true;
  6937. result.dummy18_ = value;
  6938. return this;
  6939. }
  6940. public Builder ClearDummy18() {
  6941. result.hasDummy18 = false;
  6942. result.dummy18_ = 0;
  6943. return this;
  6944. }
  6945. // optional int32 dummy19 = 19;
  6946. public bool HasDummy19 {
  6947. get { return result.HasDummy19; }
  6948. }
  6949. public int Dummy19 {
  6950. get { return result.Dummy19; }
  6951. set { SetDummy19(value); }
  6952. }
  6953. public Builder SetDummy19(int value) {
  6954. result.hasDummy19 = true;
  6955. result.dummy19_ = value;
  6956. return this;
  6957. }
  6958. public Builder ClearDummy19() {
  6959. result.hasDummy19 = false;
  6960. result.dummy19_ = 0;
  6961. return this;
  6962. }
  6963. // optional int32 dummy20 = 20;
  6964. public bool HasDummy20 {
  6965. get { return result.HasDummy20; }
  6966. }
  6967. public int Dummy20 {
  6968. get { return result.Dummy20; }
  6969. set { SetDummy20(value); }
  6970. }
  6971. public Builder SetDummy20(int value) {
  6972. result.hasDummy20 = true;
  6973. result.dummy20_ = value;
  6974. return this;
  6975. }
  6976. public Builder ClearDummy20() {
  6977. result.hasDummy20 = false;
  6978. result.dummy20_ = 0;
  6979. return this;
  6980. }
  6981. // optional int32 dummy21 = 21;
  6982. public bool HasDummy21 {
  6983. get { return result.HasDummy21; }
  6984. }
  6985. public int Dummy21 {
  6986. get { return result.Dummy21; }
  6987. set { SetDummy21(value); }
  6988. }
  6989. public Builder SetDummy21(int value) {
  6990. result.hasDummy21 = true;
  6991. result.dummy21_ = value;
  6992. return this;
  6993. }
  6994. public Builder ClearDummy21() {
  6995. result.hasDummy21 = false;
  6996. result.dummy21_ = 0;
  6997. return this;
  6998. }
  6999. // optional int32 dummy22 = 22;
  7000. public bool HasDummy22 {
  7001. get { return result.HasDummy22; }
  7002. }
  7003. public int Dummy22 {
  7004. get { return result.Dummy22; }
  7005. set { SetDummy22(value); }
  7006. }
  7007. public Builder SetDummy22(int value) {
  7008. result.hasDummy22 = true;
  7009. result.dummy22_ = value;
  7010. return this;
  7011. }
  7012. public Builder ClearDummy22() {
  7013. result.hasDummy22 = false;
  7014. result.dummy22_ = 0;
  7015. return this;
  7016. }
  7017. // optional int32 dummy23 = 23;
  7018. public bool HasDummy23 {
  7019. get { return result.HasDummy23; }
  7020. }
  7021. public int Dummy23 {
  7022. get { return result.Dummy23; }
  7023. set { SetDummy23(value); }
  7024. }
  7025. public Builder SetDummy23(int value) {
  7026. result.hasDummy23 = true;
  7027. result.dummy23_ = value;
  7028. return this;
  7029. }
  7030. public Builder ClearDummy23() {
  7031. result.hasDummy23 = false;
  7032. result.dummy23_ = 0;
  7033. return this;
  7034. }
  7035. // optional int32 dummy24 = 24;
  7036. public bool HasDummy24 {
  7037. get { return result.HasDummy24; }
  7038. }
  7039. public int Dummy24 {
  7040. get { return result.Dummy24; }
  7041. set { SetDummy24(value); }
  7042. }
  7043. public Builder SetDummy24(int value) {
  7044. result.hasDummy24 = true;
  7045. result.dummy24_ = value;
  7046. return this;
  7047. }
  7048. public Builder ClearDummy24() {
  7049. result.hasDummy24 = false;
  7050. result.dummy24_ = 0;
  7051. return this;
  7052. }
  7053. // optional int32 dummy25 = 25;
  7054. public bool HasDummy25 {
  7055. get { return result.HasDummy25; }
  7056. }
  7057. public int Dummy25 {
  7058. get { return result.Dummy25; }
  7059. set { SetDummy25(value); }
  7060. }
  7061. public Builder SetDummy25(int value) {
  7062. result.hasDummy25 = true;
  7063. result.dummy25_ = value;
  7064. return this;
  7065. }
  7066. public Builder ClearDummy25() {
  7067. result.hasDummy25 = false;
  7068. result.dummy25_ = 0;
  7069. return this;
  7070. }
  7071. // optional int32 dummy26 = 26;
  7072. public bool HasDummy26 {
  7073. get { return result.HasDummy26; }
  7074. }
  7075. public int Dummy26 {
  7076. get { return result.Dummy26; }
  7077. set { SetDummy26(value); }
  7078. }
  7079. public Builder SetDummy26(int value) {
  7080. result.hasDummy26 = true;
  7081. result.dummy26_ = value;
  7082. return this;
  7083. }
  7084. public Builder ClearDummy26() {
  7085. result.hasDummy26 = false;
  7086. result.dummy26_ = 0;
  7087. return this;
  7088. }
  7089. // optional int32 dummy27 = 27;
  7090. public bool HasDummy27 {
  7091. get { return result.HasDummy27; }
  7092. }
  7093. public int Dummy27 {
  7094. get { return result.Dummy27; }
  7095. set { SetDummy27(value); }
  7096. }
  7097. public Builder SetDummy27(int value) {
  7098. result.hasDummy27 = true;
  7099. result.dummy27_ = value;
  7100. return this;
  7101. }
  7102. public Builder ClearDummy27() {
  7103. result.hasDummy27 = false;
  7104. result.dummy27_ = 0;
  7105. return this;
  7106. }
  7107. // optional int32 dummy28 = 28;
  7108. public bool HasDummy28 {
  7109. get { return result.HasDummy28; }
  7110. }
  7111. public int Dummy28 {
  7112. get { return result.Dummy28; }
  7113. set { SetDummy28(value); }
  7114. }
  7115. public Builder SetDummy28(int value) {
  7116. result.hasDummy28 = true;
  7117. result.dummy28_ = value;
  7118. return this;
  7119. }
  7120. public Builder ClearDummy28() {
  7121. result.hasDummy28 = false;
  7122. result.dummy28_ = 0;
  7123. return this;
  7124. }
  7125. // optional int32 dummy29 = 29;
  7126. public bool HasDummy29 {
  7127. get { return result.HasDummy29; }
  7128. }
  7129. public int Dummy29 {
  7130. get { return result.Dummy29; }
  7131. set { SetDummy29(value); }
  7132. }
  7133. public Builder SetDummy29(int value) {
  7134. result.hasDummy29 = true;
  7135. result.dummy29_ = value;
  7136. return this;
  7137. }
  7138. public Builder ClearDummy29() {
  7139. result.hasDummy29 = false;
  7140. result.dummy29_ = 0;
  7141. return this;
  7142. }
  7143. // optional int32 dummy30 = 30;
  7144. public bool HasDummy30 {
  7145. get { return result.HasDummy30; }
  7146. }
  7147. public int Dummy30 {
  7148. get { return result.Dummy30; }
  7149. set { SetDummy30(value); }
  7150. }
  7151. public Builder SetDummy30(int value) {
  7152. result.hasDummy30 = true;
  7153. result.dummy30_ = value;
  7154. return this;
  7155. }
  7156. public Builder ClearDummy30() {
  7157. result.hasDummy30 = false;
  7158. result.dummy30_ = 0;
  7159. return this;
  7160. }
  7161. // optional int32 dummy31 = 31;
  7162. public bool HasDummy31 {
  7163. get { return result.HasDummy31; }
  7164. }
  7165. public int Dummy31 {
  7166. get { return result.Dummy31; }
  7167. set { SetDummy31(value); }
  7168. }
  7169. public Builder SetDummy31(int value) {
  7170. result.hasDummy31 = true;
  7171. result.dummy31_ = value;
  7172. return this;
  7173. }
  7174. public Builder ClearDummy31() {
  7175. result.hasDummy31 = false;
  7176. result.dummy31_ = 0;
  7177. return this;
  7178. }
  7179. // optional int32 dummy32 = 32;
  7180. public bool HasDummy32 {
  7181. get { return result.HasDummy32; }
  7182. }
  7183. public int Dummy32 {
  7184. get { return result.Dummy32; }
  7185. set { SetDummy32(value); }
  7186. }
  7187. public Builder SetDummy32(int value) {
  7188. result.hasDummy32 = true;
  7189. result.dummy32_ = value;
  7190. return this;
  7191. }
  7192. public Builder ClearDummy32() {
  7193. result.hasDummy32 = false;
  7194. result.dummy32_ = 0;
  7195. return this;
  7196. }
  7197. // required int32 c = 33;
  7198. public bool HasC {
  7199. get { return result.HasC; }
  7200. }
  7201. public int C {
  7202. get { return result.C; }
  7203. set { SetC(value); }
  7204. }
  7205. public Builder SetC(int value) {
  7206. result.hasC = true;
  7207. result.c_ = value;
  7208. return this;
  7209. }
  7210. public Builder ClearC() {
  7211. result.hasC = false;
  7212. result.c_ = 0;
  7213. return this;
  7214. }
  7215. }
  7216. }
  7217. public sealed partial class TestRequiredForeign : pb::GeneratedMessage<TestRequiredForeign, TestRequiredForeign.Builder> {
  7218. private static readonly TestRequiredForeign defaultInstance = new TestRequiredForeign();
  7219. public static TestRequiredForeign DefaultInstance {
  7220. get { return defaultInstance; }
  7221. }
  7222. public override TestRequiredForeign DefaultInstanceForType {
  7223. get { return defaultInstance; }
  7224. }
  7225. protected override TestRequiredForeign ThisMessage {
  7226. get { return this; }
  7227. }
  7228. public static pbd::MessageDescriptor Descriptor {
  7229. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__Descriptor; }
  7230. }
  7231. protected override pb::FieldAccess.FieldAccessorTable<TestRequiredForeign, TestRequiredForeign.Builder> InternalFieldAccessors {
  7232. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRequiredForeign__FieldAccessorTable; }
  7233. }
  7234. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7235. private bool hasOptionalMessage;
  7236. private global::Google.ProtocolBuffers.TestProtos.TestRequired optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
  7237. public bool HasOptionalMessage {
  7238. get { return hasOptionalMessage; }
  7239. }
  7240. public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
  7241. get { return optionalMessage_; }
  7242. }
  7243. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7244. private scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> repeatedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty;
  7245. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
  7246. get { return repeatedMessage_; }
  7247. }
  7248. public int RepeatedMessageCount
  7249. { get { return repeatedMessage_.Count; }
  7250. }
  7251. public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
  7252. return repeatedMessage_ [index];
  7253. }
  7254. // optional int32 dummy = 3;
  7255. private bool hasDummy;
  7256. private int dummy_ = 0;
  7257. public bool HasDummy {
  7258. get { return hasDummy; }
  7259. }
  7260. public int Dummy {
  7261. get { return dummy_; }
  7262. }
  7263. public override bool IsInitialized {
  7264. get {
  7265. if (HasOptionalMessage) {
  7266. if (!OptionalMessage.IsInitialized) return false;
  7267. }
  7268. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7269. if (!element.IsInitialized) return false;
  7270. }
  7271. return true;
  7272. }
  7273. }
  7274. public override void WriteTo(pb::CodedOutputStream output) {
  7275. if (HasOptionalMessage) {
  7276. output.WriteMessage(1, OptionalMessage);
  7277. }
  7278. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7279. output.WriteMessage(2, element);
  7280. }
  7281. if (HasDummy) {
  7282. output.WriteInt32(3, Dummy);
  7283. }
  7284. UnknownFields.WriteTo(output);
  7285. }
  7286. private int memoizedSerializedSize = -1;
  7287. public override int SerializedSize {
  7288. get {
  7289. int size = memoizedSerializedSize;
  7290. if (size != -1) return size;
  7291. size = 0;
  7292. if (HasOptionalMessage) {
  7293. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalMessage);
  7294. }
  7295. foreach (global::Google.ProtocolBuffers.TestProtos.TestRequired element in RepeatedMessageList) {
  7296. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  7297. }
  7298. if (HasDummy) {
  7299. size += pb::CodedOutputStream.ComputeInt32Size(3, Dummy);
  7300. }
  7301. size += UnknownFields.SerializedSize;
  7302. memoizedSerializedSize = size;
  7303. return size;
  7304. }
  7305. }
  7306. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::ByteString data) {
  7307. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7308. }
  7309. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::ByteString data,
  7310. pb::ExtensionRegistry extensionRegistry) {
  7311. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7312. .BuildParsed();
  7313. }
  7314. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(byte[] data) {
  7315. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7316. }
  7317. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(byte[] data,
  7318. pb::ExtensionRegistry extensionRegistry) {
  7319. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7320. .BuildParsed();
  7321. }
  7322. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(global::System.IO.Stream input) {
  7323. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7324. }
  7325. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(
  7326. global::System.IO.Stream input,
  7327. pb::ExtensionRegistry extensionRegistry) {
  7328. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7329. .BuildParsed();
  7330. }
  7331. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::CodedInputStream input) {
  7332. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7333. }
  7334. public static global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign ParseFrom(pb::CodedInputStream input,
  7335. pb::ExtensionRegistry extensionRegistry) {
  7336. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7337. .BuildParsed();
  7338. }
  7339. public static Builder CreateBuilder() { return new Builder(); }
  7340. public override Builder CreateBuilderForType() { return new Builder(); }
  7341. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign prototype) {
  7342. return (Builder) new Builder().MergeFrom(prototype);
  7343. }
  7344. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign, Builder> {
  7345. protected override Builder ThisBuilder {
  7346. get { return this; }
  7347. }
  7348. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.CreateBuilder()
  7349. public Builder() {}
  7350. global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign result = new global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign();
  7351. protected override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign MessageBeingBuilt {
  7352. get { return result; }
  7353. }
  7354. public override Builder Clear() {
  7355. result = new global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign();
  7356. return this;
  7357. }
  7358. public override Builder Clone() {
  7359. return new Builder().MergeFrom(result);
  7360. }
  7361. public override pbd::MessageDescriptor DescriptorForType {
  7362. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.Descriptor; }
  7363. }
  7364. public override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign DefaultInstanceForType {
  7365. get { return global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance; }
  7366. }
  7367. public override global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign BuildPartial() {
  7368. if (result.repeatedMessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7369. result.repeatedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.AsReadOnly(result.repeatedMessage_);
  7370. }
  7371. global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign returnMe = result;
  7372. result = null;
  7373. return returnMe;
  7374. }
  7375. public override Builder MergeFrom(pb::IMessage other) {
  7376. if (other is global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign) {
  7377. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign) other);
  7378. } else {
  7379. base.MergeFrom(other);
  7380. return this;
  7381. }
  7382. }
  7383. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign other) {
  7384. if (other == global::Google.ProtocolBuffers.TestProtos.TestRequiredForeign.DefaultInstance) return this;
  7385. if (other.HasOptionalMessage) {
  7386. MergeOptionalMessage(other.OptionalMessage);
  7387. }
  7388. if (other.repeatedMessage_.Count != 0) {
  7389. if (result.repeatedMessage_.Count == 0) {
  7390. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7391. }
  7392. base.AddRange(other.repeatedMessage_, result.repeatedMessage_);
  7393. }
  7394. if (other.HasDummy) {
  7395. Dummy = other.Dummy;
  7396. }
  7397. this.MergeUnknownFields(other.UnknownFields);
  7398. return this;
  7399. }
  7400. public override Builder MergeFrom(pb::CodedInputStream input) {
  7401. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7402. }
  7403. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7404. pb::UnknownFieldSet.Builder unknownFields =
  7405. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7406. while (true) {
  7407. uint tag = input.ReadTag();
  7408. switch (tag) {
  7409. case 0:
  7410. this.UnknownFields = unknownFields.Build();
  7411. return this;
  7412. default: {
  7413. if (!ParseUnknownField(input, unknownFields,
  7414. extensionRegistry, tag)) {
  7415. this.UnknownFields = unknownFields.Build();
  7416. return this;
  7417. }
  7418. break;
  7419. }
  7420. case 10: {
  7421. global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
  7422. if (HasOptionalMessage) {
  7423. subBuilder.MergeFrom(OptionalMessage);
  7424. }
  7425. input.ReadMessage(subBuilder, extensionRegistry);
  7426. OptionalMessage = subBuilder.BuildPartial();
  7427. break;
  7428. }
  7429. case 18: {
  7430. global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder();
  7431. input.ReadMessage(subBuilder, extensionRegistry);
  7432. AddRepeatedMessage(subBuilder.BuildPartial());
  7433. break;
  7434. }
  7435. case 24: {
  7436. Dummy = input.ReadInt32();
  7437. break;
  7438. }
  7439. }
  7440. }
  7441. }
  7442. // optional .protobuf_unittest.TestRequired optional_message = 1;
  7443. public bool HasOptionalMessage {
  7444. get { return result.HasOptionalMessage; }
  7445. }
  7446. public global::Google.ProtocolBuffers.TestProtos.TestRequired OptionalMessage {
  7447. get { return result.OptionalMessage; }
  7448. set { SetOptionalMessage(value); }
  7449. }
  7450. public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7451. result.hasOptionalMessage = true;
  7452. result.optionalMessage_ = value;
  7453. return this;
  7454. }
  7455. public Builder SetOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7456. result.hasOptionalMessage = true;
  7457. result.optionalMessage_ = builderForValue.Build();
  7458. return this;
  7459. }
  7460. public Builder MergeOptionalMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7461. if (result.HasOptionalMessage &&
  7462. result.optionalMessage_ != global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance) {
  7463. result.optionalMessage_ =
  7464. global::Google.ProtocolBuffers.TestProtos.TestRequired.CreateBuilder(result.optionalMessage_).MergeFrom(value).BuildPartial();
  7465. } else {
  7466. result.optionalMessage_ = value;
  7467. }
  7468. result.hasOptionalMessage = true;
  7469. return this;
  7470. }
  7471. public Builder ClearOptionalMessage() {
  7472. result.hasOptionalMessage = false;
  7473. result.optionalMessage_ = global::Google.ProtocolBuffers.TestProtos.TestRequired.DefaultInstance;
  7474. return this;
  7475. }
  7476. // repeated .protobuf_unittest.TestRequired repeated_message = 2;
  7477. public scg::IList<global::Google.ProtocolBuffers.TestProtos.TestRequired> RepeatedMessageList {
  7478. get { return pbc::Lists.AsReadOnly(result.repeatedMessage_); }
  7479. }
  7480. public int RepeatedMessageCount {
  7481. get { return result.RepeatedMessageCount; }
  7482. }
  7483. public global::Google.ProtocolBuffers.TestProtos.TestRequired GetRepeatedMessage(int index) {
  7484. return result.GetRepeatedMessage(index);
  7485. }
  7486. public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7487. result.repeatedMessage_[index] = value;
  7488. return this;
  7489. }
  7490. public Builder SetRepeatedMessage(int index, global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7491. result.repeatedMessage_[index] = builderForValue.Build();
  7492. return this;
  7493. }
  7494. public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired value) {
  7495. if (result.repeatedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7496. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7497. }
  7498. result.repeatedMessage_.Add(value);
  7499. return this;
  7500. }
  7501. public Builder AddRepeatedMessage(global::Google.ProtocolBuffers.TestProtos.TestRequired.Builder builderForValue) {
  7502. if (result.repeatedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7503. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7504. }
  7505. result.repeatedMessage_.Add(builderForValue.Build());
  7506. return this;
  7507. }
  7508. public Builder AddRangeRepeatedMessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.TestRequired> values) {
  7509. if (result.repeatedMessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty) {
  7510. result.repeatedMessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.TestRequired>();
  7511. }
  7512. base.AddRange(values, result.repeatedMessage_);
  7513. return this;
  7514. }
  7515. public Builder ClearRepeatedMessage() {
  7516. result.repeatedMessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.TestRequired>.Empty;
  7517. return this;
  7518. }
  7519. // optional int32 dummy = 3;
  7520. public bool HasDummy {
  7521. get { return result.HasDummy; }
  7522. }
  7523. public int Dummy {
  7524. get { return result.Dummy; }
  7525. set { SetDummy(value); }
  7526. }
  7527. public Builder SetDummy(int value) {
  7528. result.hasDummy = true;
  7529. result.dummy_ = value;
  7530. return this;
  7531. }
  7532. public Builder ClearDummy() {
  7533. result.hasDummy = false;
  7534. result.dummy_ = 0;
  7535. return this;
  7536. }
  7537. }
  7538. }
  7539. public sealed partial class TestForeignNested : pb::GeneratedMessage<TestForeignNested, TestForeignNested.Builder> {
  7540. private static readonly TestForeignNested defaultInstance = new TestForeignNested();
  7541. public static TestForeignNested DefaultInstance {
  7542. get { return defaultInstance; }
  7543. }
  7544. public override TestForeignNested DefaultInstanceForType {
  7545. get { return defaultInstance; }
  7546. }
  7547. protected override TestForeignNested ThisMessage {
  7548. get { return this; }
  7549. }
  7550. public static pbd::MessageDescriptor Descriptor {
  7551. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__Descriptor; }
  7552. }
  7553. protected override pb::FieldAccess.FieldAccessorTable<TestForeignNested, TestForeignNested.Builder> InternalFieldAccessors {
  7554. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestForeignNested__FieldAccessorTable; }
  7555. }
  7556. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7557. private bool hasForeignNested;
  7558. private global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  7559. public bool HasForeignNested {
  7560. get { return hasForeignNested; }
  7561. }
  7562. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
  7563. get { return foreignNested_; }
  7564. }
  7565. public override bool IsInitialized {
  7566. get {
  7567. return true;
  7568. }
  7569. }
  7570. public override void WriteTo(pb::CodedOutputStream output) {
  7571. if (HasForeignNested) {
  7572. output.WriteMessage(1, ForeignNested);
  7573. }
  7574. UnknownFields.WriteTo(output);
  7575. }
  7576. private int memoizedSerializedSize = -1;
  7577. public override int SerializedSize {
  7578. get {
  7579. int size = memoizedSerializedSize;
  7580. if (size != -1) return size;
  7581. size = 0;
  7582. if (HasForeignNested) {
  7583. size += pb::CodedOutputStream.ComputeMessageSize(1, ForeignNested);
  7584. }
  7585. size += UnknownFields.SerializedSize;
  7586. memoizedSerializedSize = size;
  7587. return size;
  7588. }
  7589. }
  7590. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::ByteString data) {
  7591. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7592. }
  7593. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::ByteString data,
  7594. pb::ExtensionRegistry extensionRegistry) {
  7595. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7596. .BuildParsed();
  7597. }
  7598. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(byte[] data) {
  7599. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7600. }
  7601. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(byte[] data,
  7602. pb::ExtensionRegistry extensionRegistry) {
  7603. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7604. .BuildParsed();
  7605. }
  7606. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(global::System.IO.Stream input) {
  7607. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7608. }
  7609. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(
  7610. global::System.IO.Stream input,
  7611. pb::ExtensionRegistry extensionRegistry) {
  7612. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7613. .BuildParsed();
  7614. }
  7615. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::CodedInputStream input) {
  7616. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7617. }
  7618. public static global::Google.ProtocolBuffers.TestProtos.TestForeignNested ParseFrom(pb::CodedInputStream input,
  7619. pb::ExtensionRegistry extensionRegistry) {
  7620. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7621. .BuildParsed();
  7622. }
  7623. public static Builder CreateBuilder() { return new Builder(); }
  7624. public override Builder CreateBuilderForType() { return new Builder(); }
  7625. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestForeignNested prototype) {
  7626. return (Builder) new Builder().MergeFrom(prototype);
  7627. }
  7628. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestForeignNested, Builder> {
  7629. protected override Builder ThisBuilder {
  7630. get { return this; }
  7631. }
  7632. // Construct using global::Google.ProtocolBuffers.TestProtos.TestForeignNested.CreateBuilder()
  7633. public Builder() {}
  7634. global::Google.ProtocolBuffers.TestProtos.TestForeignNested result = new global::Google.ProtocolBuffers.TestProtos.TestForeignNested();
  7635. protected override global::Google.ProtocolBuffers.TestProtos.TestForeignNested MessageBeingBuilt {
  7636. get { return result; }
  7637. }
  7638. public override Builder Clear() {
  7639. result = new global::Google.ProtocolBuffers.TestProtos.TestForeignNested();
  7640. return this;
  7641. }
  7642. public override Builder Clone() {
  7643. return new Builder().MergeFrom(result);
  7644. }
  7645. public override pbd::MessageDescriptor DescriptorForType {
  7646. get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.Descriptor; }
  7647. }
  7648. public override global::Google.ProtocolBuffers.TestProtos.TestForeignNested DefaultInstanceForType {
  7649. get { return global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance; }
  7650. }
  7651. public override global::Google.ProtocolBuffers.TestProtos.TestForeignNested BuildPartial() {
  7652. global::Google.ProtocolBuffers.TestProtos.TestForeignNested returnMe = result;
  7653. result = null;
  7654. return returnMe;
  7655. }
  7656. public override Builder MergeFrom(pb::IMessage other) {
  7657. if (other is global::Google.ProtocolBuffers.TestProtos.TestForeignNested) {
  7658. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestForeignNested) other);
  7659. } else {
  7660. base.MergeFrom(other);
  7661. return this;
  7662. }
  7663. }
  7664. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestForeignNested other) {
  7665. if (other == global::Google.ProtocolBuffers.TestProtos.TestForeignNested.DefaultInstance) return this;
  7666. if (other.HasForeignNested) {
  7667. MergeForeignNested(other.ForeignNested);
  7668. }
  7669. this.MergeUnknownFields(other.UnknownFields);
  7670. return this;
  7671. }
  7672. public override Builder MergeFrom(pb::CodedInputStream input) {
  7673. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7674. }
  7675. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7676. pb::UnknownFieldSet.Builder unknownFields =
  7677. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7678. while (true) {
  7679. uint tag = input.ReadTag();
  7680. switch (tag) {
  7681. case 0:
  7682. this.UnknownFields = unknownFields.Build();
  7683. return this;
  7684. default: {
  7685. if (!ParseUnknownField(input, unknownFields,
  7686. extensionRegistry, tag)) {
  7687. this.UnknownFields = unknownFields.Build();
  7688. return this;
  7689. }
  7690. break;
  7691. }
  7692. case 10: {
  7693. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder();
  7694. if (HasForeignNested) {
  7695. subBuilder.MergeFrom(ForeignNested);
  7696. }
  7697. input.ReadMessage(subBuilder, extensionRegistry);
  7698. ForeignNested = subBuilder.BuildPartial();
  7699. break;
  7700. }
  7701. }
  7702. }
  7703. }
  7704. // optional .protobuf_unittest.TestAllTypes.NestedMessage foreign_nested = 1;
  7705. public bool HasForeignNested {
  7706. get { return result.HasForeignNested; }
  7707. }
  7708. public global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
  7709. get { return result.ForeignNested; }
  7710. set { SetForeignNested(value); }
  7711. }
  7712. public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  7713. result.hasForeignNested = true;
  7714. result.foreignNested_ = value;
  7715. return this;
  7716. }
  7717. public Builder SetForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.Builder builderForValue) {
  7718. result.hasForeignNested = true;
  7719. result.foreignNested_ = builderForValue.Build();
  7720. return this;
  7721. }
  7722. public Builder MergeForeignNested(global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage value) {
  7723. if (result.HasForeignNested &&
  7724. result.foreignNested_ != global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance) {
  7725. result.foreignNested_ =
  7726. global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.CreateBuilder(result.foreignNested_).MergeFrom(value).BuildPartial();
  7727. } else {
  7728. result.foreignNested_ = value;
  7729. }
  7730. result.hasForeignNested = true;
  7731. return this;
  7732. }
  7733. public Builder ClearForeignNested() {
  7734. result.hasForeignNested = false;
  7735. result.foreignNested_ = global::Google.ProtocolBuffers.TestProtos.TestAllTypes.Types.NestedMessage.DefaultInstance;
  7736. return this;
  7737. }
  7738. }
  7739. }
  7740. public sealed partial class TestEmptyMessage : pb::GeneratedMessage<TestEmptyMessage, TestEmptyMessage.Builder> {
  7741. private static readonly TestEmptyMessage defaultInstance = new TestEmptyMessage();
  7742. public static TestEmptyMessage DefaultInstance {
  7743. get { return defaultInstance; }
  7744. }
  7745. public override TestEmptyMessage DefaultInstanceForType {
  7746. get { return defaultInstance; }
  7747. }
  7748. protected override TestEmptyMessage ThisMessage {
  7749. get { return this; }
  7750. }
  7751. public static pbd::MessageDescriptor Descriptor {
  7752. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__Descriptor; }
  7753. }
  7754. protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessage, TestEmptyMessage.Builder> InternalFieldAccessors {
  7755. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessage__FieldAccessorTable; }
  7756. }
  7757. public override bool IsInitialized {
  7758. get {
  7759. return true;
  7760. }
  7761. }
  7762. public override void WriteTo(pb::CodedOutputStream output) {
  7763. UnknownFields.WriteTo(output);
  7764. }
  7765. private int memoizedSerializedSize = -1;
  7766. public override int SerializedSize {
  7767. get {
  7768. int size = memoizedSerializedSize;
  7769. if (size != -1) return size;
  7770. size = 0;
  7771. size += UnknownFields.SerializedSize;
  7772. memoizedSerializedSize = size;
  7773. return size;
  7774. }
  7775. }
  7776. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::ByteString data) {
  7777. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7778. }
  7779. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::ByteString data,
  7780. pb::ExtensionRegistry extensionRegistry) {
  7781. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7782. .BuildParsed();
  7783. }
  7784. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(byte[] data) {
  7785. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7786. }
  7787. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(byte[] data,
  7788. pb::ExtensionRegistry extensionRegistry) {
  7789. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7790. .BuildParsed();
  7791. }
  7792. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(global::System.IO.Stream input) {
  7793. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7794. }
  7795. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(
  7796. global::System.IO.Stream input,
  7797. pb::ExtensionRegistry extensionRegistry) {
  7798. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7799. .BuildParsed();
  7800. }
  7801. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::CodedInputStream input) {
  7802. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7803. }
  7804. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage ParseFrom(pb::CodedInputStream input,
  7805. pb::ExtensionRegistry extensionRegistry) {
  7806. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7807. .BuildParsed();
  7808. }
  7809. public static Builder CreateBuilder() { return new Builder(); }
  7810. public override Builder CreateBuilderForType() { return new Builder(); }
  7811. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage prototype) {
  7812. return (Builder) new Builder().MergeFrom(prototype);
  7813. }
  7814. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage, Builder> {
  7815. protected override Builder ThisBuilder {
  7816. get { return this; }
  7817. }
  7818. // Construct using global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.CreateBuilder()
  7819. public Builder() {}
  7820. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage();
  7821. protected override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage MessageBeingBuilt {
  7822. get { return result; }
  7823. }
  7824. public override Builder Clear() {
  7825. result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage();
  7826. return this;
  7827. }
  7828. public override Builder Clone() {
  7829. return new Builder().MergeFrom(result);
  7830. }
  7831. public override pbd::MessageDescriptor DescriptorForType {
  7832. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.Descriptor; }
  7833. }
  7834. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage DefaultInstanceForType {
  7835. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance; }
  7836. }
  7837. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage BuildPartial() {
  7838. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage returnMe = result;
  7839. result = null;
  7840. return returnMe;
  7841. }
  7842. public override Builder MergeFrom(pb::IMessage other) {
  7843. if (other is global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage) {
  7844. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage) other);
  7845. } else {
  7846. base.MergeFrom(other);
  7847. return this;
  7848. }
  7849. }
  7850. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage other) {
  7851. if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessage.DefaultInstance) return this;
  7852. this.MergeUnknownFields(other.UnknownFields);
  7853. return this;
  7854. }
  7855. public override Builder MergeFrom(pb::CodedInputStream input) {
  7856. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7857. }
  7858. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7859. pb::UnknownFieldSet.Builder unknownFields =
  7860. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7861. while (true) {
  7862. uint tag = input.ReadTag();
  7863. switch (tag) {
  7864. case 0:
  7865. this.UnknownFields = unknownFields.Build();
  7866. return this;
  7867. default: {
  7868. if (!ParseUnknownField(input, unknownFields,
  7869. extensionRegistry, tag)) {
  7870. this.UnknownFields = unknownFields.Build();
  7871. return this;
  7872. }
  7873. break;
  7874. }
  7875. }
  7876. }
  7877. }
  7878. }
  7879. }
  7880. public sealed partial class TestEmptyMessageWithExtensions : pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> {
  7881. private static readonly TestEmptyMessageWithExtensions defaultInstance = new TestEmptyMessageWithExtensions();
  7882. public static TestEmptyMessageWithExtensions DefaultInstance {
  7883. get { return defaultInstance; }
  7884. }
  7885. public override TestEmptyMessageWithExtensions DefaultInstanceForType {
  7886. get { return defaultInstance; }
  7887. }
  7888. protected override TestEmptyMessageWithExtensions ThisMessage {
  7889. get { return this; }
  7890. }
  7891. public static pbd::MessageDescriptor Descriptor {
  7892. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__Descriptor; }
  7893. }
  7894. protected override pb::FieldAccess.FieldAccessorTable<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder> InternalFieldAccessors {
  7895. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestEmptyMessageWithExtensions__FieldAccessorTable; }
  7896. }
  7897. public override bool IsInitialized {
  7898. get {
  7899. if (!ExtensionsAreInitialized) return false;
  7900. return true;
  7901. }
  7902. }
  7903. public override void WriteTo(pb::CodedOutputStream output) {
  7904. pb::ExtendableMessage<TestEmptyMessageWithExtensions, TestEmptyMessageWithExtensions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  7905. extensionWriter.WriteUntil(536870912, output);
  7906. UnknownFields.WriteTo(output);
  7907. }
  7908. private int memoizedSerializedSize = -1;
  7909. public override int SerializedSize {
  7910. get {
  7911. int size = memoizedSerializedSize;
  7912. if (size != -1) return size;
  7913. size = 0;
  7914. size += ExtensionsSerializedSize;
  7915. size += UnknownFields.SerializedSize;
  7916. memoizedSerializedSize = size;
  7917. return size;
  7918. }
  7919. }
  7920. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data) {
  7921. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7922. }
  7923. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::ByteString data,
  7924. pb::ExtensionRegistry extensionRegistry) {
  7925. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7926. .BuildParsed();
  7927. }
  7928. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(byte[] data) {
  7929. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7930. }
  7931. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(byte[] data,
  7932. pb::ExtensionRegistry extensionRegistry) {
  7933. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  7934. .BuildParsed();
  7935. }
  7936. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(global::System.IO.Stream input) {
  7937. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7938. }
  7939. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(
  7940. global::System.IO.Stream input,
  7941. pb::ExtensionRegistry extensionRegistry) {
  7942. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7943. .BuildParsed();
  7944. }
  7945. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input) {
  7946. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7947. }
  7948. public static global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions ParseFrom(pb::CodedInputStream input,
  7949. pb::ExtensionRegistry extensionRegistry) {
  7950. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  7951. .BuildParsed();
  7952. }
  7953. public static Builder CreateBuilder() { return new Builder(); }
  7954. public override Builder CreateBuilderForType() { return new Builder(); }
  7955. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions prototype) {
  7956. return (Builder) new Builder().MergeFrom(prototype);
  7957. }
  7958. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions, global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Builder> {
  7959. protected override Builder ThisBuilder {
  7960. get { return this; }
  7961. }
  7962. // Construct using global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.CreateBuilder()
  7963. public Builder() {}
  7964. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions();
  7965. protected override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions MessageBeingBuilt {
  7966. get { return result; }
  7967. }
  7968. public override Builder Clear() {
  7969. result = new global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions();
  7970. return this;
  7971. }
  7972. public override Builder Clone() {
  7973. return new Builder().MergeFrom(result);
  7974. }
  7975. public override pbd::MessageDescriptor DescriptorForType {
  7976. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.Descriptor; }
  7977. }
  7978. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions DefaultInstanceForType {
  7979. get { return global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance; }
  7980. }
  7981. public override global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions BuildPartial() {
  7982. global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions returnMe = result;
  7983. result = null;
  7984. return returnMe;
  7985. }
  7986. public override Builder MergeFrom(pb::IMessage other) {
  7987. if (other is global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions) {
  7988. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions) other);
  7989. } else {
  7990. base.MergeFrom(other);
  7991. return this;
  7992. }
  7993. }
  7994. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions other) {
  7995. if (other == global::Google.ProtocolBuffers.TestProtos.TestEmptyMessageWithExtensions.DefaultInstance) return this;
  7996. this.MergeUnknownFields(other.UnknownFields);
  7997. return this;
  7998. }
  7999. public override Builder MergeFrom(pb::CodedInputStream input) {
  8000. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8001. }
  8002. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8003. pb::UnknownFieldSet.Builder unknownFields =
  8004. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8005. while (true) {
  8006. uint tag = input.ReadTag();
  8007. switch (tag) {
  8008. case 0:
  8009. this.UnknownFields = unknownFields.Build();
  8010. return this;
  8011. default: {
  8012. if (!ParseUnknownField(input, unknownFields,
  8013. extensionRegistry, tag)) {
  8014. this.UnknownFields = unknownFields.Build();
  8015. return this;
  8016. }
  8017. break;
  8018. }
  8019. }
  8020. }
  8021. }
  8022. }
  8023. }
  8024. public sealed partial class TestReallyLargeTagNumber : pb::GeneratedMessage<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> {
  8025. private static readonly TestReallyLargeTagNumber defaultInstance = new TestReallyLargeTagNumber();
  8026. public static TestReallyLargeTagNumber DefaultInstance {
  8027. get { return defaultInstance; }
  8028. }
  8029. public override TestReallyLargeTagNumber DefaultInstanceForType {
  8030. get { return defaultInstance; }
  8031. }
  8032. protected override TestReallyLargeTagNumber ThisMessage {
  8033. get { return this; }
  8034. }
  8035. public static pbd::MessageDescriptor Descriptor {
  8036. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__Descriptor; }
  8037. }
  8038. protected override pb::FieldAccess.FieldAccessorTable<TestReallyLargeTagNumber, TestReallyLargeTagNumber.Builder> InternalFieldAccessors {
  8039. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestReallyLargeTagNumber__FieldAccessorTable; }
  8040. }
  8041. // optional int32 a = 1;
  8042. private bool hasA;
  8043. private int a_ = 0;
  8044. public bool HasA {
  8045. get { return hasA; }
  8046. }
  8047. public int A {
  8048. get { return a_; }
  8049. }
  8050. // optional int32 bb = 268435455;
  8051. private bool hasBb;
  8052. private int bb_ = 0;
  8053. public bool HasBb {
  8054. get { return hasBb; }
  8055. }
  8056. public int Bb {
  8057. get { return bb_; }
  8058. }
  8059. public override bool IsInitialized {
  8060. get {
  8061. return true;
  8062. }
  8063. }
  8064. public override void WriteTo(pb::CodedOutputStream output) {
  8065. if (HasA) {
  8066. output.WriteInt32(1, A);
  8067. }
  8068. if (HasBb) {
  8069. output.WriteInt32(268435455, Bb);
  8070. }
  8071. UnknownFields.WriteTo(output);
  8072. }
  8073. private int memoizedSerializedSize = -1;
  8074. public override int SerializedSize {
  8075. get {
  8076. int size = memoizedSerializedSize;
  8077. if (size != -1) return size;
  8078. size = 0;
  8079. if (HasA) {
  8080. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8081. }
  8082. if (HasBb) {
  8083. size += pb::CodedOutputStream.ComputeInt32Size(268435455, Bb);
  8084. }
  8085. size += UnknownFields.SerializedSize;
  8086. memoizedSerializedSize = size;
  8087. return size;
  8088. }
  8089. }
  8090. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::ByteString data) {
  8091. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8092. }
  8093. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::ByteString data,
  8094. pb::ExtensionRegistry extensionRegistry) {
  8095. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8096. .BuildParsed();
  8097. }
  8098. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(byte[] data) {
  8099. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8100. }
  8101. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(byte[] data,
  8102. pb::ExtensionRegistry extensionRegistry) {
  8103. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8104. .BuildParsed();
  8105. }
  8106. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(global::System.IO.Stream input) {
  8107. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8108. }
  8109. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(
  8110. global::System.IO.Stream input,
  8111. pb::ExtensionRegistry extensionRegistry) {
  8112. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8113. .BuildParsed();
  8114. }
  8115. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input) {
  8116. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8117. }
  8118. public static global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber ParseFrom(pb::CodedInputStream input,
  8119. pb::ExtensionRegistry extensionRegistry) {
  8120. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8121. .BuildParsed();
  8122. }
  8123. public static Builder CreateBuilder() { return new Builder(); }
  8124. public override Builder CreateBuilderForType() { return new Builder(); }
  8125. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber prototype) {
  8126. return (Builder) new Builder().MergeFrom(prototype);
  8127. }
  8128. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber, Builder> {
  8129. protected override Builder ThisBuilder {
  8130. get { return this; }
  8131. }
  8132. // Construct using global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.CreateBuilder()
  8133. public Builder() {}
  8134. global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber result = new global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber();
  8135. protected override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber MessageBeingBuilt {
  8136. get { return result; }
  8137. }
  8138. public override Builder Clear() {
  8139. result = new global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber();
  8140. return this;
  8141. }
  8142. public override Builder Clone() {
  8143. return new Builder().MergeFrom(result);
  8144. }
  8145. public override pbd::MessageDescriptor DescriptorForType {
  8146. get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.Descriptor; }
  8147. }
  8148. public override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber DefaultInstanceForType {
  8149. get { return global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance; }
  8150. }
  8151. public override global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber BuildPartial() {
  8152. global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber returnMe = result;
  8153. result = null;
  8154. return returnMe;
  8155. }
  8156. public override Builder MergeFrom(pb::IMessage other) {
  8157. if (other is global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber) {
  8158. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber) other);
  8159. } else {
  8160. base.MergeFrom(other);
  8161. return this;
  8162. }
  8163. }
  8164. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber other) {
  8165. if (other == global::Google.ProtocolBuffers.TestProtos.TestReallyLargeTagNumber.DefaultInstance) return this;
  8166. if (other.HasA) {
  8167. A = other.A;
  8168. }
  8169. if (other.HasBb) {
  8170. Bb = other.Bb;
  8171. }
  8172. this.MergeUnknownFields(other.UnknownFields);
  8173. return this;
  8174. }
  8175. public override Builder MergeFrom(pb::CodedInputStream input) {
  8176. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8177. }
  8178. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8179. pb::UnknownFieldSet.Builder unknownFields =
  8180. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8181. while (true) {
  8182. uint tag = input.ReadTag();
  8183. switch (tag) {
  8184. case 0:
  8185. this.UnknownFields = unknownFields.Build();
  8186. return this;
  8187. default: {
  8188. if (!ParseUnknownField(input, unknownFields,
  8189. extensionRegistry, tag)) {
  8190. this.UnknownFields = unknownFields.Build();
  8191. return this;
  8192. }
  8193. break;
  8194. }
  8195. case 8: {
  8196. A = input.ReadInt32();
  8197. break;
  8198. }
  8199. case 2147483640: {
  8200. Bb = input.ReadInt32();
  8201. break;
  8202. }
  8203. }
  8204. }
  8205. }
  8206. // optional int32 a = 1;
  8207. public bool HasA {
  8208. get { return result.HasA; }
  8209. }
  8210. public int A {
  8211. get { return result.A; }
  8212. set { SetA(value); }
  8213. }
  8214. public Builder SetA(int value) {
  8215. result.hasA = true;
  8216. result.a_ = value;
  8217. return this;
  8218. }
  8219. public Builder ClearA() {
  8220. result.hasA = false;
  8221. result.a_ = 0;
  8222. return this;
  8223. }
  8224. // optional int32 bb = 268435455;
  8225. public bool HasBb {
  8226. get { return result.HasBb; }
  8227. }
  8228. public int Bb {
  8229. get { return result.Bb; }
  8230. set { SetBb(value); }
  8231. }
  8232. public Builder SetBb(int value) {
  8233. result.hasBb = true;
  8234. result.bb_ = value;
  8235. return this;
  8236. }
  8237. public Builder ClearBb() {
  8238. result.hasBb = false;
  8239. result.bb_ = 0;
  8240. return this;
  8241. }
  8242. }
  8243. }
  8244. public sealed partial class TestRecursiveMessage : pb::GeneratedMessage<TestRecursiveMessage, TestRecursiveMessage.Builder> {
  8245. private static readonly TestRecursiveMessage defaultInstance = new TestRecursiveMessage();
  8246. public static TestRecursiveMessage DefaultInstance {
  8247. get { return defaultInstance; }
  8248. }
  8249. public override TestRecursiveMessage DefaultInstanceForType {
  8250. get { return defaultInstance; }
  8251. }
  8252. protected override TestRecursiveMessage ThisMessage {
  8253. get { return this; }
  8254. }
  8255. public static pbd::MessageDescriptor Descriptor {
  8256. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__Descriptor; }
  8257. }
  8258. protected override pb::FieldAccess.FieldAccessorTable<TestRecursiveMessage, TestRecursiveMessage.Builder> InternalFieldAccessors {
  8259. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestRecursiveMessage__FieldAccessorTable; }
  8260. }
  8261. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8262. private bool hasA;
  8263. private global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
  8264. public bool HasA {
  8265. get { return hasA; }
  8266. }
  8267. public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
  8268. get { return a_; }
  8269. }
  8270. // optional int32 i = 2;
  8271. private bool hasI;
  8272. private int i_ = 0;
  8273. public bool HasI {
  8274. get { return hasI; }
  8275. }
  8276. public int I {
  8277. get { return i_; }
  8278. }
  8279. public override bool IsInitialized {
  8280. get {
  8281. return true;
  8282. }
  8283. }
  8284. public override void WriteTo(pb::CodedOutputStream output) {
  8285. if (HasA) {
  8286. output.WriteMessage(1, A);
  8287. }
  8288. if (HasI) {
  8289. output.WriteInt32(2, I);
  8290. }
  8291. UnknownFields.WriteTo(output);
  8292. }
  8293. private int memoizedSerializedSize = -1;
  8294. public override int SerializedSize {
  8295. get {
  8296. int size = memoizedSerializedSize;
  8297. if (size != -1) return size;
  8298. size = 0;
  8299. if (HasA) {
  8300. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8301. }
  8302. if (HasI) {
  8303. size += pb::CodedOutputStream.ComputeInt32Size(2, I);
  8304. }
  8305. size += UnknownFields.SerializedSize;
  8306. memoizedSerializedSize = size;
  8307. return size;
  8308. }
  8309. }
  8310. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::ByteString data) {
  8311. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8312. }
  8313. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::ByteString data,
  8314. pb::ExtensionRegistry extensionRegistry) {
  8315. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8316. .BuildParsed();
  8317. }
  8318. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(byte[] data) {
  8319. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8320. }
  8321. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(byte[] data,
  8322. pb::ExtensionRegistry extensionRegistry) {
  8323. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8324. .BuildParsed();
  8325. }
  8326. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(global::System.IO.Stream input) {
  8327. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8328. }
  8329. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(
  8330. global::System.IO.Stream input,
  8331. pb::ExtensionRegistry extensionRegistry) {
  8332. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8333. .BuildParsed();
  8334. }
  8335. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::CodedInputStream input) {
  8336. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8337. }
  8338. public static global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage ParseFrom(pb::CodedInputStream input,
  8339. pb::ExtensionRegistry extensionRegistry) {
  8340. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8341. .BuildParsed();
  8342. }
  8343. public static Builder CreateBuilder() { return new Builder(); }
  8344. public override Builder CreateBuilderForType() { return new Builder(); }
  8345. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage prototype) {
  8346. return (Builder) new Builder().MergeFrom(prototype);
  8347. }
  8348. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage, Builder> {
  8349. protected override Builder ThisBuilder {
  8350. get { return this; }
  8351. }
  8352. // Construct using global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder()
  8353. public Builder() {}
  8354. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage result = new global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage();
  8355. protected override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage MessageBeingBuilt {
  8356. get { return result; }
  8357. }
  8358. public override Builder Clear() {
  8359. result = new global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage();
  8360. return this;
  8361. }
  8362. public override Builder Clone() {
  8363. return new Builder().MergeFrom(result);
  8364. }
  8365. public override pbd::MessageDescriptor DescriptorForType {
  8366. get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Descriptor; }
  8367. }
  8368. public override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage DefaultInstanceForType {
  8369. get { return global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance; }
  8370. }
  8371. public override global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage BuildPartial() {
  8372. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage returnMe = result;
  8373. result = null;
  8374. return returnMe;
  8375. }
  8376. public override Builder MergeFrom(pb::IMessage other) {
  8377. if (other is global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage) {
  8378. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage) other);
  8379. } else {
  8380. base.MergeFrom(other);
  8381. return this;
  8382. }
  8383. }
  8384. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage other) {
  8385. if (other == global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) return this;
  8386. if (other.HasA) {
  8387. MergeA(other.A);
  8388. }
  8389. if (other.HasI) {
  8390. I = other.I;
  8391. }
  8392. this.MergeUnknownFields(other.UnknownFields);
  8393. return this;
  8394. }
  8395. public override Builder MergeFrom(pb::CodedInputStream input) {
  8396. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8397. }
  8398. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8399. pb::UnknownFieldSet.Builder unknownFields =
  8400. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8401. while (true) {
  8402. uint tag = input.ReadTag();
  8403. switch (tag) {
  8404. case 0:
  8405. this.UnknownFields = unknownFields.Build();
  8406. return this;
  8407. default: {
  8408. if (!ParseUnknownField(input, unknownFields,
  8409. extensionRegistry, tag)) {
  8410. this.UnknownFields = unknownFields.Build();
  8411. return this;
  8412. }
  8413. break;
  8414. }
  8415. case 10: {
  8416. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder();
  8417. if (HasA) {
  8418. subBuilder.MergeFrom(A);
  8419. }
  8420. input.ReadMessage(subBuilder, extensionRegistry);
  8421. A = subBuilder.BuildPartial();
  8422. break;
  8423. }
  8424. case 16: {
  8425. I = input.ReadInt32();
  8426. break;
  8427. }
  8428. }
  8429. }
  8430. }
  8431. // optional .protobuf_unittest.TestRecursiveMessage a = 1;
  8432. public bool HasA {
  8433. get { return result.HasA; }
  8434. }
  8435. public global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage A {
  8436. get { return result.A; }
  8437. set { SetA(value); }
  8438. }
  8439. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
  8440. result.hasA = true;
  8441. result.a_ = value;
  8442. return this;
  8443. }
  8444. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.Builder builderForValue) {
  8445. result.hasA = true;
  8446. result.a_ = builderForValue.Build();
  8447. return this;
  8448. }
  8449. public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage value) {
  8450. if (result.HasA &&
  8451. result.a_ != global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance) {
  8452. result.a_ =
  8453. global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8454. } else {
  8455. result.a_ = value;
  8456. }
  8457. result.hasA = true;
  8458. return this;
  8459. }
  8460. public Builder ClearA() {
  8461. result.hasA = false;
  8462. result.a_ = global::Google.ProtocolBuffers.TestProtos.TestRecursiveMessage.DefaultInstance;
  8463. return this;
  8464. }
  8465. // optional int32 i = 2;
  8466. public bool HasI {
  8467. get { return result.HasI; }
  8468. }
  8469. public int I {
  8470. get { return result.I; }
  8471. set { SetI(value); }
  8472. }
  8473. public Builder SetI(int value) {
  8474. result.hasI = true;
  8475. result.i_ = value;
  8476. return this;
  8477. }
  8478. public Builder ClearI() {
  8479. result.hasI = false;
  8480. result.i_ = 0;
  8481. return this;
  8482. }
  8483. }
  8484. }
  8485. public sealed partial class TestMutualRecursionA : pb::GeneratedMessage<TestMutualRecursionA, TestMutualRecursionA.Builder> {
  8486. private static readonly TestMutualRecursionA defaultInstance = new TestMutualRecursionA();
  8487. public static TestMutualRecursionA DefaultInstance {
  8488. get { return defaultInstance; }
  8489. }
  8490. public override TestMutualRecursionA DefaultInstanceForType {
  8491. get { return defaultInstance; }
  8492. }
  8493. protected override TestMutualRecursionA ThisMessage {
  8494. get { return this; }
  8495. }
  8496. public static pbd::MessageDescriptor Descriptor {
  8497. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__Descriptor; }
  8498. }
  8499. protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionA, TestMutualRecursionA.Builder> InternalFieldAccessors {
  8500. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionA__FieldAccessorTable; }
  8501. }
  8502. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8503. private bool hasBb;
  8504. private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
  8505. public bool HasBb {
  8506. get { return hasBb; }
  8507. }
  8508. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
  8509. get { return bb_; }
  8510. }
  8511. public override bool IsInitialized {
  8512. get {
  8513. return true;
  8514. }
  8515. }
  8516. public override void WriteTo(pb::CodedOutputStream output) {
  8517. if (HasBb) {
  8518. output.WriteMessage(1, Bb);
  8519. }
  8520. UnknownFields.WriteTo(output);
  8521. }
  8522. private int memoizedSerializedSize = -1;
  8523. public override int SerializedSize {
  8524. get {
  8525. int size = memoizedSerializedSize;
  8526. if (size != -1) return size;
  8527. size = 0;
  8528. if (HasBb) {
  8529. size += pb::CodedOutputStream.ComputeMessageSize(1, Bb);
  8530. }
  8531. size += UnknownFields.SerializedSize;
  8532. memoizedSerializedSize = size;
  8533. return size;
  8534. }
  8535. }
  8536. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::ByteString data) {
  8537. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8538. }
  8539. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::ByteString data,
  8540. pb::ExtensionRegistry extensionRegistry) {
  8541. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8542. .BuildParsed();
  8543. }
  8544. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(byte[] data) {
  8545. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8546. }
  8547. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(byte[] data,
  8548. pb::ExtensionRegistry extensionRegistry) {
  8549. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8550. .BuildParsed();
  8551. }
  8552. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(global::System.IO.Stream input) {
  8553. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8554. }
  8555. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(
  8556. global::System.IO.Stream input,
  8557. pb::ExtensionRegistry extensionRegistry) {
  8558. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8559. .BuildParsed();
  8560. }
  8561. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::CodedInputStream input) {
  8562. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8563. }
  8564. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA ParseFrom(pb::CodedInputStream input,
  8565. pb::ExtensionRegistry extensionRegistry) {
  8566. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8567. .BuildParsed();
  8568. }
  8569. public static Builder CreateBuilder() { return new Builder(); }
  8570. public override Builder CreateBuilderForType() { return new Builder(); }
  8571. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA prototype) {
  8572. return (Builder) new Builder().MergeFrom(prototype);
  8573. }
  8574. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA, Builder> {
  8575. protected override Builder ThisBuilder {
  8576. get { return this; }
  8577. }
  8578. // Construct using global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder()
  8579. public Builder() {}
  8580. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA();
  8581. protected override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA MessageBeingBuilt {
  8582. get { return result; }
  8583. }
  8584. public override Builder Clear() {
  8585. result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA();
  8586. return this;
  8587. }
  8588. public override Builder Clone() {
  8589. return new Builder().MergeFrom(result);
  8590. }
  8591. public override pbd::MessageDescriptor DescriptorForType {
  8592. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Descriptor; }
  8593. }
  8594. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA DefaultInstanceForType {
  8595. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance; }
  8596. }
  8597. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA BuildPartial() {
  8598. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA returnMe = result;
  8599. result = null;
  8600. return returnMe;
  8601. }
  8602. public override Builder MergeFrom(pb::IMessage other) {
  8603. if (other is global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA) {
  8604. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA) other);
  8605. } else {
  8606. base.MergeFrom(other);
  8607. return this;
  8608. }
  8609. }
  8610. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA other) {
  8611. if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) return this;
  8612. if (other.HasBb) {
  8613. MergeBb(other.Bb);
  8614. }
  8615. this.MergeUnknownFields(other.UnknownFields);
  8616. return this;
  8617. }
  8618. public override Builder MergeFrom(pb::CodedInputStream input) {
  8619. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8620. }
  8621. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8622. pb::UnknownFieldSet.Builder unknownFields =
  8623. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8624. while (true) {
  8625. uint tag = input.ReadTag();
  8626. switch (tag) {
  8627. case 0:
  8628. this.UnknownFields = unknownFields.Build();
  8629. return this;
  8630. default: {
  8631. if (!ParseUnknownField(input, unknownFields,
  8632. extensionRegistry, tag)) {
  8633. this.UnknownFields = unknownFields.Build();
  8634. return this;
  8635. }
  8636. break;
  8637. }
  8638. case 10: {
  8639. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder();
  8640. if (HasBb) {
  8641. subBuilder.MergeFrom(Bb);
  8642. }
  8643. input.ReadMessage(subBuilder, extensionRegistry);
  8644. Bb = subBuilder.BuildPartial();
  8645. break;
  8646. }
  8647. }
  8648. }
  8649. }
  8650. // optional .protobuf_unittest.TestMutualRecursionB bb = 1;
  8651. public bool HasBb {
  8652. get { return result.HasBb; }
  8653. }
  8654. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB Bb {
  8655. get { return result.Bb; }
  8656. set { SetBb(value); }
  8657. }
  8658. public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
  8659. result.hasBb = true;
  8660. result.bb_ = value;
  8661. return this;
  8662. }
  8663. public Builder SetBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Builder builderForValue) {
  8664. result.hasBb = true;
  8665. result.bb_ = builderForValue.Build();
  8666. return this;
  8667. }
  8668. public Builder MergeBb(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB value) {
  8669. if (result.HasBb &&
  8670. result.bb_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) {
  8671. result.bb_ =
  8672. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder(result.bb_).MergeFrom(value).BuildPartial();
  8673. } else {
  8674. result.bb_ = value;
  8675. }
  8676. result.hasBb = true;
  8677. return this;
  8678. }
  8679. public Builder ClearBb() {
  8680. result.hasBb = false;
  8681. result.bb_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance;
  8682. return this;
  8683. }
  8684. }
  8685. }
  8686. public sealed partial class TestMutualRecursionB : pb::GeneratedMessage<TestMutualRecursionB, TestMutualRecursionB.Builder> {
  8687. private static readonly TestMutualRecursionB defaultInstance = new TestMutualRecursionB();
  8688. public static TestMutualRecursionB DefaultInstance {
  8689. get { return defaultInstance; }
  8690. }
  8691. public override TestMutualRecursionB DefaultInstanceForType {
  8692. get { return defaultInstance; }
  8693. }
  8694. protected override TestMutualRecursionB ThisMessage {
  8695. get { return this; }
  8696. }
  8697. public static pbd::MessageDescriptor Descriptor {
  8698. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__Descriptor; }
  8699. }
  8700. protected override pb::FieldAccess.FieldAccessorTable<TestMutualRecursionB, TestMutualRecursionB.Builder> InternalFieldAccessors {
  8701. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestMutualRecursionB__FieldAccessorTable; }
  8702. }
  8703. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8704. private bool hasA;
  8705. private global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
  8706. public bool HasA {
  8707. get { return hasA; }
  8708. }
  8709. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
  8710. get { return a_; }
  8711. }
  8712. // optional int32 optional_int32 = 2;
  8713. private bool hasOptionalInt32;
  8714. private int optionalInt32_ = 0;
  8715. public bool HasOptionalInt32 {
  8716. get { return hasOptionalInt32; }
  8717. }
  8718. public int OptionalInt32 {
  8719. get { return optionalInt32_; }
  8720. }
  8721. public override bool IsInitialized {
  8722. get {
  8723. return true;
  8724. }
  8725. }
  8726. public override void WriteTo(pb::CodedOutputStream output) {
  8727. if (HasA) {
  8728. output.WriteMessage(1, A);
  8729. }
  8730. if (HasOptionalInt32) {
  8731. output.WriteInt32(2, OptionalInt32);
  8732. }
  8733. UnknownFields.WriteTo(output);
  8734. }
  8735. private int memoizedSerializedSize = -1;
  8736. public override int SerializedSize {
  8737. get {
  8738. int size = memoizedSerializedSize;
  8739. if (size != -1) return size;
  8740. size = 0;
  8741. if (HasA) {
  8742. size += pb::CodedOutputStream.ComputeMessageSize(1, A);
  8743. }
  8744. if (HasOptionalInt32) {
  8745. size += pb::CodedOutputStream.ComputeInt32Size(2, OptionalInt32);
  8746. }
  8747. size += UnknownFields.SerializedSize;
  8748. memoizedSerializedSize = size;
  8749. return size;
  8750. }
  8751. }
  8752. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::ByteString data) {
  8753. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8754. }
  8755. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::ByteString data,
  8756. pb::ExtensionRegistry extensionRegistry) {
  8757. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8758. .BuildParsed();
  8759. }
  8760. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(byte[] data) {
  8761. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8762. }
  8763. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(byte[] data,
  8764. pb::ExtensionRegistry extensionRegistry) {
  8765. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  8766. .BuildParsed();
  8767. }
  8768. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(global::System.IO.Stream input) {
  8769. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8770. }
  8771. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(
  8772. global::System.IO.Stream input,
  8773. pb::ExtensionRegistry extensionRegistry) {
  8774. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8775. .BuildParsed();
  8776. }
  8777. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::CodedInputStream input) {
  8778. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8779. }
  8780. public static global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB ParseFrom(pb::CodedInputStream input,
  8781. pb::ExtensionRegistry extensionRegistry) {
  8782. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  8783. .BuildParsed();
  8784. }
  8785. public static Builder CreateBuilder() { return new Builder(); }
  8786. public override Builder CreateBuilderForType() { return new Builder(); }
  8787. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB prototype) {
  8788. return (Builder) new Builder().MergeFrom(prototype);
  8789. }
  8790. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB, Builder> {
  8791. protected override Builder ThisBuilder {
  8792. get { return this; }
  8793. }
  8794. // Construct using global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.CreateBuilder()
  8795. public Builder() {}
  8796. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB();
  8797. protected override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB MessageBeingBuilt {
  8798. get { return result; }
  8799. }
  8800. public override Builder Clear() {
  8801. result = new global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB();
  8802. return this;
  8803. }
  8804. public override Builder Clone() {
  8805. return new Builder().MergeFrom(result);
  8806. }
  8807. public override pbd::MessageDescriptor DescriptorForType {
  8808. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.Descriptor; }
  8809. }
  8810. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB DefaultInstanceForType {
  8811. get { return global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance; }
  8812. }
  8813. public override global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB BuildPartial() {
  8814. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB returnMe = result;
  8815. result = null;
  8816. return returnMe;
  8817. }
  8818. public override Builder MergeFrom(pb::IMessage other) {
  8819. if (other is global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB) {
  8820. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB) other);
  8821. } else {
  8822. base.MergeFrom(other);
  8823. return this;
  8824. }
  8825. }
  8826. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB other) {
  8827. if (other == global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionB.DefaultInstance) return this;
  8828. if (other.HasA) {
  8829. MergeA(other.A);
  8830. }
  8831. if (other.HasOptionalInt32) {
  8832. OptionalInt32 = other.OptionalInt32;
  8833. }
  8834. this.MergeUnknownFields(other.UnknownFields);
  8835. return this;
  8836. }
  8837. public override Builder MergeFrom(pb::CodedInputStream input) {
  8838. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8839. }
  8840. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8841. pb::UnknownFieldSet.Builder unknownFields =
  8842. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8843. while (true) {
  8844. uint tag = input.ReadTag();
  8845. switch (tag) {
  8846. case 0:
  8847. this.UnknownFields = unknownFields.Build();
  8848. return this;
  8849. default: {
  8850. if (!ParseUnknownField(input, unknownFields,
  8851. extensionRegistry, tag)) {
  8852. this.UnknownFields = unknownFields.Build();
  8853. return this;
  8854. }
  8855. break;
  8856. }
  8857. case 10: {
  8858. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder();
  8859. if (HasA) {
  8860. subBuilder.MergeFrom(A);
  8861. }
  8862. input.ReadMessage(subBuilder, extensionRegistry);
  8863. A = subBuilder.BuildPartial();
  8864. break;
  8865. }
  8866. case 16: {
  8867. OptionalInt32 = input.ReadInt32();
  8868. break;
  8869. }
  8870. }
  8871. }
  8872. }
  8873. // optional .protobuf_unittest.TestMutualRecursionA a = 1;
  8874. public bool HasA {
  8875. get { return result.HasA; }
  8876. }
  8877. public global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA A {
  8878. get { return result.A; }
  8879. set { SetA(value); }
  8880. }
  8881. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
  8882. result.hasA = true;
  8883. result.a_ = value;
  8884. return this;
  8885. }
  8886. public Builder SetA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.Builder builderForValue) {
  8887. result.hasA = true;
  8888. result.a_ = builderForValue.Build();
  8889. return this;
  8890. }
  8891. public Builder MergeA(global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA value) {
  8892. if (result.HasA &&
  8893. result.a_ != global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance) {
  8894. result.a_ =
  8895. global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.CreateBuilder(result.a_).MergeFrom(value).BuildPartial();
  8896. } else {
  8897. result.a_ = value;
  8898. }
  8899. result.hasA = true;
  8900. return this;
  8901. }
  8902. public Builder ClearA() {
  8903. result.hasA = false;
  8904. result.a_ = global::Google.ProtocolBuffers.TestProtos.TestMutualRecursionA.DefaultInstance;
  8905. return this;
  8906. }
  8907. // optional int32 optional_int32 = 2;
  8908. public bool HasOptionalInt32 {
  8909. get { return result.HasOptionalInt32; }
  8910. }
  8911. public int OptionalInt32 {
  8912. get { return result.OptionalInt32; }
  8913. set { SetOptionalInt32(value); }
  8914. }
  8915. public Builder SetOptionalInt32(int value) {
  8916. result.hasOptionalInt32 = true;
  8917. result.optionalInt32_ = value;
  8918. return this;
  8919. }
  8920. public Builder ClearOptionalInt32() {
  8921. result.hasOptionalInt32 = false;
  8922. result.optionalInt32_ = 0;
  8923. return this;
  8924. }
  8925. }
  8926. }
  8927. public sealed partial class TestDupFieldNumber : pb::GeneratedMessage<TestDupFieldNumber, TestDupFieldNumber.Builder> {
  8928. private static readonly TestDupFieldNumber defaultInstance = new TestDupFieldNumber();
  8929. public static TestDupFieldNumber DefaultInstance {
  8930. get { return defaultInstance; }
  8931. }
  8932. public override TestDupFieldNumber DefaultInstanceForType {
  8933. get { return defaultInstance; }
  8934. }
  8935. protected override TestDupFieldNumber ThisMessage {
  8936. get { return this; }
  8937. }
  8938. public static pbd::MessageDescriptor Descriptor {
  8939. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__Descriptor; }
  8940. }
  8941. protected override pb::FieldAccess.FieldAccessorTable<TestDupFieldNumber, TestDupFieldNumber.Builder> InternalFieldAccessors {
  8942. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber__FieldAccessorTable; }
  8943. }
  8944. #region Nested types
  8945. public static class Types {
  8946. public sealed partial class Foo : pb::GeneratedMessage<Foo, Foo.Builder> {
  8947. private static readonly Foo defaultInstance = new Foo();
  8948. public static Foo DefaultInstance {
  8949. get { return defaultInstance; }
  8950. }
  8951. public override Foo DefaultInstanceForType {
  8952. get { return defaultInstance; }
  8953. }
  8954. protected override Foo ThisMessage {
  8955. get { return this; }
  8956. }
  8957. public static pbd::MessageDescriptor Descriptor {
  8958. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__Descriptor; }
  8959. }
  8960. protected override pb::FieldAccess.FieldAccessorTable<Foo, Foo.Builder> InternalFieldAccessors {
  8961. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Foo__FieldAccessorTable; }
  8962. }
  8963. // optional int32 a = 1;
  8964. private bool hasA;
  8965. private int a_ = 0;
  8966. public bool HasA {
  8967. get { return hasA; }
  8968. }
  8969. public int A {
  8970. get { return a_; }
  8971. }
  8972. public override bool IsInitialized {
  8973. get {
  8974. return true;
  8975. }
  8976. }
  8977. public override void WriteTo(pb::CodedOutputStream output) {
  8978. if (HasA) {
  8979. output.WriteInt32(1, A);
  8980. }
  8981. UnknownFields.WriteTo(output);
  8982. }
  8983. private int memoizedSerializedSize = -1;
  8984. public override int SerializedSize {
  8985. get {
  8986. int size = memoizedSerializedSize;
  8987. if (size != -1) return size;
  8988. size = 0;
  8989. if (HasA) {
  8990. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  8991. }
  8992. size += UnknownFields.SerializedSize;
  8993. memoizedSerializedSize = size;
  8994. return size;
  8995. }
  8996. }
  8997. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data) {
  8998. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8999. }
  9000. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::ByteString data,
  9001. pb::ExtensionRegistry extensionRegistry) {
  9002. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9003. .BuildParsed();
  9004. }
  9005. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(byte[] data) {
  9006. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9007. }
  9008. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(byte[] data,
  9009. pb::ExtensionRegistry extensionRegistry) {
  9010. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9011. .BuildParsed();
  9012. }
  9013. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(global::System.IO.Stream input) {
  9014. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9015. }
  9016. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(
  9017. global::System.IO.Stream input,
  9018. pb::ExtensionRegistry extensionRegistry) {
  9019. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9020. .BuildParsed();
  9021. }
  9022. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input) {
  9023. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9024. }
  9025. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo ParseFrom(pb::CodedInputStream input,
  9026. pb::ExtensionRegistry extensionRegistry) {
  9027. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9028. .BuildParsed();
  9029. }
  9030. public static Builder CreateBuilder() { return new Builder(); }
  9031. public override Builder CreateBuilderForType() { return new Builder(); }
  9032. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo prototype) {
  9033. return (Builder) new Builder().MergeFrom(prototype);
  9034. }
  9035. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo, Builder> {
  9036. protected override Builder ThisBuilder {
  9037. get { return this; }
  9038. }
  9039. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder()
  9040. public Builder() {}
  9041. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo();
  9042. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo MessageBeingBuilt {
  9043. get { return result; }
  9044. }
  9045. public override Builder Clear() {
  9046. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo();
  9047. return this;
  9048. }
  9049. public override Builder Clone() {
  9050. return new Builder().MergeFrom(result);
  9051. }
  9052. public override pbd::MessageDescriptor DescriptorForType {
  9053. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Descriptor; }
  9054. }
  9055. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo DefaultInstanceForType {
  9056. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance; }
  9057. }
  9058. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo BuildPartial() {
  9059. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo returnMe = result;
  9060. result = null;
  9061. return returnMe;
  9062. }
  9063. public override Builder MergeFrom(pb::IMessage other) {
  9064. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo) {
  9065. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo) other);
  9066. } else {
  9067. base.MergeFrom(other);
  9068. return this;
  9069. }
  9070. }
  9071. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo other) {
  9072. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) return this;
  9073. if (other.HasA) {
  9074. A = other.A;
  9075. }
  9076. this.MergeUnknownFields(other.UnknownFields);
  9077. return this;
  9078. }
  9079. public override Builder MergeFrom(pb::CodedInputStream input) {
  9080. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9081. }
  9082. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9083. pb::UnknownFieldSet.Builder unknownFields =
  9084. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9085. while (true) {
  9086. uint tag = input.ReadTag();
  9087. switch (tag) {
  9088. case 0:
  9089. this.UnknownFields = unknownFields.Build();
  9090. return this;
  9091. default: {
  9092. if (!ParseUnknownField(input, unknownFields,
  9093. extensionRegistry, tag)) {
  9094. this.UnknownFields = unknownFields.Build();
  9095. return this;
  9096. }
  9097. break;
  9098. }
  9099. case 8: {
  9100. A = input.ReadInt32();
  9101. break;
  9102. }
  9103. }
  9104. }
  9105. }
  9106. // optional int32 a = 1;
  9107. public bool HasA {
  9108. get { return result.HasA; }
  9109. }
  9110. public int A {
  9111. get { return result.A; }
  9112. set { SetA(value); }
  9113. }
  9114. public Builder SetA(int value) {
  9115. result.hasA = true;
  9116. result.a_ = value;
  9117. return this;
  9118. }
  9119. public Builder ClearA() {
  9120. result.hasA = false;
  9121. result.a_ = 0;
  9122. return this;
  9123. }
  9124. }
  9125. }
  9126. public sealed partial class Bar : pb::GeneratedMessage<Bar, Bar.Builder> {
  9127. private static readonly Bar defaultInstance = new Bar();
  9128. public static Bar DefaultInstance {
  9129. get { return defaultInstance; }
  9130. }
  9131. public override Bar DefaultInstanceForType {
  9132. get { return defaultInstance; }
  9133. }
  9134. protected override Bar ThisMessage {
  9135. get { return this; }
  9136. }
  9137. public static pbd::MessageDescriptor Descriptor {
  9138. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__Descriptor; }
  9139. }
  9140. protected override pb::FieldAccess.FieldAccessorTable<Bar, Bar.Builder> InternalFieldAccessors {
  9141. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestDupFieldNumber_Bar__FieldAccessorTable; }
  9142. }
  9143. // optional int32 a = 1;
  9144. private bool hasA;
  9145. private int a_ = 0;
  9146. public bool HasA {
  9147. get { return hasA; }
  9148. }
  9149. public int A {
  9150. get { return a_; }
  9151. }
  9152. public override bool IsInitialized {
  9153. get {
  9154. return true;
  9155. }
  9156. }
  9157. public override void WriteTo(pb::CodedOutputStream output) {
  9158. if (HasA) {
  9159. output.WriteInt32(1, A);
  9160. }
  9161. UnknownFields.WriteTo(output);
  9162. }
  9163. private int memoizedSerializedSize = -1;
  9164. public override int SerializedSize {
  9165. get {
  9166. int size = memoizedSerializedSize;
  9167. if (size != -1) return size;
  9168. size = 0;
  9169. if (HasA) {
  9170. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9171. }
  9172. size += UnknownFields.SerializedSize;
  9173. memoizedSerializedSize = size;
  9174. return size;
  9175. }
  9176. }
  9177. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data) {
  9178. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9179. }
  9180. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::ByteString data,
  9181. pb::ExtensionRegistry extensionRegistry) {
  9182. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9183. .BuildParsed();
  9184. }
  9185. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(byte[] data) {
  9186. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9187. }
  9188. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(byte[] data,
  9189. pb::ExtensionRegistry extensionRegistry) {
  9190. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9191. .BuildParsed();
  9192. }
  9193. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(global::System.IO.Stream input) {
  9194. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9195. }
  9196. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(
  9197. global::System.IO.Stream input,
  9198. pb::ExtensionRegistry extensionRegistry) {
  9199. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9200. .BuildParsed();
  9201. }
  9202. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input) {
  9203. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9204. }
  9205. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar ParseFrom(pb::CodedInputStream input,
  9206. pb::ExtensionRegistry extensionRegistry) {
  9207. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9208. .BuildParsed();
  9209. }
  9210. public static Builder CreateBuilder() { return new Builder(); }
  9211. public override Builder CreateBuilderForType() { return new Builder(); }
  9212. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar prototype) {
  9213. return (Builder) new Builder().MergeFrom(prototype);
  9214. }
  9215. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar, Builder> {
  9216. protected override Builder ThisBuilder {
  9217. get { return this; }
  9218. }
  9219. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder()
  9220. public Builder() {}
  9221. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar();
  9222. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar MessageBeingBuilt {
  9223. get { return result; }
  9224. }
  9225. public override Builder Clear() {
  9226. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar();
  9227. return this;
  9228. }
  9229. public override Builder Clone() {
  9230. return new Builder().MergeFrom(result);
  9231. }
  9232. public override pbd::MessageDescriptor DescriptorForType {
  9233. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Descriptor; }
  9234. }
  9235. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar DefaultInstanceForType {
  9236. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance; }
  9237. }
  9238. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar BuildPartial() {
  9239. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar returnMe = result;
  9240. result = null;
  9241. return returnMe;
  9242. }
  9243. public override Builder MergeFrom(pb::IMessage other) {
  9244. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar) {
  9245. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar) other);
  9246. } else {
  9247. base.MergeFrom(other);
  9248. return this;
  9249. }
  9250. }
  9251. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar other) {
  9252. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) return this;
  9253. if (other.HasA) {
  9254. A = other.A;
  9255. }
  9256. this.MergeUnknownFields(other.UnknownFields);
  9257. return this;
  9258. }
  9259. public override Builder MergeFrom(pb::CodedInputStream input) {
  9260. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9261. }
  9262. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9263. pb::UnknownFieldSet.Builder unknownFields =
  9264. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9265. while (true) {
  9266. uint tag = input.ReadTag();
  9267. switch (tag) {
  9268. case 0:
  9269. this.UnknownFields = unknownFields.Build();
  9270. return this;
  9271. default: {
  9272. if (!ParseUnknownField(input, unknownFields,
  9273. extensionRegistry, tag)) {
  9274. this.UnknownFields = unknownFields.Build();
  9275. return this;
  9276. }
  9277. break;
  9278. }
  9279. case 8: {
  9280. A = input.ReadInt32();
  9281. break;
  9282. }
  9283. }
  9284. }
  9285. }
  9286. // optional int32 a = 1;
  9287. public bool HasA {
  9288. get { return result.HasA; }
  9289. }
  9290. public int A {
  9291. get { return result.A; }
  9292. set { SetA(value); }
  9293. }
  9294. public Builder SetA(int value) {
  9295. result.hasA = true;
  9296. result.a_ = value;
  9297. return this;
  9298. }
  9299. public Builder ClearA() {
  9300. result.hasA = false;
  9301. result.a_ = 0;
  9302. return this;
  9303. }
  9304. }
  9305. }
  9306. }
  9307. #endregion
  9308. // optional int32 a = 1;
  9309. private bool hasA;
  9310. private int a_ = 0;
  9311. public bool HasA {
  9312. get { return hasA; }
  9313. }
  9314. public int A {
  9315. get { return a_; }
  9316. }
  9317. // optional group Foo = 2 {
  9318. private bool hasFoo;
  9319. private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
  9320. public bool HasFoo {
  9321. get { return hasFoo; }
  9322. }
  9323. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
  9324. get { return foo_; }
  9325. }
  9326. // optional group Bar = 3 {
  9327. private bool hasBar;
  9328. private global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
  9329. public bool HasBar {
  9330. get { return hasBar; }
  9331. }
  9332. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
  9333. get { return bar_; }
  9334. }
  9335. public override bool IsInitialized {
  9336. get {
  9337. return true;
  9338. }
  9339. }
  9340. public override void WriteTo(pb::CodedOutputStream output) {
  9341. if (HasA) {
  9342. output.WriteInt32(1, A);
  9343. }
  9344. if (HasFoo) {
  9345. output.WriteGroup(2, Foo);
  9346. }
  9347. if (HasBar) {
  9348. output.WriteGroup(3, Bar);
  9349. }
  9350. UnknownFields.WriteTo(output);
  9351. }
  9352. private int memoizedSerializedSize = -1;
  9353. public override int SerializedSize {
  9354. get {
  9355. int size = memoizedSerializedSize;
  9356. if (size != -1) return size;
  9357. size = 0;
  9358. if (HasA) {
  9359. size += pb::CodedOutputStream.ComputeInt32Size(1, A);
  9360. }
  9361. if (HasFoo) {
  9362. size += pb::CodedOutputStream.ComputeGroupSize(2, Foo);
  9363. }
  9364. if (HasBar) {
  9365. size += pb::CodedOutputStream.ComputeGroupSize(3, Bar);
  9366. }
  9367. size += UnknownFields.SerializedSize;
  9368. memoizedSerializedSize = size;
  9369. return size;
  9370. }
  9371. }
  9372. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::ByteString data) {
  9373. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9374. }
  9375. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::ByteString data,
  9376. pb::ExtensionRegistry extensionRegistry) {
  9377. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9378. .BuildParsed();
  9379. }
  9380. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(byte[] data) {
  9381. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9382. }
  9383. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(byte[] data,
  9384. pb::ExtensionRegistry extensionRegistry) {
  9385. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9386. .BuildParsed();
  9387. }
  9388. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(global::System.IO.Stream input) {
  9389. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9390. }
  9391. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(
  9392. global::System.IO.Stream input,
  9393. pb::ExtensionRegistry extensionRegistry) {
  9394. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9395. .BuildParsed();
  9396. }
  9397. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::CodedInputStream input) {
  9398. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9399. }
  9400. public static global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber ParseFrom(pb::CodedInputStream input,
  9401. pb::ExtensionRegistry extensionRegistry) {
  9402. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9403. .BuildParsed();
  9404. }
  9405. public static Builder CreateBuilder() { return new Builder(); }
  9406. public override Builder CreateBuilderForType() { return new Builder(); }
  9407. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber prototype) {
  9408. return (Builder) new Builder().MergeFrom(prototype);
  9409. }
  9410. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber, Builder> {
  9411. protected override Builder ThisBuilder {
  9412. get { return this; }
  9413. }
  9414. // Construct using global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.CreateBuilder()
  9415. public Builder() {}
  9416. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber();
  9417. protected override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber MessageBeingBuilt {
  9418. get { return result; }
  9419. }
  9420. public override Builder Clear() {
  9421. result = new global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber();
  9422. return this;
  9423. }
  9424. public override Builder Clone() {
  9425. return new Builder().MergeFrom(result);
  9426. }
  9427. public override pbd::MessageDescriptor DescriptorForType {
  9428. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Descriptor; }
  9429. }
  9430. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber DefaultInstanceForType {
  9431. get { return global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance; }
  9432. }
  9433. public override global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber BuildPartial() {
  9434. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber returnMe = result;
  9435. result = null;
  9436. return returnMe;
  9437. }
  9438. public override Builder MergeFrom(pb::IMessage other) {
  9439. if (other is global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber) {
  9440. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber) other);
  9441. } else {
  9442. base.MergeFrom(other);
  9443. return this;
  9444. }
  9445. }
  9446. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber other) {
  9447. if (other == global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.DefaultInstance) return this;
  9448. if (other.HasA) {
  9449. A = other.A;
  9450. }
  9451. if (other.HasFoo) {
  9452. MergeFoo(other.Foo);
  9453. }
  9454. if (other.HasBar) {
  9455. MergeBar(other.Bar);
  9456. }
  9457. this.MergeUnknownFields(other.UnknownFields);
  9458. return this;
  9459. }
  9460. public override Builder MergeFrom(pb::CodedInputStream input) {
  9461. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9462. }
  9463. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9464. pb::UnknownFieldSet.Builder unknownFields =
  9465. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9466. while (true) {
  9467. uint tag = input.ReadTag();
  9468. switch (tag) {
  9469. case 0:
  9470. this.UnknownFields = unknownFields.Build();
  9471. return this;
  9472. default: {
  9473. if (!ParseUnknownField(input, unknownFields,
  9474. extensionRegistry, tag)) {
  9475. this.UnknownFields = unknownFields.Build();
  9476. return this;
  9477. }
  9478. break;
  9479. }
  9480. case 8: {
  9481. A = input.ReadInt32();
  9482. break;
  9483. }
  9484. case 19: {
  9485. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder();
  9486. if (HasFoo) {
  9487. subBuilder.MergeFrom(Foo);
  9488. }
  9489. input.ReadGroup(2, subBuilder, extensionRegistry);
  9490. Foo = subBuilder.BuildPartial();
  9491. break;
  9492. }
  9493. case 27: {
  9494. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder();
  9495. if (HasBar) {
  9496. subBuilder.MergeFrom(Bar);
  9497. }
  9498. input.ReadGroup(3, subBuilder, extensionRegistry);
  9499. Bar = subBuilder.BuildPartial();
  9500. break;
  9501. }
  9502. }
  9503. }
  9504. }
  9505. // optional int32 a = 1;
  9506. public bool HasA {
  9507. get { return result.HasA; }
  9508. }
  9509. public int A {
  9510. get { return result.A; }
  9511. set { SetA(value); }
  9512. }
  9513. public Builder SetA(int value) {
  9514. result.hasA = true;
  9515. result.a_ = value;
  9516. return this;
  9517. }
  9518. public Builder ClearA() {
  9519. result.hasA = false;
  9520. result.a_ = 0;
  9521. return this;
  9522. }
  9523. // optional group Foo = 2 {
  9524. public bool HasFoo {
  9525. get { return result.HasFoo; }
  9526. }
  9527. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo Foo {
  9528. get { return result.Foo; }
  9529. set { SetFoo(value); }
  9530. }
  9531. public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
  9532. result.hasFoo = true;
  9533. result.foo_ = value;
  9534. return this;
  9535. }
  9536. public Builder SetFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.Builder builderForValue) {
  9537. result.hasFoo = true;
  9538. result.foo_ = builderForValue.Build();
  9539. return this;
  9540. }
  9541. public Builder MergeFoo(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo value) {
  9542. if (result.HasFoo &&
  9543. result.foo_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance) {
  9544. result.foo_ =
  9545. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.CreateBuilder(result.foo_).MergeFrom(value).BuildPartial();
  9546. } else {
  9547. result.foo_ = value;
  9548. }
  9549. result.hasFoo = true;
  9550. return this;
  9551. }
  9552. public Builder ClearFoo() {
  9553. result.hasFoo = false;
  9554. result.foo_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Foo.DefaultInstance;
  9555. return this;
  9556. }
  9557. // optional group Bar = 3 {
  9558. public bool HasBar {
  9559. get { return result.HasBar; }
  9560. }
  9561. public global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar Bar {
  9562. get { return result.Bar; }
  9563. set { SetBar(value); }
  9564. }
  9565. public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
  9566. result.hasBar = true;
  9567. result.bar_ = value;
  9568. return this;
  9569. }
  9570. public Builder SetBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.Builder builderForValue) {
  9571. result.hasBar = true;
  9572. result.bar_ = builderForValue.Build();
  9573. return this;
  9574. }
  9575. public Builder MergeBar(global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar value) {
  9576. if (result.HasBar &&
  9577. result.bar_ != global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance) {
  9578. result.bar_ =
  9579. global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.CreateBuilder(result.bar_).MergeFrom(value).BuildPartial();
  9580. } else {
  9581. result.bar_ = value;
  9582. }
  9583. result.hasBar = true;
  9584. return this;
  9585. }
  9586. public Builder ClearBar() {
  9587. result.hasBar = false;
  9588. result.bar_ = global::Google.ProtocolBuffers.TestProtos.TestDupFieldNumber.Types.Bar.DefaultInstance;
  9589. return this;
  9590. }
  9591. }
  9592. }
  9593. public sealed partial class TestNestedMessageHasBits : pb::GeneratedMessage<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> {
  9594. private static readonly TestNestedMessageHasBits defaultInstance = new TestNestedMessageHasBits();
  9595. public static TestNestedMessageHasBits DefaultInstance {
  9596. get { return defaultInstance; }
  9597. }
  9598. public override TestNestedMessageHasBits DefaultInstanceForType {
  9599. get { return defaultInstance; }
  9600. }
  9601. protected override TestNestedMessageHasBits ThisMessage {
  9602. get { return this; }
  9603. }
  9604. public static pbd::MessageDescriptor Descriptor {
  9605. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__Descriptor; }
  9606. }
  9607. protected override pb::FieldAccess.FieldAccessorTable<TestNestedMessageHasBits, TestNestedMessageHasBits.Builder> InternalFieldAccessors {
  9608. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits__FieldAccessorTable; }
  9609. }
  9610. #region Nested types
  9611. public static class Types {
  9612. public sealed partial class NestedMessage : pb::GeneratedMessage<NestedMessage, NestedMessage.Builder> {
  9613. private static readonly NestedMessage defaultInstance = new NestedMessage();
  9614. public static NestedMessage DefaultInstance {
  9615. get { return defaultInstance; }
  9616. }
  9617. public override NestedMessage DefaultInstanceForType {
  9618. get { return defaultInstance; }
  9619. }
  9620. protected override NestedMessage ThisMessage {
  9621. get { return this; }
  9622. }
  9623. public static pbd::MessageDescriptor Descriptor {
  9624. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__Descriptor; }
  9625. }
  9626. protected override pb::FieldAccess.FieldAccessorTable<NestedMessage, NestedMessage.Builder> InternalFieldAccessors {
  9627. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestNestedMessageHasBits_NestedMessage__FieldAccessorTable; }
  9628. }
  9629. // repeated int32 nestedmessage_repeated_int32 = 1;
  9630. private scg::IList<int> nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9631. public scg::IList<int> NestedmessageRepeatedInt32List {
  9632. get { return nestedmessageRepeatedInt32_; }
  9633. }
  9634. public int NestedmessageRepeatedInt32Count {
  9635. get { return nestedmessageRepeatedInt32_.Count; }
  9636. }
  9637. public int GetNestedmessageRepeatedInt32(int index) {
  9638. return nestedmessageRepeatedInt32_[index];
  9639. }
  9640. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9641. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> nestedmessageRepeatedForeignmessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  9642. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9643. get { return nestedmessageRepeatedForeignmessage_; }
  9644. }
  9645. public int NestedmessageRepeatedForeignmessageCount
  9646. { get { return nestedmessageRepeatedForeignmessage_.Count; }
  9647. }
  9648. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9649. return nestedmessageRepeatedForeignmessage_ [index];
  9650. }
  9651. public override bool IsInitialized {
  9652. get {
  9653. return true;
  9654. }
  9655. }
  9656. public override void WriteTo(pb::CodedOutputStream output) {
  9657. foreach (int element in NestedmessageRepeatedInt32List) {
  9658. output.WriteInt32(1, element);
  9659. }
  9660. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9661. output.WriteMessage(2, element);
  9662. }
  9663. UnknownFields.WriteTo(output);
  9664. }
  9665. private int memoizedSerializedSize = -1;
  9666. public override int SerializedSize {
  9667. get {
  9668. int size = memoizedSerializedSize;
  9669. if (size != -1) return size;
  9670. size = 0;
  9671. foreach (int element in NestedmessageRepeatedInt32List) {
  9672. size += pb::CodedOutputStream
  9673. .ComputeInt32Size(1, element);
  9674. }
  9675. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in NestedmessageRepeatedForeignmessageList) {
  9676. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  9677. }
  9678. size += UnknownFields.SerializedSize;
  9679. memoizedSerializedSize = size;
  9680. return size;
  9681. }
  9682. }
  9683. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data) {
  9684. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9685. }
  9686. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::ByteString data,
  9687. pb::ExtensionRegistry extensionRegistry) {
  9688. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9689. .BuildParsed();
  9690. }
  9691. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data) {
  9692. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9693. }
  9694. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(byte[] data,
  9695. pb::ExtensionRegistry extensionRegistry) {
  9696. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9697. .BuildParsed();
  9698. }
  9699. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(global::System.IO.Stream input) {
  9700. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9701. }
  9702. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(
  9703. global::System.IO.Stream input,
  9704. pb::ExtensionRegistry extensionRegistry) {
  9705. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9706. .BuildParsed();
  9707. }
  9708. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input) {
  9709. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9710. }
  9711. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage ParseFrom(pb::CodedInputStream input,
  9712. pb::ExtensionRegistry extensionRegistry) {
  9713. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9714. .BuildParsed();
  9715. }
  9716. public static Builder CreateBuilder() { return new Builder(); }
  9717. public override Builder CreateBuilderForType() { return new Builder(); }
  9718. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage prototype) {
  9719. return (Builder) new Builder().MergeFrom(prototype);
  9720. }
  9721. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage, Builder> {
  9722. protected override Builder ThisBuilder {
  9723. get { return this; }
  9724. }
  9725. // Construct using global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder()
  9726. public Builder() {}
  9727. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage();
  9728. protected override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage MessageBeingBuilt {
  9729. get { return result; }
  9730. }
  9731. public override Builder Clear() {
  9732. result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage();
  9733. return this;
  9734. }
  9735. public override Builder Clone() {
  9736. return new Builder().MergeFrom(result);
  9737. }
  9738. public override pbd::MessageDescriptor DescriptorForType {
  9739. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Descriptor; }
  9740. }
  9741. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage DefaultInstanceForType {
  9742. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance; }
  9743. }
  9744. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage BuildPartial() {
  9745. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_);
  9746. if (result.nestedmessageRepeatedForeignmessage_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9747. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.AsReadOnly(result.nestedmessageRepeatedForeignmessage_);
  9748. }
  9749. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage returnMe = result;
  9750. result = null;
  9751. return returnMe;
  9752. }
  9753. public override Builder MergeFrom(pb::IMessage other) {
  9754. if (other is global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage) {
  9755. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage) other);
  9756. } else {
  9757. base.MergeFrom(other);
  9758. return this;
  9759. }
  9760. }
  9761. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage other) {
  9762. if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) return this;
  9763. if (other.nestedmessageRepeatedInt32_.Count != 0) {
  9764. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9765. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9766. }
  9767. base.AddRange(other.nestedmessageRepeatedInt32_, result.nestedmessageRepeatedInt32_);
  9768. }
  9769. if (other.nestedmessageRepeatedForeignmessage_.Count != 0) {
  9770. if (result.nestedmessageRepeatedForeignmessage_.Count == 0) {
  9771. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9772. }
  9773. base.AddRange(other.nestedmessageRepeatedForeignmessage_, result.nestedmessageRepeatedForeignmessage_);
  9774. }
  9775. this.MergeUnknownFields(other.UnknownFields);
  9776. return this;
  9777. }
  9778. public override Builder MergeFrom(pb::CodedInputStream input) {
  9779. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  9780. }
  9781. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  9782. pb::UnknownFieldSet.Builder unknownFields =
  9783. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  9784. while (true) {
  9785. uint tag = input.ReadTag();
  9786. switch (tag) {
  9787. case 0:
  9788. this.UnknownFields = unknownFields.Build();
  9789. return this;
  9790. default: {
  9791. if (!ParseUnknownField(input, unknownFields,
  9792. extensionRegistry, tag)) {
  9793. this.UnknownFields = unknownFields.Build();
  9794. return this;
  9795. }
  9796. break;
  9797. }
  9798. case 8: {
  9799. AddNestedmessageRepeatedInt32(input.ReadInt32());
  9800. break;
  9801. }
  9802. case 18: {
  9803. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  9804. input.ReadMessage(subBuilder, extensionRegistry);
  9805. AddNestedmessageRepeatedForeignmessage(subBuilder.BuildPartial());
  9806. break;
  9807. }
  9808. }
  9809. }
  9810. }
  9811. // repeated int32 nestedmessage_repeated_int32 = 1;
  9812. public scg::IList<int> NestedmessageRepeatedInt32List {
  9813. get { return pbc::Lists<int>.AsReadOnly(result.nestedmessageRepeatedInt32_); }
  9814. }
  9815. public int NestedmessageRepeatedInt32Count {
  9816. get { return result.NestedmessageRepeatedInt32Count; }
  9817. }
  9818. public int GetNestedmessageRepeatedInt32(int index) {
  9819. return result.GetNestedmessageRepeatedInt32(index);
  9820. }
  9821. public Builder SetNestedmessageRepeatedInt32(int index, int value) {
  9822. result.nestedmessageRepeatedInt32_[index] = value;
  9823. return this;
  9824. }
  9825. public Builder AddNestedmessageRepeatedInt32(int value) {
  9826. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9827. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9828. }
  9829. result.nestedmessageRepeatedInt32_.Add(value);
  9830. return this;
  9831. }
  9832. public Builder AddRangeNestedmessageRepeatedInt32(scg::IEnumerable<int> values) {
  9833. if (result.nestedmessageRepeatedInt32_.Count == 0) {
  9834. result.nestedmessageRepeatedInt32_ = new scg::List<int>();
  9835. }
  9836. base.AddRange(values, result.nestedmessageRepeatedInt32_);
  9837. return this;
  9838. }
  9839. public Builder ClearNestedmessageRepeatedInt32() {
  9840. result.nestedmessageRepeatedInt32_ = pbc::Lists<int>.Empty;
  9841. return this;
  9842. }
  9843. // repeated .protobuf_unittest.ForeignMessage nestedmessage_repeated_foreignmessage = 2;
  9844. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> NestedmessageRepeatedForeignmessageList {
  9845. get { return pbc::Lists.AsReadOnly(result.nestedmessageRepeatedForeignmessage_); }
  9846. }
  9847. public int NestedmessageRepeatedForeignmessageCount {
  9848. get { return result.NestedmessageRepeatedForeignmessageCount; }
  9849. }
  9850. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetNestedmessageRepeatedForeignmessage(int index) {
  9851. return result.GetNestedmessageRepeatedForeignmessage(index);
  9852. }
  9853. public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  9854. result.nestedmessageRepeatedForeignmessage_[index] = value;
  9855. return this;
  9856. }
  9857. public Builder SetNestedmessageRepeatedForeignmessage(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  9858. result.nestedmessageRepeatedForeignmessage_[index] = builderForValue.Build();
  9859. return this;
  9860. }
  9861. public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  9862. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9863. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9864. }
  9865. result.nestedmessageRepeatedForeignmessage_.Add(value);
  9866. return this;
  9867. }
  9868. public Builder AddNestedmessageRepeatedForeignmessage(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  9869. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9870. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9871. }
  9872. result.nestedmessageRepeatedForeignmessage_.Add(builderForValue.Build());
  9873. return this;
  9874. }
  9875. public Builder AddRangeNestedmessageRepeatedForeignmessage(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  9876. if (result.nestedmessageRepeatedForeignmessage_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  9877. result.nestedmessageRepeatedForeignmessage_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  9878. }
  9879. base.AddRange(values, result.nestedmessageRepeatedForeignmessage_);
  9880. return this;
  9881. }
  9882. public Builder ClearNestedmessageRepeatedForeignmessage() {
  9883. result.nestedmessageRepeatedForeignmessage_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  9884. return this;
  9885. }
  9886. }
  9887. }
  9888. }
  9889. #endregion
  9890. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  9891. private bool hasOptionalNestedMessage;
  9892. private global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  9893. public bool HasOptionalNestedMessage {
  9894. get { return hasOptionalNestedMessage; }
  9895. }
  9896. public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  9897. get { return optionalNestedMessage_; }
  9898. }
  9899. public override bool IsInitialized {
  9900. get {
  9901. return true;
  9902. }
  9903. }
  9904. public override void WriteTo(pb::CodedOutputStream output) {
  9905. if (HasOptionalNestedMessage) {
  9906. output.WriteMessage(1, OptionalNestedMessage);
  9907. }
  9908. UnknownFields.WriteTo(output);
  9909. }
  9910. private int memoizedSerializedSize = -1;
  9911. public override int SerializedSize {
  9912. get {
  9913. int size = memoizedSerializedSize;
  9914. if (size != -1) return size;
  9915. size = 0;
  9916. if (HasOptionalNestedMessage) {
  9917. size += pb::CodedOutputStream.ComputeMessageSize(1, OptionalNestedMessage);
  9918. }
  9919. size += UnknownFields.SerializedSize;
  9920. memoizedSerializedSize = size;
  9921. return size;
  9922. }
  9923. }
  9924. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::ByteString data) {
  9925. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9926. }
  9927. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::ByteString data,
  9928. pb::ExtensionRegistry extensionRegistry) {
  9929. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9930. .BuildParsed();
  9931. }
  9932. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(byte[] data) {
  9933. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  9934. }
  9935. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(byte[] data,
  9936. pb::ExtensionRegistry extensionRegistry) {
  9937. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  9938. .BuildParsed();
  9939. }
  9940. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(global::System.IO.Stream input) {
  9941. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9942. }
  9943. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(
  9944. global::System.IO.Stream input,
  9945. pb::ExtensionRegistry extensionRegistry) {
  9946. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9947. .BuildParsed();
  9948. }
  9949. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input) {
  9950. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  9951. }
  9952. public static global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits ParseFrom(pb::CodedInputStream input,
  9953. pb::ExtensionRegistry extensionRegistry) {
  9954. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  9955. .BuildParsed();
  9956. }
  9957. public static Builder CreateBuilder() { return new Builder(); }
  9958. public override Builder CreateBuilderForType() { return new Builder(); }
  9959. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits prototype) {
  9960. return (Builder) new Builder().MergeFrom(prototype);
  9961. }
  9962. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits, Builder> {
  9963. protected override Builder ThisBuilder {
  9964. get { return this; }
  9965. }
  9966. // Construct using global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.CreateBuilder()
  9967. public Builder() {}
  9968. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits();
  9969. protected override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits MessageBeingBuilt {
  9970. get { return result; }
  9971. }
  9972. public override Builder Clear() {
  9973. result = new global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits();
  9974. return this;
  9975. }
  9976. public override Builder Clone() {
  9977. return new Builder().MergeFrom(result);
  9978. }
  9979. public override pbd::MessageDescriptor DescriptorForType {
  9980. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Descriptor; }
  9981. }
  9982. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits DefaultInstanceForType {
  9983. get { return global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance; }
  9984. }
  9985. public override global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits BuildPartial() {
  9986. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits returnMe = result;
  9987. result = null;
  9988. return returnMe;
  9989. }
  9990. public override Builder MergeFrom(pb::IMessage other) {
  9991. if (other is global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits) {
  9992. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits) other);
  9993. } else {
  9994. base.MergeFrom(other);
  9995. return this;
  9996. }
  9997. }
  9998. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits other) {
  9999. if (other == global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.DefaultInstance) return this;
  10000. if (other.HasOptionalNestedMessage) {
  10001. MergeOptionalNestedMessage(other.OptionalNestedMessage);
  10002. }
  10003. this.MergeUnknownFields(other.UnknownFields);
  10004. return this;
  10005. }
  10006. public override Builder MergeFrom(pb::CodedInputStream input) {
  10007. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10008. }
  10009. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10010. pb::UnknownFieldSet.Builder unknownFields =
  10011. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10012. while (true) {
  10013. uint tag = input.ReadTag();
  10014. switch (tag) {
  10015. case 0:
  10016. this.UnknownFields = unknownFields.Build();
  10017. return this;
  10018. default: {
  10019. if (!ParseUnknownField(input, unknownFields,
  10020. extensionRegistry, tag)) {
  10021. this.UnknownFields = unknownFields.Build();
  10022. return this;
  10023. }
  10024. break;
  10025. }
  10026. case 10: {
  10027. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder();
  10028. if (HasOptionalNestedMessage) {
  10029. subBuilder.MergeFrom(OptionalNestedMessage);
  10030. }
  10031. input.ReadMessage(subBuilder, extensionRegistry);
  10032. OptionalNestedMessage = subBuilder.BuildPartial();
  10033. break;
  10034. }
  10035. }
  10036. }
  10037. }
  10038. // optional .protobuf_unittest.TestNestedMessageHasBits.NestedMessage optional_nested_message = 1;
  10039. public bool HasOptionalNestedMessage {
  10040. get { return result.HasOptionalNestedMessage; }
  10041. }
  10042. public global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage OptionalNestedMessage {
  10043. get { return result.OptionalNestedMessage; }
  10044. set { SetOptionalNestedMessage(value); }
  10045. }
  10046. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
  10047. result.hasOptionalNestedMessage = true;
  10048. result.optionalNestedMessage_ = value;
  10049. return this;
  10050. }
  10051. public Builder SetOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.Builder builderForValue) {
  10052. result.hasOptionalNestedMessage = true;
  10053. result.optionalNestedMessage_ = builderForValue.Build();
  10054. return this;
  10055. }
  10056. public Builder MergeOptionalNestedMessage(global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage value) {
  10057. if (result.HasOptionalNestedMessage &&
  10058. result.optionalNestedMessage_ != global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance) {
  10059. result.optionalNestedMessage_ =
  10060. global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.CreateBuilder(result.optionalNestedMessage_).MergeFrom(value).BuildPartial();
  10061. } else {
  10062. result.optionalNestedMessage_ = value;
  10063. }
  10064. result.hasOptionalNestedMessage = true;
  10065. return this;
  10066. }
  10067. public Builder ClearOptionalNestedMessage() {
  10068. result.hasOptionalNestedMessage = false;
  10069. result.optionalNestedMessage_ = global::Google.ProtocolBuffers.TestProtos.TestNestedMessageHasBits.Types.NestedMessage.DefaultInstance;
  10070. return this;
  10071. }
  10072. }
  10073. }
  10074. public sealed partial class TestCamelCaseFieldNames : pb::GeneratedMessage<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> {
  10075. private static readonly TestCamelCaseFieldNames defaultInstance = new TestCamelCaseFieldNames();
  10076. public static TestCamelCaseFieldNames DefaultInstance {
  10077. get { return defaultInstance; }
  10078. }
  10079. public override TestCamelCaseFieldNames DefaultInstanceForType {
  10080. get { return defaultInstance; }
  10081. }
  10082. protected override TestCamelCaseFieldNames ThisMessage {
  10083. get { return this; }
  10084. }
  10085. public static pbd::MessageDescriptor Descriptor {
  10086. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__Descriptor; }
  10087. }
  10088. protected override pb::FieldAccess.FieldAccessorTable<TestCamelCaseFieldNames, TestCamelCaseFieldNames.Builder> InternalFieldAccessors {
  10089. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestCamelCaseFieldNames__FieldAccessorTable; }
  10090. }
  10091. // optional int32 PrimitiveField = 1;
  10092. private bool hasPrimitiveField;
  10093. private int primitiveField_ = 0;
  10094. public bool HasPrimitiveField {
  10095. get { return hasPrimitiveField; }
  10096. }
  10097. public int PrimitiveField {
  10098. get { return primitiveField_; }
  10099. }
  10100. // optional string StringField = 2;
  10101. private bool hasStringField;
  10102. private string stringField_ = "";
  10103. public bool HasStringField {
  10104. get { return hasStringField; }
  10105. }
  10106. public string StringField {
  10107. get { return stringField_; }
  10108. }
  10109. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10110. private bool hasEnumField;
  10111. private global::Google.ProtocolBuffers.TestProtos.ForeignEnum enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  10112. public bool HasEnumField {
  10113. get { return hasEnumField; }
  10114. }
  10115. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField { get { return enumField_; }}
  10116. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10117. private bool hasMessageField;
  10118. private global::Google.ProtocolBuffers.TestProtos.ForeignMessage messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  10119. public bool HasMessageField {
  10120. get { return hasMessageField; }
  10121. }
  10122. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
  10123. get { return messageField_; }
  10124. }
  10125. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10126. private bool hasStringPieceField;
  10127. private string stringPieceField_ = "";
  10128. public bool HasStringPieceField {
  10129. get { return hasStringPieceField; }
  10130. }
  10131. public string StringPieceField {
  10132. get { return stringPieceField_; }
  10133. }
  10134. // optional string CordField = 6 [ctype = CORD];
  10135. private bool hasCordField;
  10136. private string cordField_ = "";
  10137. public bool HasCordField {
  10138. get { return hasCordField; }
  10139. }
  10140. public string CordField {
  10141. get { return cordField_; }
  10142. }
  10143. // repeated int32 RepeatedPrimitiveField = 7;
  10144. private scg::IList<int> repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10145. public scg::IList<int> RepeatedPrimitiveFieldList {
  10146. get { return repeatedPrimitiveField_; }
  10147. }
  10148. public int RepeatedPrimitiveFieldCount {
  10149. get { return repeatedPrimitiveField_.Count; }
  10150. }
  10151. public int GetRepeatedPrimitiveField(int index) {
  10152. return repeatedPrimitiveField_[index];
  10153. }
  10154. // repeated string RepeatedStringField = 8;
  10155. private scg::IList<string> repeatedStringField_ = pbc::Lists<string>.Empty;
  10156. public scg::IList<string> RepeatedStringFieldList {
  10157. get { return repeatedStringField_; }
  10158. }
  10159. public int RepeatedStringFieldCount {
  10160. get { return repeatedStringField_.Count; }
  10161. }
  10162. public string GetRepeatedStringField(int index) {
  10163. return repeatedStringField_[index];
  10164. }
  10165. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10166. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> ();
  10167. public scg.IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
  10168. get { return pbc::Lists.AsReadOnly(repeatedEnumField_); }
  10169. }
  10170. public int RepeatedEnumFieldCount {
  10171. get { return repeatedEnumField_.Count; }
  10172. }
  10173. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
  10174. return repeatedEnumField_[index];
  10175. }
  10176. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10177. private scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> repeatedMessageField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  10178. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
  10179. get { return repeatedMessageField_; }
  10180. }
  10181. public int RepeatedMessageFieldCount
  10182. { get { return repeatedMessageField_.Count; }
  10183. }
  10184. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
  10185. return repeatedMessageField_ [index];
  10186. }
  10187. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10188. private scg::IList<string> repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10189. public scg::IList<string> RepeatedStringPieceFieldList {
  10190. get { return repeatedStringPieceField_; }
  10191. }
  10192. public int RepeatedStringPieceFieldCount {
  10193. get { return repeatedStringPieceField_.Count; }
  10194. }
  10195. public string GetRepeatedStringPieceField(int index) {
  10196. return repeatedStringPieceField_[index];
  10197. }
  10198. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10199. private scg::IList<string> repeatedCordField_ = pbc::Lists<string>.Empty;
  10200. public scg::IList<string> RepeatedCordFieldList {
  10201. get { return repeatedCordField_; }
  10202. }
  10203. public int RepeatedCordFieldCount {
  10204. get { return repeatedCordField_.Count; }
  10205. }
  10206. public string GetRepeatedCordField(int index) {
  10207. return repeatedCordField_[index];
  10208. }
  10209. public override bool IsInitialized {
  10210. get {
  10211. return true;
  10212. }
  10213. }
  10214. public override void WriteTo(pb::CodedOutputStream output) {
  10215. if (HasPrimitiveField) {
  10216. output.WriteInt32(1, PrimitiveField);
  10217. }
  10218. if (HasStringField) {
  10219. output.WriteString(2, StringField);
  10220. }
  10221. if (HasEnumField) {
  10222. output.WriteEnum(3, (int) EnumField);
  10223. }
  10224. if (HasMessageField) {
  10225. output.WriteMessage(4, MessageField);
  10226. }
  10227. if (HasStringPieceField) {
  10228. output.WriteString(5, StringPieceField);
  10229. }
  10230. if (HasCordField) {
  10231. output.WriteString(6, CordField);
  10232. }
  10233. foreach (int element in RepeatedPrimitiveFieldList) {
  10234. output.WriteInt32(7, element);
  10235. }
  10236. foreach (string element in RepeatedStringFieldList) {
  10237. output.WriteString(8, element);
  10238. }
  10239. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) {
  10240. output.WriteEnum(9, (int) element);
  10241. }
  10242. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
  10243. output.WriteMessage(10, element);
  10244. }
  10245. foreach (string element in RepeatedStringPieceFieldList) {
  10246. output.WriteString(11, element);
  10247. }
  10248. foreach (string element in RepeatedCordFieldList) {
  10249. output.WriteString(12, element);
  10250. }
  10251. UnknownFields.WriteTo(output);
  10252. }
  10253. private int memoizedSerializedSize = -1;
  10254. public override int SerializedSize {
  10255. get {
  10256. int size = memoizedSerializedSize;
  10257. if (size != -1) return size;
  10258. size = 0;
  10259. if (HasPrimitiveField) {
  10260. size += pb::CodedOutputStream.ComputeInt32Size(1, PrimitiveField);
  10261. }
  10262. if (HasStringField) {
  10263. size += pb::CodedOutputStream.ComputeStringSize(2, StringField);
  10264. }
  10265. if (HasEnumField) {
  10266. size += pb::CodedOutputStream
  10267. .ComputeEnumSize(3, (int) EnumField);
  10268. }
  10269. if (HasMessageField) {
  10270. size += pb::CodedOutputStream.ComputeMessageSize(4, MessageField);
  10271. }
  10272. if (HasStringPieceField) {
  10273. size += pb::CodedOutputStream.ComputeStringSize(5, StringPieceField);
  10274. }
  10275. if (HasCordField) {
  10276. size += pb::CodedOutputStream.ComputeStringSize(6, CordField);
  10277. }
  10278. foreach (int element in RepeatedPrimitiveFieldList) {
  10279. size += pb::CodedOutputStream
  10280. .ComputeInt32Size(7, element);
  10281. }
  10282. foreach (string element in RepeatedStringFieldList) {
  10283. size += pb::CodedOutputStream
  10284. .ComputeStringSize(8, element);
  10285. }
  10286. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignEnum element in RepeatedEnumFieldList) {
  10287. size += pb::CodedOutputStream
  10288. .ComputeEnumSize(9, (int) element);
  10289. }
  10290. foreach (global::Google.ProtocolBuffers.TestProtos.ForeignMessage element in RepeatedMessageFieldList) {
  10291. size += pb::CodedOutputStream.ComputeMessageSize(10, element);
  10292. }
  10293. foreach (string element in RepeatedStringPieceFieldList) {
  10294. size += pb::CodedOutputStream
  10295. .ComputeStringSize(11, element);
  10296. }
  10297. foreach (string element in RepeatedCordFieldList) {
  10298. size += pb::CodedOutputStream
  10299. .ComputeStringSize(12, element);
  10300. }
  10301. size += UnknownFields.SerializedSize;
  10302. memoizedSerializedSize = size;
  10303. return size;
  10304. }
  10305. }
  10306. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::ByteString data) {
  10307. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10308. }
  10309. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::ByteString data,
  10310. pb::ExtensionRegistry extensionRegistry) {
  10311. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10312. .BuildParsed();
  10313. }
  10314. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(byte[] data) {
  10315. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10316. }
  10317. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(byte[] data,
  10318. pb::ExtensionRegistry extensionRegistry) {
  10319. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10320. .BuildParsed();
  10321. }
  10322. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(global::System.IO.Stream input) {
  10323. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10324. }
  10325. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(
  10326. global::System.IO.Stream input,
  10327. pb::ExtensionRegistry extensionRegistry) {
  10328. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10329. .BuildParsed();
  10330. }
  10331. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input) {
  10332. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10333. }
  10334. public static global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames ParseFrom(pb::CodedInputStream input,
  10335. pb::ExtensionRegistry extensionRegistry) {
  10336. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10337. .BuildParsed();
  10338. }
  10339. public static Builder CreateBuilder() { return new Builder(); }
  10340. public override Builder CreateBuilderForType() { return new Builder(); }
  10341. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames prototype) {
  10342. return (Builder) new Builder().MergeFrom(prototype);
  10343. }
  10344. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames, Builder> {
  10345. protected override Builder ThisBuilder {
  10346. get { return this; }
  10347. }
  10348. // Construct using global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.CreateBuilder()
  10349. public Builder() {}
  10350. global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames result = new global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames();
  10351. protected override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames MessageBeingBuilt {
  10352. get { return result; }
  10353. }
  10354. public override Builder Clear() {
  10355. result = new global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames();
  10356. return this;
  10357. }
  10358. public override Builder Clone() {
  10359. return new Builder().MergeFrom(result);
  10360. }
  10361. public override pbd::MessageDescriptor DescriptorForType {
  10362. get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.Descriptor; }
  10363. }
  10364. public override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames DefaultInstanceForType {
  10365. get { return global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance; }
  10366. }
  10367. public override global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames BuildPartial() {
  10368. result.repeatedPrimitiveField_ = pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_);
  10369. result.repeatedStringField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringField_);
  10370. result.repeatedEnumField_ = pbc::Lists.AsReadOnly(result.repeatedEnumField_);
  10371. if (result.repeatedMessageField_ != pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10372. result.repeatedMessageField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.AsReadOnly(result.repeatedMessageField_);
  10373. }
  10374. result.repeatedStringPieceField_ = pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_);
  10375. result.repeatedCordField_ = pbc::Lists<string>.AsReadOnly(result.repeatedCordField_);
  10376. global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames returnMe = result;
  10377. result = null;
  10378. return returnMe;
  10379. }
  10380. public override Builder MergeFrom(pb::IMessage other) {
  10381. if (other is global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames) {
  10382. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames) other);
  10383. } else {
  10384. base.MergeFrom(other);
  10385. return this;
  10386. }
  10387. }
  10388. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames other) {
  10389. if (other == global::Google.ProtocolBuffers.TestProtos.TestCamelCaseFieldNames.DefaultInstance) return this;
  10390. if (other.HasPrimitiveField) {
  10391. PrimitiveField = other.PrimitiveField;
  10392. }
  10393. if (other.HasStringField) {
  10394. StringField = other.StringField;
  10395. }
  10396. if (other.HasEnumField) {
  10397. EnumField = other.EnumField;
  10398. }
  10399. if (other.HasMessageField) {
  10400. MergeMessageField(other.MessageField);
  10401. }
  10402. if (other.HasStringPieceField) {
  10403. StringPieceField = other.StringPieceField;
  10404. }
  10405. if (other.HasCordField) {
  10406. CordField = other.CordField;
  10407. }
  10408. if (other.repeatedPrimitiveField_.Count != 0) {
  10409. if (result.repeatedPrimitiveField_.Count == 0) {
  10410. result.repeatedPrimitiveField_ = new scg::List<int>();
  10411. }
  10412. base.AddRange(other.repeatedPrimitiveField_, result.repeatedPrimitiveField_);
  10413. }
  10414. if (other.repeatedStringField_.Count != 0) {
  10415. if (result.repeatedStringField_.Count == 0) {
  10416. result.repeatedStringField_ = new scg::List<string>();
  10417. }
  10418. base.AddRange(other.repeatedStringField_, result.repeatedStringField_);
  10419. }
  10420. if (other.repeatedEnumField_.Count != 0) {
  10421. if (result.repeatedEnumField_.Count == 0) {
  10422. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10423. }
  10424. base.AddRange(other.repeatedEnumField_, result.repeatedEnumField_);
  10425. }
  10426. if (other.repeatedMessageField_.Count != 0) {
  10427. if (result.repeatedMessageField_.Count == 0) {
  10428. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10429. }
  10430. base.AddRange(other.repeatedMessageField_, result.repeatedMessageField_);
  10431. }
  10432. if (other.repeatedStringPieceField_.Count != 0) {
  10433. if (result.repeatedStringPieceField_.Count == 0) {
  10434. result.repeatedStringPieceField_ = new scg::List<string>();
  10435. }
  10436. base.AddRange(other.repeatedStringPieceField_, result.repeatedStringPieceField_);
  10437. }
  10438. if (other.repeatedCordField_.Count != 0) {
  10439. if (result.repeatedCordField_.Count == 0) {
  10440. result.repeatedCordField_ = new scg::List<string>();
  10441. }
  10442. base.AddRange(other.repeatedCordField_, result.repeatedCordField_);
  10443. }
  10444. this.MergeUnknownFields(other.UnknownFields);
  10445. return this;
  10446. }
  10447. public override Builder MergeFrom(pb::CodedInputStream input) {
  10448. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  10449. }
  10450. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  10451. pb::UnknownFieldSet.Builder unknownFields =
  10452. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  10453. while (true) {
  10454. uint tag = input.ReadTag();
  10455. switch (tag) {
  10456. case 0:
  10457. this.UnknownFields = unknownFields.Build();
  10458. return this;
  10459. default: {
  10460. if (!ParseUnknownField(input, unknownFields,
  10461. extensionRegistry, tag)) {
  10462. this.UnknownFields = unknownFields.Build();
  10463. return this;
  10464. }
  10465. break;
  10466. }
  10467. case 8: {
  10468. PrimitiveField = input.ReadInt32();
  10469. break;
  10470. }
  10471. case 18: {
  10472. StringField = input.ReadString();
  10473. break;
  10474. }
  10475. case 24: {
  10476. int rawValue = input.ReadEnum();
  10477. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), rawValue)) {
  10478. unknownFields.MergeVarintField(3, (ulong) rawValue);
  10479. } else {
  10480. EnumField = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  10481. }
  10482. break;
  10483. }
  10484. case 34: {
  10485. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  10486. if (HasMessageField) {
  10487. subBuilder.MergeFrom(MessageField);
  10488. }
  10489. input.ReadMessage(subBuilder, extensionRegistry);
  10490. MessageField = subBuilder.BuildPartial();
  10491. break;
  10492. }
  10493. case 42: {
  10494. StringPieceField = input.ReadString();
  10495. break;
  10496. }
  10497. case 50: {
  10498. CordField = input.ReadString();
  10499. break;
  10500. }
  10501. case 56: {
  10502. AddRepeatedPrimitiveField(input.ReadInt32());
  10503. break;
  10504. }
  10505. case 66: {
  10506. AddRepeatedStringField(input.ReadString());
  10507. break;
  10508. }
  10509. case 72: {
  10510. int rawValue = input.ReadEnum();
  10511. global::Google.ProtocolBuffers.TestProtos.ForeignEnum value = (global::Google.ProtocolBuffers.TestProtos.ForeignEnum) rawValue;
  10512. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.TestProtos.ForeignEnum), value)) {
  10513. unknownFields.MergeVarintField(9, (ulong) rawValue);
  10514. } else {
  10515. AddRepeatedEnumField(value);
  10516. }
  10517. break;
  10518. }
  10519. case 82: {
  10520. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder subBuilder = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder();
  10521. input.ReadMessage(subBuilder, extensionRegistry);
  10522. AddRepeatedMessageField(subBuilder.BuildPartial());
  10523. break;
  10524. }
  10525. case 90: {
  10526. AddRepeatedStringPieceField(input.ReadString());
  10527. break;
  10528. }
  10529. case 98: {
  10530. AddRepeatedCordField(input.ReadString());
  10531. break;
  10532. }
  10533. }
  10534. }
  10535. }
  10536. // optional int32 PrimitiveField = 1;
  10537. public bool HasPrimitiveField {
  10538. get { return result.HasPrimitiveField; }
  10539. }
  10540. public int PrimitiveField {
  10541. get { return result.PrimitiveField; }
  10542. set { SetPrimitiveField(value); }
  10543. }
  10544. public Builder SetPrimitiveField(int value) {
  10545. result.hasPrimitiveField = true;
  10546. result.primitiveField_ = value;
  10547. return this;
  10548. }
  10549. public Builder ClearPrimitiveField() {
  10550. result.hasPrimitiveField = false;
  10551. result.primitiveField_ = 0;
  10552. return this;
  10553. }
  10554. // optional string StringField = 2;
  10555. public bool HasStringField {
  10556. get { return result.HasStringField; }
  10557. }
  10558. public string StringField {
  10559. get { return result.StringField; }
  10560. set { SetStringField(value); }
  10561. }
  10562. public Builder SetStringField(string value) {
  10563. result.hasStringField = true;
  10564. result.stringField_ = value;
  10565. return this;
  10566. }
  10567. public Builder ClearStringField() {
  10568. result.hasStringField = false;
  10569. result.stringField_ = "";
  10570. return this;
  10571. }
  10572. // optional .protobuf_unittest.ForeignEnum EnumField = 3;
  10573. public bool HasEnumField {
  10574. get { return result.HasEnumField; }
  10575. }
  10576. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum EnumField {
  10577. get { return result.EnumField; }
  10578. set { SetEnumField(value); }
  10579. }
  10580. public Builder SetEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10581. result.hasEnumField = true;
  10582. result.enumField_ = value;
  10583. return this;
  10584. }
  10585. public Builder ClearEnumField() {
  10586. result.hasEnumField = false;
  10587. result.enumField_ = global::Google.ProtocolBuffers.TestProtos.ForeignEnum.FOREIGN_FOO;
  10588. return this;
  10589. }
  10590. // optional .protobuf_unittest.ForeignMessage MessageField = 4;
  10591. public bool HasMessageField {
  10592. get { return result.HasMessageField; }
  10593. }
  10594. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage MessageField {
  10595. get { return result.MessageField; }
  10596. set { SetMessageField(value); }
  10597. }
  10598. public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10599. result.hasMessageField = true;
  10600. result.messageField_ = value;
  10601. return this;
  10602. }
  10603. public Builder SetMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10604. result.hasMessageField = true;
  10605. result.messageField_ = builderForValue.Build();
  10606. return this;
  10607. }
  10608. public Builder MergeMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10609. if (result.HasMessageField &&
  10610. result.messageField_ != global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance) {
  10611. result.messageField_ =
  10612. global::Google.ProtocolBuffers.TestProtos.ForeignMessage.CreateBuilder(result.messageField_).MergeFrom(value).BuildPartial();
  10613. } else {
  10614. result.messageField_ = value;
  10615. }
  10616. result.hasMessageField = true;
  10617. return this;
  10618. }
  10619. public Builder ClearMessageField() {
  10620. result.hasMessageField = false;
  10621. result.messageField_ = global::Google.ProtocolBuffers.TestProtos.ForeignMessage.DefaultInstance;
  10622. return this;
  10623. }
  10624. // optional string StringPieceField = 5 [ctype = STRING_PIECE];
  10625. public bool HasStringPieceField {
  10626. get { return result.HasStringPieceField; }
  10627. }
  10628. public string StringPieceField {
  10629. get { return result.StringPieceField; }
  10630. set { SetStringPieceField(value); }
  10631. }
  10632. public Builder SetStringPieceField(string value) {
  10633. result.hasStringPieceField = true;
  10634. result.stringPieceField_ = value;
  10635. return this;
  10636. }
  10637. public Builder ClearStringPieceField() {
  10638. result.hasStringPieceField = false;
  10639. result.stringPieceField_ = "";
  10640. return this;
  10641. }
  10642. // optional string CordField = 6 [ctype = CORD];
  10643. public bool HasCordField {
  10644. get { return result.HasCordField; }
  10645. }
  10646. public string CordField {
  10647. get { return result.CordField; }
  10648. set { SetCordField(value); }
  10649. }
  10650. public Builder SetCordField(string value) {
  10651. result.hasCordField = true;
  10652. result.cordField_ = value;
  10653. return this;
  10654. }
  10655. public Builder ClearCordField() {
  10656. result.hasCordField = false;
  10657. result.cordField_ = "";
  10658. return this;
  10659. }
  10660. // repeated int32 RepeatedPrimitiveField = 7;
  10661. public scg::IList<int> RepeatedPrimitiveFieldList {
  10662. get { return pbc::Lists<int>.AsReadOnly(result.repeatedPrimitiveField_); }
  10663. }
  10664. public int RepeatedPrimitiveFieldCount {
  10665. get { return result.RepeatedPrimitiveFieldCount; }
  10666. }
  10667. public int GetRepeatedPrimitiveField(int index) {
  10668. return result.GetRepeatedPrimitiveField(index);
  10669. }
  10670. public Builder SetRepeatedPrimitiveField(int index, int value) {
  10671. result.repeatedPrimitiveField_[index] = value;
  10672. return this;
  10673. }
  10674. public Builder AddRepeatedPrimitiveField(int value) {
  10675. if (result.repeatedPrimitiveField_.Count == 0) {
  10676. result.repeatedPrimitiveField_ = new scg::List<int>();
  10677. }
  10678. result.repeatedPrimitiveField_.Add(value);
  10679. return this;
  10680. }
  10681. public Builder AddRangeRepeatedPrimitiveField(scg::IEnumerable<int> values) {
  10682. if (result.repeatedPrimitiveField_.Count == 0) {
  10683. result.repeatedPrimitiveField_ = new scg::List<int>();
  10684. }
  10685. base.AddRange(values, result.repeatedPrimitiveField_);
  10686. return this;
  10687. }
  10688. public Builder ClearRepeatedPrimitiveField() {
  10689. result.repeatedPrimitiveField_ = pbc::Lists<int>.Empty;
  10690. return this;
  10691. }
  10692. // repeated string RepeatedStringField = 8;
  10693. public scg::IList<string> RepeatedStringFieldList {
  10694. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringField_); }
  10695. }
  10696. public int RepeatedStringFieldCount {
  10697. get { return result.RepeatedStringFieldCount; }
  10698. }
  10699. public string GetRepeatedStringField(int index) {
  10700. return result.GetRepeatedStringField(index);
  10701. }
  10702. public Builder SetRepeatedStringField(int index, string value) {
  10703. result.repeatedStringField_[index] = value;
  10704. return this;
  10705. }
  10706. public Builder AddRepeatedStringField(string value) {
  10707. if (result.repeatedStringField_.Count == 0) {
  10708. result.repeatedStringField_ = new scg::List<string>();
  10709. }
  10710. result.repeatedStringField_.Add(value);
  10711. return this;
  10712. }
  10713. public Builder AddRangeRepeatedStringField(scg::IEnumerable<string> values) {
  10714. if (result.repeatedStringField_.Count == 0) {
  10715. result.repeatedStringField_ = new scg::List<string>();
  10716. }
  10717. base.AddRange(values, result.repeatedStringField_);
  10718. return this;
  10719. }
  10720. public Builder ClearRepeatedStringField() {
  10721. result.repeatedStringField_ = pbc::Lists<string>.Empty;
  10722. return this;
  10723. }
  10724. // repeated .protobuf_unittest.ForeignEnum RepeatedEnumField = 9;
  10725. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> RepeatedEnumFieldList {
  10726. get { return pbc::Lists.AsReadOnly(result.repeatedEnumField_); }
  10727. }
  10728. public int RepeatedEnumFieldCount {
  10729. get { return result.RepeatedEnumFieldCount; }
  10730. }
  10731. public global::Google.ProtocolBuffers.TestProtos.ForeignEnum GetRepeatedEnumField(int index) {
  10732. return result.GetRepeatedEnumField(index);
  10733. }
  10734. public Builder SetRepeatedEnumField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10735. result.repeatedEnumField_[index] = value;
  10736. return this;
  10737. }
  10738. public Builder AddRepeatedEnumField(global::Google.ProtocolBuffers.TestProtos.ForeignEnum value) {
  10739. if (result.repeatedEnumField_.Count == 0) {
  10740. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10741. }
  10742. result.repeatedEnumField_.Add(value);
  10743. return this;
  10744. }
  10745. public Builder AddRangeRepeatedEnumField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignEnum> values) {
  10746. if (result.repeatedEnumField_.Count == 0) {
  10747. result.repeatedEnumField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>();
  10748. }
  10749. base.AddRange(values, result.repeatedEnumField_);
  10750. return this;
  10751. }
  10752. public Builder ClearRepeatedEnumField() {
  10753. result.repeatedEnumField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignEnum>.Empty;
  10754. return this;
  10755. }
  10756. // repeated .protobuf_unittest.ForeignMessage RepeatedMessageField = 10;
  10757. public scg::IList<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> RepeatedMessageFieldList {
  10758. get { return pbc::Lists.AsReadOnly(result.repeatedMessageField_); }
  10759. }
  10760. public int RepeatedMessageFieldCount {
  10761. get { return result.RepeatedMessageFieldCount; }
  10762. }
  10763. public global::Google.ProtocolBuffers.TestProtos.ForeignMessage GetRepeatedMessageField(int index) {
  10764. return result.GetRepeatedMessageField(index);
  10765. }
  10766. public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10767. result.repeatedMessageField_[index] = value;
  10768. return this;
  10769. }
  10770. public Builder SetRepeatedMessageField(int index, global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10771. result.repeatedMessageField_[index] = builderForValue.Build();
  10772. return this;
  10773. }
  10774. public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage value) {
  10775. if (result.repeatedMessageField_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10776. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10777. }
  10778. result.repeatedMessageField_.Add(value);
  10779. return this;
  10780. }
  10781. public Builder AddRepeatedMessageField(global::Google.ProtocolBuffers.TestProtos.ForeignMessage.Builder builderForValue) {
  10782. if (result.repeatedMessageField_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10783. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10784. }
  10785. result.repeatedMessageField_.Add(builderForValue.Build());
  10786. return this;
  10787. }
  10788. public Builder AddRangeRepeatedMessageField(scg::IEnumerable<global::Google.ProtocolBuffers.TestProtos.ForeignMessage> values) {
  10789. if (result.repeatedMessageField_ == pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty) {
  10790. result.repeatedMessageField_ = new scg::List<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>();
  10791. }
  10792. base.AddRange(values, result.repeatedMessageField_);
  10793. return this;
  10794. }
  10795. public Builder ClearRepeatedMessageField() {
  10796. result.repeatedMessageField_ = pbc::Lists<global::Google.ProtocolBuffers.TestProtos.ForeignMessage>.Empty;
  10797. return this;
  10798. }
  10799. // repeated string RepeatedStringPieceField = 11 [ctype = STRING_PIECE];
  10800. public scg::IList<string> RepeatedStringPieceFieldList {
  10801. get { return pbc::Lists<string>.AsReadOnly(result.repeatedStringPieceField_); }
  10802. }
  10803. public int RepeatedStringPieceFieldCount {
  10804. get { return result.RepeatedStringPieceFieldCount; }
  10805. }
  10806. public string GetRepeatedStringPieceField(int index) {
  10807. return result.GetRepeatedStringPieceField(index);
  10808. }
  10809. public Builder SetRepeatedStringPieceField(int index, string value) {
  10810. result.repeatedStringPieceField_[index] = value;
  10811. return this;
  10812. }
  10813. public Builder AddRepeatedStringPieceField(string value) {
  10814. if (result.repeatedStringPieceField_.Count == 0) {
  10815. result.repeatedStringPieceField_ = new scg::List<string>();
  10816. }
  10817. result.repeatedStringPieceField_.Add(value);
  10818. return this;
  10819. }
  10820. public Builder AddRangeRepeatedStringPieceField(scg::IEnumerable<string> values) {
  10821. if (result.repeatedStringPieceField_.Count == 0) {
  10822. result.repeatedStringPieceField_ = new scg::List<string>();
  10823. }
  10824. base.AddRange(values, result.repeatedStringPieceField_);
  10825. return this;
  10826. }
  10827. public Builder ClearRepeatedStringPieceField() {
  10828. result.repeatedStringPieceField_ = pbc::Lists<string>.Empty;
  10829. return this;
  10830. }
  10831. // repeated string RepeatedCordField = 12 [ctype = CORD];
  10832. public scg::IList<string> RepeatedCordFieldList {
  10833. get { return pbc::Lists<string>.AsReadOnly(result.repeatedCordField_); }
  10834. }
  10835. public int RepeatedCordFieldCount {
  10836. get { return result.RepeatedCordFieldCount; }
  10837. }
  10838. public string GetRepeatedCordField(int index) {
  10839. return result.GetRepeatedCordField(index);
  10840. }
  10841. public Builder SetRepeatedCordField(int index, string value) {
  10842. result.repeatedCordField_[index] = value;
  10843. return this;
  10844. }
  10845. public Builder AddRepeatedCordField(string value) {
  10846. if (result.repeatedCordField_.Count == 0) {
  10847. result.repeatedCordField_ = new scg::List<string>();
  10848. }
  10849. result.repeatedCordField_.Add(value);
  10850. return this;
  10851. }
  10852. public Builder AddRangeRepeatedCordField(scg::IEnumerable<string> values) {
  10853. if (result.repeatedCordField_.Count == 0) {
  10854. result.repeatedCordField_ = new scg::List<string>();
  10855. }
  10856. base.AddRange(values, result.repeatedCordField_);
  10857. return this;
  10858. }
  10859. public Builder ClearRepeatedCordField() {
  10860. result.repeatedCordField_ = pbc::Lists<string>.Empty;
  10861. return this;
  10862. }
  10863. }
  10864. }
  10865. public sealed partial class TestFieldOrderings : pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder> {
  10866. private static readonly TestFieldOrderings defaultInstance = new TestFieldOrderings();
  10867. public static TestFieldOrderings DefaultInstance {
  10868. get { return defaultInstance; }
  10869. }
  10870. public override TestFieldOrderings DefaultInstanceForType {
  10871. get { return defaultInstance; }
  10872. }
  10873. protected override TestFieldOrderings ThisMessage {
  10874. get { return this; }
  10875. }
  10876. public static pbd::MessageDescriptor Descriptor {
  10877. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__Descriptor; }
  10878. }
  10879. protected override pb::FieldAccess.FieldAccessorTable<TestFieldOrderings, TestFieldOrderings.Builder> InternalFieldAccessors {
  10880. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestFieldOrderings__FieldAccessorTable; }
  10881. }
  10882. // optional string my_string = 11;
  10883. private bool hasMyString;
  10884. private string myString_ = "";
  10885. public bool HasMyString {
  10886. get { return hasMyString; }
  10887. }
  10888. public string MyString {
  10889. get { return myString_; }
  10890. }
  10891. // optional int64 my_int = 1;
  10892. private bool hasMyInt;
  10893. private long myInt_ = 0L;
  10894. public bool HasMyInt {
  10895. get { return hasMyInt; }
  10896. }
  10897. public long MyInt {
  10898. get { return myInt_; }
  10899. }
  10900. // optional float my_float = 101;
  10901. private bool hasMyFloat;
  10902. private float myFloat_ = 0F;
  10903. public bool HasMyFloat {
  10904. get { return hasMyFloat; }
  10905. }
  10906. public float MyFloat {
  10907. get { return myFloat_; }
  10908. }
  10909. public override bool IsInitialized {
  10910. get {
  10911. if (!ExtensionsAreInitialized) return false;
  10912. return true;
  10913. }
  10914. }
  10915. public override void WriteTo(pb::CodedOutputStream output) {
  10916. pb::ExtendableMessage<TestFieldOrderings, TestFieldOrderings.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  10917. if (HasMyInt) {
  10918. output.WriteInt64(1, MyInt);
  10919. }
  10920. extensionWriter.WriteUntil(11, output);
  10921. if (HasMyString) {
  10922. output.WriteString(11, MyString);
  10923. }
  10924. extensionWriter.WriteUntil(101, output);
  10925. if (HasMyFloat) {
  10926. output.WriteFloat(101, MyFloat);
  10927. }
  10928. UnknownFields.WriteTo(output);
  10929. }
  10930. private int memoizedSerializedSize = -1;
  10931. public override int SerializedSize {
  10932. get {
  10933. int size = memoizedSerializedSize;
  10934. if (size != -1) return size;
  10935. size = 0;
  10936. if (HasMyInt) {
  10937. size += pb::CodedOutputStream.ComputeInt64Size(1, MyInt);
  10938. }
  10939. if (HasMyString) {
  10940. size += pb::CodedOutputStream.ComputeStringSize(11, MyString);
  10941. }
  10942. if (HasMyFloat) {
  10943. size += pb::CodedOutputStream.ComputeFloatSize(101, MyFloat);
  10944. }
  10945. size += ExtensionsSerializedSize;
  10946. size += UnknownFields.SerializedSize;
  10947. memoizedSerializedSize = size;
  10948. return size;
  10949. }
  10950. }
  10951. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::ByteString data) {
  10952. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10953. }
  10954. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::ByteString data,
  10955. pb::ExtensionRegistry extensionRegistry) {
  10956. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10957. .BuildParsed();
  10958. }
  10959. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(byte[] data) {
  10960. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  10961. }
  10962. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(byte[] data,
  10963. pb::ExtensionRegistry extensionRegistry) {
  10964. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  10965. .BuildParsed();
  10966. }
  10967. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(global::System.IO.Stream input) {
  10968. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10969. }
  10970. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(
  10971. global::System.IO.Stream input,
  10972. pb::ExtensionRegistry extensionRegistry) {
  10973. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10974. .BuildParsed();
  10975. }
  10976. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::CodedInputStream input) {
  10977. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  10978. }
  10979. public static global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings ParseFrom(pb::CodedInputStream input,
  10980. pb::ExtensionRegistry extensionRegistry) {
  10981. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  10982. .BuildParsed();
  10983. }
  10984. public static Builder CreateBuilder() { return new Builder(); }
  10985. public override Builder CreateBuilderForType() { return new Builder(); }
  10986. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings prototype) {
  10987. return (Builder) new Builder().MergeFrom(prototype);
  10988. }
  10989. public sealed partial class Builder : pb::ExtendableBuilder<global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings, global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Builder> {
  10990. protected override Builder ThisBuilder {
  10991. get { return this; }
  10992. }
  10993. // Construct using global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.CreateBuilder()
  10994. public Builder() {}
  10995. global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings result = new global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings();
  10996. protected override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings MessageBeingBuilt {
  10997. get { return result; }
  10998. }
  10999. public override Builder Clear() {
  11000. result = new global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings();
  11001. return this;
  11002. }
  11003. public override Builder Clone() {
  11004. return new Builder().MergeFrom(result);
  11005. }
  11006. public override pbd::MessageDescriptor DescriptorForType {
  11007. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.Descriptor; }
  11008. }
  11009. public override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings DefaultInstanceForType {
  11010. get { return global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance; }
  11011. }
  11012. public override global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings BuildPartial() {
  11013. global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings returnMe = result;
  11014. result = null;
  11015. return returnMe;
  11016. }
  11017. public override Builder MergeFrom(pb::IMessage other) {
  11018. if (other is global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings) {
  11019. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings) other);
  11020. } else {
  11021. base.MergeFrom(other);
  11022. return this;
  11023. }
  11024. }
  11025. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings other) {
  11026. if (other == global::Google.ProtocolBuffers.TestProtos.TestFieldOrderings.DefaultInstance) return this;
  11027. if (other.HasMyString) {
  11028. MyString = other.MyString;
  11029. }
  11030. if (other.HasMyInt) {
  11031. MyInt = other.MyInt;
  11032. }
  11033. if (other.HasMyFloat) {
  11034. MyFloat = other.MyFloat;
  11035. }
  11036. this.MergeUnknownFields(other.UnknownFields);
  11037. return this;
  11038. }
  11039. public override Builder MergeFrom(pb::CodedInputStream input) {
  11040. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11041. }
  11042. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11043. pb::UnknownFieldSet.Builder unknownFields =
  11044. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11045. while (true) {
  11046. uint tag = input.ReadTag();
  11047. switch (tag) {
  11048. case 0:
  11049. this.UnknownFields = unknownFields.Build();
  11050. return this;
  11051. default: {
  11052. if (!ParseUnknownField(input, unknownFields,
  11053. extensionRegistry, tag)) {
  11054. this.UnknownFields = unknownFields.Build();
  11055. return this;
  11056. }
  11057. break;
  11058. }
  11059. case 8: {
  11060. MyInt = input.ReadInt64();
  11061. break;
  11062. }
  11063. case 90: {
  11064. MyString = input.ReadString();
  11065. break;
  11066. }
  11067. case 813: {
  11068. MyFloat = input.ReadFloat();
  11069. break;
  11070. }
  11071. }
  11072. }
  11073. }
  11074. // optional string my_string = 11;
  11075. public bool HasMyString {
  11076. get { return result.HasMyString; }
  11077. }
  11078. public string MyString {
  11079. get { return result.MyString; }
  11080. set { SetMyString(value); }
  11081. }
  11082. public Builder SetMyString(string value) {
  11083. result.hasMyString = true;
  11084. result.myString_ = value;
  11085. return this;
  11086. }
  11087. public Builder ClearMyString() {
  11088. result.hasMyString = false;
  11089. result.myString_ = "";
  11090. return this;
  11091. }
  11092. // optional int64 my_int = 1;
  11093. public bool HasMyInt {
  11094. get { return result.HasMyInt; }
  11095. }
  11096. public long MyInt {
  11097. get { return result.MyInt; }
  11098. set { SetMyInt(value); }
  11099. }
  11100. public Builder SetMyInt(long value) {
  11101. result.hasMyInt = true;
  11102. result.myInt_ = value;
  11103. return this;
  11104. }
  11105. public Builder ClearMyInt() {
  11106. result.hasMyInt = false;
  11107. result.myInt_ = 0L;
  11108. return this;
  11109. }
  11110. // optional float my_float = 101;
  11111. public bool HasMyFloat {
  11112. get { return result.HasMyFloat; }
  11113. }
  11114. public float MyFloat {
  11115. get { return result.MyFloat; }
  11116. set { SetMyFloat(value); }
  11117. }
  11118. public Builder SetMyFloat(float value) {
  11119. result.hasMyFloat = true;
  11120. result.myFloat_ = value;
  11121. return this;
  11122. }
  11123. public Builder ClearMyFloat() {
  11124. result.hasMyFloat = false;
  11125. result.myFloat_ = 0F;
  11126. return this;
  11127. }
  11128. }
  11129. }
  11130. public sealed partial class TestExtremeDefaultValues : pb::GeneratedMessage<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> {
  11131. private static readonly TestExtremeDefaultValues defaultInstance = new TestExtremeDefaultValues();
  11132. public static TestExtremeDefaultValues DefaultInstance {
  11133. get { return defaultInstance; }
  11134. }
  11135. public override TestExtremeDefaultValues DefaultInstanceForType {
  11136. get { return defaultInstance; }
  11137. }
  11138. protected override TestExtremeDefaultValues ThisMessage {
  11139. get { return this; }
  11140. }
  11141. public static pbd::MessageDescriptor Descriptor {
  11142. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__Descriptor; }
  11143. }
  11144. protected override pb::FieldAccess.FieldAccessorTable<TestExtremeDefaultValues, TestExtremeDefaultValues.Builder> InternalFieldAccessors {
  11145. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_TestExtremeDefaultValues__FieldAccessorTable; }
  11146. }
  11147. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11148. private bool hasEscapedBytes;
  11149. private pb::ByteString escapedBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11150. public bool HasEscapedBytes {
  11151. get { return hasEscapedBytes; }
  11152. }
  11153. public pb::ByteString EscapedBytes {
  11154. get { return escapedBytes_; }
  11155. }
  11156. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11157. private bool hasLargeUint32;
  11158. private uint largeUint32_ = 4294967295;
  11159. public bool HasLargeUint32 {
  11160. get { return hasLargeUint32; }
  11161. }
  11162. public uint LargeUint32 {
  11163. get { return largeUint32_; }
  11164. }
  11165. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11166. private bool hasLargeUint64;
  11167. private ulong largeUint64_ = 18446744073709551615UL;
  11168. public bool HasLargeUint64 {
  11169. get { return hasLargeUint64; }
  11170. }
  11171. public ulong LargeUint64 {
  11172. get { return largeUint64_; }
  11173. }
  11174. // optional int32 small_int32 = 4 [default = -2147483647];
  11175. private bool hasSmallInt32;
  11176. private int smallInt32_ = -2147483647;
  11177. public bool HasSmallInt32 {
  11178. get { return hasSmallInt32; }
  11179. }
  11180. public int SmallInt32 {
  11181. get { return smallInt32_; }
  11182. }
  11183. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11184. private bool hasSmallInt64;
  11185. private long smallInt64_ = -9223372036854775807L;
  11186. public bool HasSmallInt64 {
  11187. get { return hasSmallInt64; }
  11188. }
  11189. public long SmallInt64 {
  11190. get { return smallInt64_; }
  11191. }
  11192. // optional string utf8_string = 6 [default = "\341\210\264"];
  11193. private bool hasUtf8String;
  11194. private string utf8String_ = ((string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11195. public bool HasUtf8String {
  11196. get { return hasUtf8String; }
  11197. }
  11198. public string Utf8String {
  11199. get { return utf8String_; }
  11200. }
  11201. public override bool IsInitialized {
  11202. get {
  11203. return true;
  11204. }
  11205. }
  11206. public override void WriteTo(pb::CodedOutputStream output) {
  11207. if (HasEscapedBytes) {
  11208. output.WriteBytes(1, EscapedBytes);
  11209. }
  11210. if (HasLargeUint32) {
  11211. output.WriteUInt32(2, LargeUint32);
  11212. }
  11213. if (HasLargeUint64) {
  11214. output.WriteUInt64(3, LargeUint64);
  11215. }
  11216. if (HasSmallInt32) {
  11217. output.WriteInt32(4, SmallInt32);
  11218. }
  11219. if (HasSmallInt64) {
  11220. output.WriteInt64(5, SmallInt64);
  11221. }
  11222. if (HasUtf8String) {
  11223. output.WriteString(6, Utf8String);
  11224. }
  11225. UnknownFields.WriteTo(output);
  11226. }
  11227. private int memoizedSerializedSize = -1;
  11228. public override int SerializedSize {
  11229. get {
  11230. int size = memoizedSerializedSize;
  11231. if (size != -1) return size;
  11232. size = 0;
  11233. if (HasEscapedBytes) {
  11234. size += pb::CodedOutputStream.ComputeBytesSize(1, EscapedBytes);
  11235. }
  11236. if (HasLargeUint32) {
  11237. size += pb::CodedOutputStream.ComputeUInt32Size(2, LargeUint32);
  11238. }
  11239. if (HasLargeUint64) {
  11240. size += pb::CodedOutputStream.ComputeUInt64Size(3, LargeUint64);
  11241. }
  11242. if (HasSmallInt32) {
  11243. size += pb::CodedOutputStream.ComputeInt32Size(4, SmallInt32);
  11244. }
  11245. if (HasSmallInt64) {
  11246. size += pb::CodedOutputStream.ComputeInt64Size(5, SmallInt64);
  11247. }
  11248. if (HasUtf8String) {
  11249. size += pb::CodedOutputStream.ComputeStringSize(6, Utf8String);
  11250. }
  11251. size += UnknownFields.SerializedSize;
  11252. memoizedSerializedSize = size;
  11253. return size;
  11254. }
  11255. }
  11256. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::ByteString data) {
  11257. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11258. }
  11259. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::ByteString data,
  11260. pb::ExtensionRegistry extensionRegistry) {
  11261. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11262. .BuildParsed();
  11263. }
  11264. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(byte[] data) {
  11265. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11266. }
  11267. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(byte[] data,
  11268. pb::ExtensionRegistry extensionRegistry) {
  11269. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11270. .BuildParsed();
  11271. }
  11272. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(global::System.IO.Stream input) {
  11273. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11274. }
  11275. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(
  11276. global::System.IO.Stream input,
  11277. pb::ExtensionRegistry extensionRegistry) {
  11278. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11279. .BuildParsed();
  11280. }
  11281. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input) {
  11282. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11283. }
  11284. public static global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues ParseFrom(pb::CodedInputStream input,
  11285. pb::ExtensionRegistry extensionRegistry) {
  11286. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11287. .BuildParsed();
  11288. }
  11289. public static Builder CreateBuilder() { return new Builder(); }
  11290. public override Builder CreateBuilderForType() { return new Builder(); }
  11291. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues prototype) {
  11292. return (Builder) new Builder().MergeFrom(prototype);
  11293. }
  11294. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues, Builder> {
  11295. protected override Builder ThisBuilder {
  11296. get { return this; }
  11297. }
  11298. // Construct using global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.CreateBuilder()
  11299. public Builder() {}
  11300. global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues result = new global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues();
  11301. protected override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues MessageBeingBuilt {
  11302. get { return result; }
  11303. }
  11304. public override Builder Clear() {
  11305. result = new global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues();
  11306. return this;
  11307. }
  11308. public override Builder Clone() {
  11309. return new Builder().MergeFrom(result);
  11310. }
  11311. public override pbd::MessageDescriptor DescriptorForType {
  11312. get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor; }
  11313. }
  11314. public override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues DefaultInstanceForType {
  11315. get { return global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance; }
  11316. }
  11317. public override global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues BuildPartial() {
  11318. global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues returnMe = result;
  11319. result = null;
  11320. return returnMe;
  11321. }
  11322. public override Builder MergeFrom(pb::IMessage other) {
  11323. if (other is global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues) {
  11324. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues) other);
  11325. } else {
  11326. base.MergeFrom(other);
  11327. return this;
  11328. }
  11329. }
  11330. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues other) {
  11331. if (other == global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.DefaultInstance) return this;
  11332. if (other.HasEscapedBytes) {
  11333. EscapedBytes = other.EscapedBytes;
  11334. }
  11335. if (other.HasLargeUint32) {
  11336. LargeUint32 = other.LargeUint32;
  11337. }
  11338. if (other.HasLargeUint64) {
  11339. LargeUint64 = other.LargeUint64;
  11340. }
  11341. if (other.HasSmallInt32) {
  11342. SmallInt32 = other.SmallInt32;
  11343. }
  11344. if (other.HasSmallInt64) {
  11345. SmallInt64 = other.SmallInt64;
  11346. }
  11347. if (other.HasUtf8String) {
  11348. Utf8String = other.Utf8String;
  11349. }
  11350. this.MergeUnknownFields(other.UnknownFields);
  11351. return this;
  11352. }
  11353. public override Builder MergeFrom(pb::CodedInputStream input) {
  11354. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11355. }
  11356. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11357. pb::UnknownFieldSet.Builder unknownFields =
  11358. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11359. while (true) {
  11360. uint tag = input.ReadTag();
  11361. switch (tag) {
  11362. case 0:
  11363. this.UnknownFields = unknownFields.Build();
  11364. return this;
  11365. default: {
  11366. if (!ParseUnknownField(input, unknownFields,
  11367. extensionRegistry, tag)) {
  11368. this.UnknownFields = unknownFields.Build();
  11369. return this;
  11370. }
  11371. break;
  11372. }
  11373. case 10: {
  11374. EscapedBytes = input.ReadBytes();
  11375. break;
  11376. }
  11377. case 16: {
  11378. LargeUint32 = input.ReadUInt32();
  11379. break;
  11380. }
  11381. case 24: {
  11382. LargeUint64 = input.ReadUInt64();
  11383. break;
  11384. }
  11385. case 32: {
  11386. SmallInt32 = input.ReadInt32();
  11387. break;
  11388. }
  11389. case 40: {
  11390. SmallInt64 = input.ReadInt64();
  11391. break;
  11392. }
  11393. case 50: {
  11394. Utf8String = input.ReadString();
  11395. break;
  11396. }
  11397. }
  11398. }
  11399. }
  11400. // optional bytes escaped_bytes = 1 [default = "\000\001\007\010\014\n\r\t\013\\\'\"\376"];
  11401. public bool HasEscapedBytes {
  11402. get { return result.HasEscapedBytes; }
  11403. }
  11404. public pb::ByteString EscapedBytes {
  11405. get { return result.EscapedBytes; }
  11406. set { SetEscapedBytes(value); }
  11407. }
  11408. public Builder SetEscapedBytes(pb::ByteString value) {
  11409. result.hasEscapedBytes = true;
  11410. result.escapedBytes_ = value;
  11411. return this;
  11412. }
  11413. public Builder ClearEscapedBytes() {
  11414. result.hasEscapedBytes = false;
  11415. result.escapedBytes_ = ((pb::ByteString) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[0].DefaultValue);
  11416. return this;
  11417. }
  11418. // optional uint32 large_uint32 = 2 [default = 4294967295];
  11419. public bool HasLargeUint32 {
  11420. get { return result.HasLargeUint32; }
  11421. }
  11422. public uint LargeUint32 {
  11423. get { return result.LargeUint32; }
  11424. set { SetLargeUint32(value); }
  11425. }
  11426. public Builder SetLargeUint32(uint value) {
  11427. result.hasLargeUint32 = true;
  11428. result.largeUint32_ = value;
  11429. return this;
  11430. }
  11431. public Builder ClearLargeUint32() {
  11432. result.hasLargeUint32 = false;
  11433. result.largeUint32_ = 4294967295;
  11434. return this;
  11435. }
  11436. // optional uint64 large_uint64 = 3 [default = 18446744073709551615];
  11437. public bool HasLargeUint64 {
  11438. get { return result.HasLargeUint64; }
  11439. }
  11440. public ulong LargeUint64 {
  11441. get { return result.LargeUint64; }
  11442. set { SetLargeUint64(value); }
  11443. }
  11444. public Builder SetLargeUint64(ulong value) {
  11445. result.hasLargeUint64 = true;
  11446. result.largeUint64_ = value;
  11447. return this;
  11448. }
  11449. public Builder ClearLargeUint64() {
  11450. result.hasLargeUint64 = false;
  11451. result.largeUint64_ = 18446744073709551615UL;
  11452. return this;
  11453. }
  11454. // optional int32 small_int32 = 4 [default = -2147483647];
  11455. public bool HasSmallInt32 {
  11456. get { return result.HasSmallInt32; }
  11457. }
  11458. public int SmallInt32 {
  11459. get { return result.SmallInt32; }
  11460. set { SetSmallInt32(value); }
  11461. }
  11462. public Builder SetSmallInt32(int value) {
  11463. result.hasSmallInt32 = true;
  11464. result.smallInt32_ = value;
  11465. return this;
  11466. }
  11467. public Builder ClearSmallInt32() {
  11468. result.hasSmallInt32 = false;
  11469. result.smallInt32_ = -2147483647;
  11470. return this;
  11471. }
  11472. // optional int64 small_int64 = 5 [default = -9223372036854775807];
  11473. public bool HasSmallInt64 {
  11474. get { return result.HasSmallInt64; }
  11475. }
  11476. public long SmallInt64 {
  11477. get { return result.SmallInt64; }
  11478. set { SetSmallInt64(value); }
  11479. }
  11480. public Builder SetSmallInt64(long value) {
  11481. result.hasSmallInt64 = true;
  11482. result.smallInt64_ = value;
  11483. return this;
  11484. }
  11485. public Builder ClearSmallInt64() {
  11486. result.hasSmallInt64 = false;
  11487. result.smallInt64_ = -9223372036854775807L;
  11488. return this;
  11489. }
  11490. // optional string utf8_string = 6 [default = "\341\210\264"];
  11491. public bool HasUtf8String {
  11492. get { return result.HasUtf8String; }
  11493. }
  11494. public string Utf8String {
  11495. get { return result.Utf8String; }
  11496. set { SetUtf8String(value); }
  11497. }
  11498. public Builder SetUtf8String(string value) {
  11499. result.hasUtf8String = true;
  11500. result.utf8String_ = value;
  11501. return this;
  11502. }
  11503. public Builder ClearUtf8String() {
  11504. result.hasUtf8String = false;
  11505. result.utf8String_ = ((string) global::Google.ProtocolBuffers.TestProtos.TestExtremeDefaultValues.Descriptor.Fields[5].DefaultValue);
  11506. return this;
  11507. }
  11508. }
  11509. }
  11510. public sealed partial class FooRequest : pb::GeneratedMessage<FooRequest, FooRequest.Builder> {
  11511. private static readonly FooRequest defaultInstance = new FooRequest();
  11512. public static FooRequest DefaultInstance {
  11513. get { return defaultInstance; }
  11514. }
  11515. public override FooRequest DefaultInstanceForType {
  11516. get { return defaultInstance; }
  11517. }
  11518. protected override FooRequest ThisMessage {
  11519. get { return this; }
  11520. }
  11521. public static pbd::MessageDescriptor Descriptor {
  11522. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__Descriptor; }
  11523. }
  11524. protected override pb::FieldAccess.FieldAccessorTable<FooRequest, FooRequest.Builder> InternalFieldAccessors {
  11525. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooRequest__FieldAccessorTable; }
  11526. }
  11527. public override bool IsInitialized {
  11528. get {
  11529. return true;
  11530. }
  11531. }
  11532. public override void WriteTo(pb::CodedOutputStream output) {
  11533. UnknownFields.WriteTo(output);
  11534. }
  11535. private int memoizedSerializedSize = -1;
  11536. public override int SerializedSize {
  11537. get {
  11538. int size = memoizedSerializedSize;
  11539. if (size != -1) return size;
  11540. size = 0;
  11541. size += UnknownFields.SerializedSize;
  11542. memoizedSerializedSize = size;
  11543. return size;
  11544. }
  11545. }
  11546. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::ByteString data) {
  11547. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11548. }
  11549. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::ByteString data,
  11550. pb::ExtensionRegistry extensionRegistry) {
  11551. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11552. .BuildParsed();
  11553. }
  11554. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(byte[] data) {
  11555. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11556. }
  11557. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(byte[] data,
  11558. pb::ExtensionRegistry extensionRegistry) {
  11559. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11560. .BuildParsed();
  11561. }
  11562. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(global::System.IO.Stream input) {
  11563. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11564. }
  11565. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(
  11566. global::System.IO.Stream input,
  11567. pb::ExtensionRegistry extensionRegistry) {
  11568. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11569. .BuildParsed();
  11570. }
  11571. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::CodedInputStream input) {
  11572. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11573. }
  11574. public static global::Google.ProtocolBuffers.TestProtos.FooRequest ParseFrom(pb::CodedInputStream input,
  11575. pb::ExtensionRegistry extensionRegistry) {
  11576. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11577. .BuildParsed();
  11578. }
  11579. public static Builder CreateBuilder() { return new Builder(); }
  11580. public override Builder CreateBuilderForType() { return new Builder(); }
  11581. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.FooRequest prototype) {
  11582. return (Builder) new Builder().MergeFrom(prototype);
  11583. }
  11584. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.FooRequest, Builder> {
  11585. protected override Builder ThisBuilder {
  11586. get { return this; }
  11587. }
  11588. // Construct using global::Google.ProtocolBuffers.TestProtos.FooRequest.CreateBuilder()
  11589. public Builder() {}
  11590. global::Google.ProtocolBuffers.TestProtos.FooRequest result = new global::Google.ProtocolBuffers.TestProtos.FooRequest();
  11591. protected override global::Google.ProtocolBuffers.TestProtos.FooRequest MessageBeingBuilt {
  11592. get { return result; }
  11593. }
  11594. public override Builder Clear() {
  11595. result = new global::Google.ProtocolBuffers.TestProtos.FooRequest();
  11596. return this;
  11597. }
  11598. public override Builder Clone() {
  11599. return new Builder().MergeFrom(result);
  11600. }
  11601. public override pbd::MessageDescriptor DescriptorForType {
  11602. get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.Descriptor; }
  11603. }
  11604. public override global::Google.ProtocolBuffers.TestProtos.FooRequest DefaultInstanceForType {
  11605. get { return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance; }
  11606. }
  11607. public override global::Google.ProtocolBuffers.TestProtos.FooRequest BuildPartial() {
  11608. global::Google.ProtocolBuffers.TestProtos.FooRequest returnMe = result;
  11609. result = null;
  11610. return returnMe;
  11611. }
  11612. public override Builder MergeFrom(pb::IMessage other) {
  11613. if (other is global::Google.ProtocolBuffers.TestProtos.FooRequest) {
  11614. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.FooRequest) other);
  11615. } else {
  11616. base.MergeFrom(other);
  11617. return this;
  11618. }
  11619. }
  11620. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.FooRequest other) {
  11621. if (other == global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance) return this;
  11622. this.MergeUnknownFields(other.UnknownFields);
  11623. return this;
  11624. }
  11625. public override Builder MergeFrom(pb::CodedInputStream input) {
  11626. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11627. }
  11628. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11629. pb::UnknownFieldSet.Builder unknownFields =
  11630. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11631. while (true) {
  11632. uint tag = input.ReadTag();
  11633. switch (tag) {
  11634. case 0:
  11635. this.UnknownFields = unknownFields.Build();
  11636. return this;
  11637. default: {
  11638. if (!ParseUnknownField(input, unknownFields,
  11639. extensionRegistry, tag)) {
  11640. this.UnknownFields = unknownFields.Build();
  11641. return this;
  11642. }
  11643. break;
  11644. }
  11645. }
  11646. }
  11647. }
  11648. }
  11649. }
  11650. public sealed partial class FooResponse : pb::GeneratedMessage<FooResponse, FooResponse.Builder> {
  11651. private static readonly FooResponse defaultInstance = new FooResponse();
  11652. public static FooResponse DefaultInstance {
  11653. get { return defaultInstance; }
  11654. }
  11655. public override FooResponse DefaultInstanceForType {
  11656. get { return defaultInstance; }
  11657. }
  11658. protected override FooResponse ThisMessage {
  11659. get { return this; }
  11660. }
  11661. public static pbd::MessageDescriptor Descriptor {
  11662. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__Descriptor; }
  11663. }
  11664. protected override pb::FieldAccess.FieldAccessorTable<FooResponse, FooResponse.Builder> InternalFieldAccessors {
  11665. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_FooResponse__FieldAccessorTable; }
  11666. }
  11667. public override bool IsInitialized {
  11668. get {
  11669. return true;
  11670. }
  11671. }
  11672. public override void WriteTo(pb::CodedOutputStream output) {
  11673. UnknownFields.WriteTo(output);
  11674. }
  11675. private int memoizedSerializedSize = -1;
  11676. public override int SerializedSize {
  11677. get {
  11678. int size = memoizedSerializedSize;
  11679. if (size != -1) return size;
  11680. size = 0;
  11681. size += UnknownFields.SerializedSize;
  11682. memoizedSerializedSize = size;
  11683. return size;
  11684. }
  11685. }
  11686. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::ByteString data) {
  11687. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11688. }
  11689. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::ByteString data,
  11690. pb::ExtensionRegistry extensionRegistry) {
  11691. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11692. .BuildParsed();
  11693. }
  11694. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(byte[] data) {
  11695. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11696. }
  11697. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(byte[] data,
  11698. pb::ExtensionRegistry extensionRegistry) {
  11699. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11700. .BuildParsed();
  11701. }
  11702. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(global::System.IO.Stream input) {
  11703. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11704. }
  11705. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(
  11706. global::System.IO.Stream input,
  11707. pb::ExtensionRegistry extensionRegistry) {
  11708. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11709. .BuildParsed();
  11710. }
  11711. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::CodedInputStream input) {
  11712. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11713. }
  11714. public static global::Google.ProtocolBuffers.TestProtos.FooResponse ParseFrom(pb::CodedInputStream input,
  11715. pb::ExtensionRegistry extensionRegistry) {
  11716. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11717. .BuildParsed();
  11718. }
  11719. public static Builder CreateBuilder() { return new Builder(); }
  11720. public override Builder CreateBuilderForType() { return new Builder(); }
  11721. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.FooResponse prototype) {
  11722. return (Builder) new Builder().MergeFrom(prototype);
  11723. }
  11724. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.FooResponse, Builder> {
  11725. protected override Builder ThisBuilder {
  11726. get { return this; }
  11727. }
  11728. // Construct using global::Google.ProtocolBuffers.TestProtos.FooResponse.CreateBuilder()
  11729. public Builder() {}
  11730. global::Google.ProtocolBuffers.TestProtos.FooResponse result = new global::Google.ProtocolBuffers.TestProtos.FooResponse();
  11731. protected override global::Google.ProtocolBuffers.TestProtos.FooResponse MessageBeingBuilt {
  11732. get { return result; }
  11733. }
  11734. public override Builder Clear() {
  11735. result = new global::Google.ProtocolBuffers.TestProtos.FooResponse();
  11736. return this;
  11737. }
  11738. public override Builder Clone() {
  11739. return new Builder().MergeFrom(result);
  11740. }
  11741. public override pbd::MessageDescriptor DescriptorForType {
  11742. get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.Descriptor; }
  11743. }
  11744. public override global::Google.ProtocolBuffers.TestProtos.FooResponse DefaultInstanceForType {
  11745. get { return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance; }
  11746. }
  11747. public override global::Google.ProtocolBuffers.TestProtos.FooResponse BuildPartial() {
  11748. global::Google.ProtocolBuffers.TestProtos.FooResponse returnMe = result;
  11749. result = null;
  11750. return returnMe;
  11751. }
  11752. public override Builder MergeFrom(pb::IMessage other) {
  11753. if (other is global::Google.ProtocolBuffers.TestProtos.FooResponse) {
  11754. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.FooResponse) other);
  11755. } else {
  11756. base.MergeFrom(other);
  11757. return this;
  11758. }
  11759. }
  11760. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.FooResponse other) {
  11761. if (other == global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance) return this;
  11762. this.MergeUnknownFields(other.UnknownFields);
  11763. return this;
  11764. }
  11765. public override Builder MergeFrom(pb::CodedInputStream input) {
  11766. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11767. }
  11768. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11769. pb::UnknownFieldSet.Builder unknownFields =
  11770. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11771. while (true) {
  11772. uint tag = input.ReadTag();
  11773. switch (tag) {
  11774. case 0:
  11775. this.UnknownFields = unknownFields.Build();
  11776. return this;
  11777. default: {
  11778. if (!ParseUnknownField(input, unknownFields,
  11779. extensionRegistry, tag)) {
  11780. this.UnknownFields = unknownFields.Build();
  11781. return this;
  11782. }
  11783. break;
  11784. }
  11785. }
  11786. }
  11787. }
  11788. }
  11789. }
  11790. public sealed partial class BarRequest : pb::GeneratedMessage<BarRequest, BarRequest.Builder> {
  11791. private static readonly BarRequest defaultInstance = new BarRequest();
  11792. public static BarRequest DefaultInstance {
  11793. get { return defaultInstance; }
  11794. }
  11795. public override BarRequest DefaultInstanceForType {
  11796. get { return defaultInstance; }
  11797. }
  11798. protected override BarRequest ThisMessage {
  11799. get { return this; }
  11800. }
  11801. public static pbd::MessageDescriptor Descriptor {
  11802. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__Descriptor; }
  11803. }
  11804. protected override pb::FieldAccess.FieldAccessorTable<BarRequest, BarRequest.Builder> InternalFieldAccessors {
  11805. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarRequest__FieldAccessorTable; }
  11806. }
  11807. public override bool IsInitialized {
  11808. get {
  11809. return true;
  11810. }
  11811. }
  11812. public override void WriteTo(pb::CodedOutputStream output) {
  11813. UnknownFields.WriteTo(output);
  11814. }
  11815. private int memoizedSerializedSize = -1;
  11816. public override int SerializedSize {
  11817. get {
  11818. int size = memoizedSerializedSize;
  11819. if (size != -1) return size;
  11820. size = 0;
  11821. size += UnknownFields.SerializedSize;
  11822. memoizedSerializedSize = size;
  11823. return size;
  11824. }
  11825. }
  11826. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::ByteString data) {
  11827. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11828. }
  11829. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::ByteString data,
  11830. pb::ExtensionRegistry extensionRegistry) {
  11831. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11832. .BuildParsed();
  11833. }
  11834. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(byte[] data) {
  11835. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11836. }
  11837. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(byte[] data,
  11838. pb::ExtensionRegistry extensionRegistry) {
  11839. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11840. .BuildParsed();
  11841. }
  11842. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(global::System.IO.Stream input) {
  11843. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11844. }
  11845. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(
  11846. global::System.IO.Stream input,
  11847. pb::ExtensionRegistry extensionRegistry) {
  11848. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11849. .BuildParsed();
  11850. }
  11851. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::CodedInputStream input) {
  11852. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11853. }
  11854. public static global::Google.ProtocolBuffers.TestProtos.BarRequest ParseFrom(pb::CodedInputStream input,
  11855. pb::ExtensionRegistry extensionRegistry) {
  11856. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11857. .BuildParsed();
  11858. }
  11859. public static Builder CreateBuilder() { return new Builder(); }
  11860. public override Builder CreateBuilderForType() { return new Builder(); }
  11861. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.BarRequest prototype) {
  11862. return (Builder) new Builder().MergeFrom(prototype);
  11863. }
  11864. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.BarRequest, Builder> {
  11865. protected override Builder ThisBuilder {
  11866. get { return this; }
  11867. }
  11868. // Construct using global::Google.ProtocolBuffers.TestProtos.BarRequest.CreateBuilder()
  11869. public Builder() {}
  11870. global::Google.ProtocolBuffers.TestProtos.BarRequest result = new global::Google.ProtocolBuffers.TestProtos.BarRequest();
  11871. protected override global::Google.ProtocolBuffers.TestProtos.BarRequest MessageBeingBuilt {
  11872. get { return result; }
  11873. }
  11874. public override Builder Clear() {
  11875. result = new global::Google.ProtocolBuffers.TestProtos.BarRequest();
  11876. return this;
  11877. }
  11878. public override Builder Clone() {
  11879. return new Builder().MergeFrom(result);
  11880. }
  11881. public override pbd::MessageDescriptor DescriptorForType {
  11882. get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.Descriptor; }
  11883. }
  11884. public override global::Google.ProtocolBuffers.TestProtos.BarRequest DefaultInstanceForType {
  11885. get { return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance; }
  11886. }
  11887. public override global::Google.ProtocolBuffers.TestProtos.BarRequest BuildPartial() {
  11888. global::Google.ProtocolBuffers.TestProtos.BarRequest returnMe = result;
  11889. result = null;
  11890. return returnMe;
  11891. }
  11892. public override Builder MergeFrom(pb::IMessage other) {
  11893. if (other is global::Google.ProtocolBuffers.TestProtos.BarRequest) {
  11894. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.BarRequest) other);
  11895. } else {
  11896. base.MergeFrom(other);
  11897. return this;
  11898. }
  11899. }
  11900. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.BarRequest other) {
  11901. if (other == global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance) return this;
  11902. this.MergeUnknownFields(other.UnknownFields);
  11903. return this;
  11904. }
  11905. public override Builder MergeFrom(pb::CodedInputStream input) {
  11906. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  11907. }
  11908. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  11909. pb::UnknownFieldSet.Builder unknownFields =
  11910. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  11911. while (true) {
  11912. uint tag = input.ReadTag();
  11913. switch (tag) {
  11914. case 0:
  11915. this.UnknownFields = unknownFields.Build();
  11916. return this;
  11917. default: {
  11918. if (!ParseUnknownField(input, unknownFields,
  11919. extensionRegistry, tag)) {
  11920. this.UnknownFields = unknownFields.Build();
  11921. return this;
  11922. }
  11923. break;
  11924. }
  11925. }
  11926. }
  11927. }
  11928. }
  11929. }
  11930. public sealed partial class BarResponse : pb::GeneratedMessage<BarResponse, BarResponse.Builder> {
  11931. private static readonly BarResponse defaultInstance = new BarResponse();
  11932. public static BarResponse DefaultInstance {
  11933. get { return defaultInstance; }
  11934. }
  11935. public override BarResponse DefaultInstanceForType {
  11936. get { return defaultInstance; }
  11937. }
  11938. protected override BarResponse ThisMessage {
  11939. get { return this; }
  11940. }
  11941. public static pbd::MessageDescriptor Descriptor {
  11942. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__Descriptor; }
  11943. }
  11944. protected override pb::FieldAccess.FieldAccessorTable<BarResponse, BarResponse.Builder> InternalFieldAccessors {
  11945. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.internal__static_protobuf_unittest_BarResponse__FieldAccessorTable; }
  11946. }
  11947. public override bool IsInitialized {
  11948. get {
  11949. return true;
  11950. }
  11951. }
  11952. public override void WriteTo(pb::CodedOutputStream output) {
  11953. UnknownFields.WriteTo(output);
  11954. }
  11955. private int memoizedSerializedSize = -1;
  11956. public override int SerializedSize {
  11957. get {
  11958. int size = memoizedSerializedSize;
  11959. if (size != -1) return size;
  11960. size = 0;
  11961. size += UnknownFields.SerializedSize;
  11962. memoizedSerializedSize = size;
  11963. return size;
  11964. }
  11965. }
  11966. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::ByteString data) {
  11967. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11968. }
  11969. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::ByteString data,
  11970. pb::ExtensionRegistry extensionRegistry) {
  11971. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11972. .BuildParsed();
  11973. }
  11974. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(byte[] data) {
  11975. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  11976. }
  11977. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(byte[] data,
  11978. pb::ExtensionRegistry extensionRegistry) {
  11979. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  11980. .BuildParsed();
  11981. }
  11982. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(global::System.IO.Stream input) {
  11983. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11984. }
  11985. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(
  11986. global::System.IO.Stream input,
  11987. pb::ExtensionRegistry extensionRegistry) {
  11988. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11989. .BuildParsed();
  11990. }
  11991. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::CodedInputStream input) {
  11992. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  11993. }
  11994. public static global::Google.ProtocolBuffers.TestProtos.BarResponse ParseFrom(pb::CodedInputStream input,
  11995. pb::ExtensionRegistry extensionRegistry) {
  11996. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  11997. .BuildParsed();
  11998. }
  11999. public static Builder CreateBuilder() { return new Builder(); }
  12000. public override Builder CreateBuilderForType() { return new Builder(); }
  12001. public static Builder CreateBuilder(global::Google.ProtocolBuffers.TestProtos.BarResponse prototype) {
  12002. return (Builder) new Builder().MergeFrom(prototype);
  12003. }
  12004. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.TestProtos.BarResponse, Builder> {
  12005. protected override Builder ThisBuilder {
  12006. get { return this; }
  12007. }
  12008. // Construct using global::Google.ProtocolBuffers.TestProtos.BarResponse.CreateBuilder()
  12009. public Builder() {}
  12010. global::Google.ProtocolBuffers.TestProtos.BarResponse result = new global::Google.ProtocolBuffers.TestProtos.BarResponse();
  12011. protected override global::Google.ProtocolBuffers.TestProtos.BarResponse MessageBeingBuilt {
  12012. get { return result; }
  12013. }
  12014. public override Builder Clear() {
  12015. result = new global::Google.ProtocolBuffers.TestProtos.BarResponse();
  12016. return this;
  12017. }
  12018. public override Builder Clone() {
  12019. return new Builder().MergeFrom(result);
  12020. }
  12021. public override pbd::MessageDescriptor DescriptorForType {
  12022. get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.Descriptor; }
  12023. }
  12024. public override global::Google.ProtocolBuffers.TestProtos.BarResponse DefaultInstanceForType {
  12025. get { return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance; }
  12026. }
  12027. public override global::Google.ProtocolBuffers.TestProtos.BarResponse BuildPartial() {
  12028. global::Google.ProtocolBuffers.TestProtos.BarResponse returnMe = result;
  12029. result = null;
  12030. return returnMe;
  12031. }
  12032. public override Builder MergeFrom(pb::IMessage other) {
  12033. if (other is global::Google.ProtocolBuffers.TestProtos.BarResponse) {
  12034. return MergeFrom((global::Google.ProtocolBuffers.TestProtos.BarResponse) other);
  12035. } else {
  12036. base.MergeFrom(other);
  12037. return this;
  12038. }
  12039. }
  12040. public override Builder MergeFrom(global::Google.ProtocolBuffers.TestProtos.BarResponse other) {
  12041. if (other == global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance) return this;
  12042. this.MergeUnknownFields(other.UnknownFields);
  12043. return this;
  12044. }
  12045. public override Builder MergeFrom(pb::CodedInputStream input) {
  12046. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  12047. }
  12048. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  12049. pb::UnknownFieldSet.Builder unknownFields =
  12050. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  12051. while (true) {
  12052. uint tag = input.ReadTag();
  12053. switch (tag) {
  12054. case 0:
  12055. this.UnknownFields = unknownFields.Build();
  12056. return this;
  12057. default: {
  12058. if (!ParseUnknownField(input, unknownFields,
  12059. extensionRegistry, tag)) {
  12060. this.UnknownFields = unknownFields.Build();
  12061. return this;
  12062. }
  12063. break;
  12064. }
  12065. }
  12066. }
  12067. }
  12068. }
  12069. }
  12070. #endregion
  12071. #region Services
  12072. public abstract class TestService : pb::IService {
  12073. public abstract void Foo(
  12074. pb::IRpcController controller,
  12075. global::Google.ProtocolBuffers.TestProtos.FooRequest request,
  12076. global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done);
  12077. public abstract void Bar(
  12078. pb::IRpcController controller,
  12079. global::Google.ProtocolBuffers.TestProtos.BarRequest request,
  12080. global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done);
  12081. public static pbd::ServiceDescriptor Descriptor {
  12082. get { return global::Google.ProtocolBuffers.TestProtos.UnitTestProtoFile.Descriptor.Services[0]; }
  12083. }
  12084. public pbd::ServiceDescriptor DescriptorForType {
  12085. get { return Descriptor; }
  12086. }
  12087. public void CallMethod(
  12088. pbd::MethodDescriptor method,
  12089. pb::IRpcController controller,
  12090. pb::IMessage request,
  12091. global::System.Action<pb::IMessage> done) {
  12092. if (method.Service != Descriptor) {
  12093. throw new global::System.ArgumentException(
  12094. "Service.CallMethod() given method descriptor for wrong " +
  12095. "service type.");
  12096. }
  12097. switch(method.Index) {
  12098. case 0:
  12099. this.Foo(controller, (global::Google.ProtocolBuffers.TestProtos.FooRequest)request,
  12100. pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse>(
  12101. done));
  12102. return;
  12103. case 1:
  12104. this.Bar(controller, (global::Google.ProtocolBuffers.TestProtos.BarRequest)request,
  12105. pb::RpcUtil.SpecializeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse>(
  12106. done));
  12107. return;
  12108. default:
  12109. throw new global::System.InvalidOperationException("Can't get here.");
  12110. }
  12111. }
  12112. public pb::IMessage GetRequestPrototype(pbd::MethodDescriptor method) {
  12113. if (method.Service != Descriptor) {
  12114. throw new global::System.ArgumentException(
  12115. "Service.GetRequestPrototype() given method " +
  12116. "descriptor for wrong service type.");
  12117. }
  12118. switch(method.Index) {
  12119. case 0:
  12120. return global::Google.ProtocolBuffers.TestProtos.FooRequest.DefaultInstance;
  12121. case 1:
  12122. return global::Google.ProtocolBuffers.TestProtos.BarRequest.DefaultInstance;
  12123. default:
  12124. throw new global::System.ArgumentException("Can't get here.");
  12125. }
  12126. }
  12127. public pb::IMessage GetResponsePrototype(pbd::MethodDescriptor method) {
  12128. if (method.Service != Descriptor) {
  12129. throw new global::System.ArgumentException(
  12130. "Service.GetResponsePrototype() given method " +
  12131. "descriptor for wrong service type.");
  12132. }
  12133. switch(method.Index) {
  12134. case 0:
  12135. return global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance;
  12136. case 1:
  12137. return global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance;
  12138. default:
  12139. throw new global::System.ArgumentException("Can't get here.");
  12140. }
  12141. }
  12142. public static Stub CreateStub(
  12143. pb::IRpcChannel channel) {
  12144. return new Stub(channel);
  12145. }
  12146. public class Stub : global::Google.ProtocolBuffers.TestProtos.TestService {
  12147. internal Stub(pb::IRpcChannel channel) {
  12148. this.channel = channel;
  12149. }
  12150. private readonly pb::IRpcChannel channel;
  12151. public pb::IRpcChannel Channel {
  12152. get { return channel; }
  12153. }
  12154. public override void Foo(
  12155. pb::IRpcController controller,
  12156. global::Google.ProtocolBuffers.TestProtos.FooRequest request,
  12157. global::System.Action<global::Google.ProtocolBuffers.TestProtos.FooResponse> done) {
  12158. channel.CallMethod(
  12159. Descriptor.Methods[0],
  12160. controller,
  12161. request,
  12162. global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance,
  12163. pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.FooResponse, global::Google.ProtocolBuffers.TestProtos.FooResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.FooResponse.DefaultInstance));
  12164. }
  12165. public override void Bar(
  12166. pb::IRpcController controller,
  12167. global::Google.ProtocolBuffers.TestProtos.BarRequest request,
  12168. global::System.Action<global::Google.ProtocolBuffers.TestProtos.BarResponse> done) {
  12169. channel.CallMethod(
  12170. Descriptor.Methods[1],
  12171. controller,
  12172. request,
  12173. global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance,
  12174. pb::RpcUtil.GeneralizeCallback<global::Google.ProtocolBuffers.TestProtos.BarResponse, global::Google.ProtocolBuffers.TestProtos.BarResponse.Builder>(done, global::Google.ProtocolBuffers.TestProtos.BarResponse.DefaultInstance));
  12175. }
  12176. }
  12177. }
  12178. #endregion
  12179. }