Descriptor.cs 260 KB

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