DescriptorProtoFile.cs 255 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704
  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.DescriptorProtos {
  7. public static partial class DescriptorProtoFile {
  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, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65,
  15. 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, 0x6f, 0x6f, 0x67,
  16. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x22, 0x47, 0x0a, 0x11, 0x46, 0x69, 0x6c, 0x65, 0x44,
  17. 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x74, 0x12, 0x32, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65,
  18. 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  19. 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50,
  20. 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdc, 0x02, 0x0a, 0x13, 0x46, 0x69, 0x6c, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
  21. 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
  22. 0x28, 0x09, 0x12, 0x0f, 0x0a, 0x07, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x12,
  23. 0x12, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x12,
  24. 0x36, 0x0a, 0x0c, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28,
  25. 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  26. 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x37, 0x0a, 0x09, 0x65,
  27. 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f,
  28. 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x73,
  29. 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76,
  30. 0x69, 0x63, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
  31. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72,
  32. 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x38, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73,
  33. 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
  34. 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
  35. 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2d, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18,
  36. 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  37. 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa9, 0x03, 0x0a, 0x0f,
  38. 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x0a, 0x04, 0x6e,
  39. 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x12, 0x34, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x02,
  40. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  41. 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72,
  42. 0x6f, 0x74, 0x6f, 0x12, 0x38, 0x0a, 0x09, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x03,
  43. 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  44. 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74,
  45. 0x6f, 0x12, 0x35, 0x0a, 0x0b, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x03,
  46. 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
  47. 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x37, 0x0a, 0x09,
  48. 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f,
  49. 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x44, 0x65,
  50. 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x48, 0x0a, 0x0f, 0x65, 0x78, 0x74,
  51. 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f,
  52. 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x65, 0x73,
  53. 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69,
  54. 0x6f, 0x6e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x30, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07,
  55. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  56. 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x2c, 0x0a,
  57. 0x0e, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x0d, 0x0a, 0x05, 0x73,
  58. 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x12, 0x0b, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20,
  59. 0x01, 0x28, 0x05, 0x22, 0x94, 0x05, 0x0a, 0x14, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70,
  60. 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
  61. 0x28, 0x09, 0x12, 0x0e, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x12, 0x3a,
  62. 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  63. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73,
  64. 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x38,
  65. 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  66. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63,
  67. 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x09,
  68. 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x12, 0x10, 0x0a, 0x08, 0x65,
  69. 0x78, 0x74, 0x65, 0x6e, 0x64, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x12, 0x15, 0x0a, 0x0d, 0x64, 0x65, 0x66,
  70. 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x12, 0x2e, 0x0a, 0x07,
  71. 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  72. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74,
  73. 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb6, 0x02, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50,
  74. 0x45, 0x5f, 0x44, 0x4f, 0x55, 0x42, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46,
  75. 0x4c, 0x4f, 0x41, 0x54, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x36, 0x34,
  76. 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12,
  77. 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x05, 0x12, 0x10, 0x0a, 0x0c, 0x54,
  78. 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x58, 0x45, 0x44, 0x36, 0x34, 0x10, 0x06, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50,
  79. 0x45, 0x5f, 0x46, 0x49, 0x58, 0x45, 0x44, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f,
  80. 0x42, 0x4f, 0x4f, 0x4c, 0x10, 0x08, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e,
  81. 0x47, 0x10, 0x09, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x0a, 0x12,
  82. 0x10, 0x0a, 0x0c, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0x0b, 0x12, 0x0e, 0x0a,
  83. 0x0a, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x42, 0x59, 0x54, 0x45, 0x53, 0x10, 0x0c, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50,
  84. 0x45, 0x5f, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x0d, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45,
  85. 0x4e, 0x55, 0x4d, 0x10, 0x0e, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x46, 0x49, 0x58, 0x45, 0x44,
  86. 0x33, 0x32, 0x10, 0x0f, 0x12, 0x11, 0x0a, 0x0d, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x46, 0x49, 0x58, 0x45, 0x44, 0x36,
  87. 0x34, 0x10, 0x10, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x11,
  88. 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x12, 0x22, 0x43, 0x0a,
  89. 0x05, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x4f, 0x50, 0x54, 0x49,
  90. 0x4f, 0x4e, 0x41, 0x4c, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x52, 0x45, 0x51, 0x55,
  91. 0x49, 0x52, 0x45, 0x44, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x4c, 0x41, 0x42, 0x45, 0x4c, 0x5f, 0x52, 0x45, 0x50, 0x45,
  92. 0x41, 0x54, 0x45, 0x44, 0x10, 0x03, 0x22, 0x8c, 0x01, 0x0a, 0x13, 0x45, 0x6e, 0x75, 0x6d, 0x44, 0x65, 0x73, 0x63, 0x72,
  93. 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
  94. 0x20, 0x01, 0x28, 0x09, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
  95. 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e,
  96. 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f,
  97. 0x74, 0x6f, 0x12, 0x2d, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
  98. 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6e,
  99. 0x75, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x6c, 0x0a, 0x18, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c,
  100. 0x75, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x0a,
  101. 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x12, 0x0e, 0x0a, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65,
  102. 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x12, 0x32, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03,
  103. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  104. 0x75, 0x66, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22,
  105. 0x90, 0x01, 0x0a, 0x16, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f,
  106. 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  107. 0x12, 0x36, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67,
  108. 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f,
  109. 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x30, 0x0a, 0x07,
  110. 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
  111. 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f,
  112. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7f, 0x0a, 0x15, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x44, 0x65, 0x73, 0x63,
  113. 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
  114. 0x01, 0x20, 0x01, 0x28, 0x09, 0x12, 0x12, 0x0a, 0x0a, 0x69, 0x6e, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18,
  115. 0x02, 0x20, 0x01, 0x28, 0x09, 0x12, 0x13, 0x0a, 0x0b, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65,
  116. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x12, 0x2f, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20,
  117. 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
  118. 0x66, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x88, 0x03, 0x0a, 0x0b,
  119. 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x0c, 0x6a, 0x61, 0x76, 0x61, 0x5f,
  120. 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x12, 0x1c, 0x0a, 0x14, 0x6a, 0x61, 0x76,
  121. 0x61, 0x5f, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20,
  122. 0x01, 0x28, 0x09, 0x12, 0x22, 0x0a, 0x13, 0x6a, 0x61, 0x76, 0x61, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65,
  123. 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x12,
  124. 0x4a, 0x0a, 0x0c, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28,
  125. 0x0e, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
  126. 0x46, 0x69, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65,
  127. 0x4d, 0x6f, 0x64, 0x65, 0x3a, 0x09, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x12, 0x19, 0x0a, 0x10, 0x63,
  128. 0x73, 0x68, 0x61, 0x72, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0xe8, 0x07, 0x20, 0x01,
  129. 0x28, 0x09, 0x12, 0x1e, 0x0a, 0x15, 0x63, 0x73, 0x68, 0x61, 0x72, 0x70, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6c,
  130. 0x61, 0x73, 0x73, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28, 0x09, 0x12, 0x25, 0x0a, 0x15, 0x63, 0x73,
  131. 0x68, 0x61, 0x72, 0x70, 0x5f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18,
  132. 0xea, 0x07, 0x20, 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x12, 0x23, 0x0a, 0x13, 0x63, 0x73, 0x68,
  133. 0x61, 0x72, 0x70, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0xeb, 0x07, 0x20,
  134. 0x01, 0x28, 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x15, 0x63, 0x73, 0x68, 0x61, 0x72, 0x70,
  135. 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0xec, 0x07, 0x20, 0x01,
  136. 0x28, 0x08, 0x3a, 0x04, 0x74, 0x72, 0x75, 0x65, 0x22, 0x28, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x7a, 0x65,
  137. 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x50, 0x45, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43,
  138. 0x4f, 0x44, 0x45, 0x5f, 0x53, 0x49, 0x5a, 0x45, 0x10, 0x02, 0x22, 0x38, 0x0a, 0x0e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  139. 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x17, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f,
  140. 0x73, 0x65, 0x74, 0x5f, 0x77, 0x69, 0x72, 0x65, 0x5f, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
  141. 0x08, 0x3a, 0x05, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x0c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70,
  142. 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x32, 0x0a, 0x05, 0x63, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
  143. 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46,
  144. 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x43, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a,
  145. 0x14, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x70, 0x5f, 0x6b, 0x65,
  146. 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x22, 0x23, 0x0a, 0x05, 0x43, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04,
  147. 0x43, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x49, 0x45,
  148. 0x43, 0x45, 0x10, 0x02, 0x22, 0x0d, 0x0a, 0x0b, 0x45, 0x6e, 0x75, 0x6d, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22,
  149. 0x12, 0x0a, 0x10, 0x45, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22,
  150. 0x10, 0x0a, 0x0e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x0f, 0x0a,
  151. 0x0d, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x72, 0x0a, 0x13, 0x63, 0x6f,
  152. 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x42, 0x10, 0x44,
  153. 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x48, 0x01, 0xc2, 0x3e, 0x27,
  154. 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x75, 0x66, 0x66, 0x65,
  155. 0x72, 0x73, 0x2e, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0xca,
  156. 0x3e, 0x13, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x46, 0x69, 0x6c,
  157. 0x65, 0xd0, 0x3e, 0x00, 0xd8, 0x3e, 0x00, 0xe0, 0x3e, 0x01,
  158. }, new pbd::FileDescriptor[] {
  159. });
  160. #endregion
  161. #region Extensions
  162. #endregion
  163. #region Static variables
  164. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_FileDescriptorSet__Descriptor
  165. = Descriptor.MessageTypes[0];
  166. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.Builder> internal__static_google_protobuf_FileDescriptorSet__FieldAccessorTable
  167. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.Builder>(internal__static_google_protobuf_FileDescriptorSet__Descriptor,
  168. new string[] { "File", });
  169. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_FileDescriptorProto__Descriptor
  170. = Descriptor.MessageTypes[1];
  171. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Builder> internal__static_google_protobuf_FileDescriptorProto__FieldAccessorTable
  172. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Builder>(internal__static_google_protobuf_FileDescriptorProto__Descriptor,
  173. new string[] { "Name", "Package", "Dependency", "MessageType", "EnumType", "Service", "Extension", "Options", });
  174. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_DescriptorProto__Descriptor
  175. = Descriptor.MessageTypes[2];
  176. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder> internal__static_google_protobuf_DescriptorProto__FieldAccessorTable
  177. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder>(internal__static_google_protobuf_DescriptorProto__Descriptor,
  178. new string[] { "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "Options", });
  179. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_DescriptorProto_ExtensionRange__Descriptor
  180. = internal__static_google_protobuf_DescriptorProto__Descriptor.NestedTypes[0];
  181. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Builder> internal__static_google_protobuf_DescriptorProto_ExtensionRange__FieldAccessorTable
  182. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Builder>(internal__static_google_protobuf_DescriptorProto_ExtensionRange__Descriptor,
  183. new string[] { "Start", "End", });
  184. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_FieldDescriptorProto__Descriptor
  185. = Descriptor.MessageTypes[3];
  186. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder> internal__static_google_protobuf_FieldDescriptorProto__FieldAccessorTable
  187. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder>(internal__static_google_protobuf_FieldDescriptorProto__Descriptor,
  188. new string[] { "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "Options", });
  189. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_EnumDescriptorProto__Descriptor
  190. = Descriptor.MessageTypes[4];
  191. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder> internal__static_google_protobuf_EnumDescriptorProto__FieldAccessorTable
  192. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder>(internal__static_google_protobuf_EnumDescriptorProto__Descriptor,
  193. new string[] { "Name", "Value", "Options", });
  194. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_EnumValueDescriptorProto__Descriptor
  195. = Descriptor.MessageTypes[5];
  196. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.Builder> internal__static_google_protobuf_EnumValueDescriptorProto__FieldAccessorTable
  197. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.Builder>(internal__static_google_protobuf_EnumValueDescriptorProto__Descriptor,
  198. new string[] { "Name", "Number", "Options", });
  199. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_ServiceDescriptorProto__Descriptor
  200. = Descriptor.MessageTypes[6];
  201. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.Builder> internal__static_google_protobuf_ServiceDescriptorProto__FieldAccessorTable
  202. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.Builder>(internal__static_google_protobuf_ServiceDescriptorProto__Descriptor,
  203. new string[] { "Name", "Method", "Options", });
  204. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_MethodDescriptorProto__Descriptor
  205. = Descriptor.MessageTypes[7];
  206. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.Builder> internal__static_google_protobuf_MethodDescriptorProto__FieldAccessorTable
  207. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.Builder>(internal__static_google_protobuf_MethodDescriptorProto__Descriptor,
  208. new string[] { "Name", "InputType", "OutputType", "Options", });
  209. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_FileOptions__Descriptor
  210. = Descriptor.MessageTypes[8];
  211. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileOptions, global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Builder> internal__static_google_protobuf_FileOptions__FieldAccessorTable
  212. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileOptions, global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Builder>(internal__static_google_protobuf_FileOptions__Descriptor,
  213. new string[] { "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "OptimizeFor", "CsharpNamespace", "CsharpFileClassname", "CsharpMultipleFiles", "CsharpNestClasses", "CsharpPublicClasses", });
  214. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_MessageOptions__Descriptor
  215. = Descriptor.MessageTypes[9];
  216. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions, global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.Builder> internal__static_google_protobuf_MessageOptions__FieldAccessorTable
  217. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions, global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.Builder>(internal__static_google_protobuf_MessageOptions__Descriptor,
  218. new string[] { "MessageSetWireFormat", });
  219. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_FieldOptions__Descriptor
  220. = Descriptor.MessageTypes[10];
  221. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Builder> internal__static_google_protobuf_FieldOptions__FieldAccessorTable
  222. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Builder>(internal__static_google_protobuf_FieldOptions__Descriptor,
  223. new string[] { "Ctype", "ExperimentalMapKey", });
  224. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_EnumOptions__Descriptor
  225. = Descriptor.MessageTypes[11];
  226. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions, global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.Builder> internal__static_google_protobuf_EnumOptions__FieldAccessorTable
  227. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions, global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.Builder>(internal__static_google_protobuf_EnumOptions__Descriptor,
  228. new string[] { });
  229. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_EnumValueOptions__Descriptor
  230. = Descriptor.MessageTypes[12];
  231. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.Builder> internal__static_google_protobuf_EnumValueOptions__FieldAccessorTable
  232. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.Builder>(internal__static_google_protobuf_EnumValueOptions__Descriptor,
  233. new string[] { });
  234. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_ServiceOptions__Descriptor
  235. = Descriptor.MessageTypes[13];
  236. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.Builder> internal__static_google_protobuf_ServiceOptions__FieldAccessorTable
  237. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.Builder>(internal__static_google_protobuf_ServiceOptions__Descriptor,
  238. new string[] { });
  239. internal static readonly pbd::MessageDescriptor internal__static_google_protobuf_MethodOptions__Descriptor
  240. = Descriptor.MessageTypes[14];
  241. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.Builder> internal__static_google_protobuf_MethodOptions__FieldAccessorTable
  242. = new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.Builder>(internal__static_google_protobuf_MethodOptions__Descriptor,
  243. new string[] { });
  244. #endregion
  245. }
  246. #region Enums
  247. #endregion
  248. #region Messages
  249. public sealed partial class FileDescriptorSet : pb::GeneratedMessage<FileDescriptorSet, FileDescriptorSet.Builder> {
  250. private static readonly FileDescriptorSet defaultInstance = new FileDescriptorSet();
  251. public static FileDescriptorSet DefaultInstance {
  252. get { return defaultInstance; }
  253. }
  254. public override FileDescriptorSet DefaultInstanceForType {
  255. get { return defaultInstance; }
  256. }
  257. protected override FileDescriptorSet ThisMessage {
  258. get { return this; }
  259. }
  260. public static pbd::MessageDescriptor Descriptor {
  261. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileDescriptorSet__Descriptor; }
  262. }
  263. protected override pb::FieldAccess.FieldAccessorTable<FileDescriptorSet, FileDescriptorSet.Builder> InternalFieldAccessors {
  264. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileDescriptorSet__FieldAccessorTable; }
  265. }
  266. // repeated .google.protobuf.FileDescriptorProto file = 1;
  267. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto> file_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>.Empty;
  268. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto> FileList {
  269. get { return file_; }
  270. }
  271. public int FileCount
  272. { get { return file_.Count; }
  273. }
  274. public global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto GetFile(int index) {
  275. return file_ [index];
  276. }
  277. public override bool IsInitialized {
  278. get {
  279. return true;
  280. }
  281. }
  282. public override void WriteTo(pb::CodedOutputStream output) {
  283. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto element in FileList) {
  284. output.WriteMessage(1, element);
  285. }
  286. UnknownFields.WriteTo(output);
  287. }
  288. private int memoizedSerializedSize = -1;
  289. public override int SerializedSize {
  290. get {
  291. int size = memoizedSerializedSize;
  292. if (size != -1) return size;
  293. size = 0;
  294. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto element in FileList) {
  295. size += pb::CodedOutputStream.ComputeMessageSize(1, element);
  296. }
  297. size += UnknownFields.SerializedSize;
  298. memoizedSerializedSize = size;
  299. return size;
  300. }
  301. }
  302. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet ParseFrom(pb::ByteString data) {
  303. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  304. }
  305. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet ParseFrom(pb::ByteString data,
  306. pb::ExtensionRegistry extensionRegistry) {
  307. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  308. .BuildParsed();
  309. }
  310. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet ParseFrom(byte[] data) {
  311. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  312. }
  313. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet ParseFrom(byte[] data,
  314. pb::ExtensionRegistry extensionRegistry) {
  315. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  316. .BuildParsed();
  317. }
  318. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet ParseFrom(global::System.IO.Stream input) {
  319. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  320. }
  321. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet ParseFrom(
  322. global::System.IO.Stream input,
  323. pb::ExtensionRegistry extensionRegistry) {
  324. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  325. .BuildParsed();
  326. }
  327. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet ParseFrom(pb::CodedInputStream input) {
  328. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  329. }
  330. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet ParseFrom(pb::CodedInputStream input,
  331. pb::ExtensionRegistry extensionRegistry) {
  332. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  333. .BuildParsed();
  334. }
  335. public static Builder CreateBuilder() { return new Builder(); }
  336. public override Builder CreateBuilderForType() { return new Builder(); }
  337. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet prototype) {
  338. return (Builder) new Builder().MergeFrom(prototype);
  339. }
  340. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet, Builder> {
  341. protected override Builder ThisBuilder {
  342. get { return this; }
  343. }
  344. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.CreateBuilder()
  345. internal Builder() {}
  346. global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet result = new global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet();
  347. protected override global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet MessageBeingBuilt {
  348. get { return result; }
  349. }
  350. public override Builder Clear() {
  351. result = new global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet();
  352. return this;
  353. }
  354. public override Builder Clone() {
  355. return new Builder().MergeFrom(result);
  356. }
  357. public override pbd::MessageDescriptor DescriptorForType {
  358. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.Descriptor; }
  359. }
  360. public override global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet DefaultInstanceForType {
  361. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.DefaultInstance; }
  362. }
  363. public override global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet BuildPartial() {
  364. if (result.file_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>.Empty) {
  365. result.file_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>.AsReadOnly(result.file_);
  366. }
  367. global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet returnMe = result;
  368. result = null;
  369. return returnMe;
  370. }
  371. public override Builder MergeFrom(pb::IMessage other) {
  372. if (other is global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet) {
  373. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet) other);
  374. } else {
  375. base.MergeFrom(other);
  376. return this;
  377. }
  378. }
  379. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet other) {
  380. if (other == global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.DefaultInstance) return this;
  381. if (other.file_.Count != 0) {
  382. if (result.file_.Count == 0) {
  383. result.file_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>();
  384. }
  385. base.AddRange(other.file_, result.file_);
  386. }
  387. this.MergeUnknownFields(other.UnknownFields);
  388. return this;
  389. }
  390. public override Builder MergeFrom(pb::CodedInputStream input) {
  391. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  392. }
  393. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  394. pb::UnknownFieldSet.Builder unknownFields =
  395. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  396. while (true) {
  397. uint tag = input.ReadTag();
  398. switch (tag) {
  399. case 0:
  400. this.UnknownFields = unknownFields.Build();
  401. return this;
  402. default: {
  403. if (!ParseUnknownField(input, unknownFields,
  404. extensionRegistry, tag)) {
  405. this.UnknownFields = unknownFields.Build();
  406. return this;
  407. }
  408. break;
  409. }
  410. case 10: {
  411. global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.CreateBuilder();
  412. input.ReadMessage(subBuilder, extensionRegistry);
  413. AddFile(subBuilder.BuildPartial());
  414. break;
  415. }
  416. }
  417. }
  418. }
  419. // repeated .google.protobuf.FileDescriptorProto file = 1;
  420. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto> FileList {
  421. get { return pbc::Lists.AsReadOnly(result.file_); }
  422. }
  423. public int FileCount {
  424. get { return result.FileCount; }
  425. }
  426. public global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto GetFile(int index) {
  427. return result.GetFile(index);
  428. }
  429. public Builder SetFile(int index, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto value) {
  430. result.file_[index] = value;
  431. return this;
  432. }
  433. public Builder SetFile(int index, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
  434. result.file_[index] = builderForValue.Build();
  435. return this;
  436. }
  437. public Builder AddFile(global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto value) {
  438. if (result.file_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>.Empty) {
  439. result.file_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>();
  440. }
  441. result.file_.Add(value);
  442. return this;
  443. }
  444. public Builder AddFile(global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
  445. if (result.file_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>.Empty) {
  446. result.file_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>();
  447. }
  448. result.file_.Add(builderForValue.Build());
  449. return this;
  450. }
  451. public Builder AddRangeFile(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto> values) {
  452. if (result.file_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>.Empty) {
  453. result.file_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>();
  454. }
  455. base.AddRange(values, result.file_);
  456. return this;
  457. }
  458. public Builder ClearFile() {
  459. result.file_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>.Empty;
  460. return this;
  461. }
  462. }
  463. }
  464. public sealed partial class FileDescriptorProto : pb::GeneratedMessage<FileDescriptorProto, FileDescriptorProto.Builder> {
  465. private static readonly FileDescriptorProto defaultInstance = new FileDescriptorProto();
  466. public static FileDescriptorProto DefaultInstance {
  467. get { return defaultInstance; }
  468. }
  469. public override FileDescriptorProto DefaultInstanceForType {
  470. get { return defaultInstance; }
  471. }
  472. protected override FileDescriptorProto ThisMessage {
  473. get { return this; }
  474. }
  475. public static pbd::MessageDescriptor Descriptor {
  476. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileDescriptorProto__Descriptor; }
  477. }
  478. protected override pb::FieldAccess.FieldAccessorTable<FileDescriptorProto, FileDescriptorProto.Builder> InternalFieldAccessors {
  479. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileDescriptorProto__FieldAccessorTable; }
  480. }
  481. // optional string name = 1;
  482. private bool hasName;
  483. private string name_ = "";
  484. public bool HasName {
  485. get { return hasName; }
  486. }
  487. public string Name {
  488. get { return name_; }
  489. }
  490. // optional string package = 2;
  491. private bool hasPackage;
  492. private string package_ = "";
  493. public bool HasPackage {
  494. get { return hasPackage; }
  495. }
  496. public string Package {
  497. get { return package_; }
  498. }
  499. // repeated string dependency = 3;
  500. private scg::IList<string> dependency_ = pbc::Lists<string>.Empty;
  501. public scg::IList<string> DependencyList {
  502. get { return dependency_; }
  503. }
  504. public int DependencyCount {
  505. get { return dependency_.Count; }
  506. }
  507. public string GetDependency(int index) {
  508. return dependency_[index];
  509. }
  510. // repeated .google.protobuf.DescriptorProto message_type = 4;
  511. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> messageType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty;
  512. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> MessageTypeList {
  513. get { return messageType_; }
  514. }
  515. public int MessageTypeCount
  516. { get { return messageType_.Count; }
  517. }
  518. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto GetMessageType(int index) {
  519. return messageType_ [index];
  520. }
  521. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  522. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> enumType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty;
  523. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> EnumTypeList {
  524. get { return enumType_; }
  525. }
  526. public int EnumTypeCount
  527. { get { return enumType_.Count; }
  528. }
  529. public global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto GetEnumType(int index) {
  530. return enumType_ [index];
  531. }
  532. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  533. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto> service_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>.Empty;
  534. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto> ServiceList {
  535. get { return service_; }
  536. }
  537. public int ServiceCount
  538. { get { return service_.Count; }
  539. }
  540. public global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto GetService(int index) {
  541. return service_ [index];
  542. }
  543. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  544. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> extension_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty;
  545. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> ExtensionList {
  546. get { return extension_; }
  547. }
  548. public int ExtensionCount
  549. { get { return extension_.Count; }
  550. }
  551. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetExtension(int index) {
  552. return extension_ [index];
  553. }
  554. // optional .google.protobuf.FileOptions options = 8;
  555. private bool hasOptions;
  556. private global::Google.ProtocolBuffers.DescriptorProtos.FileOptions options_ = global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.DefaultInstance;
  557. public bool HasOptions {
  558. get { return hasOptions; }
  559. }
  560. public global::Google.ProtocolBuffers.DescriptorProtos.FileOptions Options {
  561. get { return options_; }
  562. }
  563. public override bool IsInitialized {
  564. get {
  565. return true;
  566. }
  567. }
  568. public override void WriteTo(pb::CodedOutputStream output) {
  569. if (HasName) {
  570. output.WriteString(1, Name);
  571. }
  572. if (HasPackage) {
  573. output.WriteString(2, Package);
  574. }
  575. foreach (string element in DependencyList) {
  576. output.WriteString(3, element);
  577. }
  578. foreach (global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto element in MessageTypeList) {
  579. output.WriteMessage(4, element);
  580. }
  581. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto element in EnumTypeList) {
  582. output.WriteMessage(5, element);
  583. }
  584. foreach (global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto element in ServiceList) {
  585. output.WriteMessage(6, element);
  586. }
  587. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in ExtensionList) {
  588. output.WriteMessage(7, element);
  589. }
  590. if (HasOptions) {
  591. output.WriteMessage(8, Options);
  592. }
  593. UnknownFields.WriteTo(output);
  594. }
  595. private int memoizedSerializedSize = -1;
  596. public override int SerializedSize {
  597. get {
  598. int size = memoizedSerializedSize;
  599. if (size != -1) return size;
  600. size = 0;
  601. if (HasName) {
  602. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  603. }
  604. if (HasPackage) {
  605. size += pb::CodedOutputStream.ComputeStringSize(2, Package);
  606. }
  607. foreach (string element in DependencyList) {
  608. size += pb::CodedOutputStream
  609. .ComputeStringSize(3, element);
  610. }
  611. foreach (global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto element in MessageTypeList) {
  612. size += pb::CodedOutputStream.ComputeMessageSize(4, element);
  613. }
  614. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto element in EnumTypeList) {
  615. size += pb::CodedOutputStream.ComputeMessageSize(5, element);
  616. }
  617. foreach (global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto element in ServiceList) {
  618. size += pb::CodedOutputStream.ComputeMessageSize(6, element);
  619. }
  620. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in ExtensionList) {
  621. size += pb::CodedOutputStream.ComputeMessageSize(7, element);
  622. }
  623. if (HasOptions) {
  624. size += pb::CodedOutputStream.ComputeMessageSize(8, Options);
  625. }
  626. size += UnknownFields.SerializedSize;
  627. memoizedSerializedSize = size;
  628. return size;
  629. }
  630. }
  631. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto ParseFrom(pb::ByteString data) {
  632. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  633. }
  634. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto ParseFrom(pb::ByteString data,
  635. pb::ExtensionRegistry extensionRegistry) {
  636. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  637. .BuildParsed();
  638. }
  639. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto ParseFrom(byte[] data) {
  640. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  641. }
  642. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto ParseFrom(byte[] data,
  643. pb::ExtensionRegistry extensionRegistry) {
  644. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  645. .BuildParsed();
  646. }
  647. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto ParseFrom(global::System.IO.Stream input) {
  648. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  649. }
  650. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto ParseFrom(
  651. global::System.IO.Stream input,
  652. pb::ExtensionRegistry extensionRegistry) {
  653. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  654. .BuildParsed();
  655. }
  656. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto ParseFrom(pb::CodedInputStream input) {
  657. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  658. }
  659. public static global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto ParseFrom(pb::CodedInputStream input,
  660. pb::ExtensionRegistry extensionRegistry) {
  661. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  662. .BuildParsed();
  663. }
  664. public static Builder CreateBuilder() { return new Builder(); }
  665. public override Builder CreateBuilderForType() { return new Builder(); }
  666. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto prototype) {
  667. return (Builder) new Builder().MergeFrom(prototype);
  668. }
  669. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto, Builder> {
  670. protected override Builder ThisBuilder {
  671. get { return this; }
  672. }
  673. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.CreateBuilder()
  674. internal Builder() {}
  675. global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto result = new global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto();
  676. protected override global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto MessageBeingBuilt {
  677. get { return result; }
  678. }
  679. public override Builder Clear() {
  680. result = new global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto();
  681. return this;
  682. }
  683. public override Builder Clone() {
  684. return new Builder().MergeFrom(result);
  685. }
  686. public override pbd::MessageDescriptor DescriptorForType {
  687. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Descriptor; }
  688. }
  689. public override global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto DefaultInstanceForType {
  690. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.DefaultInstance; }
  691. }
  692. public override global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto BuildPartial() {
  693. result.dependency_ = pbc::Lists<string>.AsReadOnly(result.dependency_);
  694. if (result.messageType_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty) {
  695. result.messageType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.AsReadOnly(result.messageType_);
  696. }
  697. if (result.enumType_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty) {
  698. result.enumType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.AsReadOnly(result.enumType_);
  699. }
  700. if (result.service_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>.Empty) {
  701. result.service_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>.AsReadOnly(result.service_);
  702. }
  703. if (result.extension_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  704. result.extension_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.AsReadOnly(result.extension_);
  705. }
  706. global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto returnMe = result;
  707. result = null;
  708. return returnMe;
  709. }
  710. public override Builder MergeFrom(pb::IMessage other) {
  711. if (other is global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto) {
  712. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto) other);
  713. } else {
  714. base.MergeFrom(other);
  715. return this;
  716. }
  717. }
  718. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto other) {
  719. if (other == global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.DefaultInstance) return this;
  720. if (other.HasName) {
  721. Name = other.Name;
  722. }
  723. if (other.HasPackage) {
  724. Package = other.Package;
  725. }
  726. if (other.dependency_.Count != 0) {
  727. if (result.dependency_.Count == 0) {
  728. result.dependency_ = new scg::List<string>();
  729. }
  730. base.AddRange(other.dependency_, result.dependency_);
  731. }
  732. if (other.messageType_.Count != 0) {
  733. if (result.messageType_.Count == 0) {
  734. result.messageType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>();
  735. }
  736. base.AddRange(other.messageType_, result.messageType_);
  737. }
  738. if (other.enumType_.Count != 0) {
  739. if (result.enumType_.Count == 0) {
  740. result.enumType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>();
  741. }
  742. base.AddRange(other.enumType_, result.enumType_);
  743. }
  744. if (other.service_.Count != 0) {
  745. if (result.service_.Count == 0) {
  746. result.service_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>();
  747. }
  748. base.AddRange(other.service_, result.service_);
  749. }
  750. if (other.extension_.Count != 0) {
  751. if (result.extension_.Count == 0) {
  752. result.extension_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  753. }
  754. base.AddRange(other.extension_, result.extension_);
  755. }
  756. if (other.HasOptions) {
  757. MergeOptions(other.Options);
  758. }
  759. this.MergeUnknownFields(other.UnknownFields);
  760. return this;
  761. }
  762. public override Builder MergeFrom(pb::CodedInputStream input) {
  763. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  764. }
  765. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  766. pb::UnknownFieldSet.Builder unknownFields =
  767. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  768. while (true) {
  769. uint tag = input.ReadTag();
  770. switch (tag) {
  771. case 0:
  772. this.UnknownFields = unknownFields.Build();
  773. return this;
  774. default: {
  775. if (!ParseUnknownField(input, unknownFields,
  776. extensionRegistry, tag)) {
  777. this.UnknownFields = unknownFields.Build();
  778. return this;
  779. }
  780. break;
  781. }
  782. case 10: {
  783. Name = input.ReadString();
  784. break;
  785. }
  786. case 18: {
  787. Package = input.ReadString();
  788. break;
  789. }
  790. case 26: {
  791. AddDependency(input.ReadString());
  792. break;
  793. }
  794. case 34: {
  795. global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.CreateBuilder();
  796. input.ReadMessage(subBuilder, extensionRegistry);
  797. AddMessageType(subBuilder.BuildPartial());
  798. break;
  799. }
  800. case 42: {
  801. global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.CreateBuilder();
  802. input.ReadMessage(subBuilder, extensionRegistry);
  803. AddEnumType(subBuilder.BuildPartial());
  804. break;
  805. }
  806. case 50: {
  807. global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.CreateBuilder();
  808. input.ReadMessage(subBuilder, extensionRegistry);
  809. AddService(subBuilder.BuildPartial());
  810. break;
  811. }
  812. case 58: {
  813. global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.CreateBuilder();
  814. input.ReadMessage(subBuilder, extensionRegistry);
  815. AddExtension(subBuilder.BuildPartial());
  816. break;
  817. }
  818. case 66: {
  819. global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.CreateBuilder();
  820. if (HasOptions) {
  821. subBuilder.MergeFrom(Options);
  822. }
  823. input.ReadMessage(subBuilder, extensionRegistry);
  824. Options = subBuilder.BuildPartial();
  825. break;
  826. }
  827. }
  828. }
  829. }
  830. // optional string name = 1;
  831. public bool HasName {
  832. get { return result.HasName; }
  833. }
  834. public string Name {
  835. get { return result.Name; }
  836. set { SetName(value); }
  837. }
  838. public Builder SetName(string value) {
  839. result.hasName = true;
  840. result.name_ = value;
  841. return this;
  842. }
  843. public Builder ClearName() {
  844. result.hasName = false;
  845. result.name_ = "";
  846. return this;
  847. }
  848. // optional string package = 2;
  849. public bool HasPackage {
  850. get { return result.HasPackage; }
  851. }
  852. public string Package {
  853. get { return result.Package; }
  854. set { SetPackage(value); }
  855. }
  856. public Builder SetPackage(string value) {
  857. result.hasPackage = true;
  858. result.package_ = value;
  859. return this;
  860. }
  861. public Builder ClearPackage() {
  862. result.hasPackage = false;
  863. result.package_ = "";
  864. return this;
  865. }
  866. // repeated string dependency = 3;
  867. public scg::IList<string> DependencyList {
  868. get { return pbc::Lists<string>.AsReadOnly(result.dependency_); }
  869. }
  870. public int DependencyCount {
  871. get { return result.DependencyCount; }
  872. }
  873. public string GetDependency(int index) {
  874. return result.GetDependency(index);
  875. }
  876. public Builder SetDependency(int index, string value) {
  877. result.dependency_[index] = value;
  878. return this;
  879. }
  880. public Builder AddDependency(string value) {
  881. if (result.dependency_.Count == 0) {
  882. result.dependency_ = new scg::List<string>();
  883. }
  884. result.dependency_.Add(value);
  885. return this;
  886. }
  887. public Builder AddRangeDependency(scg::IEnumerable<string> values) {
  888. if (result.dependency_.Count == 0) {
  889. result.dependency_ = new scg::List<string>();
  890. }
  891. base.AddRange(values, result.dependency_);
  892. return this;
  893. }
  894. public Builder ClearDependency() {
  895. result.dependency_ = pbc::Lists<string>.Empty;
  896. return this;
  897. }
  898. // repeated .google.protobuf.DescriptorProto message_type = 4;
  899. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> MessageTypeList {
  900. get { return pbc::Lists.AsReadOnly(result.messageType_); }
  901. }
  902. public int MessageTypeCount {
  903. get { return result.MessageTypeCount; }
  904. }
  905. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto GetMessageType(int index) {
  906. return result.GetMessageType(index);
  907. }
  908. public Builder SetMessageType(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto value) {
  909. result.messageType_[index] = value;
  910. return this;
  911. }
  912. public Builder SetMessageType(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder builderForValue) {
  913. result.messageType_[index] = builderForValue.Build();
  914. return this;
  915. }
  916. public Builder AddMessageType(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto value) {
  917. if (result.messageType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty) {
  918. result.messageType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>();
  919. }
  920. result.messageType_.Add(value);
  921. return this;
  922. }
  923. public Builder AddMessageType(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder builderForValue) {
  924. if (result.messageType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty) {
  925. result.messageType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>();
  926. }
  927. result.messageType_.Add(builderForValue.Build());
  928. return this;
  929. }
  930. public Builder AddRangeMessageType(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> values) {
  931. if (result.messageType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty) {
  932. result.messageType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>();
  933. }
  934. base.AddRange(values, result.messageType_);
  935. return this;
  936. }
  937. public Builder ClearMessageType() {
  938. result.messageType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty;
  939. return this;
  940. }
  941. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  942. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> EnumTypeList {
  943. get { return pbc::Lists.AsReadOnly(result.enumType_); }
  944. }
  945. public int EnumTypeCount {
  946. get { return result.EnumTypeCount; }
  947. }
  948. public global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto GetEnumType(int index) {
  949. return result.GetEnumType(index);
  950. }
  951. public Builder SetEnumType(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto value) {
  952. result.enumType_[index] = value;
  953. return this;
  954. }
  955. public Builder SetEnumType(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
  956. result.enumType_[index] = builderForValue.Build();
  957. return this;
  958. }
  959. public Builder AddEnumType(global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto value) {
  960. if (result.enumType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty) {
  961. result.enumType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>();
  962. }
  963. result.enumType_.Add(value);
  964. return this;
  965. }
  966. public Builder AddEnumType(global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
  967. if (result.enumType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty) {
  968. result.enumType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>();
  969. }
  970. result.enumType_.Add(builderForValue.Build());
  971. return this;
  972. }
  973. public Builder AddRangeEnumType(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> values) {
  974. if (result.enumType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty) {
  975. result.enumType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>();
  976. }
  977. base.AddRange(values, result.enumType_);
  978. return this;
  979. }
  980. public Builder ClearEnumType() {
  981. result.enumType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty;
  982. return this;
  983. }
  984. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  985. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto> ServiceList {
  986. get { return pbc::Lists.AsReadOnly(result.service_); }
  987. }
  988. public int ServiceCount {
  989. get { return result.ServiceCount; }
  990. }
  991. public global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto GetService(int index) {
  992. return result.GetService(index);
  993. }
  994. public Builder SetService(int index, global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto value) {
  995. result.service_[index] = value;
  996. return this;
  997. }
  998. public Builder SetService(int index, global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) {
  999. result.service_[index] = builderForValue.Build();
  1000. return this;
  1001. }
  1002. public Builder AddService(global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto value) {
  1003. if (result.service_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>.Empty) {
  1004. result.service_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>();
  1005. }
  1006. result.service_.Add(value);
  1007. return this;
  1008. }
  1009. public Builder AddService(global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) {
  1010. if (result.service_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>.Empty) {
  1011. result.service_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>();
  1012. }
  1013. result.service_.Add(builderForValue.Build());
  1014. return this;
  1015. }
  1016. public Builder AddRangeService(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto> values) {
  1017. if (result.service_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>.Empty) {
  1018. result.service_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>();
  1019. }
  1020. base.AddRange(values, result.service_);
  1021. return this;
  1022. }
  1023. public Builder ClearService() {
  1024. result.service_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>.Empty;
  1025. return this;
  1026. }
  1027. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  1028. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> ExtensionList {
  1029. get { return pbc::Lists.AsReadOnly(result.extension_); }
  1030. }
  1031. public int ExtensionCount {
  1032. get { return result.ExtensionCount; }
  1033. }
  1034. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetExtension(int index) {
  1035. return result.GetExtension(index);
  1036. }
  1037. public Builder SetExtension(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  1038. result.extension_[index] = value;
  1039. return this;
  1040. }
  1041. public Builder SetExtension(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  1042. result.extension_[index] = builderForValue.Build();
  1043. return this;
  1044. }
  1045. public Builder AddExtension(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  1046. if (result.extension_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  1047. result.extension_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1048. }
  1049. result.extension_.Add(value);
  1050. return this;
  1051. }
  1052. public Builder AddExtension(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  1053. if (result.extension_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  1054. result.extension_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1055. }
  1056. result.extension_.Add(builderForValue.Build());
  1057. return this;
  1058. }
  1059. public Builder AddRangeExtension(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> values) {
  1060. if (result.extension_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  1061. result.extension_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1062. }
  1063. base.AddRange(values, result.extension_);
  1064. return this;
  1065. }
  1066. public Builder ClearExtension() {
  1067. result.extension_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty;
  1068. return this;
  1069. }
  1070. // optional .google.protobuf.FileOptions options = 8;
  1071. public bool HasOptions {
  1072. get { return result.HasOptions; }
  1073. }
  1074. public global::Google.ProtocolBuffers.DescriptorProtos.FileOptions Options {
  1075. get { return result.Options; }
  1076. set { SetOptions(value); }
  1077. }
  1078. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.FileOptions value) {
  1079. result.hasOptions = true;
  1080. result.options_ = value;
  1081. return this;
  1082. }
  1083. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Builder builderForValue) {
  1084. result.hasOptions = true;
  1085. result.options_ = builderForValue.Build();
  1086. return this;
  1087. }
  1088. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.FileOptions value) {
  1089. if (result.HasOptions &&
  1090. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.DefaultInstance) {
  1091. result.options_ =
  1092. global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  1093. } else {
  1094. result.options_ = value;
  1095. }
  1096. result.hasOptions = true;
  1097. return this;
  1098. }
  1099. public Builder ClearOptions() {
  1100. result.hasOptions = false;
  1101. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.DefaultInstance;
  1102. return this;
  1103. }
  1104. }
  1105. }
  1106. public sealed partial class DescriptorProto : pb::GeneratedMessage<DescriptorProto, DescriptorProto.Builder> {
  1107. private static readonly DescriptorProto defaultInstance = new DescriptorProto();
  1108. public static DescriptorProto DefaultInstance {
  1109. get { return defaultInstance; }
  1110. }
  1111. public override DescriptorProto DefaultInstanceForType {
  1112. get { return defaultInstance; }
  1113. }
  1114. protected override DescriptorProto ThisMessage {
  1115. get { return this; }
  1116. }
  1117. public static pbd::MessageDescriptor Descriptor {
  1118. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_DescriptorProto__Descriptor; }
  1119. }
  1120. protected override pb::FieldAccess.FieldAccessorTable<DescriptorProto, DescriptorProto.Builder> InternalFieldAccessors {
  1121. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_DescriptorProto__FieldAccessorTable; }
  1122. }
  1123. #region Nested types
  1124. public static class Types {
  1125. public sealed partial class ExtensionRange : pb::GeneratedMessage<ExtensionRange, ExtensionRange.Builder> {
  1126. private static readonly ExtensionRange defaultInstance = new ExtensionRange();
  1127. public static ExtensionRange DefaultInstance {
  1128. get { return defaultInstance; }
  1129. }
  1130. public override ExtensionRange DefaultInstanceForType {
  1131. get { return defaultInstance; }
  1132. }
  1133. protected override ExtensionRange ThisMessage {
  1134. get { return this; }
  1135. }
  1136. public static pbd::MessageDescriptor Descriptor {
  1137. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_DescriptorProto_ExtensionRange__Descriptor; }
  1138. }
  1139. protected override pb::FieldAccess.FieldAccessorTable<ExtensionRange, ExtensionRange.Builder> InternalFieldAccessors {
  1140. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_DescriptorProto_ExtensionRange__FieldAccessorTable; }
  1141. }
  1142. // optional int32 start = 1;
  1143. private bool hasStart;
  1144. private int start_ = 0;
  1145. public bool HasStart {
  1146. get { return hasStart; }
  1147. }
  1148. public int Start {
  1149. get { return start_; }
  1150. }
  1151. // optional int32 end = 2;
  1152. private bool hasEnd;
  1153. private int end_ = 0;
  1154. public bool HasEnd {
  1155. get { return hasEnd; }
  1156. }
  1157. public int End {
  1158. get { return end_; }
  1159. }
  1160. public override bool IsInitialized {
  1161. get {
  1162. return true;
  1163. }
  1164. }
  1165. public override void WriteTo(pb::CodedOutputStream output) {
  1166. if (HasStart) {
  1167. output.WriteInt32(1, Start);
  1168. }
  1169. if (HasEnd) {
  1170. output.WriteInt32(2, End);
  1171. }
  1172. UnknownFields.WriteTo(output);
  1173. }
  1174. private int memoizedSerializedSize = -1;
  1175. public override int SerializedSize {
  1176. get {
  1177. int size = memoizedSerializedSize;
  1178. if (size != -1) return size;
  1179. size = 0;
  1180. if (HasStart) {
  1181. size += pb::CodedOutputStream.ComputeInt32Size(1, Start);
  1182. }
  1183. if (HasEnd) {
  1184. size += pb::CodedOutputStream.ComputeInt32Size(2, End);
  1185. }
  1186. size += UnknownFields.SerializedSize;
  1187. memoizedSerializedSize = size;
  1188. return size;
  1189. }
  1190. }
  1191. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange ParseFrom(pb::ByteString data) {
  1192. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1193. }
  1194. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange ParseFrom(pb::ByteString data,
  1195. pb::ExtensionRegistry extensionRegistry) {
  1196. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1197. .BuildParsed();
  1198. }
  1199. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange ParseFrom(byte[] data) {
  1200. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1201. }
  1202. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange ParseFrom(byte[] data,
  1203. pb::ExtensionRegistry extensionRegistry) {
  1204. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1205. .BuildParsed();
  1206. }
  1207. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange ParseFrom(global::System.IO.Stream input) {
  1208. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1209. }
  1210. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange ParseFrom(
  1211. global::System.IO.Stream input,
  1212. pb::ExtensionRegistry extensionRegistry) {
  1213. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1214. .BuildParsed();
  1215. }
  1216. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange ParseFrom(pb::CodedInputStream input) {
  1217. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1218. }
  1219. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange ParseFrom(pb::CodedInputStream input,
  1220. pb::ExtensionRegistry extensionRegistry) {
  1221. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1222. .BuildParsed();
  1223. }
  1224. public static Builder CreateBuilder() { return new Builder(); }
  1225. public override Builder CreateBuilderForType() { return new Builder(); }
  1226. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange prototype) {
  1227. return (Builder) new Builder().MergeFrom(prototype);
  1228. }
  1229. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange, Builder> {
  1230. protected override Builder ThisBuilder {
  1231. get { return this; }
  1232. }
  1233. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.CreateBuilder()
  1234. internal Builder() {}
  1235. global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange result = new global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange();
  1236. protected override global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange MessageBeingBuilt {
  1237. get { return result; }
  1238. }
  1239. public override Builder Clear() {
  1240. result = new global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange();
  1241. return this;
  1242. }
  1243. public override Builder Clone() {
  1244. return new Builder().MergeFrom(result);
  1245. }
  1246. public override pbd::MessageDescriptor DescriptorForType {
  1247. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Descriptor; }
  1248. }
  1249. public override global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange DefaultInstanceForType {
  1250. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.DefaultInstance; }
  1251. }
  1252. public override global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange BuildPartial() {
  1253. global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange returnMe = result;
  1254. result = null;
  1255. return returnMe;
  1256. }
  1257. public override Builder MergeFrom(pb::IMessage other) {
  1258. if (other is global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange) {
  1259. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange) other);
  1260. } else {
  1261. base.MergeFrom(other);
  1262. return this;
  1263. }
  1264. }
  1265. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange other) {
  1266. if (other == global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.DefaultInstance) return this;
  1267. if (other.HasStart) {
  1268. Start = other.Start;
  1269. }
  1270. if (other.HasEnd) {
  1271. End = other.End;
  1272. }
  1273. this.MergeUnknownFields(other.UnknownFields);
  1274. return this;
  1275. }
  1276. public override Builder MergeFrom(pb::CodedInputStream input) {
  1277. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1278. }
  1279. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1280. pb::UnknownFieldSet.Builder unknownFields =
  1281. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1282. while (true) {
  1283. uint tag = input.ReadTag();
  1284. switch (tag) {
  1285. case 0:
  1286. this.UnknownFields = unknownFields.Build();
  1287. return this;
  1288. default: {
  1289. if (!ParseUnknownField(input, unknownFields,
  1290. extensionRegistry, tag)) {
  1291. this.UnknownFields = unknownFields.Build();
  1292. return this;
  1293. }
  1294. break;
  1295. }
  1296. case 8: {
  1297. Start = input.ReadInt32();
  1298. break;
  1299. }
  1300. case 16: {
  1301. End = input.ReadInt32();
  1302. break;
  1303. }
  1304. }
  1305. }
  1306. }
  1307. // optional int32 start = 1;
  1308. public bool HasStart {
  1309. get { return result.HasStart; }
  1310. }
  1311. public int Start {
  1312. get { return result.Start; }
  1313. set { SetStart(value); }
  1314. }
  1315. public Builder SetStart(int value) {
  1316. result.hasStart = true;
  1317. result.start_ = value;
  1318. return this;
  1319. }
  1320. public Builder ClearStart() {
  1321. result.hasStart = false;
  1322. result.start_ = 0;
  1323. return this;
  1324. }
  1325. // optional int32 end = 2;
  1326. public bool HasEnd {
  1327. get { return result.HasEnd; }
  1328. }
  1329. public int End {
  1330. get { return result.End; }
  1331. set { SetEnd(value); }
  1332. }
  1333. public Builder SetEnd(int value) {
  1334. result.hasEnd = true;
  1335. result.end_ = value;
  1336. return this;
  1337. }
  1338. public Builder ClearEnd() {
  1339. result.hasEnd = false;
  1340. result.end_ = 0;
  1341. return this;
  1342. }
  1343. }
  1344. }
  1345. }
  1346. #endregion
  1347. // optional string name = 1;
  1348. private bool hasName;
  1349. private string name_ = "";
  1350. public bool HasName {
  1351. get { return hasName; }
  1352. }
  1353. public string Name {
  1354. get { return name_; }
  1355. }
  1356. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1357. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> field_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty;
  1358. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> FieldList {
  1359. get { return field_; }
  1360. }
  1361. public int FieldCount
  1362. { get { return field_.Count; }
  1363. }
  1364. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetField(int index) {
  1365. return field_ [index];
  1366. }
  1367. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1368. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> extension_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty;
  1369. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> ExtensionList {
  1370. get { return extension_; }
  1371. }
  1372. public int ExtensionCount
  1373. { get { return extension_.Count; }
  1374. }
  1375. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetExtension(int index) {
  1376. return extension_ [index];
  1377. }
  1378. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1379. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> nestedType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty;
  1380. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> NestedTypeList {
  1381. get { return nestedType_; }
  1382. }
  1383. public int NestedTypeCount
  1384. { get { return nestedType_.Count; }
  1385. }
  1386. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto GetNestedType(int index) {
  1387. return nestedType_ [index];
  1388. }
  1389. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1390. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> enumType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty;
  1391. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> EnumTypeList {
  1392. get { return enumType_; }
  1393. }
  1394. public int EnumTypeCount
  1395. { get { return enumType_.Count; }
  1396. }
  1397. public global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto GetEnumType(int index) {
  1398. return enumType_ [index];
  1399. }
  1400. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1401. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange> extensionRange_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>.Empty;
  1402. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange> ExtensionRangeList {
  1403. get { return extensionRange_; }
  1404. }
  1405. public int ExtensionRangeCount
  1406. { get { return extensionRange_.Count; }
  1407. }
  1408. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange GetExtensionRange(int index) {
  1409. return extensionRange_ [index];
  1410. }
  1411. // optional .google.protobuf.MessageOptions options = 7;
  1412. private bool hasOptions;
  1413. private global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions options_ = global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.DefaultInstance;
  1414. public bool HasOptions {
  1415. get { return hasOptions; }
  1416. }
  1417. public global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions Options {
  1418. get { return options_; }
  1419. }
  1420. public override bool IsInitialized {
  1421. get {
  1422. return true;
  1423. }
  1424. }
  1425. public override void WriteTo(pb::CodedOutputStream output) {
  1426. if (HasName) {
  1427. output.WriteString(1, Name);
  1428. }
  1429. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in FieldList) {
  1430. output.WriteMessage(2, element);
  1431. }
  1432. foreach (global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto element in NestedTypeList) {
  1433. output.WriteMessage(3, element);
  1434. }
  1435. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto element in EnumTypeList) {
  1436. output.WriteMessage(4, element);
  1437. }
  1438. foreach (global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange element in ExtensionRangeList) {
  1439. output.WriteMessage(5, element);
  1440. }
  1441. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in ExtensionList) {
  1442. output.WriteMessage(6, element);
  1443. }
  1444. if (HasOptions) {
  1445. output.WriteMessage(7, Options);
  1446. }
  1447. UnknownFields.WriteTo(output);
  1448. }
  1449. private int memoizedSerializedSize = -1;
  1450. public override int SerializedSize {
  1451. get {
  1452. int size = memoizedSerializedSize;
  1453. if (size != -1) return size;
  1454. size = 0;
  1455. if (HasName) {
  1456. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  1457. }
  1458. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in FieldList) {
  1459. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  1460. }
  1461. foreach (global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto element in NestedTypeList) {
  1462. size += pb::CodedOutputStream.ComputeMessageSize(3, element);
  1463. }
  1464. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto element in EnumTypeList) {
  1465. size += pb::CodedOutputStream.ComputeMessageSize(4, element);
  1466. }
  1467. foreach (global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange element in ExtensionRangeList) {
  1468. size += pb::CodedOutputStream.ComputeMessageSize(5, element);
  1469. }
  1470. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in ExtensionList) {
  1471. size += pb::CodedOutputStream.ComputeMessageSize(6, element);
  1472. }
  1473. if (HasOptions) {
  1474. size += pb::CodedOutputStream.ComputeMessageSize(7, Options);
  1475. }
  1476. size += UnknownFields.SerializedSize;
  1477. memoizedSerializedSize = size;
  1478. return size;
  1479. }
  1480. }
  1481. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto ParseFrom(pb::ByteString data) {
  1482. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1483. }
  1484. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto ParseFrom(pb::ByteString data,
  1485. pb::ExtensionRegistry extensionRegistry) {
  1486. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1487. .BuildParsed();
  1488. }
  1489. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto ParseFrom(byte[] data) {
  1490. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1491. }
  1492. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto ParseFrom(byte[] data,
  1493. pb::ExtensionRegistry extensionRegistry) {
  1494. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  1495. .BuildParsed();
  1496. }
  1497. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto ParseFrom(global::System.IO.Stream input) {
  1498. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1499. }
  1500. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto ParseFrom(
  1501. global::System.IO.Stream input,
  1502. pb::ExtensionRegistry extensionRegistry) {
  1503. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1504. .BuildParsed();
  1505. }
  1506. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto ParseFrom(pb::CodedInputStream input) {
  1507. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1508. }
  1509. public static global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto ParseFrom(pb::CodedInputStream input,
  1510. pb::ExtensionRegistry extensionRegistry) {
  1511. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  1512. .BuildParsed();
  1513. }
  1514. public static Builder CreateBuilder() { return new Builder(); }
  1515. public override Builder CreateBuilderForType() { return new Builder(); }
  1516. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto prototype) {
  1517. return (Builder) new Builder().MergeFrom(prototype);
  1518. }
  1519. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto, Builder> {
  1520. protected override Builder ThisBuilder {
  1521. get { return this; }
  1522. }
  1523. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.CreateBuilder()
  1524. internal Builder() {}
  1525. global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto result = new global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto();
  1526. protected override global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto MessageBeingBuilt {
  1527. get { return result; }
  1528. }
  1529. public override Builder Clear() {
  1530. result = new global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto();
  1531. return this;
  1532. }
  1533. public override Builder Clone() {
  1534. return new Builder().MergeFrom(result);
  1535. }
  1536. public override pbd::MessageDescriptor DescriptorForType {
  1537. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Descriptor; }
  1538. }
  1539. public override global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto DefaultInstanceForType {
  1540. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.DefaultInstance; }
  1541. }
  1542. public override global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto BuildPartial() {
  1543. if (result.field_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  1544. result.field_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.AsReadOnly(result.field_);
  1545. }
  1546. if (result.extension_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  1547. result.extension_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.AsReadOnly(result.extension_);
  1548. }
  1549. if (result.nestedType_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty) {
  1550. result.nestedType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.AsReadOnly(result.nestedType_);
  1551. }
  1552. if (result.enumType_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty) {
  1553. result.enumType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.AsReadOnly(result.enumType_);
  1554. }
  1555. if (result.extensionRange_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>.Empty) {
  1556. result.extensionRange_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>.AsReadOnly(result.extensionRange_);
  1557. }
  1558. global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto returnMe = result;
  1559. result = null;
  1560. return returnMe;
  1561. }
  1562. public override Builder MergeFrom(pb::IMessage other) {
  1563. if (other is global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto) {
  1564. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto) other);
  1565. } else {
  1566. base.MergeFrom(other);
  1567. return this;
  1568. }
  1569. }
  1570. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto other) {
  1571. if (other == global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.DefaultInstance) return this;
  1572. if (other.HasName) {
  1573. Name = other.Name;
  1574. }
  1575. if (other.field_.Count != 0) {
  1576. if (result.field_.Count == 0) {
  1577. result.field_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1578. }
  1579. base.AddRange(other.field_, result.field_);
  1580. }
  1581. if (other.extension_.Count != 0) {
  1582. if (result.extension_.Count == 0) {
  1583. result.extension_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1584. }
  1585. base.AddRange(other.extension_, result.extension_);
  1586. }
  1587. if (other.nestedType_.Count != 0) {
  1588. if (result.nestedType_.Count == 0) {
  1589. result.nestedType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>();
  1590. }
  1591. base.AddRange(other.nestedType_, result.nestedType_);
  1592. }
  1593. if (other.enumType_.Count != 0) {
  1594. if (result.enumType_.Count == 0) {
  1595. result.enumType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>();
  1596. }
  1597. base.AddRange(other.enumType_, result.enumType_);
  1598. }
  1599. if (other.extensionRange_.Count != 0) {
  1600. if (result.extensionRange_.Count == 0) {
  1601. result.extensionRange_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>();
  1602. }
  1603. base.AddRange(other.extensionRange_, result.extensionRange_);
  1604. }
  1605. if (other.HasOptions) {
  1606. MergeOptions(other.Options);
  1607. }
  1608. this.MergeUnknownFields(other.UnknownFields);
  1609. return this;
  1610. }
  1611. public override Builder MergeFrom(pb::CodedInputStream input) {
  1612. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1613. }
  1614. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1615. pb::UnknownFieldSet.Builder unknownFields =
  1616. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1617. while (true) {
  1618. uint tag = input.ReadTag();
  1619. switch (tag) {
  1620. case 0:
  1621. this.UnknownFields = unknownFields.Build();
  1622. return this;
  1623. default: {
  1624. if (!ParseUnknownField(input, unknownFields,
  1625. extensionRegistry, tag)) {
  1626. this.UnknownFields = unknownFields.Build();
  1627. return this;
  1628. }
  1629. break;
  1630. }
  1631. case 10: {
  1632. Name = input.ReadString();
  1633. break;
  1634. }
  1635. case 18: {
  1636. global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.CreateBuilder();
  1637. input.ReadMessage(subBuilder, extensionRegistry);
  1638. AddField(subBuilder.BuildPartial());
  1639. break;
  1640. }
  1641. case 26: {
  1642. global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.CreateBuilder();
  1643. input.ReadMessage(subBuilder, extensionRegistry);
  1644. AddNestedType(subBuilder.BuildPartial());
  1645. break;
  1646. }
  1647. case 34: {
  1648. global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.CreateBuilder();
  1649. input.ReadMessage(subBuilder, extensionRegistry);
  1650. AddEnumType(subBuilder.BuildPartial());
  1651. break;
  1652. }
  1653. case 42: {
  1654. global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.CreateBuilder();
  1655. input.ReadMessage(subBuilder, extensionRegistry);
  1656. AddExtensionRange(subBuilder.BuildPartial());
  1657. break;
  1658. }
  1659. case 50: {
  1660. global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.CreateBuilder();
  1661. input.ReadMessage(subBuilder, extensionRegistry);
  1662. AddExtension(subBuilder.BuildPartial());
  1663. break;
  1664. }
  1665. case 58: {
  1666. global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.CreateBuilder();
  1667. if (HasOptions) {
  1668. subBuilder.MergeFrom(Options);
  1669. }
  1670. input.ReadMessage(subBuilder, extensionRegistry);
  1671. Options = subBuilder.BuildPartial();
  1672. break;
  1673. }
  1674. }
  1675. }
  1676. }
  1677. // optional string name = 1;
  1678. public bool HasName {
  1679. get { return result.HasName; }
  1680. }
  1681. public string Name {
  1682. get { return result.Name; }
  1683. set { SetName(value); }
  1684. }
  1685. public Builder SetName(string value) {
  1686. result.hasName = true;
  1687. result.name_ = value;
  1688. return this;
  1689. }
  1690. public Builder ClearName() {
  1691. result.hasName = false;
  1692. result.name_ = "";
  1693. return this;
  1694. }
  1695. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1696. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> FieldList {
  1697. get { return pbc::Lists.AsReadOnly(result.field_); }
  1698. }
  1699. public int FieldCount {
  1700. get { return result.FieldCount; }
  1701. }
  1702. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetField(int index) {
  1703. return result.GetField(index);
  1704. }
  1705. public Builder SetField(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  1706. result.field_[index] = value;
  1707. return this;
  1708. }
  1709. public Builder SetField(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  1710. result.field_[index] = builderForValue.Build();
  1711. return this;
  1712. }
  1713. public Builder AddField(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  1714. if (result.field_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  1715. result.field_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1716. }
  1717. result.field_.Add(value);
  1718. return this;
  1719. }
  1720. public Builder AddField(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  1721. if (result.field_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  1722. result.field_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1723. }
  1724. result.field_.Add(builderForValue.Build());
  1725. return this;
  1726. }
  1727. public Builder AddRangeField(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> values) {
  1728. if (result.field_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  1729. result.field_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1730. }
  1731. base.AddRange(values, result.field_);
  1732. return this;
  1733. }
  1734. public Builder ClearField() {
  1735. result.field_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty;
  1736. return this;
  1737. }
  1738. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1739. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> ExtensionList {
  1740. get { return pbc::Lists.AsReadOnly(result.extension_); }
  1741. }
  1742. public int ExtensionCount {
  1743. get { return result.ExtensionCount; }
  1744. }
  1745. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetExtension(int index) {
  1746. return result.GetExtension(index);
  1747. }
  1748. public Builder SetExtension(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  1749. result.extension_[index] = value;
  1750. return this;
  1751. }
  1752. public Builder SetExtension(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  1753. result.extension_[index] = builderForValue.Build();
  1754. return this;
  1755. }
  1756. public Builder AddExtension(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  1757. if (result.extension_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  1758. result.extension_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1759. }
  1760. result.extension_.Add(value);
  1761. return this;
  1762. }
  1763. public Builder AddExtension(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  1764. if (result.extension_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  1765. result.extension_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1766. }
  1767. result.extension_.Add(builderForValue.Build());
  1768. return this;
  1769. }
  1770. public Builder AddRangeExtension(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> values) {
  1771. if (result.extension_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty) {
  1772. result.extension_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1773. }
  1774. base.AddRange(values, result.extension_);
  1775. return this;
  1776. }
  1777. public Builder ClearExtension() {
  1778. result.extension_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>.Empty;
  1779. return this;
  1780. }
  1781. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1782. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> NestedTypeList {
  1783. get { return pbc::Lists.AsReadOnly(result.nestedType_); }
  1784. }
  1785. public int NestedTypeCount {
  1786. get { return result.NestedTypeCount; }
  1787. }
  1788. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto GetNestedType(int index) {
  1789. return result.GetNestedType(index);
  1790. }
  1791. public Builder SetNestedType(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto value) {
  1792. result.nestedType_[index] = value;
  1793. return this;
  1794. }
  1795. public Builder SetNestedType(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder builderForValue) {
  1796. result.nestedType_[index] = builderForValue.Build();
  1797. return this;
  1798. }
  1799. public Builder AddNestedType(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto value) {
  1800. if (result.nestedType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty) {
  1801. result.nestedType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>();
  1802. }
  1803. result.nestedType_.Add(value);
  1804. return this;
  1805. }
  1806. public Builder AddNestedType(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder builderForValue) {
  1807. if (result.nestedType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty) {
  1808. result.nestedType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>();
  1809. }
  1810. result.nestedType_.Add(builderForValue.Build());
  1811. return this;
  1812. }
  1813. public Builder AddRangeNestedType(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> values) {
  1814. if (result.nestedType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty) {
  1815. result.nestedType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>();
  1816. }
  1817. base.AddRange(values, result.nestedType_);
  1818. return this;
  1819. }
  1820. public Builder ClearNestedType() {
  1821. result.nestedType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>.Empty;
  1822. return this;
  1823. }
  1824. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1825. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> EnumTypeList {
  1826. get { return pbc::Lists.AsReadOnly(result.enumType_); }
  1827. }
  1828. public int EnumTypeCount {
  1829. get { return result.EnumTypeCount; }
  1830. }
  1831. public global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto GetEnumType(int index) {
  1832. return result.GetEnumType(index);
  1833. }
  1834. public Builder SetEnumType(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto value) {
  1835. result.enumType_[index] = value;
  1836. return this;
  1837. }
  1838. public Builder SetEnumType(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
  1839. result.enumType_[index] = builderForValue.Build();
  1840. return this;
  1841. }
  1842. public Builder AddEnumType(global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto value) {
  1843. if (result.enumType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty) {
  1844. result.enumType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>();
  1845. }
  1846. result.enumType_.Add(value);
  1847. return this;
  1848. }
  1849. public Builder AddEnumType(global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
  1850. if (result.enumType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty) {
  1851. result.enumType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>();
  1852. }
  1853. result.enumType_.Add(builderForValue.Build());
  1854. return this;
  1855. }
  1856. public Builder AddRangeEnumType(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> values) {
  1857. if (result.enumType_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty) {
  1858. result.enumType_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>();
  1859. }
  1860. base.AddRange(values, result.enumType_);
  1861. return this;
  1862. }
  1863. public Builder ClearEnumType() {
  1864. result.enumType_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>.Empty;
  1865. return this;
  1866. }
  1867. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1868. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange> ExtensionRangeList {
  1869. get { return pbc::Lists.AsReadOnly(result.extensionRange_); }
  1870. }
  1871. public int ExtensionRangeCount {
  1872. get { return result.ExtensionRangeCount; }
  1873. }
  1874. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange GetExtensionRange(int index) {
  1875. return result.GetExtensionRange(index);
  1876. }
  1877. public Builder SetExtensionRange(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange value) {
  1878. result.extensionRange_[index] = value;
  1879. return this;
  1880. }
  1881. public Builder SetExtensionRange(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Builder builderForValue) {
  1882. result.extensionRange_[index] = builderForValue.Build();
  1883. return this;
  1884. }
  1885. public Builder AddExtensionRange(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange value) {
  1886. if (result.extensionRange_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>.Empty) {
  1887. result.extensionRange_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>();
  1888. }
  1889. result.extensionRange_.Add(value);
  1890. return this;
  1891. }
  1892. public Builder AddExtensionRange(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Builder builderForValue) {
  1893. if (result.extensionRange_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>.Empty) {
  1894. result.extensionRange_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>();
  1895. }
  1896. result.extensionRange_.Add(builderForValue.Build());
  1897. return this;
  1898. }
  1899. public Builder AddRangeExtensionRange(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange> values) {
  1900. if (result.extensionRange_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>.Empty) {
  1901. result.extensionRange_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>();
  1902. }
  1903. base.AddRange(values, result.extensionRange_);
  1904. return this;
  1905. }
  1906. public Builder ClearExtensionRange() {
  1907. result.extensionRange_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>.Empty;
  1908. return this;
  1909. }
  1910. // optional .google.protobuf.MessageOptions options = 7;
  1911. public bool HasOptions {
  1912. get { return result.HasOptions; }
  1913. }
  1914. public global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions Options {
  1915. get { return result.Options; }
  1916. set { SetOptions(value); }
  1917. }
  1918. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions value) {
  1919. result.hasOptions = true;
  1920. result.options_ = value;
  1921. return this;
  1922. }
  1923. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.Builder builderForValue) {
  1924. result.hasOptions = true;
  1925. result.options_ = builderForValue.Build();
  1926. return this;
  1927. }
  1928. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions value) {
  1929. if (result.HasOptions &&
  1930. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.DefaultInstance) {
  1931. result.options_ =
  1932. global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  1933. } else {
  1934. result.options_ = value;
  1935. }
  1936. result.hasOptions = true;
  1937. return this;
  1938. }
  1939. public Builder ClearOptions() {
  1940. result.hasOptions = false;
  1941. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.DefaultInstance;
  1942. return this;
  1943. }
  1944. }
  1945. }
  1946. public sealed partial class FieldDescriptorProto : pb::GeneratedMessage<FieldDescriptorProto, FieldDescriptorProto.Builder> {
  1947. private static readonly FieldDescriptorProto defaultInstance = new FieldDescriptorProto();
  1948. public static FieldDescriptorProto DefaultInstance {
  1949. get { return defaultInstance; }
  1950. }
  1951. public override FieldDescriptorProto DefaultInstanceForType {
  1952. get { return defaultInstance; }
  1953. }
  1954. protected override FieldDescriptorProto ThisMessage {
  1955. get { return this; }
  1956. }
  1957. public static pbd::MessageDescriptor Descriptor {
  1958. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FieldDescriptorProto__Descriptor; }
  1959. }
  1960. protected override pb::FieldAccess.FieldAccessorTable<FieldDescriptorProto, FieldDescriptorProto.Builder> InternalFieldAccessors {
  1961. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FieldDescriptorProto__FieldAccessorTable; }
  1962. }
  1963. #region Nested types
  1964. public static class Types {
  1965. public enum Type {
  1966. TYPE_DOUBLE = 1,
  1967. TYPE_FLOAT = 2,
  1968. TYPE_INT64 = 3,
  1969. TYPE_UINT64 = 4,
  1970. TYPE_INT32 = 5,
  1971. TYPE_FIXED64 = 6,
  1972. TYPE_FIXED32 = 7,
  1973. TYPE_BOOL = 8,
  1974. TYPE_STRING = 9,
  1975. TYPE_GROUP = 10,
  1976. TYPE_MESSAGE = 11,
  1977. TYPE_BYTES = 12,
  1978. TYPE_UINT32 = 13,
  1979. TYPE_ENUM = 14,
  1980. TYPE_SFIXED32 = 15,
  1981. TYPE_SFIXED64 = 16,
  1982. TYPE_SINT32 = 17,
  1983. TYPE_SINT64 = 18,
  1984. }
  1985. public enum Label {
  1986. LABEL_OPTIONAL = 1,
  1987. LABEL_REQUIRED = 2,
  1988. LABEL_REPEATED = 3,
  1989. }
  1990. }
  1991. #endregion
  1992. // optional string name = 1;
  1993. private bool hasName;
  1994. private string name_ = "";
  1995. public bool HasName {
  1996. get { return hasName; }
  1997. }
  1998. public string Name {
  1999. get { return name_; }
  2000. }
  2001. // optional int32 number = 3;
  2002. private bool hasNumber;
  2003. private int number_ = 0;
  2004. public bool HasNumber {
  2005. get { return hasNumber; }
  2006. }
  2007. public int Number {
  2008. get { return number_; }
  2009. }
  2010. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2011. private bool hasLabel;
  2012. private global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label label_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL;
  2013. public bool HasLabel {
  2014. get { return hasLabel; }
  2015. }
  2016. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label Label { get { return label_; }}
  2017. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2018. private bool hasType;
  2019. private global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type type_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type.TYPE_DOUBLE;
  2020. public bool HasType {
  2021. get { return hasType; }
  2022. }
  2023. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type Type { get { return type_; }}
  2024. // optional string type_name = 6;
  2025. private bool hasTypeName;
  2026. private string typeName_ = "";
  2027. public bool HasTypeName {
  2028. get { return hasTypeName; }
  2029. }
  2030. public string TypeName {
  2031. get { return typeName_; }
  2032. }
  2033. // optional string extendee = 2;
  2034. private bool hasExtendee;
  2035. private string extendee_ = "";
  2036. public bool HasExtendee {
  2037. get { return hasExtendee; }
  2038. }
  2039. public string Extendee {
  2040. get { return extendee_; }
  2041. }
  2042. // optional string default_value = 7;
  2043. private bool hasDefaultValue;
  2044. private string defaultValue_ = "";
  2045. public bool HasDefaultValue {
  2046. get { return hasDefaultValue; }
  2047. }
  2048. public string DefaultValue {
  2049. get { return defaultValue_; }
  2050. }
  2051. // optional .google.protobuf.FieldOptions options = 8;
  2052. private bool hasOptions;
  2053. private global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions options_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.DefaultInstance;
  2054. public bool HasOptions {
  2055. get { return hasOptions; }
  2056. }
  2057. public global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions Options {
  2058. get { return options_; }
  2059. }
  2060. public override bool IsInitialized {
  2061. get {
  2062. return true;
  2063. }
  2064. }
  2065. public override void WriteTo(pb::CodedOutputStream output) {
  2066. if (HasName) {
  2067. output.WriteString(1, Name);
  2068. }
  2069. if (HasExtendee) {
  2070. output.WriteString(2, Extendee);
  2071. }
  2072. if (HasNumber) {
  2073. output.WriteInt32(3, Number);
  2074. }
  2075. if (HasLabel) {
  2076. output.WriteEnum(4, (int) Label);
  2077. }
  2078. if (HasType) {
  2079. output.WriteEnum(5, (int) Type);
  2080. }
  2081. if (HasTypeName) {
  2082. output.WriteString(6, TypeName);
  2083. }
  2084. if (HasDefaultValue) {
  2085. output.WriteString(7, DefaultValue);
  2086. }
  2087. if (HasOptions) {
  2088. output.WriteMessage(8, Options);
  2089. }
  2090. UnknownFields.WriteTo(output);
  2091. }
  2092. private int memoizedSerializedSize = -1;
  2093. public override int SerializedSize {
  2094. get {
  2095. int size = memoizedSerializedSize;
  2096. if (size != -1) return size;
  2097. size = 0;
  2098. if (HasName) {
  2099. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  2100. }
  2101. if (HasExtendee) {
  2102. size += pb::CodedOutputStream.ComputeStringSize(2, Extendee);
  2103. }
  2104. if (HasNumber) {
  2105. size += pb::CodedOutputStream.ComputeInt32Size(3, Number);
  2106. }
  2107. if (HasLabel) {
  2108. size += pb::CodedOutputStream
  2109. .ComputeEnumSize(4, (int) Label);
  2110. }
  2111. if (HasType) {
  2112. size += pb::CodedOutputStream
  2113. .ComputeEnumSize(5, (int) Type);
  2114. }
  2115. if (HasTypeName) {
  2116. size += pb::CodedOutputStream.ComputeStringSize(6, TypeName);
  2117. }
  2118. if (HasDefaultValue) {
  2119. size += pb::CodedOutputStream.ComputeStringSize(7, DefaultValue);
  2120. }
  2121. if (HasOptions) {
  2122. size += pb::CodedOutputStream.ComputeMessageSize(8, Options);
  2123. }
  2124. size += UnknownFields.SerializedSize;
  2125. memoizedSerializedSize = size;
  2126. return size;
  2127. }
  2128. }
  2129. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto ParseFrom(pb::ByteString data) {
  2130. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2131. }
  2132. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto ParseFrom(pb::ByteString data,
  2133. pb::ExtensionRegistry extensionRegistry) {
  2134. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2135. .BuildParsed();
  2136. }
  2137. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto ParseFrom(byte[] data) {
  2138. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2139. }
  2140. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto ParseFrom(byte[] data,
  2141. pb::ExtensionRegistry extensionRegistry) {
  2142. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2143. .BuildParsed();
  2144. }
  2145. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto ParseFrom(global::System.IO.Stream input) {
  2146. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2147. }
  2148. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto ParseFrom(
  2149. global::System.IO.Stream input,
  2150. pb::ExtensionRegistry extensionRegistry) {
  2151. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2152. .BuildParsed();
  2153. }
  2154. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto ParseFrom(pb::CodedInputStream input) {
  2155. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2156. }
  2157. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto ParseFrom(pb::CodedInputStream input,
  2158. pb::ExtensionRegistry extensionRegistry) {
  2159. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2160. .BuildParsed();
  2161. }
  2162. public static Builder CreateBuilder() { return new Builder(); }
  2163. public override Builder CreateBuilderForType() { return new Builder(); }
  2164. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto prototype) {
  2165. return (Builder) new Builder().MergeFrom(prototype);
  2166. }
  2167. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto, Builder> {
  2168. protected override Builder ThisBuilder {
  2169. get { return this; }
  2170. }
  2171. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.CreateBuilder()
  2172. internal Builder() {}
  2173. global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto result = new global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto();
  2174. protected override global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto MessageBeingBuilt {
  2175. get { return result; }
  2176. }
  2177. public override Builder Clear() {
  2178. result = new global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto();
  2179. return this;
  2180. }
  2181. public override Builder Clone() {
  2182. return new Builder().MergeFrom(result);
  2183. }
  2184. public override pbd::MessageDescriptor DescriptorForType {
  2185. get { return global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Descriptor; }
  2186. }
  2187. public override global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto DefaultInstanceForType {
  2188. get { return global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.DefaultInstance; }
  2189. }
  2190. public override global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto BuildPartial() {
  2191. global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto returnMe = result;
  2192. result = null;
  2193. return returnMe;
  2194. }
  2195. public override Builder MergeFrom(pb::IMessage other) {
  2196. if (other is global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto) {
  2197. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto) other);
  2198. } else {
  2199. base.MergeFrom(other);
  2200. return this;
  2201. }
  2202. }
  2203. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto other) {
  2204. if (other == global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.DefaultInstance) return this;
  2205. if (other.HasName) {
  2206. Name = other.Name;
  2207. }
  2208. if (other.HasNumber) {
  2209. Number = other.Number;
  2210. }
  2211. if (other.HasLabel) {
  2212. Label = other.Label;
  2213. }
  2214. if (other.HasType) {
  2215. Type = other.Type;
  2216. }
  2217. if (other.HasTypeName) {
  2218. TypeName = other.TypeName;
  2219. }
  2220. if (other.HasExtendee) {
  2221. Extendee = other.Extendee;
  2222. }
  2223. if (other.HasDefaultValue) {
  2224. DefaultValue = other.DefaultValue;
  2225. }
  2226. if (other.HasOptions) {
  2227. MergeOptions(other.Options);
  2228. }
  2229. this.MergeUnknownFields(other.UnknownFields);
  2230. return this;
  2231. }
  2232. public override Builder MergeFrom(pb::CodedInputStream input) {
  2233. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2234. }
  2235. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2236. pb::UnknownFieldSet.Builder unknownFields =
  2237. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2238. while (true) {
  2239. uint tag = input.ReadTag();
  2240. switch (tag) {
  2241. case 0:
  2242. this.UnknownFields = unknownFields.Build();
  2243. return this;
  2244. default: {
  2245. if (!ParseUnknownField(input, unknownFields,
  2246. extensionRegistry, tag)) {
  2247. this.UnknownFields = unknownFields.Build();
  2248. return this;
  2249. }
  2250. break;
  2251. }
  2252. case 10: {
  2253. Name = input.ReadString();
  2254. break;
  2255. }
  2256. case 18: {
  2257. Extendee = input.ReadString();
  2258. break;
  2259. }
  2260. case 24: {
  2261. Number = input.ReadInt32();
  2262. break;
  2263. }
  2264. case 32: {
  2265. int rawValue = input.ReadEnum();
  2266. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label), rawValue)) {
  2267. unknownFields.MergeVarintField(4, (ulong) rawValue);
  2268. } else {
  2269. Label = (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label) rawValue;
  2270. }
  2271. break;
  2272. }
  2273. case 40: {
  2274. int rawValue = input.ReadEnum();
  2275. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type), rawValue)) {
  2276. unknownFields.MergeVarintField(5, (ulong) rawValue);
  2277. } else {
  2278. Type = (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type) rawValue;
  2279. }
  2280. break;
  2281. }
  2282. case 50: {
  2283. TypeName = input.ReadString();
  2284. break;
  2285. }
  2286. case 58: {
  2287. DefaultValue = input.ReadString();
  2288. break;
  2289. }
  2290. case 66: {
  2291. global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.CreateBuilder();
  2292. if (HasOptions) {
  2293. subBuilder.MergeFrom(Options);
  2294. }
  2295. input.ReadMessage(subBuilder, extensionRegistry);
  2296. Options = subBuilder.BuildPartial();
  2297. break;
  2298. }
  2299. }
  2300. }
  2301. }
  2302. // optional string name = 1;
  2303. public bool HasName {
  2304. get { return result.HasName; }
  2305. }
  2306. public string Name {
  2307. get { return result.Name; }
  2308. set { SetName(value); }
  2309. }
  2310. public Builder SetName(string value) {
  2311. result.hasName = true;
  2312. result.name_ = value;
  2313. return this;
  2314. }
  2315. public Builder ClearName() {
  2316. result.hasName = false;
  2317. result.name_ = "";
  2318. return this;
  2319. }
  2320. // optional int32 number = 3;
  2321. public bool HasNumber {
  2322. get { return result.HasNumber; }
  2323. }
  2324. public int Number {
  2325. get { return result.Number; }
  2326. set { SetNumber(value); }
  2327. }
  2328. public Builder SetNumber(int value) {
  2329. result.hasNumber = true;
  2330. result.number_ = value;
  2331. return this;
  2332. }
  2333. public Builder ClearNumber() {
  2334. result.hasNumber = false;
  2335. result.number_ = 0;
  2336. return this;
  2337. }
  2338. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2339. public bool HasLabel {
  2340. get { return result.HasLabel; }
  2341. }
  2342. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label Label {
  2343. get { return result.Label; }
  2344. set { SetLabel(value); }
  2345. }
  2346. public Builder SetLabel(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label value) {
  2347. result.hasLabel = true;
  2348. result.label_ = value;
  2349. return this;
  2350. }
  2351. public Builder ClearLabel() {
  2352. result.hasLabel = false;
  2353. result.label_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL;
  2354. return this;
  2355. }
  2356. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2357. public bool HasType {
  2358. get { return result.HasType; }
  2359. }
  2360. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type Type {
  2361. get { return result.Type; }
  2362. set { SetType(value); }
  2363. }
  2364. public Builder SetType(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type value) {
  2365. result.hasType = true;
  2366. result.type_ = value;
  2367. return this;
  2368. }
  2369. public Builder ClearType() {
  2370. result.hasType = false;
  2371. result.type_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type.TYPE_DOUBLE;
  2372. return this;
  2373. }
  2374. // optional string type_name = 6;
  2375. public bool HasTypeName {
  2376. get { return result.HasTypeName; }
  2377. }
  2378. public string TypeName {
  2379. get { return result.TypeName; }
  2380. set { SetTypeName(value); }
  2381. }
  2382. public Builder SetTypeName(string value) {
  2383. result.hasTypeName = true;
  2384. result.typeName_ = value;
  2385. return this;
  2386. }
  2387. public Builder ClearTypeName() {
  2388. result.hasTypeName = false;
  2389. result.typeName_ = "";
  2390. return this;
  2391. }
  2392. // optional string extendee = 2;
  2393. public bool HasExtendee {
  2394. get { return result.HasExtendee; }
  2395. }
  2396. public string Extendee {
  2397. get { return result.Extendee; }
  2398. set { SetExtendee(value); }
  2399. }
  2400. public Builder SetExtendee(string value) {
  2401. result.hasExtendee = true;
  2402. result.extendee_ = value;
  2403. return this;
  2404. }
  2405. public Builder ClearExtendee() {
  2406. result.hasExtendee = false;
  2407. result.extendee_ = "";
  2408. return this;
  2409. }
  2410. // optional string default_value = 7;
  2411. public bool HasDefaultValue {
  2412. get { return result.HasDefaultValue; }
  2413. }
  2414. public string DefaultValue {
  2415. get { return result.DefaultValue; }
  2416. set { SetDefaultValue(value); }
  2417. }
  2418. public Builder SetDefaultValue(string value) {
  2419. result.hasDefaultValue = true;
  2420. result.defaultValue_ = value;
  2421. return this;
  2422. }
  2423. public Builder ClearDefaultValue() {
  2424. result.hasDefaultValue = false;
  2425. result.defaultValue_ = "";
  2426. return this;
  2427. }
  2428. // optional .google.protobuf.FieldOptions options = 8;
  2429. public bool HasOptions {
  2430. get { return result.HasOptions; }
  2431. }
  2432. public global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions Options {
  2433. get { return result.Options; }
  2434. set { SetOptions(value); }
  2435. }
  2436. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions value) {
  2437. result.hasOptions = true;
  2438. result.options_ = value;
  2439. return this;
  2440. }
  2441. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Builder builderForValue) {
  2442. result.hasOptions = true;
  2443. result.options_ = builderForValue.Build();
  2444. return this;
  2445. }
  2446. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions value) {
  2447. if (result.HasOptions &&
  2448. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.DefaultInstance) {
  2449. result.options_ =
  2450. global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  2451. } else {
  2452. result.options_ = value;
  2453. }
  2454. result.hasOptions = true;
  2455. return this;
  2456. }
  2457. public Builder ClearOptions() {
  2458. result.hasOptions = false;
  2459. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.DefaultInstance;
  2460. return this;
  2461. }
  2462. }
  2463. }
  2464. public sealed partial class EnumDescriptorProto : pb::GeneratedMessage<EnumDescriptorProto, EnumDescriptorProto.Builder> {
  2465. private static readonly EnumDescriptorProto defaultInstance = new EnumDescriptorProto();
  2466. public static EnumDescriptorProto DefaultInstance {
  2467. get { return defaultInstance; }
  2468. }
  2469. public override EnumDescriptorProto DefaultInstanceForType {
  2470. get { return defaultInstance; }
  2471. }
  2472. protected override EnumDescriptorProto ThisMessage {
  2473. get { return this; }
  2474. }
  2475. public static pbd::MessageDescriptor Descriptor {
  2476. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumDescriptorProto__Descriptor; }
  2477. }
  2478. protected override pb::FieldAccess.FieldAccessorTable<EnumDescriptorProto, EnumDescriptorProto.Builder> InternalFieldAccessors {
  2479. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumDescriptorProto__FieldAccessorTable; }
  2480. }
  2481. // optional string name = 1;
  2482. private bool hasName;
  2483. private string name_ = "";
  2484. public bool HasName {
  2485. get { return hasName; }
  2486. }
  2487. public string Name {
  2488. get { return name_; }
  2489. }
  2490. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2491. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto> value_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>.Empty;
  2492. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto> ValueList {
  2493. get { return value_; }
  2494. }
  2495. public int ValueCount
  2496. { get { return value_.Count; }
  2497. }
  2498. public global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto GetValue(int index) {
  2499. return value_ [index];
  2500. }
  2501. // optional .google.protobuf.EnumOptions options = 3;
  2502. private bool hasOptions;
  2503. private global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions options_ = global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.DefaultInstance;
  2504. public bool HasOptions {
  2505. get { return hasOptions; }
  2506. }
  2507. public global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions Options {
  2508. get { return options_; }
  2509. }
  2510. public override bool IsInitialized {
  2511. get {
  2512. return true;
  2513. }
  2514. }
  2515. public override void WriteTo(pb::CodedOutputStream output) {
  2516. if (HasName) {
  2517. output.WriteString(1, Name);
  2518. }
  2519. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto element in ValueList) {
  2520. output.WriteMessage(2, element);
  2521. }
  2522. if (HasOptions) {
  2523. output.WriteMessage(3, Options);
  2524. }
  2525. UnknownFields.WriteTo(output);
  2526. }
  2527. private int memoizedSerializedSize = -1;
  2528. public override int SerializedSize {
  2529. get {
  2530. int size = memoizedSerializedSize;
  2531. if (size != -1) return size;
  2532. size = 0;
  2533. if (HasName) {
  2534. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  2535. }
  2536. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto element in ValueList) {
  2537. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  2538. }
  2539. if (HasOptions) {
  2540. size += pb::CodedOutputStream.ComputeMessageSize(3, Options);
  2541. }
  2542. size += UnknownFields.SerializedSize;
  2543. memoizedSerializedSize = size;
  2544. return size;
  2545. }
  2546. }
  2547. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto ParseFrom(pb::ByteString data) {
  2548. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2549. }
  2550. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto ParseFrom(pb::ByteString data,
  2551. pb::ExtensionRegistry extensionRegistry) {
  2552. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2553. .BuildParsed();
  2554. }
  2555. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto ParseFrom(byte[] data) {
  2556. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2557. }
  2558. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto ParseFrom(byte[] data,
  2559. pb::ExtensionRegistry extensionRegistry) {
  2560. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2561. .BuildParsed();
  2562. }
  2563. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto ParseFrom(global::System.IO.Stream input) {
  2564. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2565. }
  2566. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto ParseFrom(
  2567. global::System.IO.Stream input,
  2568. pb::ExtensionRegistry extensionRegistry) {
  2569. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2570. .BuildParsed();
  2571. }
  2572. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto ParseFrom(pb::CodedInputStream input) {
  2573. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2574. }
  2575. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto ParseFrom(pb::CodedInputStream input,
  2576. pb::ExtensionRegistry extensionRegistry) {
  2577. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2578. .BuildParsed();
  2579. }
  2580. public static Builder CreateBuilder() { return new Builder(); }
  2581. public override Builder CreateBuilderForType() { return new Builder(); }
  2582. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto prototype) {
  2583. return (Builder) new Builder().MergeFrom(prototype);
  2584. }
  2585. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto, Builder> {
  2586. protected override Builder ThisBuilder {
  2587. get { return this; }
  2588. }
  2589. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.CreateBuilder()
  2590. internal Builder() {}
  2591. global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto result = new global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto();
  2592. protected override global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto MessageBeingBuilt {
  2593. get { return result; }
  2594. }
  2595. public override Builder Clear() {
  2596. result = new global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto();
  2597. return this;
  2598. }
  2599. public override Builder Clone() {
  2600. return new Builder().MergeFrom(result);
  2601. }
  2602. public override pbd::MessageDescriptor DescriptorForType {
  2603. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Descriptor; }
  2604. }
  2605. public override global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto DefaultInstanceForType {
  2606. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.DefaultInstance; }
  2607. }
  2608. public override global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto BuildPartial() {
  2609. if (result.value_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>.Empty) {
  2610. result.value_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>.AsReadOnly(result.value_);
  2611. }
  2612. global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto returnMe = result;
  2613. result = null;
  2614. return returnMe;
  2615. }
  2616. public override Builder MergeFrom(pb::IMessage other) {
  2617. if (other is global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto) {
  2618. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto) other);
  2619. } else {
  2620. base.MergeFrom(other);
  2621. return this;
  2622. }
  2623. }
  2624. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto other) {
  2625. if (other == global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.DefaultInstance) return this;
  2626. if (other.HasName) {
  2627. Name = other.Name;
  2628. }
  2629. if (other.value_.Count != 0) {
  2630. if (result.value_.Count == 0) {
  2631. result.value_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>();
  2632. }
  2633. base.AddRange(other.value_, result.value_);
  2634. }
  2635. if (other.HasOptions) {
  2636. MergeOptions(other.Options);
  2637. }
  2638. this.MergeUnknownFields(other.UnknownFields);
  2639. return this;
  2640. }
  2641. public override Builder MergeFrom(pb::CodedInputStream input) {
  2642. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2643. }
  2644. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2645. pb::UnknownFieldSet.Builder unknownFields =
  2646. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2647. while (true) {
  2648. uint tag = input.ReadTag();
  2649. switch (tag) {
  2650. case 0:
  2651. this.UnknownFields = unknownFields.Build();
  2652. return this;
  2653. default: {
  2654. if (!ParseUnknownField(input, unknownFields,
  2655. extensionRegistry, tag)) {
  2656. this.UnknownFields = unknownFields.Build();
  2657. return this;
  2658. }
  2659. break;
  2660. }
  2661. case 10: {
  2662. Name = input.ReadString();
  2663. break;
  2664. }
  2665. case 18: {
  2666. global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.CreateBuilder();
  2667. input.ReadMessage(subBuilder, extensionRegistry);
  2668. AddValue(subBuilder.BuildPartial());
  2669. break;
  2670. }
  2671. case 26: {
  2672. global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.CreateBuilder();
  2673. if (HasOptions) {
  2674. subBuilder.MergeFrom(Options);
  2675. }
  2676. input.ReadMessage(subBuilder, extensionRegistry);
  2677. Options = subBuilder.BuildPartial();
  2678. break;
  2679. }
  2680. }
  2681. }
  2682. }
  2683. // optional string name = 1;
  2684. public bool HasName {
  2685. get { return result.HasName; }
  2686. }
  2687. public string Name {
  2688. get { return result.Name; }
  2689. set { SetName(value); }
  2690. }
  2691. public Builder SetName(string value) {
  2692. result.hasName = true;
  2693. result.name_ = value;
  2694. return this;
  2695. }
  2696. public Builder ClearName() {
  2697. result.hasName = false;
  2698. result.name_ = "";
  2699. return this;
  2700. }
  2701. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2702. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto> ValueList {
  2703. get { return pbc::Lists.AsReadOnly(result.value_); }
  2704. }
  2705. public int ValueCount {
  2706. get { return result.ValueCount; }
  2707. }
  2708. public global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto GetValue(int index) {
  2709. return result.GetValue(index);
  2710. }
  2711. public Builder SetValue(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto value) {
  2712. result.value_[index] = value;
  2713. return this;
  2714. }
  2715. public Builder SetValue(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) {
  2716. result.value_[index] = builderForValue.Build();
  2717. return this;
  2718. }
  2719. public Builder AddValue(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto value) {
  2720. if (result.value_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>.Empty) {
  2721. result.value_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>();
  2722. }
  2723. result.value_.Add(value);
  2724. return this;
  2725. }
  2726. public Builder AddValue(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) {
  2727. if (result.value_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>.Empty) {
  2728. result.value_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>();
  2729. }
  2730. result.value_.Add(builderForValue.Build());
  2731. return this;
  2732. }
  2733. public Builder AddRangeValue(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto> values) {
  2734. if (result.value_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>.Empty) {
  2735. result.value_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>();
  2736. }
  2737. base.AddRange(values, result.value_);
  2738. return this;
  2739. }
  2740. public Builder ClearValue() {
  2741. result.value_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>.Empty;
  2742. return this;
  2743. }
  2744. // optional .google.protobuf.EnumOptions options = 3;
  2745. public bool HasOptions {
  2746. get { return result.HasOptions; }
  2747. }
  2748. public global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions Options {
  2749. get { return result.Options; }
  2750. set { SetOptions(value); }
  2751. }
  2752. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions value) {
  2753. result.hasOptions = true;
  2754. result.options_ = value;
  2755. return this;
  2756. }
  2757. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.Builder builderForValue) {
  2758. result.hasOptions = true;
  2759. result.options_ = builderForValue.Build();
  2760. return this;
  2761. }
  2762. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions value) {
  2763. if (result.HasOptions &&
  2764. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.DefaultInstance) {
  2765. result.options_ =
  2766. global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  2767. } else {
  2768. result.options_ = value;
  2769. }
  2770. result.hasOptions = true;
  2771. return this;
  2772. }
  2773. public Builder ClearOptions() {
  2774. result.hasOptions = false;
  2775. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.DefaultInstance;
  2776. return this;
  2777. }
  2778. }
  2779. }
  2780. public sealed partial class EnumValueDescriptorProto : pb::GeneratedMessage<EnumValueDescriptorProto, EnumValueDescriptorProto.Builder> {
  2781. private static readonly EnumValueDescriptorProto defaultInstance = new EnumValueDescriptorProto();
  2782. public static EnumValueDescriptorProto DefaultInstance {
  2783. get { return defaultInstance; }
  2784. }
  2785. public override EnumValueDescriptorProto DefaultInstanceForType {
  2786. get { return defaultInstance; }
  2787. }
  2788. protected override EnumValueDescriptorProto ThisMessage {
  2789. get { return this; }
  2790. }
  2791. public static pbd::MessageDescriptor Descriptor {
  2792. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumValueDescriptorProto__Descriptor; }
  2793. }
  2794. protected override pb::FieldAccess.FieldAccessorTable<EnumValueDescriptorProto, EnumValueDescriptorProto.Builder> InternalFieldAccessors {
  2795. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumValueDescriptorProto__FieldAccessorTable; }
  2796. }
  2797. // optional string name = 1;
  2798. private bool hasName;
  2799. private string name_ = "";
  2800. public bool HasName {
  2801. get { return hasName; }
  2802. }
  2803. public string Name {
  2804. get { return name_; }
  2805. }
  2806. // optional int32 number = 2;
  2807. private bool hasNumber;
  2808. private int number_ = 0;
  2809. public bool HasNumber {
  2810. get { return hasNumber; }
  2811. }
  2812. public int Number {
  2813. get { return number_; }
  2814. }
  2815. // optional .google.protobuf.EnumValueOptions options = 3;
  2816. private bool hasOptions;
  2817. private global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions options_ = global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.DefaultInstance;
  2818. public bool HasOptions {
  2819. get { return hasOptions; }
  2820. }
  2821. public global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions Options {
  2822. get { return options_; }
  2823. }
  2824. public override bool IsInitialized {
  2825. get {
  2826. return true;
  2827. }
  2828. }
  2829. public override void WriteTo(pb::CodedOutputStream output) {
  2830. if (HasName) {
  2831. output.WriteString(1, Name);
  2832. }
  2833. if (HasNumber) {
  2834. output.WriteInt32(2, Number);
  2835. }
  2836. if (HasOptions) {
  2837. output.WriteMessage(3, Options);
  2838. }
  2839. UnknownFields.WriteTo(output);
  2840. }
  2841. private int memoizedSerializedSize = -1;
  2842. public override int SerializedSize {
  2843. get {
  2844. int size = memoizedSerializedSize;
  2845. if (size != -1) return size;
  2846. size = 0;
  2847. if (HasName) {
  2848. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  2849. }
  2850. if (HasNumber) {
  2851. size += pb::CodedOutputStream.ComputeInt32Size(2, Number);
  2852. }
  2853. if (HasOptions) {
  2854. size += pb::CodedOutputStream.ComputeMessageSize(3, Options);
  2855. }
  2856. size += UnknownFields.SerializedSize;
  2857. memoizedSerializedSize = size;
  2858. return size;
  2859. }
  2860. }
  2861. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto ParseFrom(pb::ByteString data) {
  2862. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2863. }
  2864. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto ParseFrom(pb::ByteString data,
  2865. pb::ExtensionRegistry extensionRegistry) {
  2866. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2867. .BuildParsed();
  2868. }
  2869. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto ParseFrom(byte[] data) {
  2870. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2871. }
  2872. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto ParseFrom(byte[] data,
  2873. pb::ExtensionRegistry extensionRegistry) {
  2874. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  2875. .BuildParsed();
  2876. }
  2877. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto ParseFrom(global::System.IO.Stream input) {
  2878. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2879. }
  2880. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto ParseFrom(
  2881. global::System.IO.Stream input,
  2882. pb::ExtensionRegistry extensionRegistry) {
  2883. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2884. .BuildParsed();
  2885. }
  2886. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto ParseFrom(pb::CodedInputStream input) {
  2887. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2888. }
  2889. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto ParseFrom(pb::CodedInputStream input,
  2890. pb::ExtensionRegistry extensionRegistry) {
  2891. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  2892. .BuildParsed();
  2893. }
  2894. public static Builder CreateBuilder() { return new Builder(); }
  2895. public override Builder CreateBuilderForType() { return new Builder(); }
  2896. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto prototype) {
  2897. return (Builder) new Builder().MergeFrom(prototype);
  2898. }
  2899. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto, Builder> {
  2900. protected override Builder ThisBuilder {
  2901. get { return this; }
  2902. }
  2903. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.CreateBuilder()
  2904. internal Builder() {}
  2905. global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto result = new global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto();
  2906. protected override global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto MessageBeingBuilt {
  2907. get { return result; }
  2908. }
  2909. public override Builder Clear() {
  2910. result = new global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto();
  2911. return this;
  2912. }
  2913. public override Builder Clone() {
  2914. return new Builder().MergeFrom(result);
  2915. }
  2916. public override pbd::MessageDescriptor DescriptorForType {
  2917. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.Descriptor; }
  2918. }
  2919. public override global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto DefaultInstanceForType {
  2920. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.DefaultInstance; }
  2921. }
  2922. public override global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto BuildPartial() {
  2923. global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto returnMe = result;
  2924. result = null;
  2925. return returnMe;
  2926. }
  2927. public override Builder MergeFrom(pb::IMessage other) {
  2928. if (other is global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto) {
  2929. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto) other);
  2930. } else {
  2931. base.MergeFrom(other);
  2932. return this;
  2933. }
  2934. }
  2935. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto other) {
  2936. if (other == global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.DefaultInstance) return this;
  2937. if (other.HasName) {
  2938. Name = other.Name;
  2939. }
  2940. if (other.HasNumber) {
  2941. Number = other.Number;
  2942. }
  2943. if (other.HasOptions) {
  2944. MergeOptions(other.Options);
  2945. }
  2946. this.MergeUnknownFields(other.UnknownFields);
  2947. return this;
  2948. }
  2949. public override Builder MergeFrom(pb::CodedInputStream input) {
  2950. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2951. }
  2952. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2953. pb::UnknownFieldSet.Builder unknownFields =
  2954. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2955. while (true) {
  2956. uint tag = input.ReadTag();
  2957. switch (tag) {
  2958. case 0:
  2959. this.UnknownFields = unknownFields.Build();
  2960. return this;
  2961. default: {
  2962. if (!ParseUnknownField(input, unknownFields,
  2963. extensionRegistry, tag)) {
  2964. this.UnknownFields = unknownFields.Build();
  2965. return this;
  2966. }
  2967. break;
  2968. }
  2969. case 10: {
  2970. Name = input.ReadString();
  2971. break;
  2972. }
  2973. case 16: {
  2974. Number = input.ReadInt32();
  2975. break;
  2976. }
  2977. case 26: {
  2978. global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.CreateBuilder();
  2979. if (HasOptions) {
  2980. subBuilder.MergeFrom(Options);
  2981. }
  2982. input.ReadMessage(subBuilder, extensionRegistry);
  2983. Options = subBuilder.BuildPartial();
  2984. break;
  2985. }
  2986. }
  2987. }
  2988. }
  2989. // optional string name = 1;
  2990. public bool HasName {
  2991. get { return result.HasName; }
  2992. }
  2993. public string Name {
  2994. get { return result.Name; }
  2995. set { SetName(value); }
  2996. }
  2997. public Builder SetName(string value) {
  2998. result.hasName = true;
  2999. result.name_ = value;
  3000. return this;
  3001. }
  3002. public Builder ClearName() {
  3003. result.hasName = false;
  3004. result.name_ = "";
  3005. return this;
  3006. }
  3007. // optional int32 number = 2;
  3008. public bool HasNumber {
  3009. get { return result.HasNumber; }
  3010. }
  3011. public int Number {
  3012. get { return result.Number; }
  3013. set { SetNumber(value); }
  3014. }
  3015. public Builder SetNumber(int value) {
  3016. result.hasNumber = true;
  3017. result.number_ = value;
  3018. return this;
  3019. }
  3020. public Builder ClearNumber() {
  3021. result.hasNumber = false;
  3022. result.number_ = 0;
  3023. return this;
  3024. }
  3025. // optional .google.protobuf.EnumValueOptions options = 3;
  3026. public bool HasOptions {
  3027. get { return result.HasOptions; }
  3028. }
  3029. public global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions Options {
  3030. get { return result.Options; }
  3031. set { SetOptions(value); }
  3032. }
  3033. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions value) {
  3034. result.hasOptions = true;
  3035. result.options_ = value;
  3036. return this;
  3037. }
  3038. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.Builder builderForValue) {
  3039. result.hasOptions = true;
  3040. result.options_ = builderForValue.Build();
  3041. return this;
  3042. }
  3043. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions value) {
  3044. if (result.HasOptions &&
  3045. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.DefaultInstance) {
  3046. result.options_ =
  3047. global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  3048. } else {
  3049. result.options_ = value;
  3050. }
  3051. result.hasOptions = true;
  3052. return this;
  3053. }
  3054. public Builder ClearOptions() {
  3055. result.hasOptions = false;
  3056. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.DefaultInstance;
  3057. return this;
  3058. }
  3059. }
  3060. }
  3061. public sealed partial class ServiceDescriptorProto : pb::GeneratedMessage<ServiceDescriptorProto, ServiceDescriptorProto.Builder> {
  3062. private static readonly ServiceDescriptorProto defaultInstance = new ServiceDescriptorProto();
  3063. public static ServiceDescriptorProto DefaultInstance {
  3064. get { return defaultInstance; }
  3065. }
  3066. public override ServiceDescriptorProto DefaultInstanceForType {
  3067. get { return defaultInstance; }
  3068. }
  3069. protected override ServiceDescriptorProto ThisMessage {
  3070. get { return this; }
  3071. }
  3072. public static pbd::MessageDescriptor Descriptor {
  3073. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_ServiceDescriptorProto__Descriptor; }
  3074. }
  3075. protected override pb::FieldAccess.FieldAccessorTable<ServiceDescriptorProto, ServiceDescriptorProto.Builder> InternalFieldAccessors {
  3076. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_ServiceDescriptorProto__FieldAccessorTable; }
  3077. }
  3078. // optional string name = 1;
  3079. private bool hasName;
  3080. private string name_ = "";
  3081. public bool HasName {
  3082. get { return hasName; }
  3083. }
  3084. public string Name {
  3085. get { return name_; }
  3086. }
  3087. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3088. private scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto> method_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>.Empty;
  3089. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto> MethodList {
  3090. get { return method_; }
  3091. }
  3092. public int MethodCount
  3093. { get { return method_.Count; }
  3094. }
  3095. public global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto GetMethod(int index) {
  3096. return method_ [index];
  3097. }
  3098. // optional .google.protobuf.ServiceOptions options = 3;
  3099. private bool hasOptions;
  3100. private global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions options_ = global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.DefaultInstance;
  3101. public bool HasOptions {
  3102. get { return hasOptions; }
  3103. }
  3104. public global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions Options {
  3105. get { return options_; }
  3106. }
  3107. public override bool IsInitialized {
  3108. get {
  3109. return true;
  3110. }
  3111. }
  3112. public override void WriteTo(pb::CodedOutputStream output) {
  3113. if (HasName) {
  3114. output.WriteString(1, Name);
  3115. }
  3116. foreach (global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto element in MethodList) {
  3117. output.WriteMessage(2, element);
  3118. }
  3119. if (HasOptions) {
  3120. output.WriteMessage(3, Options);
  3121. }
  3122. UnknownFields.WriteTo(output);
  3123. }
  3124. private int memoizedSerializedSize = -1;
  3125. public override int SerializedSize {
  3126. get {
  3127. int size = memoizedSerializedSize;
  3128. if (size != -1) return size;
  3129. size = 0;
  3130. if (HasName) {
  3131. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  3132. }
  3133. foreach (global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto element in MethodList) {
  3134. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  3135. }
  3136. if (HasOptions) {
  3137. size += pb::CodedOutputStream.ComputeMessageSize(3, Options);
  3138. }
  3139. size += UnknownFields.SerializedSize;
  3140. memoizedSerializedSize = size;
  3141. return size;
  3142. }
  3143. }
  3144. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto ParseFrom(pb::ByteString data) {
  3145. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3146. }
  3147. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto ParseFrom(pb::ByteString data,
  3148. pb::ExtensionRegistry extensionRegistry) {
  3149. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  3150. .BuildParsed();
  3151. }
  3152. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto ParseFrom(byte[] data) {
  3153. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3154. }
  3155. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto ParseFrom(byte[] data,
  3156. pb::ExtensionRegistry extensionRegistry) {
  3157. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  3158. .BuildParsed();
  3159. }
  3160. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto ParseFrom(global::System.IO.Stream input) {
  3161. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3162. }
  3163. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto ParseFrom(
  3164. global::System.IO.Stream input,
  3165. pb::ExtensionRegistry extensionRegistry) {
  3166. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  3167. .BuildParsed();
  3168. }
  3169. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto ParseFrom(pb::CodedInputStream input) {
  3170. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3171. }
  3172. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto ParseFrom(pb::CodedInputStream input,
  3173. pb::ExtensionRegistry extensionRegistry) {
  3174. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  3175. .BuildParsed();
  3176. }
  3177. public static Builder CreateBuilder() { return new Builder(); }
  3178. public override Builder CreateBuilderForType() { return new Builder(); }
  3179. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto prototype) {
  3180. return (Builder) new Builder().MergeFrom(prototype);
  3181. }
  3182. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto, Builder> {
  3183. protected override Builder ThisBuilder {
  3184. get { return this; }
  3185. }
  3186. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.CreateBuilder()
  3187. internal Builder() {}
  3188. global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto result = new global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto();
  3189. protected override global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto MessageBeingBuilt {
  3190. get { return result; }
  3191. }
  3192. public override Builder Clear() {
  3193. result = new global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto();
  3194. return this;
  3195. }
  3196. public override Builder Clone() {
  3197. return new Builder().MergeFrom(result);
  3198. }
  3199. public override pbd::MessageDescriptor DescriptorForType {
  3200. get { return global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.Descriptor; }
  3201. }
  3202. public override global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto DefaultInstanceForType {
  3203. get { return global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.DefaultInstance; }
  3204. }
  3205. public override global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto BuildPartial() {
  3206. if (result.method_ != pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>.Empty) {
  3207. result.method_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>.AsReadOnly(result.method_);
  3208. }
  3209. global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto returnMe = result;
  3210. result = null;
  3211. return returnMe;
  3212. }
  3213. public override Builder MergeFrom(pb::IMessage other) {
  3214. if (other is global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto) {
  3215. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto) other);
  3216. } else {
  3217. base.MergeFrom(other);
  3218. return this;
  3219. }
  3220. }
  3221. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto other) {
  3222. if (other == global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.DefaultInstance) return this;
  3223. if (other.HasName) {
  3224. Name = other.Name;
  3225. }
  3226. if (other.method_.Count != 0) {
  3227. if (result.method_.Count == 0) {
  3228. result.method_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>();
  3229. }
  3230. base.AddRange(other.method_, result.method_);
  3231. }
  3232. if (other.HasOptions) {
  3233. MergeOptions(other.Options);
  3234. }
  3235. this.MergeUnknownFields(other.UnknownFields);
  3236. return this;
  3237. }
  3238. public override Builder MergeFrom(pb::CodedInputStream input) {
  3239. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3240. }
  3241. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3242. pb::UnknownFieldSet.Builder unknownFields =
  3243. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3244. while (true) {
  3245. uint tag = input.ReadTag();
  3246. switch (tag) {
  3247. case 0:
  3248. this.UnknownFields = unknownFields.Build();
  3249. return this;
  3250. default: {
  3251. if (!ParseUnknownField(input, unknownFields,
  3252. extensionRegistry, tag)) {
  3253. this.UnknownFields = unknownFields.Build();
  3254. return this;
  3255. }
  3256. break;
  3257. }
  3258. case 10: {
  3259. Name = input.ReadString();
  3260. break;
  3261. }
  3262. case 18: {
  3263. global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.CreateBuilder();
  3264. input.ReadMessage(subBuilder, extensionRegistry);
  3265. AddMethod(subBuilder.BuildPartial());
  3266. break;
  3267. }
  3268. case 26: {
  3269. global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.CreateBuilder();
  3270. if (HasOptions) {
  3271. subBuilder.MergeFrom(Options);
  3272. }
  3273. input.ReadMessage(subBuilder, extensionRegistry);
  3274. Options = subBuilder.BuildPartial();
  3275. break;
  3276. }
  3277. }
  3278. }
  3279. }
  3280. // optional string name = 1;
  3281. public bool HasName {
  3282. get { return result.HasName; }
  3283. }
  3284. public string Name {
  3285. get { return result.Name; }
  3286. set { SetName(value); }
  3287. }
  3288. public Builder SetName(string value) {
  3289. result.hasName = true;
  3290. result.name_ = value;
  3291. return this;
  3292. }
  3293. public Builder ClearName() {
  3294. result.hasName = false;
  3295. result.name_ = "";
  3296. return this;
  3297. }
  3298. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3299. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto> MethodList {
  3300. get { return pbc::Lists.AsReadOnly(result.method_); }
  3301. }
  3302. public int MethodCount {
  3303. get { return result.MethodCount; }
  3304. }
  3305. public global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto GetMethod(int index) {
  3306. return result.GetMethod(index);
  3307. }
  3308. public Builder SetMethod(int index, global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto value) {
  3309. result.method_[index] = value;
  3310. return this;
  3311. }
  3312. public Builder SetMethod(int index, global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.Builder builderForValue) {
  3313. result.method_[index] = builderForValue.Build();
  3314. return this;
  3315. }
  3316. public Builder AddMethod(global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto value) {
  3317. if (result.method_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>.Empty) {
  3318. result.method_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>();
  3319. }
  3320. result.method_.Add(value);
  3321. return this;
  3322. }
  3323. public Builder AddMethod(global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.Builder builderForValue) {
  3324. if (result.method_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>.Empty) {
  3325. result.method_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>();
  3326. }
  3327. result.method_.Add(builderForValue.Build());
  3328. return this;
  3329. }
  3330. public Builder AddRangeMethod(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto> values) {
  3331. if (result.method_ == pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>.Empty) {
  3332. result.method_ = new scg::List<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>();
  3333. }
  3334. base.AddRange(values, result.method_);
  3335. return this;
  3336. }
  3337. public Builder ClearMethod() {
  3338. result.method_ = pbc::Lists<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>.Empty;
  3339. return this;
  3340. }
  3341. // optional .google.protobuf.ServiceOptions options = 3;
  3342. public bool HasOptions {
  3343. get { return result.HasOptions; }
  3344. }
  3345. public global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions Options {
  3346. get { return result.Options; }
  3347. set { SetOptions(value); }
  3348. }
  3349. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions value) {
  3350. result.hasOptions = true;
  3351. result.options_ = value;
  3352. return this;
  3353. }
  3354. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.Builder builderForValue) {
  3355. result.hasOptions = true;
  3356. result.options_ = builderForValue.Build();
  3357. return this;
  3358. }
  3359. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions value) {
  3360. if (result.HasOptions &&
  3361. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.DefaultInstance) {
  3362. result.options_ =
  3363. global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  3364. } else {
  3365. result.options_ = value;
  3366. }
  3367. result.hasOptions = true;
  3368. return this;
  3369. }
  3370. public Builder ClearOptions() {
  3371. result.hasOptions = false;
  3372. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.DefaultInstance;
  3373. return this;
  3374. }
  3375. }
  3376. }
  3377. public sealed partial class MethodDescriptorProto : pb::GeneratedMessage<MethodDescriptorProto, MethodDescriptorProto.Builder> {
  3378. private static readonly MethodDescriptorProto defaultInstance = new MethodDescriptorProto();
  3379. public static MethodDescriptorProto DefaultInstance {
  3380. get { return defaultInstance; }
  3381. }
  3382. public override MethodDescriptorProto DefaultInstanceForType {
  3383. get { return defaultInstance; }
  3384. }
  3385. protected override MethodDescriptorProto ThisMessage {
  3386. get { return this; }
  3387. }
  3388. public static pbd::MessageDescriptor Descriptor {
  3389. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MethodDescriptorProto__Descriptor; }
  3390. }
  3391. protected override pb::FieldAccess.FieldAccessorTable<MethodDescriptorProto, MethodDescriptorProto.Builder> InternalFieldAccessors {
  3392. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MethodDescriptorProto__FieldAccessorTable; }
  3393. }
  3394. // optional string name = 1;
  3395. private bool hasName;
  3396. private string name_ = "";
  3397. public bool HasName {
  3398. get { return hasName; }
  3399. }
  3400. public string Name {
  3401. get { return name_; }
  3402. }
  3403. // optional string input_type = 2;
  3404. private bool hasInputType;
  3405. private string inputType_ = "";
  3406. public bool HasInputType {
  3407. get { return hasInputType; }
  3408. }
  3409. public string InputType {
  3410. get { return inputType_; }
  3411. }
  3412. // optional string output_type = 3;
  3413. private bool hasOutputType;
  3414. private string outputType_ = "";
  3415. public bool HasOutputType {
  3416. get { return hasOutputType; }
  3417. }
  3418. public string OutputType {
  3419. get { return outputType_; }
  3420. }
  3421. // optional .google.protobuf.MethodOptions options = 4;
  3422. private bool hasOptions;
  3423. private global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions options_ = global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.DefaultInstance;
  3424. public bool HasOptions {
  3425. get { return hasOptions; }
  3426. }
  3427. public global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions Options {
  3428. get { return options_; }
  3429. }
  3430. public override bool IsInitialized {
  3431. get {
  3432. return true;
  3433. }
  3434. }
  3435. public override void WriteTo(pb::CodedOutputStream output) {
  3436. if (HasName) {
  3437. output.WriteString(1, Name);
  3438. }
  3439. if (HasInputType) {
  3440. output.WriteString(2, InputType);
  3441. }
  3442. if (HasOutputType) {
  3443. output.WriteString(3, OutputType);
  3444. }
  3445. if (HasOptions) {
  3446. output.WriteMessage(4, Options);
  3447. }
  3448. UnknownFields.WriteTo(output);
  3449. }
  3450. private int memoizedSerializedSize = -1;
  3451. public override int SerializedSize {
  3452. get {
  3453. int size = memoizedSerializedSize;
  3454. if (size != -1) return size;
  3455. size = 0;
  3456. if (HasName) {
  3457. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  3458. }
  3459. if (HasInputType) {
  3460. size += pb::CodedOutputStream.ComputeStringSize(2, InputType);
  3461. }
  3462. if (HasOutputType) {
  3463. size += pb::CodedOutputStream.ComputeStringSize(3, OutputType);
  3464. }
  3465. if (HasOptions) {
  3466. size += pb::CodedOutputStream.ComputeMessageSize(4, Options);
  3467. }
  3468. size += UnknownFields.SerializedSize;
  3469. memoizedSerializedSize = size;
  3470. return size;
  3471. }
  3472. }
  3473. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto ParseFrom(pb::ByteString data) {
  3474. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3475. }
  3476. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto ParseFrom(pb::ByteString data,
  3477. pb::ExtensionRegistry extensionRegistry) {
  3478. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  3479. .BuildParsed();
  3480. }
  3481. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto ParseFrom(byte[] data) {
  3482. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3483. }
  3484. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto ParseFrom(byte[] data,
  3485. pb::ExtensionRegistry extensionRegistry) {
  3486. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  3487. .BuildParsed();
  3488. }
  3489. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto ParseFrom(global::System.IO.Stream input) {
  3490. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3491. }
  3492. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto ParseFrom(
  3493. global::System.IO.Stream input,
  3494. pb::ExtensionRegistry extensionRegistry) {
  3495. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  3496. .BuildParsed();
  3497. }
  3498. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto ParseFrom(pb::CodedInputStream input) {
  3499. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3500. }
  3501. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto ParseFrom(pb::CodedInputStream input,
  3502. pb::ExtensionRegistry extensionRegistry) {
  3503. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  3504. .BuildParsed();
  3505. }
  3506. public static Builder CreateBuilder() { return new Builder(); }
  3507. public override Builder CreateBuilderForType() { return new Builder(); }
  3508. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto prototype) {
  3509. return (Builder) new Builder().MergeFrom(prototype);
  3510. }
  3511. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto, Builder> {
  3512. protected override Builder ThisBuilder {
  3513. get { return this; }
  3514. }
  3515. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.CreateBuilder()
  3516. internal Builder() {}
  3517. global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto result = new global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto();
  3518. protected override global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto MessageBeingBuilt {
  3519. get { return result; }
  3520. }
  3521. public override Builder Clear() {
  3522. result = new global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto();
  3523. return this;
  3524. }
  3525. public override Builder Clone() {
  3526. return new Builder().MergeFrom(result);
  3527. }
  3528. public override pbd::MessageDescriptor DescriptorForType {
  3529. get { return global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.Descriptor; }
  3530. }
  3531. public override global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto DefaultInstanceForType {
  3532. get { return global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.DefaultInstance; }
  3533. }
  3534. public override global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto BuildPartial() {
  3535. global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto returnMe = result;
  3536. result = null;
  3537. return returnMe;
  3538. }
  3539. public override Builder MergeFrom(pb::IMessage other) {
  3540. if (other is global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto) {
  3541. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto) other);
  3542. } else {
  3543. base.MergeFrom(other);
  3544. return this;
  3545. }
  3546. }
  3547. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto other) {
  3548. if (other == global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.DefaultInstance) return this;
  3549. if (other.HasName) {
  3550. Name = other.Name;
  3551. }
  3552. if (other.HasInputType) {
  3553. InputType = other.InputType;
  3554. }
  3555. if (other.HasOutputType) {
  3556. OutputType = other.OutputType;
  3557. }
  3558. if (other.HasOptions) {
  3559. MergeOptions(other.Options);
  3560. }
  3561. this.MergeUnknownFields(other.UnknownFields);
  3562. return this;
  3563. }
  3564. public override Builder MergeFrom(pb::CodedInputStream input) {
  3565. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3566. }
  3567. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3568. pb::UnknownFieldSet.Builder unknownFields =
  3569. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3570. while (true) {
  3571. uint tag = input.ReadTag();
  3572. switch (tag) {
  3573. case 0:
  3574. this.UnknownFields = unknownFields.Build();
  3575. return this;
  3576. default: {
  3577. if (!ParseUnknownField(input, unknownFields,
  3578. extensionRegistry, tag)) {
  3579. this.UnknownFields = unknownFields.Build();
  3580. return this;
  3581. }
  3582. break;
  3583. }
  3584. case 10: {
  3585. Name = input.ReadString();
  3586. break;
  3587. }
  3588. case 18: {
  3589. InputType = input.ReadString();
  3590. break;
  3591. }
  3592. case 26: {
  3593. OutputType = input.ReadString();
  3594. break;
  3595. }
  3596. case 34: {
  3597. global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.CreateBuilder();
  3598. if (HasOptions) {
  3599. subBuilder.MergeFrom(Options);
  3600. }
  3601. input.ReadMessage(subBuilder, extensionRegistry);
  3602. Options = subBuilder.BuildPartial();
  3603. break;
  3604. }
  3605. }
  3606. }
  3607. }
  3608. // optional string name = 1;
  3609. public bool HasName {
  3610. get { return result.HasName; }
  3611. }
  3612. public string Name {
  3613. get { return result.Name; }
  3614. set { SetName(value); }
  3615. }
  3616. public Builder SetName(string value) {
  3617. result.hasName = true;
  3618. result.name_ = value;
  3619. return this;
  3620. }
  3621. public Builder ClearName() {
  3622. result.hasName = false;
  3623. result.name_ = "";
  3624. return this;
  3625. }
  3626. // optional string input_type = 2;
  3627. public bool HasInputType {
  3628. get { return result.HasInputType; }
  3629. }
  3630. public string InputType {
  3631. get { return result.InputType; }
  3632. set { SetInputType(value); }
  3633. }
  3634. public Builder SetInputType(string value) {
  3635. result.hasInputType = true;
  3636. result.inputType_ = value;
  3637. return this;
  3638. }
  3639. public Builder ClearInputType() {
  3640. result.hasInputType = false;
  3641. result.inputType_ = "";
  3642. return this;
  3643. }
  3644. // optional string output_type = 3;
  3645. public bool HasOutputType {
  3646. get { return result.HasOutputType; }
  3647. }
  3648. public string OutputType {
  3649. get { return result.OutputType; }
  3650. set { SetOutputType(value); }
  3651. }
  3652. public Builder SetOutputType(string value) {
  3653. result.hasOutputType = true;
  3654. result.outputType_ = value;
  3655. return this;
  3656. }
  3657. public Builder ClearOutputType() {
  3658. result.hasOutputType = false;
  3659. result.outputType_ = "";
  3660. return this;
  3661. }
  3662. // optional .google.protobuf.MethodOptions options = 4;
  3663. public bool HasOptions {
  3664. get { return result.HasOptions; }
  3665. }
  3666. public global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions Options {
  3667. get { return result.Options; }
  3668. set { SetOptions(value); }
  3669. }
  3670. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions value) {
  3671. result.hasOptions = true;
  3672. result.options_ = value;
  3673. return this;
  3674. }
  3675. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.Builder builderForValue) {
  3676. result.hasOptions = true;
  3677. result.options_ = builderForValue.Build();
  3678. return this;
  3679. }
  3680. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions value) {
  3681. if (result.HasOptions &&
  3682. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.DefaultInstance) {
  3683. result.options_ =
  3684. global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  3685. } else {
  3686. result.options_ = value;
  3687. }
  3688. result.hasOptions = true;
  3689. return this;
  3690. }
  3691. public Builder ClearOptions() {
  3692. result.hasOptions = false;
  3693. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.DefaultInstance;
  3694. return this;
  3695. }
  3696. }
  3697. }
  3698. public sealed partial class FileOptions : pb::GeneratedMessage<FileOptions, FileOptions.Builder> {
  3699. private static readonly FileOptions defaultInstance = new FileOptions();
  3700. public static FileOptions DefaultInstance {
  3701. get { return defaultInstance; }
  3702. }
  3703. public override FileOptions DefaultInstanceForType {
  3704. get { return defaultInstance; }
  3705. }
  3706. protected override FileOptions ThisMessage {
  3707. get { return this; }
  3708. }
  3709. public static pbd::MessageDescriptor Descriptor {
  3710. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileOptions__Descriptor; }
  3711. }
  3712. protected override pb::FieldAccess.FieldAccessorTable<FileOptions, FileOptions.Builder> InternalFieldAccessors {
  3713. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileOptions__FieldAccessorTable; }
  3714. }
  3715. #region Nested types
  3716. public static class Types {
  3717. public enum OptimizeMode {
  3718. SPEED = 1,
  3719. CODE_SIZE = 2,
  3720. }
  3721. }
  3722. #endregion
  3723. // optional string java_package = 1;
  3724. private bool hasJavaPackage;
  3725. private string javaPackage_ = "";
  3726. public bool HasJavaPackage {
  3727. get { return hasJavaPackage; }
  3728. }
  3729. public string JavaPackage {
  3730. get { return javaPackage_; }
  3731. }
  3732. // optional string java_outer_classname = 8;
  3733. private bool hasJavaOuterClassname;
  3734. private string javaOuterClassname_ = "";
  3735. public bool HasJavaOuterClassname {
  3736. get { return hasJavaOuterClassname; }
  3737. }
  3738. public string JavaOuterClassname {
  3739. get { return javaOuterClassname_; }
  3740. }
  3741. // optional bool java_multiple_files = 10 [default = false];
  3742. private bool hasJavaMultipleFiles;
  3743. private bool javaMultipleFiles_ = false;
  3744. public bool HasJavaMultipleFiles {
  3745. get { return hasJavaMultipleFiles; }
  3746. }
  3747. public bool JavaMultipleFiles {
  3748. get { return javaMultipleFiles_; }
  3749. }
  3750. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = CODE_SIZE];
  3751. private bool hasOptimizeFor;
  3752. private global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode optimizeFor_ = global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode.CODE_SIZE;
  3753. public bool HasOptimizeFor {
  3754. get { return hasOptimizeFor; }
  3755. }
  3756. public global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode OptimizeFor { get { return optimizeFor_; }}
  3757. // optional string csharp_namespace = 1000;
  3758. private bool hasCsharpNamespace;
  3759. private string csharpNamespace_ = "";
  3760. public bool HasCsharpNamespace {
  3761. get { return hasCsharpNamespace; }
  3762. }
  3763. public string CsharpNamespace {
  3764. get { return csharpNamespace_; }
  3765. }
  3766. // optional string csharp_file_classname = 1001;
  3767. private bool hasCsharpFileClassname;
  3768. private string csharpFileClassname_ = "";
  3769. public bool HasCsharpFileClassname {
  3770. get { return hasCsharpFileClassname; }
  3771. }
  3772. public string CsharpFileClassname {
  3773. get { return csharpFileClassname_; }
  3774. }
  3775. // optional bool csharp_multiple_files = 1002 [default = false];
  3776. private bool hasCsharpMultipleFiles;
  3777. private bool csharpMultipleFiles_ = false;
  3778. public bool HasCsharpMultipleFiles {
  3779. get { return hasCsharpMultipleFiles; }
  3780. }
  3781. public bool CsharpMultipleFiles {
  3782. get { return csharpMultipleFiles_; }
  3783. }
  3784. // optional bool csharp_nest_classes = 1003 [default = false];
  3785. private bool hasCsharpNestClasses;
  3786. private bool csharpNestClasses_ = false;
  3787. public bool HasCsharpNestClasses {
  3788. get { return hasCsharpNestClasses; }
  3789. }
  3790. public bool CsharpNestClasses {
  3791. get { return csharpNestClasses_; }
  3792. }
  3793. // optional bool csharp_public_classes = 1004 [default = true];
  3794. private bool hasCsharpPublicClasses;
  3795. private bool csharpPublicClasses_ = true;
  3796. public bool HasCsharpPublicClasses {
  3797. get { return hasCsharpPublicClasses; }
  3798. }
  3799. public bool CsharpPublicClasses {
  3800. get { return csharpPublicClasses_; }
  3801. }
  3802. public override bool IsInitialized {
  3803. get {
  3804. return true;
  3805. }
  3806. }
  3807. public override void WriteTo(pb::CodedOutputStream output) {
  3808. if (HasJavaPackage) {
  3809. output.WriteString(1, JavaPackage);
  3810. }
  3811. if (HasJavaOuterClassname) {
  3812. output.WriteString(8, JavaOuterClassname);
  3813. }
  3814. if (HasOptimizeFor) {
  3815. output.WriteEnum(9, (int) OptimizeFor);
  3816. }
  3817. if (HasJavaMultipleFiles) {
  3818. output.WriteBool(10, JavaMultipleFiles);
  3819. }
  3820. if (HasCsharpNamespace) {
  3821. output.WriteString(1000, CsharpNamespace);
  3822. }
  3823. if (HasCsharpFileClassname) {
  3824. output.WriteString(1001, CsharpFileClassname);
  3825. }
  3826. if (HasCsharpMultipleFiles) {
  3827. output.WriteBool(1002, CsharpMultipleFiles);
  3828. }
  3829. if (HasCsharpNestClasses) {
  3830. output.WriteBool(1003, CsharpNestClasses);
  3831. }
  3832. if (HasCsharpPublicClasses) {
  3833. output.WriteBool(1004, CsharpPublicClasses);
  3834. }
  3835. UnknownFields.WriteTo(output);
  3836. }
  3837. private int memoizedSerializedSize = -1;
  3838. public override int SerializedSize {
  3839. get {
  3840. int size = memoizedSerializedSize;
  3841. if (size != -1) return size;
  3842. size = 0;
  3843. if (HasJavaPackage) {
  3844. size += pb::CodedOutputStream.ComputeStringSize(1, JavaPackage);
  3845. }
  3846. if (HasJavaOuterClassname) {
  3847. size += pb::CodedOutputStream.ComputeStringSize(8, JavaOuterClassname);
  3848. }
  3849. if (HasOptimizeFor) {
  3850. size += pb::CodedOutputStream
  3851. .ComputeEnumSize(9, (int) OptimizeFor);
  3852. }
  3853. if (HasJavaMultipleFiles) {
  3854. size += pb::CodedOutputStream.ComputeBoolSize(10, JavaMultipleFiles);
  3855. }
  3856. if (HasCsharpNamespace) {
  3857. size += pb::CodedOutputStream.ComputeStringSize(1000, CsharpNamespace);
  3858. }
  3859. if (HasCsharpFileClassname) {
  3860. size += pb::CodedOutputStream.ComputeStringSize(1001, CsharpFileClassname);
  3861. }
  3862. if (HasCsharpMultipleFiles) {
  3863. size += pb::CodedOutputStream.ComputeBoolSize(1002, CsharpMultipleFiles);
  3864. }
  3865. if (HasCsharpNestClasses) {
  3866. size += pb::CodedOutputStream.ComputeBoolSize(1003, CsharpNestClasses);
  3867. }
  3868. if (HasCsharpPublicClasses) {
  3869. size += pb::CodedOutputStream.ComputeBoolSize(1004, CsharpPublicClasses);
  3870. }
  3871. size += UnknownFields.SerializedSize;
  3872. memoizedSerializedSize = size;
  3873. return size;
  3874. }
  3875. }
  3876. public static global::Google.ProtocolBuffers.DescriptorProtos.FileOptions ParseFrom(pb::ByteString data) {
  3877. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3878. }
  3879. public static global::Google.ProtocolBuffers.DescriptorProtos.FileOptions ParseFrom(pb::ByteString data,
  3880. pb::ExtensionRegistry extensionRegistry) {
  3881. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  3882. .BuildParsed();
  3883. }
  3884. public static global::Google.ProtocolBuffers.DescriptorProtos.FileOptions ParseFrom(byte[] data) {
  3885. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3886. }
  3887. public static global::Google.ProtocolBuffers.DescriptorProtos.FileOptions ParseFrom(byte[] data,
  3888. pb::ExtensionRegistry extensionRegistry) {
  3889. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  3890. .BuildParsed();
  3891. }
  3892. public static global::Google.ProtocolBuffers.DescriptorProtos.FileOptions ParseFrom(global::System.IO.Stream input) {
  3893. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3894. }
  3895. public static global::Google.ProtocolBuffers.DescriptorProtos.FileOptions ParseFrom(
  3896. global::System.IO.Stream input,
  3897. pb::ExtensionRegistry extensionRegistry) {
  3898. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  3899. .BuildParsed();
  3900. }
  3901. public static global::Google.ProtocolBuffers.DescriptorProtos.FileOptions ParseFrom(pb::CodedInputStream input) {
  3902. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3903. }
  3904. public static global::Google.ProtocolBuffers.DescriptorProtos.FileOptions ParseFrom(pb::CodedInputStream input,
  3905. pb::ExtensionRegistry extensionRegistry) {
  3906. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  3907. .BuildParsed();
  3908. }
  3909. public static Builder CreateBuilder() { return new Builder(); }
  3910. public override Builder CreateBuilderForType() { return new Builder(); }
  3911. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.FileOptions prototype) {
  3912. return (Builder) new Builder().MergeFrom(prototype);
  3913. }
  3914. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.FileOptions, Builder> {
  3915. protected override Builder ThisBuilder {
  3916. get { return this; }
  3917. }
  3918. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.CreateBuilder()
  3919. internal Builder() {}
  3920. global::Google.ProtocolBuffers.DescriptorProtos.FileOptions result = new global::Google.ProtocolBuffers.DescriptorProtos.FileOptions();
  3921. protected override global::Google.ProtocolBuffers.DescriptorProtos.FileOptions MessageBeingBuilt {
  3922. get { return result; }
  3923. }
  3924. public override Builder Clear() {
  3925. result = new global::Google.ProtocolBuffers.DescriptorProtos.FileOptions();
  3926. return this;
  3927. }
  3928. public override Builder Clone() {
  3929. return new Builder().MergeFrom(result);
  3930. }
  3931. public override pbd::MessageDescriptor DescriptorForType {
  3932. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Descriptor; }
  3933. }
  3934. public override global::Google.ProtocolBuffers.DescriptorProtos.FileOptions DefaultInstanceForType {
  3935. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.DefaultInstance; }
  3936. }
  3937. public override global::Google.ProtocolBuffers.DescriptorProtos.FileOptions BuildPartial() {
  3938. global::Google.ProtocolBuffers.DescriptorProtos.FileOptions returnMe = result;
  3939. result = null;
  3940. return returnMe;
  3941. }
  3942. public override Builder MergeFrom(pb::IMessage other) {
  3943. if (other is global::Google.ProtocolBuffers.DescriptorProtos.FileOptions) {
  3944. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.FileOptions) other);
  3945. } else {
  3946. base.MergeFrom(other);
  3947. return this;
  3948. }
  3949. }
  3950. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.FileOptions other) {
  3951. if (other == global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.DefaultInstance) return this;
  3952. if (other.HasJavaPackage) {
  3953. JavaPackage = other.JavaPackage;
  3954. }
  3955. if (other.HasJavaOuterClassname) {
  3956. JavaOuterClassname = other.JavaOuterClassname;
  3957. }
  3958. if (other.HasJavaMultipleFiles) {
  3959. JavaMultipleFiles = other.JavaMultipleFiles;
  3960. }
  3961. if (other.HasOptimizeFor) {
  3962. OptimizeFor = other.OptimizeFor;
  3963. }
  3964. if (other.HasCsharpNamespace) {
  3965. CsharpNamespace = other.CsharpNamespace;
  3966. }
  3967. if (other.HasCsharpFileClassname) {
  3968. CsharpFileClassname = other.CsharpFileClassname;
  3969. }
  3970. if (other.HasCsharpMultipleFiles) {
  3971. CsharpMultipleFiles = other.CsharpMultipleFiles;
  3972. }
  3973. if (other.HasCsharpNestClasses) {
  3974. CsharpNestClasses = other.CsharpNestClasses;
  3975. }
  3976. if (other.HasCsharpPublicClasses) {
  3977. CsharpPublicClasses = other.CsharpPublicClasses;
  3978. }
  3979. this.MergeUnknownFields(other.UnknownFields);
  3980. return this;
  3981. }
  3982. public override Builder MergeFrom(pb::CodedInputStream input) {
  3983. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3984. }
  3985. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3986. pb::UnknownFieldSet.Builder unknownFields =
  3987. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3988. while (true) {
  3989. uint tag = input.ReadTag();
  3990. switch (tag) {
  3991. case 0:
  3992. this.UnknownFields = unknownFields.Build();
  3993. return this;
  3994. default: {
  3995. if (!ParseUnknownField(input, unknownFields,
  3996. extensionRegistry, tag)) {
  3997. this.UnknownFields = unknownFields.Build();
  3998. return this;
  3999. }
  4000. break;
  4001. }
  4002. case 10: {
  4003. JavaPackage = input.ReadString();
  4004. break;
  4005. }
  4006. case 66: {
  4007. JavaOuterClassname = input.ReadString();
  4008. break;
  4009. }
  4010. case 72: {
  4011. int rawValue = input.ReadEnum();
  4012. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode), rawValue)) {
  4013. unknownFields.MergeVarintField(9, (ulong) rawValue);
  4014. } else {
  4015. OptimizeFor = (global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode) rawValue;
  4016. }
  4017. break;
  4018. }
  4019. case 80: {
  4020. JavaMultipleFiles = input.ReadBool();
  4021. break;
  4022. }
  4023. case 8002: {
  4024. CsharpNamespace = input.ReadString();
  4025. break;
  4026. }
  4027. case 8010: {
  4028. CsharpFileClassname = input.ReadString();
  4029. break;
  4030. }
  4031. case 8016: {
  4032. CsharpMultipleFiles = input.ReadBool();
  4033. break;
  4034. }
  4035. case 8024: {
  4036. CsharpNestClasses = input.ReadBool();
  4037. break;
  4038. }
  4039. case 8032: {
  4040. CsharpPublicClasses = input.ReadBool();
  4041. break;
  4042. }
  4043. }
  4044. }
  4045. }
  4046. // optional string java_package = 1;
  4047. public bool HasJavaPackage {
  4048. get { return result.HasJavaPackage; }
  4049. }
  4050. public string JavaPackage {
  4051. get { return result.JavaPackage; }
  4052. set { SetJavaPackage(value); }
  4053. }
  4054. public Builder SetJavaPackage(string value) {
  4055. result.hasJavaPackage = true;
  4056. result.javaPackage_ = value;
  4057. return this;
  4058. }
  4059. public Builder ClearJavaPackage() {
  4060. result.hasJavaPackage = false;
  4061. result.javaPackage_ = "";
  4062. return this;
  4063. }
  4064. // optional string java_outer_classname = 8;
  4065. public bool HasJavaOuterClassname {
  4066. get { return result.HasJavaOuterClassname; }
  4067. }
  4068. public string JavaOuterClassname {
  4069. get { return result.JavaOuterClassname; }
  4070. set { SetJavaOuterClassname(value); }
  4071. }
  4072. public Builder SetJavaOuterClassname(string value) {
  4073. result.hasJavaOuterClassname = true;
  4074. result.javaOuterClassname_ = value;
  4075. return this;
  4076. }
  4077. public Builder ClearJavaOuterClassname() {
  4078. result.hasJavaOuterClassname = false;
  4079. result.javaOuterClassname_ = "";
  4080. return this;
  4081. }
  4082. // optional bool java_multiple_files = 10 [default = false];
  4083. public bool HasJavaMultipleFiles {
  4084. get { return result.HasJavaMultipleFiles; }
  4085. }
  4086. public bool JavaMultipleFiles {
  4087. get { return result.JavaMultipleFiles; }
  4088. set { SetJavaMultipleFiles(value); }
  4089. }
  4090. public Builder SetJavaMultipleFiles(bool value) {
  4091. result.hasJavaMultipleFiles = true;
  4092. result.javaMultipleFiles_ = value;
  4093. return this;
  4094. }
  4095. public Builder ClearJavaMultipleFiles() {
  4096. result.hasJavaMultipleFiles = false;
  4097. result.javaMultipleFiles_ = false;
  4098. return this;
  4099. }
  4100. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = CODE_SIZE];
  4101. public bool HasOptimizeFor {
  4102. get { return result.HasOptimizeFor; }
  4103. }
  4104. public global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode OptimizeFor {
  4105. get { return result.OptimizeFor; }
  4106. set { SetOptimizeFor(value); }
  4107. }
  4108. public Builder SetOptimizeFor(global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode value) {
  4109. result.hasOptimizeFor = true;
  4110. result.optimizeFor_ = value;
  4111. return this;
  4112. }
  4113. public Builder ClearOptimizeFor() {
  4114. result.hasOptimizeFor = false;
  4115. result.optimizeFor_ = global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode.CODE_SIZE;
  4116. return this;
  4117. }
  4118. // optional string csharp_namespace = 1000;
  4119. public bool HasCsharpNamespace {
  4120. get { return result.HasCsharpNamespace; }
  4121. }
  4122. public string CsharpNamespace {
  4123. get { return result.CsharpNamespace; }
  4124. set { SetCsharpNamespace(value); }
  4125. }
  4126. public Builder SetCsharpNamespace(string value) {
  4127. result.hasCsharpNamespace = true;
  4128. result.csharpNamespace_ = value;
  4129. return this;
  4130. }
  4131. public Builder ClearCsharpNamespace() {
  4132. result.hasCsharpNamespace = false;
  4133. result.csharpNamespace_ = "";
  4134. return this;
  4135. }
  4136. // optional string csharp_file_classname = 1001;
  4137. public bool HasCsharpFileClassname {
  4138. get { return result.HasCsharpFileClassname; }
  4139. }
  4140. public string CsharpFileClassname {
  4141. get { return result.CsharpFileClassname; }
  4142. set { SetCsharpFileClassname(value); }
  4143. }
  4144. public Builder SetCsharpFileClassname(string value) {
  4145. result.hasCsharpFileClassname = true;
  4146. result.csharpFileClassname_ = value;
  4147. return this;
  4148. }
  4149. public Builder ClearCsharpFileClassname() {
  4150. result.hasCsharpFileClassname = false;
  4151. result.csharpFileClassname_ = "";
  4152. return this;
  4153. }
  4154. // optional bool csharp_multiple_files = 1002 [default = false];
  4155. public bool HasCsharpMultipleFiles {
  4156. get { return result.HasCsharpMultipleFiles; }
  4157. }
  4158. public bool CsharpMultipleFiles {
  4159. get { return result.CsharpMultipleFiles; }
  4160. set { SetCsharpMultipleFiles(value); }
  4161. }
  4162. public Builder SetCsharpMultipleFiles(bool value) {
  4163. result.hasCsharpMultipleFiles = true;
  4164. result.csharpMultipleFiles_ = value;
  4165. return this;
  4166. }
  4167. public Builder ClearCsharpMultipleFiles() {
  4168. result.hasCsharpMultipleFiles = false;
  4169. result.csharpMultipleFiles_ = false;
  4170. return this;
  4171. }
  4172. // optional bool csharp_nest_classes = 1003 [default = false];
  4173. public bool HasCsharpNestClasses {
  4174. get { return result.HasCsharpNestClasses; }
  4175. }
  4176. public bool CsharpNestClasses {
  4177. get { return result.CsharpNestClasses; }
  4178. set { SetCsharpNestClasses(value); }
  4179. }
  4180. public Builder SetCsharpNestClasses(bool value) {
  4181. result.hasCsharpNestClasses = true;
  4182. result.csharpNestClasses_ = value;
  4183. return this;
  4184. }
  4185. public Builder ClearCsharpNestClasses() {
  4186. result.hasCsharpNestClasses = false;
  4187. result.csharpNestClasses_ = false;
  4188. return this;
  4189. }
  4190. // optional bool csharp_public_classes = 1004 [default = true];
  4191. public bool HasCsharpPublicClasses {
  4192. get { return result.HasCsharpPublicClasses; }
  4193. }
  4194. public bool CsharpPublicClasses {
  4195. get { return result.CsharpPublicClasses; }
  4196. set { SetCsharpPublicClasses(value); }
  4197. }
  4198. public Builder SetCsharpPublicClasses(bool value) {
  4199. result.hasCsharpPublicClasses = true;
  4200. result.csharpPublicClasses_ = value;
  4201. return this;
  4202. }
  4203. public Builder ClearCsharpPublicClasses() {
  4204. result.hasCsharpPublicClasses = false;
  4205. result.csharpPublicClasses_ = true;
  4206. return this;
  4207. }
  4208. }
  4209. }
  4210. public sealed partial class MessageOptions : pb::GeneratedMessage<MessageOptions, MessageOptions.Builder> {
  4211. private static readonly MessageOptions defaultInstance = new MessageOptions();
  4212. public static MessageOptions DefaultInstance {
  4213. get { return defaultInstance; }
  4214. }
  4215. public override MessageOptions DefaultInstanceForType {
  4216. get { return defaultInstance; }
  4217. }
  4218. protected override MessageOptions ThisMessage {
  4219. get { return this; }
  4220. }
  4221. public static pbd::MessageDescriptor Descriptor {
  4222. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MessageOptions__Descriptor; }
  4223. }
  4224. protected override pb::FieldAccess.FieldAccessorTable<MessageOptions, MessageOptions.Builder> InternalFieldAccessors {
  4225. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MessageOptions__FieldAccessorTable; }
  4226. }
  4227. // optional bool message_set_wire_format = 1 [default = false];
  4228. private bool hasMessageSetWireFormat;
  4229. private bool messageSetWireFormat_ = false;
  4230. public bool HasMessageSetWireFormat {
  4231. get { return hasMessageSetWireFormat; }
  4232. }
  4233. public bool MessageSetWireFormat {
  4234. get { return messageSetWireFormat_; }
  4235. }
  4236. public override bool IsInitialized {
  4237. get {
  4238. return true;
  4239. }
  4240. }
  4241. public override void WriteTo(pb::CodedOutputStream output) {
  4242. if (HasMessageSetWireFormat) {
  4243. output.WriteBool(1, MessageSetWireFormat);
  4244. }
  4245. UnknownFields.WriteTo(output);
  4246. }
  4247. private int memoizedSerializedSize = -1;
  4248. public override int SerializedSize {
  4249. get {
  4250. int size = memoizedSerializedSize;
  4251. if (size != -1) return size;
  4252. size = 0;
  4253. if (HasMessageSetWireFormat) {
  4254. size += pb::CodedOutputStream.ComputeBoolSize(1, MessageSetWireFormat);
  4255. }
  4256. size += UnknownFields.SerializedSize;
  4257. memoizedSerializedSize = size;
  4258. return size;
  4259. }
  4260. }
  4261. public static global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions ParseFrom(pb::ByteString data) {
  4262. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4263. }
  4264. public static global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions ParseFrom(pb::ByteString data,
  4265. pb::ExtensionRegistry extensionRegistry) {
  4266. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4267. .BuildParsed();
  4268. }
  4269. public static global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions ParseFrom(byte[] data) {
  4270. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4271. }
  4272. public static global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions ParseFrom(byte[] data,
  4273. pb::ExtensionRegistry extensionRegistry) {
  4274. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4275. .BuildParsed();
  4276. }
  4277. public static global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions ParseFrom(global::System.IO.Stream input) {
  4278. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4279. }
  4280. public static global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions ParseFrom(
  4281. global::System.IO.Stream input,
  4282. pb::ExtensionRegistry extensionRegistry) {
  4283. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4284. .BuildParsed();
  4285. }
  4286. public static global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions ParseFrom(pb::CodedInputStream input) {
  4287. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4288. }
  4289. public static global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions ParseFrom(pb::CodedInputStream input,
  4290. pb::ExtensionRegistry extensionRegistry) {
  4291. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4292. .BuildParsed();
  4293. }
  4294. public static Builder CreateBuilder() { return new Builder(); }
  4295. public override Builder CreateBuilderForType() { return new Builder(); }
  4296. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions prototype) {
  4297. return (Builder) new Builder().MergeFrom(prototype);
  4298. }
  4299. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions, Builder> {
  4300. protected override Builder ThisBuilder {
  4301. get { return this; }
  4302. }
  4303. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.CreateBuilder()
  4304. internal Builder() {}
  4305. global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions result = new global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions();
  4306. protected override global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions MessageBeingBuilt {
  4307. get { return result; }
  4308. }
  4309. public override Builder Clear() {
  4310. result = new global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions();
  4311. return this;
  4312. }
  4313. public override Builder Clone() {
  4314. return new Builder().MergeFrom(result);
  4315. }
  4316. public override pbd::MessageDescriptor DescriptorForType {
  4317. get { return global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.Descriptor; }
  4318. }
  4319. public override global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions DefaultInstanceForType {
  4320. get { return global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.DefaultInstance; }
  4321. }
  4322. public override global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions BuildPartial() {
  4323. global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions returnMe = result;
  4324. result = null;
  4325. return returnMe;
  4326. }
  4327. public override Builder MergeFrom(pb::IMessage other) {
  4328. if (other is global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions) {
  4329. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions) other);
  4330. } else {
  4331. base.MergeFrom(other);
  4332. return this;
  4333. }
  4334. }
  4335. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions other) {
  4336. if (other == global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.DefaultInstance) return this;
  4337. if (other.HasMessageSetWireFormat) {
  4338. MessageSetWireFormat = other.MessageSetWireFormat;
  4339. }
  4340. this.MergeUnknownFields(other.UnknownFields);
  4341. return this;
  4342. }
  4343. public override Builder MergeFrom(pb::CodedInputStream input) {
  4344. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  4345. }
  4346. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4347. pb::UnknownFieldSet.Builder unknownFields =
  4348. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4349. while (true) {
  4350. uint tag = input.ReadTag();
  4351. switch (tag) {
  4352. case 0:
  4353. this.UnknownFields = unknownFields.Build();
  4354. return this;
  4355. default: {
  4356. if (!ParseUnknownField(input, unknownFields,
  4357. extensionRegistry, tag)) {
  4358. this.UnknownFields = unknownFields.Build();
  4359. return this;
  4360. }
  4361. break;
  4362. }
  4363. case 8: {
  4364. MessageSetWireFormat = input.ReadBool();
  4365. break;
  4366. }
  4367. }
  4368. }
  4369. }
  4370. // optional bool message_set_wire_format = 1 [default = false];
  4371. public bool HasMessageSetWireFormat {
  4372. get { return result.HasMessageSetWireFormat; }
  4373. }
  4374. public bool MessageSetWireFormat {
  4375. get { return result.MessageSetWireFormat; }
  4376. set { SetMessageSetWireFormat(value); }
  4377. }
  4378. public Builder SetMessageSetWireFormat(bool value) {
  4379. result.hasMessageSetWireFormat = true;
  4380. result.messageSetWireFormat_ = value;
  4381. return this;
  4382. }
  4383. public Builder ClearMessageSetWireFormat() {
  4384. result.hasMessageSetWireFormat = false;
  4385. result.messageSetWireFormat_ = false;
  4386. return this;
  4387. }
  4388. }
  4389. }
  4390. public sealed partial class FieldOptions : pb::GeneratedMessage<FieldOptions, FieldOptions.Builder> {
  4391. private static readonly FieldOptions defaultInstance = new FieldOptions();
  4392. public static FieldOptions DefaultInstance {
  4393. get { return defaultInstance; }
  4394. }
  4395. public override FieldOptions DefaultInstanceForType {
  4396. get { return defaultInstance; }
  4397. }
  4398. protected override FieldOptions ThisMessage {
  4399. get { return this; }
  4400. }
  4401. public static pbd::MessageDescriptor Descriptor {
  4402. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FieldOptions__Descriptor; }
  4403. }
  4404. protected override pb::FieldAccess.FieldAccessorTable<FieldOptions, FieldOptions.Builder> InternalFieldAccessors {
  4405. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FieldOptions__FieldAccessorTable; }
  4406. }
  4407. #region Nested types
  4408. public static class Types {
  4409. public enum CType {
  4410. CORD = 1,
  4411. STRING_PIECE = 2,
  4412. }
  4413. }
  4414. #endregion
  4415. // optional .google.protobuf.FieldOptions.CType ctype = 1;
  4416. private bool hasCtype;
  4417. private global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType ctype_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType.CORD;
  4418. public bool HasCtype {
  4419. get { return hasCtype; }
  4420. }
  4421. public global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType Ctype { get { return ctype_; }}
  4422. // optional string experimental_map_key = 9;
  4423. private bool hasExperimentalMapKey;
  4424. private string experimentalMapKey_ = "";
  4425. public bool HasExperimentalMapKey {
  4426. get { return hasExperimentalMapKey; }
  4427. }
  4428. public string ExperimentalMapKey {
  4429. get { return experimentalMapKey_; }
  4430. }
  4431. public override bool IsInitialized {
  4432. get {
  4433. return true;
  4434. }
  4435. }
  4436. public override void WriteTo(pb::CodedOutputStream output) {
  4437. if (HasCtype) {
  4438. output.WriteEnum(1, (int) Ctype);
  4439. }
  4440. if (HasExperimentalMapKey) {
  4441. output.WriteString(9, ExperimentalMapKey);
  4442. }
  4443. UnknownFields.WriteTo(output);
  4444. }
  4445. private int memoizedSerializedSize = -1;
  4446. public override int SerializedSize {
  4447. get {
  4448. int size = memoizedSerializedSize;
  4449. if (size != -1) return size;
  4450. size = 0;
  4451. if (HasCtype) {
  4452. size += pb::CodedOutputStream
  4453. .ComputeEnumSize(1, (int) Ctype);
  4454. }
  4455. if (HasExperimentalMapKey) {
  4456. size += pb::CodedOutputStream.ComputeStringSize(9, ExperimentalMapKey);
  4457. }
  4458. size += UnknownFields.SerializedSize;
  4459. memoizedSerializedSize = size;
  4460. return size;
  4461. }
  4462. }
  4463. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions ParseFrom(pb::ByteString data) {
  4464. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4465. }
  4466. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions ParseFrom(pb::ByteString data,
  4467. pb::ExtensionRegistry extensionRegistry) {
  4468. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4469. .BuildParsed();
  4470. }
  4471. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions ParseFrom(byte[] data) {
  4472. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4473. }
  4474. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions ParseFrom(byte[] data,
  4475. pb::ExtensionRegistry extensionRegistry) {
  4476. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4477. .BuildParsed();
  4478. }
  4479. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions ParseFrom(global::System.IO.Stream input) {
  4480. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4481. }
  4482. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions ParseFrom(
  4483. global::System.IO.Stream input,
  4484. pb::ExtensionRegistry extensionRegistry) {
  4485. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4486. .BuildParsed();
  4487. }
  4488. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions ParseFrom(pb::CodedInputStream input) {
  4489. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4490. }
  4491. public static global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions ParseFrom(pb::CodedInputStream input,
  4492. pb::ExtensionRegistry extensionRegistry) {
  4493. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4494. .BuildParsed();
  4495. }
  4496. public static Builder CreateBuilder() { return new Builder(); }
  4497. public override Builder CreateBuilderForType() { return new Builder(); }
  4498. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions prototype) {
  4499. return (Builder) new Builder().MergeFrom(prototype);
  4500. }
  4501. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions, Builder> {
  4502. protected override Builder ThisBuilder {
  4503. get { return this; }
  4504. }
  4505. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.CreateBuilder()
  4506. internal Builder() {}
  4507. global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions result = new global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions();
  4508. protected override global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions MessageBeingBuilt {
  4509. get { return result; }
  4510. }
  4511. public override Builder Clear() {
  4512. result = new global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions();
  4513. return this;
  4514. }
  4515. public override Builder Clone() {
  4516. return new Builder().MergeFrom(result);
  4517. }
  4518. public override pbd::MessageDescriptor DescriptorForType {
  4519. get { return global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Descriptor; }
  4520. }
  4521. public override global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions DefaultInstanceForType {
  4522. get { return global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.DefaultInstance; }
  4523. }
  4524. public override global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions BuildPartial() {
  4525. global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions returnMe = result;
  4526. result = null;
  4527. return returnMe;
  4528. }
  4529. public override Builder MergeFrom(pb::IMessage other) {
  4530. if (other is global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions) {
  4531. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions) other);
  4532. } else {
  4533. base.MergeFrom(other);
  4534. return this;
  4535. }
  4536. }
  4537. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions other) {
  4538. if (other == global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.DefaultInstance) return this;
  4539. if (other.HasCtype) {
  4540. Ctype = other.Ctype;
  4541. }
  4542. if (other.HasExperimentalMapKey) {
  4543. ExperimentalMapKey = other.ExperimentalMapKey;
  4544. }
  4545. this.MergeUnknownFields(other.UnknownFields);
  4546. return this;
  4547. }
  4548. public override Builder MergeFrom(pb::CodedInputStream input) {
  4549. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  4550. }
  4551. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4552. pb::UnknownFieldSet.Builder unknownFields =
  4553. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4554. while (true) {
  4555. uint tag = input.ReadTag();
  4556. switch (tag) {
  4557. case 0:
  4558. this.UnknownFields = unknownFields.Build();
  4559. return this;
  4560. default: {
  4561. if (!ParseUnknownField(input, unknownFields,
  4562. extensionRegistry, tag)) {
  4563. this.UnknownFields = unknownFields.Build();
  4564. return this;
  4565. }
  4566. break;
  4567. }
  4568. case 8: {
  4569. int rawValue = input.ReadEnum();
  4570. if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType), rawValue)) {
  4571. unknownFields.MergeVarintField(1, (ulong) rawValue);
  4572. } else {
  4573. Ctype = (global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType) rawValue;
  4574. }
  4575. break;
  4576. }
  4577. case 74: {
  4578. ExperimentalMapKey = input.ReadString();
  4579. break;
  4580. }
  4581. }
  4582. }
  4583. }
  4584. // optional .google.protobuf.FieldOptions.CType ctype = 1;
  4585. public bool HasCtype {
  4586. get { return result.HasCtype; }
  4587. }
  4588. public global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType Ctype {
  4589. get { return result.Ctype; }
  4590. set { SetCtype(value); }
  4591. }
  4592. public Builder SetCtype(global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType value) {
  4593. result.hasCtype = true;
  4594. result.ctype_ = value;
  4595. return this;
  4596. }
  4597. public Builder ClearCtype() {
  4598. result.hasCtype = false;
  4599. result.ctype_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType.CORD;
  4600. return this;
  4601. }
  4602. // optional string experimental_map_key = 9;
  4603. public bool HasExperimentalMapKey {
  4604. get { return result.HasExperimentalMapKey; }
  4605. }
  4606. public string ExperimentalMapKey {
  4607. get { return result.ExperimentalMapKey; }
  4608. set { SetExperimentalMapKey(value); }
  4609. }
  4610. public Builder SetExperimentalMapKey(string value) {
  4611. result.hasExperimentalMapKey = true;
  4612. result.experimentalMapKey_ = value;
  4613. return this;
  4614. }
  4615. public Builder ClearExperimentalMapKey() {
  4616. result.hasExperimentalMapKey = false;
  4617. result.experimentalMapKey_ = "";
  4618. return this;
  4619. }
  4620. }
  4621. }
  4622. public sealed partial class EnumOptions : pb::GeneratedMessage<EnumOptions, EnumOptions.Builder> {
  4623. private static readonly EnumOptions defaultInstance = new EnumOptions();
  4624. public static EnumOptions DefaultInstance {
  4625. get { return defaultInstance; }
  4626. }
  4627. public override EnumOptions DefaultInstanceForType {
  4628. get { return defaultInstance; }
  4629. }
  4630. protected override EnumOptions ThisMessage {
  4631. get { return this; }
  4632. }
  4633. public static pbd::MessageDescriptor Descriptor {
  4634. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumOptions__Descriptor; }
  4635. }
  4636. protected override pb::FieldAccess.FieldAccessorTable<EnumOptions, EnumOptions.Builder> InternalFieldAccessors {
  4637. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumOptions__FieldAccessorTable; }
  4638. }
  4639. public override bool IsInitialized {
  4640. get {
  4641. return true;
  4642. }
  4643. }
  4644. public override void WriteTo(pb::CodedOutputStream output) {
  4645. UnknownFields.WriteTo(output);
  4646. }
  4647. private int memoizedSerializedSize = -1;
  4648. public override int SerializedSize {
  4649. get {
  4650. int size = memoizedSerializedSize;
  4651. if (size != -1) return size;
  4652. size = 0;
  4653. size += UnknownFields.SerializedSize;
  4654. memoizedSerializedSize = size;
  4655. return size;
  4656. }
  4657. }
  4658. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions ParseFrom(pb::ByteString data) {
  4659. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4660. }
  4661. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions ParseFrom(pb::ByteString data,
  4662. pb::ExtensionRegistry extensionRegistry) {
  4663. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4664. .BuildParsed();
  4665. }
  4666. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions ParseFrom(byte[] data) {
  4667. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4668. }
  4669. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions ParseFrom(byte[] data,
  4670. pb::ExtensionRegistry extensionRegistry) {
  4671. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4672. .BuildParsed();
  4673. }
  4674. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions ParseFrom(global::System.IO.Stream input) {
  4675. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4676. }
  4677. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions ParseFrom(
  4678. global::System.IO.Stream input,
  4679. pb::ExtensionRegistry extensionRegistry) {
  4680. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4681. .BuildParsed();
  4682. }
  4683. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions ParseFrom(pb::CodedInputStream input) {
  4684. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4685. }
  4686. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions ParseFrom(pb::CodedInputStream input,
  4687. pb::ExtensionRegistry extensionRegistry) {
  4688. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4689. .BuildParsed();
  4690. }
  4691. public static Builder CreateBuilder() { return new Builder(); }
  4692. public override Builder CreateBuilderForType() { return new Builder(); }
  4693. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions prototype) {
  4694. return (Builder) new Builder().MergeFrom(prototype);
  4695. }
  4696. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions, Builder> {
  4697. protected override Builder ThisBuilder {
  4698. get { return this; }
  4699. }
  4700. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.CreateBuilder()
  4701. internal Builder() {}
  4702. global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions result = new global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions();
  4703. protected override global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions MessageBeingBuilt {
  4704. get { return result; }
  4705. }
  4706. public override Builder Clear() {
  4707. result = new global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions();
  4708. return this;
  4709. }
  4710. public override Builder Clone() {
  4711. return new Builder().MergeFrom(result);
  4712. }
  4713. public override pbd::MessageDescriptor DescriptorForType {
  4714. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.Descriptor; }
  4715. }
  4716. public override global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions DefaultInstanceForType {
  4717. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.DefaultInstance; }
  4718. }
  4719. public override global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions BuildPartial() {
  4720. global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions returnMe = result;
  4721. result = null;
  4722. return returnMe;
  4723. }
  4724. public override Builder MergeFrom(pb::IMessage other) {
  4725. if (other is global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions) {
  4726. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions) other);
  4727. } else {
  4728. base.MergeFrom(other);
  4729. return this;
  4730. }
  4731. }
  4732. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions other) {
  4733. if (other == global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.DefaultInstance) return this;
  4734. this.MergeUnknownFields(other.UnknownFields);
  4735. return this;
  4736. }
  4737. public override Builder MergeFrom(pb::CodedInputStream input) {
  4738. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  4739. }
  4740. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4741. pb::UnknownFieldSet.Builder unknownFields =
  4742. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4743. while (true) {
  4744. uint tag = input.ReadTag();
  4745. switch (tag) {
  4746. case 0:
  4747. this.UnknownFields = unknownFields.Build();
  4748. return this;
  4749. default: {
  4750. if (!ParseUnknownField(input, unknownFields,
  4751. extensionRegistry, tag)) {
  4752. this.UnknownFields = unknownFields.Build();
  4753. return this;
  4754. }
  4755. break;
  4756. }
  4757. }
  4758. }
  4759. }
  4760. }
  4761. }
  4762. public sealed partial class EnumValueOptions : pb::GeneratedMessage<EnumValueOptions, EnumValueOptions.Builder> {
  4763. private static readonly EnumValueOptions defaultInstance = new EnumValueOptions();
  4764. public static EnumValueOptions DefaultInstance {
  4765. get { return defaultInstance; }
  4766. }
  4767. public override EnumValueOptions DefaultInstanceForType {
  4768. get { return defaultInstance; }
  4769. }
  4770. protected override EnumValueOptions ThisMessage {
  4771. get { return this; }
  4772. }
  4773. public static pbd::MessageDescriptor Descriptor {
  4774. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumValueOptions__Descriptor; }
  4775. }
  4776. protected override pb::FieldAccess.FieldAccessorTable<EnumValueOptions, EnumValueOptions.Builder> InternalFieldAccessors {
  4777. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumValueOptions__FieldAccessorTable; }
  4778. }
  4779. public override bool IsInitialized {
  4780. get {
  4781. return true;
  4782. }
  4783. }
  4784. public override void WriteTo(pb::CodedOutputStream output) {
  4785. UnknownFields.WriteTo(output);
  4786. }
  4787. private int memoizedSerializedSize = -1;
  4788. public override int SerializedSize {
  4789. get {
  4790. int size = memoizedSerializedSize;
  4791. if (size != -1) return size;
  4792. size = 0;
  4793. size += UnknownFields.SerializedSize;
  4794. memoizedSerializedSize = size;
  4795. return size;
  4796. }
  4797. }
  4798. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions ParseFrom(pb::ByteString data) {
  4799. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4800. }
  4801. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions ParseFrom(pb::ByteString data,
  4802. pb::ExtensionRegistry extensionRegistry) {
  4803. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4804. .BuildParsed();
  4805. }
  4806. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions ParseFrom(byte[] data) {
  4807. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4808. }
  4809. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions ParseFrom(byte[] data,
  4810. pb::ExtensionRegistry extensionRegistry) {
  4811. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4812. .BuildParsed();
  4813. }
  4814. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions ParseFrom(global::System.IO.Stream input) {
  4815. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4816. }
  4817. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions ParseFrom(
  4818. global::System.IO.Stream input,
  4819. pb::ExtensionRegistry extensionRegistry) {
  4820. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4821. .BuildParsed();
  4822. }
  4823. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions ParseFrom(pb::CodedInputStream input) {
  4824. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4825. }
  4826. public static global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions ParseFrom(pb::CodedInputStream input,
  4827. pb::ExtensionRegistry extensionRegistry) {
  4828. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4829. .BuildParsed();
  4830. }
  4831. public static Builder CreateBuilder() { return new Builder(); }
  4832. public override Builder CreateBuilderForType() { return new Builder(); }
  4833. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions prototype) {
  4834. return (Builder) new Builder().MergeFrom(prototype);
  4835. }
  4836. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions, Builder> {
  4837. protected override Builder ThisBuilder {
  4838. get { return this; }
  4839. }
  4840. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.CreateBuilder()
  4841. internal Builder() {}
  4842. global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions result = new global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions();
  4843. protected override global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions MessageBeingBuilt {
  4844. get { return result; }
  4845. }
  4846. public override Builder Clear() {
  4847. result = new global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions();
  4848. return this;
  4849. }
  4850. public override Builder Clone() {
  4851. return new Builder().MergeFrom(result);
  4852. }
  4853. public override pbd::MessageDescriptor DescriptorForType {
  4854. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.Descriptor; }
  4855. }
  4856. public override global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions DefaultInstanceForType {
  4857. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.DefaultInstance; }
  4858. }
  4859. public override global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions BuildPartial() {
  4860. global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions returnMe = result;
  4861. result = null;
  4862. return returnMe;
  4863. }
  4864. public override Builder MergeFrom(pb::IMessage other) {
  4865. if (other is global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions) {
  4866. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions) other);
  4867. } else {
  4868. base.MergeFrom(other);
  4869. return this;
  4870. }
  4871. }
  4872. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions other) {
  4873. if (other == global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.DefaultInstance) return this;
  4874. this.MergeUnknownFields(other.UnknownFields);
  4875. return this;
  4876. }
  4877. public override Builder MergeFrom(pb::CodedInputStream input) {
  4878. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  4879. }
  4880. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4881. pb::UnknownFieldSet.Builder unknownFields =
  4882. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4883. while (true) {
  4884. uint tag = input.ReadTag();
  4885. switch (tag) {
  4886. case 0:
  4887. this.UnknownFields = unknownFields.Build();
  4888. return this;
  4889. default: {
  4890. if (!ParseUnknownField(input, unknownFields,
  4891. extensionRegistry, tag)) {
  4892. this.UnknownFields = unknownFields.Build();
  4893. return this;
  4894. }
  4895. break;
  4896. }
  4897. }
  4898. }
  4899. }
  4900. }
  4901. }
  4902. public sealed partial class ServiceOptions : pb::GeneratedMessage<ServiceOptions, ServiceOptions.Builder> {
  4903. private static readonly ServiceOptions defaultInstance = new ServiceOptions();
  4904. public static ServiceOptions DefaultInstance {
  4905. get { return defaultInstance; }
  4906. }
  4907. public override ServiceOptions DefaultInstanceForType {
  4908. get { return defaultInstance; }
  4909. }
  4910. protected override ServiceOptions ThisMessage {
  4911. get { return this; }
  4912. }
  4913. public static pbd::MessageDescriptor Descriptor {
  4914. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_ServiceOptions__Descriptor; }
  4915. }
  4916. protected override pb::FieldAccess.FieldAccessorTable<ServiceOptions, ServiceOptions.Builder> InternalFieldAccessors {
  4917. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_ServiceOptions__FieldAccessorTable; }
  4918. }
  4919. public override bool IsInitialized {
  4920. get {
  4921. return true;
  4922. }
  4923. }
  4924. public override void WriteTo(pb::CodedOutputStream output) {
  4925. UnknownFields.WriteTo(output);
  4926. }
  4927. private int memoizedSerializedSize = -1;
  4928. public override int SerializedSize {
  4929. get {
  4930. int size = memoizedSerializedSize;
  4931. if (size != -1) return size;
  4932. size = 0;
  4933. size += UnknownFields.SerializedSize;
  4934. memoizedSerializedSize = size;
  4935. return size;
  4936. }
  4937. }
  4938. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions ParseFrom(pb::ByteString data) {
  4939. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4940. }
  4941. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions ParseFrom(pb::ByteString data,
  4942. pb::ExtensionRegistry extensionRegistry) {
  4943. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4944. .BuildParsed();
  4945. }
  4946. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions ParseFrom(byte[] data) {
  4947. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4948. }
  4949. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions ParseFrom(byte[] data,
  4950. pb::ExtensionRegistry extensionRegistry) {
  4951. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  4952. .BuildParsed();
  4953. }
  4954. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions ParseFrom(global::System.IO.Stream input) {
  4955. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4956. }
  4957. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions ParseFrom(
  4958. global::System.IO.Stream input,
  4959. pb::ExtensionRegistry extensionRegistry) {
  4960. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4961. .BuildParsed();
  4962. }
  4963. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions ParseFrom(pb::CodedInputStream input) {
  4964. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4965. }
  4966. public static global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions ParseFrom(pb::CodedInputStream input,
  4967. pb::ExtensionRegistry extensionRegistry) {
  4968. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  4969. .BuildParsed();
  4970. }
  4971. public static Builder CreateBuilder() { return new Builder(); }
  4972. public override Builder CreateBuilderForType() { return new Builder(); }
  4973. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions prototype) {
  4974. return (Builder) new Builder().MergeFrom(prototype);
  4975. }
  4976. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions, Builder> {
  4977. protected override Builder ThisBuilder {
  4978. get { return this; }
  4979. }
  4980. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.CreateBuilder()
  4981. internal Builder() {}
  4982. global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions result = new global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions();
  4983. protected override global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions MessageBeingBuilt {
  4984. get { return result; }
  4985. }
  4986. public override Builder Clear() {
  4987. result = new global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions();
  4988. return this;
  4989. }
  4990. public override Builder Clone() {
  4991. return new Builder().MergeFrom(result);
  4992. }
  4993. public override pbd::MessageDescriptor DescriptorForType {
  4994. get { return global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.Descriptor; }
  4995. }
  4996. public override global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions DefaultInstanceForType {
  4997. get { return global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.DefaultInstance; }
  4998. }
  4999. public override global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions BuildPartial() {
  5000. global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions returnMe = result;
  5001. result = null;
  5002. return returnMe;
  5003. }
  5004. public override Builder MergeFrom(pb::IMessage other) {
  5005. if (other is global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions) {
  5006. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions) other);
  5007. } else {
  5008. base.MergeFrom(other);
  5009. return this;
  5010. }
  5011. }
  5012. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions other) {
  5013. if (other == global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.DefaultInstance) return this;
  5014. this.MergeUnknownFields(other.UnknownFields);
  5015. return this;
  5016. }
  5017. public override Builder MergeFrom(pb::CodedInputStream input) {
  5018. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5019. }
  5020. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5021. pb::UnknownFieldSet.Builder unknownFields =
  5022. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5023. while (true) {
  5024. uint tag = input.ReadTag();
  5025. switch (tag) {
  5026. case 0:
  5027. this.UnknownFields = unknownFields.Build();
  5028. return this;
  5029. default: {
  5030. if (!ParseUnknownField(input, unknownFields,
  5031. extensionRegistry, tag)) {
  5032. this.UnknownFields = unknownFields.Build();
  5033. return this;
  5034. }
  5035. break;
  5036. }
  5037. }
  5038. }
  5039. }
  5040. }
  5041. }
  5042. public sealed partial class MethodOptions : pb::GeneratedMessage<MethodOptions, MethodOptions.Builder> {
  5043. private static readonly MethodOptions defaultInstance = new MethodOptions();
  5044. public static MethodOptions DefaultInstance {
  5045. get { return defaultInstance; }
  5046. }
  5047. public override MethodOptions DefaultInstanceForType {
  5048. get { return defaultInstance; }
  5049. }
  5050. protected override MethodOptions ThisMessage {
  5051. get { return this; }
  5052. }
  5053. public static pbd::MessageDescriptor Descriptor {
  5054. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MethodOptions__Descriptor; }
  5055. }
  5056. protected override pb::FieldAccess.FieldAccessorTable<MethodOptions, MethodOptions.Builder> InternalFieldAccessors {
  5057. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MethodOptions__FieldAccessorTable; }
  5058. }
  5059. public override bool IsInitialized {
  5060. get {
  5061. return true;
  5062. }
  5063. }
  5064. public override void WriteTo(pb::CodedOutputStream output) {
  5065. UnknownFields.WriteTo(output);
  5066. }
  5067. private int memoizedSerializedSize = -1;
  5068. public override int SerializedSize {
  5069. get {
  5070. int size = memoizedSerializedSize;
  5071. if (size != -1) return size;
  5072. size = 0;
  5073. size += UnknownFields.SerializedSize;
  5074. memoizedSerializedSize = size;
  5075. return size;
  5076. }
  5077. }
  5078. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions ParseFrom(pb::ByteString data) {
  5079. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5080. }
  5081. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions ParseFrom(pb::ByteString data,
  5082. pb::ExtensionRegistry extensionRegistry) {
  5083. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5084. .BuildParsed();
  5085. }
  5086. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions ParseFrom(byte[] data) {
  5087. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5088. }
  5089. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions ParseFrom(byte[] data,
  5090. pb::ExtensionRegistry extensionRegistry) {
  5091. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry))
  5092. .BuildParsed();
  5093. }
  5094. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions ParseFrom(global::System.IO.Stream input) {
  5095. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5096. }
  5097. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions ParseFrom(
  5098. global::System.IO.Stream input,
  5099. pb::ExtensionRegistry extensionRegistry) {
  5100. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5101. .BuildParsed();
  5102. }
  5103. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions ParseFrom(pb::CodedInputStream input) {
  5104. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5105. }
  5106. public static global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions ParseFrom(pb::CodedInputStream input,
  5107. pb::ExtensionRegistry extensionRegistry) {
  5108. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry))
  5109. .BuildParsed();
  5110. }
  5111. public static Builder CreateBuilder() { return new Builder(); }
  5112. public override Builder CreateBuilderForType() { return new Builder(); }
  5113. public static Builder CreateBuilder(global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions prototype) {
  5114. return (Builder) new Builder().MergeFrom(prototype);
  5115. }
  5116. public sealed partial class Builder : pb::GeneratedBuilder<global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions, Builder> {
  5117. protected override Builder ThisBuilder {
  5118. get { return this; }
  5119. }
  5120. // Construct using global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.CreateBuilder()
  5121. internal Builder() {}
  5122. global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions result = new global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions();
  5123. protected override global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions MessageBeingBuilt {
  5124. get { return result; }
  5125. }
  5126. public override Builder Clear() {
  5127. result = new global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions();
  5128. return this;
  5129. }
  5130. public override Builder Clone() {
  5131. return new Builder().MergeFrom(result);
  5132. }
  5133. public override pbd::MessageDescriptor DescriptorForType {
  5134. get { return global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.Descriptor; }
  5135. }
  5136. public override global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions DefaultInstanceForType {
  5137. get { return global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.DefaultInstance; }
  5138. }
  5139. public override global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions BuildPartial() {
  5140. global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions returnMe = result;
  5141. result = null;
  5142. return returnMe;
  5143. }
  5144. public override Builder MergeFrom(pb::IMessage other) {
  5145. if (other is global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions) {
  5146. return MergeFrom((global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions) other);
  5147. } else {
  5148. base.MergeFrom(other);
  5149. return this;
  5150. }
  5151. }
  5152. public override Builder MergeFrom(global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions other) {
  5153. if (other == global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.DefaultInstance) return this;
  5154. this.MergeUnknownFields(other.UnknownFields);
  5155. return this;
  5156. }
  5157. public override Builder MergeFrom(pb::CodedInputStream input) {
  5158. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5159. }
  5160. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5161. pb::UnknownFieldSet.Builder unknownFields =
  5162. pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5163. while (true) {
  5164. uint tag = input.ReadTag();
  5165. switch (tag) {
  5166. case 0:
  5167. this.UnknownFields = unknownFields.Build();
  5168. return this;
  5169. default: {
  5170. if (!ParseUnknownField(input, unknownFields,
  5171. extensionRegistry, tag)) {
  5172. this.UnknownFields = unknownFields.Build();
  5173. return this;
  5174. }
  5175. break;
  5176. }
  5177. }
  5178. }
  5179. }
  5180. }
  5181. }
  5182. #endregion
  5183. #region Services
  5184. #endregion
  5185. }