DescriptorProtoFile.cs 240 KB

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