DescriptorProtoFile.cs 379 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111
  1. // Generated by ProtoGen, Version=2.4.1.473, Culture=neutral, PublicKeyToken=55f7125234beb589. DO NOT EDIT!
  2. #pragma warning disable 1591, 0612
  3. #region Designer generated code
  4. using pb = global::Google.ProtocolBuffers;
  5. using pbc = global::Google.ProtocolBuffers.Collections;
  6. using pbd = global::Google.ProtocolBuffers.Descriptors;
  7. using scg = global::System.Collections.Generic;
  8. namespace Google.ProtocolBuffers.DescriptorProtos {
  9. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  11. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  12. public static partial class DescriptorProtoFile {
  13. #region Extension registration
  14. public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
  15. }
  16. #endregion
  17. #region Static variables
  18. internal static pbd::MessageDescriptor internal__static_google_protobuf_FileDescriptorSet__Descriptor;
  19. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.Builder> internal__static_google_protobuf_FileDescriptorSet__FieldAccessorTable;
  20. internal static pbd::MessageDescriptor internal__static_google_protobuf_FileDescriptorProto__Descriptor;
  21. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Builder> internal__static_google_protobuf_FileDescriptorProto__FieldAccessorTable;
  22. internal static pbd::MessageDescriptor internal__static_google_protobuf_DescriptorProto__Descriptor;
  23. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder> internal__static_google_protobuf_DescriptorProto__FieldAccessorTable;
  24. internal static pbd::MessageDescriptor internal__static_google_protobuf_DescriptorProto_ExtensionRange__Descriptor;
  25. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Builder> internal__static_google_protobuf_DescriptorProto_ExtensionRange__FieldAccessorTable;
  26. internal static pbd::MessageDescriptor internal__static_google_protobuf_FieldDescriptorProto__Descriptor;
  27. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder> internal__static_google_protobuf_FieldDescriptorProto__FieldAccessorTable;
  28. internal static pbd::MessageDescriptor internal__static_google_protobuf_EnumDescriptorProto__Descriptor;
  29. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder> internal__static_google_protobuf_EnumDescriptorProto__FieldAccessorTable;
  30. internal static pbd::MessageDescriptor internal__static_google_protobuf_EnumValueDescriptorProto__Descriptor;
  31. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.Builder> internal__static_google_protobuf_EnumValueDescriptorProto__FieldAccessorTable;
  32. internal static pbd::MessageDescriptor internal__static_google_protobuf_ServiceDescriptorProto__Descriptor;
  33. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.Builder> internal__static_google_protobuf_ServiceDescriptorProto__FieldAccessorTable;
  34. internal static pbd::MessageDescriptor internal__static_google_protobuf_MethodDescriptorProto__Descriptor;
  35. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.Builder> internal__static_google_protobuf_MethodDescriptorProto__FieldAccessorTable;
  36. internal static pbd::MessageDescriptor internal__static_google_protobuf_FileOptions__Descriptor;
  37. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileOptions, global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Builder> internal__static_google_protobuf_FileOptions__FieldAccessorTable;
  38. internal static pbd::MessageDescriptor internal__static_google_protobuf_MessageOptions__Descriptor;
  39. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions, global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.Builder> internal__static_google_protobuf_MessageOptions__FieldAccessorTable;
  40. internal static pbd::MessageDescriptor internal__static_google_protobuf_FieldOptions__Descriptor;
  41. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Builder> internal__static_google_protobuf_FieldOptions__FieldAccessorTable;
  42. internal static pbd::MessageDescriptor internal__static_google_protobuf_EnumOptions__Descriptor;
  43. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions, global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.Builder> internal__static_google_protobuf_EnumOptions__FieldAccessorTable;
  44. internal static pbd::MessageDescriptor internal__static_google_protobuf_EnumValueOptions__Descriptor;
  45. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.Builder> internal__static_google_protobuf_EnumValueOptions__FieldAccessorTable;
  46. internal static pbd::MessageDescriptor internal__static_google_protobuf_ServiceOptions__Descriptor;
  47. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.Builder> internal__static_google_protobuf_ServiceOptions__FieldAccessorTable;
  48. internal static pbd::MessageDescriptor internal__static_google_protobuf_MethodOptions__Descriptor;
  49. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.Builder> internal__static_google_protobuf_MethodOptions__FieldAccessorTable;
  50. internal static pbd::MessageDescriptor internal__static_google_protobuf_UninterpretedOption__Descriptor;
  51. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder> internal__static_google_protobuf_UninterpretedOption__FieldAccessorTable;
  52. internal static pbd::MessageDescriptor internal__static_google_protobuf_UninterpretedOption_NamePart__Descriptor;
  53. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart.Builder> internal__static_google_protobuf_UninterpretedOption_NamePart__FieldAccessorTable;
  54. internal static pbd::MessageDescriptor internal__static_google_protobuf_SourceCodeInfo__Descriptor;
  55. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo, global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Builder> internal__static_google_protobuf_SourceCodeInfo__FieldAccessorTable;
  56. internal static pbd::MessageDescriptor internal__static_google_protobuf_SourceCodeInfo_Location__Descriptor;
  57. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location, global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location.Builder> internal__static_google_protobuf_SourceCodeInfo_Location__FieldAccessorTable;
  58. #endregion
  59. #region Descriptor
  60. public static pbd::FileDescriptor Descriptor {
  61. get { return descriptor; }
  62. }
  63. private static pbd::FileDescriptor descriptor;
  64. static DescriptorProtoFile() {
  65. byte[] descriptorData = global::System.Convert.FromBase64String(
  66. "CiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxIPZ29vZ2xlLnBy" +
  67. "b3RvYnVmIkcKEUZpbGVEZXNjcmlwdG9yU2V0EjIKBGZpbGUYASADKAsyJC5n" +
  68. "b29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90byKXAwoTRmlsZURl" +
  69. "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg8KB3BhY2thZ2UYAiABKAkS" +
  70. "EgoKZGVwZW5kZW5jeRgDIAMoCRI2CgxtZXNzYWdlX3R5cGUYBCADKAsyIC5n" +
  71. "b29nbGUucHJvdG9idWYuRGVzY3JpcHRvclByb3RvEjcKCWVudW1fdHlwZRgF" +
  72. "IAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5FbnVtRGVzY3JpcHRvclByb3RvEjgK" +
  73. "B3NlcnZpY2UYBiADKAsyJy5nb29nbGUucHJvdG9idWYuU2VydmljZURlc2Ny" +
  74. "aXB0b3JQcm90bxI4CglleHRlbnNpb24YByADKAsyJS5nb29nbGUucHJvdG9i" +
  75. "dWYuRmllbGREZXNjcmlwdG9yUHJvdG8SLQoHb3B0aW9ucxgIIAEoCzIcLmdv" +
  76. "b2dsZS5wcm90b2J1Zi5GaWxlT3B0aW9ucxI5ChBzb3VyY2VfY29kZV9pbmZv" +
  77. "GAkgASgLMh8uZ29vZ2xlLnByb3RvYnVmLlNvdXJjZUNvZGVJbmZvIqkDCg9E" +
  78. "ZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI0CgVmaWVsZBgCIAMoCzIl" +
  79. "Lmdvb2dsZS5wcm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90bxI4CglleHRl" +
  80. "bnNpb24YBiADKAsyJS5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9y" +
  81. "UHJvdG8SNQoLbmVzdGVkX3R5cGUYAyADKAsyIC5nb29nbGUucHJvdG9idWYu" +
  82. "RGVzY3JpcHRvclByb3RvEjcKCWVudW1fdHlwZRgEIAMoCzIkLmdvb2dsZS5w" +
  83. "cm90b2J1Zi5FbnVtRGVzY3JpcHRvclByb3RvEkgKD2V4dGVuc2lvbl9yYW5n" +
  84. "ZRgFIAMoCzIvLmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8uRXh0" +
  85. "ZW5zaW9uUmFuZ2USMAoHb3B0aW9ucxgHIAEoCzIfLmdvb2dsZS5wcm90b2J1" +
  86. "Zi5NZXNzYWdlT3B0aW9ucxosCg5FeHRlbnNpb25SYW5nZRINCgVzdGFydBgB" +
  87. "IAEoBRILCgNlbmQYAiABKAUilAUKFEZpZWxkRGVzY3JpcHRvclByb3RvEgwK" +
  88. "BG5hbWUYASABKAkSDgoGbnVtYmVyGAMgASgFEjoKBWxhYmVsGAQgASgOMisu" +
  89. "Z29vZ2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvLkxhYmVsEjgK" +
  90. "BHR5cGUYBSABKA4yKi5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9y" +
  91. "UHJvdG8uVHlwZRIRCgl0eXBlX25hbWUYBiABKAkSEAoIZXh0ZW5kZWUYAiAB" +
  92. "KAkSFQoNZGVmYXVsdF92YWx1ZRgHIAEoCRIuCgdvcHRpb25zGAggASgLMh0u" +
  93. "Z29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucyK2AgoEVHlwZRIPCgtUWVBF" +
  94. "X0RPVUJMRRABEg4KClRZUEVfRkxPQVQQAhIOCgpUWVBFX0lOVDY0EAMSDwoL" +
  95. "VFlQRV9VSU5UNjQQBBIOCgpUWVBFX0lOVDMyEAUSEAoMVFlQRV9GSVhFRDY0" +
  96. "EAYSEAoMVFlQRV9GSVhFRDMyEAcSDQoJVFlQRV9CT09MEAgSDwoLVFlQRV9T" +
  97. "VFJJTkcQCRIOCgpUWVBFX0dST1VQEAoSEAoMVFlQRV9NRVNTQUdFEAsSDgoK" +
  98. "VFlQRV9CWVRFUxAMEg8KC1RZUEVfVUlOVDMyEA0SDQoJVFlQRV9FTlVNEA4S" +
  99. "EQoNVFlQRV9TRklYRUQzMhAPEhEKDVRZUEVfU0ZJWEVENjQQEBIPCgtUWVBF" +
  100. "X1NJTlQzMhAREg8KC1RZUEVfU0lOVDY0EBIiQwoFTGFiZWwSEgoOTEFCRUxf" +
  101. "T1BUSU9OQUwQARISCg5MQUJFTF9SRVFVSVJFRBACEhIKDkxBQkVMX1JFUEVB" +
  102. "VEVEEAMijAEKE0VudW1EZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI4" +
  103. "CgV2YWx1ZRgCIAMoCzIpLmdvb2dsZS5wcm90b2J1Zi5FbnVtVmFsdWVEZXNj" +
  104. "cmlwdG9yUHJvdG8SLQoHb3B0aW9ucxgDIAEoCzIcLmdvb2dsZS5wcm90b2J1" +
  105. "Zi5FbnVtT3B0aW9ucyJsChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SDAoE" +
  106. "bmFtZRgBIAEoCRIOCgZudW1iZXIYAiABKAUSMgoHb3B0aW9ucxgDIAEoCzIh" +
  107. "Lmdvb2dsZS5wcm90b2J1Zi5FbnVtVmFsdWVPcHRpb25zIpABChZTZXJ2aWNl" +
  108. "RGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSNgoGbWV0aG9kGAIgAygL" +
  109. "MiYuZ29vZ2xlLnByb3RvYnVmLk1ldGhvZERlc2NyaXB0b3JQcm90bxIwCgdv" +
  110. "cHRpb25zGAMgASgLMh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25z" +
  111. "In8KFU1ldGhvZERlc2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEhIKCmlu" +
  112. "cHV0X3R5cGUYAiABKAkSEwoLb3V0cHV0X3R5cGUYAyABKAkSLwoHb3B0aW9u" +
  113. "cxgEIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5NZXRob2RPcHRpb25zItUDCgtG" +
  114. "aWxlT3B0aW9ucxIUCgxqYXZhX3BhY2thZ2UYASABKAkSHAoUamF2YV9vdXRl" +
  115. "cl9jbGFzc25hbWUYCCABKAkSIgoTamF2YV9tdWx0aXBsZV9maWxlcxgKIAEo" +
  116. "CDoFZmFsc2USLAodamF2YV9nZW5lcmF0ZV9lcXVhbHNfYW5kX2hhc2gYFCAB" +
  117. "KAg6BWZhbHNlEkYKDG9wdGltaXplX2ZvchgJIAEoDjIpLmdvb2dsZS5wcm90" +
  118. "b2J1Zi5GaWxlT3B0aW9ucy5PcHRpbWl6ZU1vZGU6BVNQRUVEEiIKE2NjX2dl" +
  119. "bmVyaWNfc2VydmljZXMYECABKAg6BWZhbHNlEiQKFWphdmFfZ2VuZXJpY19z" +
  120. "ZXJ2aWNlcxgRIAEoCDoFZmFsc2USIgoTcHlfZ2VuZXJpY19zZXJ2aWNlcxgS" +
  121. "IAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQu" +
  122. "Z29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24iOgoMT3B0aW1p" +
  123. "emVNb2RlEgkKBVNQRUVEEAESDQoJQ09ERV9TSVpFEAISEAoMTElURV9SVU5U" +
  124. "SU1FEAMqCQjoBxCAgICAAiK4AQoOTWVzc2FnZU9wdGlvbnMSJgoXbWVzc2Fn" +
  125. "ZV9zZXRfd2lyZV9mb3JtYXQYASABKAg6BWZhbHNlEi4KH25vX3N0YW5kYXJk" +
  126. "X2Rlc2NyaXB0b3JfYWNjZXNzb3IYAiABKAg6BWZhbHNlEkMKFHVuaW50ZXJw" +
  127. "cmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVy" +
  128. "cHJldGVkT3B0aW9uKgkI6AcQgICAgAIilAIKDEZpZWxkT3B0aW9ucxI6CgVj" +
  129. "dHlwZRgBIAEoDjIjLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMuQ1R5" +
  130. "cGU6BlNUUklORxIOCgZwYWNrZWQYAiABKAgSGQoKZGVwcmVjYXRlZBgDIAEo" +
  131. "CDoFZmFsc2USHAoUZXhwZXJpbWVudGFsX21hcF9rZXkYCSABKAkSQwoUdW5p" +
  132. "bnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVu" +
  133. "aW50ZXJwcmV0ZWRPcHRpb24iLwoFQ1R5cGUSCgoGU1RSSU5HEAASCAoEQ09S" +
  134. "RBABEhAKDFNUUklOR19QSUVDRRACKgkI6AcQgICAgAIiXQoLRW51bU9wdGlv" +
  135. "bnMSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnBy" +
  136. "b3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAiJiChBFbnVt" +
  137. "VmFsdWVPcHRpb25zEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIk" +
  138. "Lmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICA" +
  139. "gAIiYAoOU2VydmljZU9wdGlvbnMSQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y" +
  140. "5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24q" +
  141. "CQjoBxCAgICAAiJfCg1NZXRob2RPcHRpb25zEkMKFHVuaW50ZXJwcmV0ZWRf" +
  142. "b3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVk" +
  143. "T3B0aW9uKgkI6AcQgICAgAIingIKE1VuaW50ZXJwcmV0ZWRPcHRpb24SOwoE" +
  144. "bmFtZRgCIAMoCzItLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0" +
  145. "aW9uLk5hbWVQYXJ0EhgKEGlkZW50aWZpZXJfdmFsdWUYAyABKAkSGgoScG9z" +
  146. "aXRpdmVfaW50X3ZhbHVlGAQgASgEEhoKEm5lZ2F0aXZlX2ludF92YWx1ZRgF" +
  147. "IAEoAxIUCgxkb3VibGVfdmFsdWUYBiABKAESFAoMc3RyaW5nX3ZhbHVlGAcg" +
  148. "ASgMEhcKD2FnZ3JlZ2F0ZV92YWx1ZRgIIAEoCRozCghOYW1lUGFydBIRCglu" +
  149. "YW1lX3BhcnQYASACKAkSFAoMaXNfZXh0ZW5zaW9uGAIgAigIInwKDlNvdXJj" +
  150. "ZUNvZGVJbmZvEjoKCGxvY2F0aW9uGAEgAygLMiguZ29vZ2xlLnByb3RvYnVm" +
  151. "LlNvdXJjZUNvZGVJbmZvLkxvY2F0aW9uGi4KCExvY2F0aW9uEhAKBHBhdGgY" +
  152. "ASADKAVCAhABEhAKBHNwYW4YAiADKAVCAhABQikKE2NvbS5nb29nbGUucHJv" +
  153. "dG9idWZCEERlc2NyaXB0b3JQcm90b3NIAQ==");
  154. pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
  155. descriptor = root;
  156. internal__static_google_protobuf_FileDescriptorSet__Descriptor = Descriptor.MessageTypes[0];
  157. internal__static_google_protobuf_FileDescriptorSet__FieldAccessorTable =
  158. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.Builder>(internal__static_google_protobuf_FileDescriptorSet__Descriptor,
  159. new string[] { "File", });
  160. internal__static_google_protobuf_FileDescriptorProto__Descriptor = Descriptor.MessageTypes[1];
  161. internal__static_google_protobuf_FileDescriptorProto__FieldAccessorTable =
  162. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Builder>(internal__static_google_protobuf_FileDescriptorProto__Descriptor,
  163. new string[] { "Name", "Package", "Dependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", });
  164. internal__static_google_protobuf_DescriptorProto__Descriptor = Descriptor.MessageTypes[2];
  165. internal__static_google_protobuf_DescriptorProto__FieldAccessorTable =
  166. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder>(internal__static_google_protobuf_DescriptorProto__Descriptor,
  167. new string[] { "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "Options", });
  168. internal__static_google_protobuf_DescriptorProto_ExtensionRange__Descriptor = internal__static_google_protobuf_DescriptorProto__Descriptor.NestedTypes[0];
  169. internal__static_google_protobuf_DescriptorProto_ExtensionRange__FieldAccessorTable =
  170. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Builder>(internal__static_google_protobuf_DescriptorProto_ExtensionRange__Descriptor,
  171. new string[] { "Start", "End", });
  172. internal__static_google_protobuf_FieldDescriptorProto__Descriptor = Descriptor.MessageTypes[3];
  173. internal__static_google_protobuf_FieldDescriptorProto__FieldAccessorTable =
  174. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder>(internal__static_google_protobuf_FieldDescriptorProto__Descriptor,
  175. new string[] { "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "Options", });
  176. internal__static_google_protobuf_EnumDescriptorProto__Descriptor = Descriptor.MessageTypes[4];
  177. internal__static_google_protobuf_EnumDescriptorProto__FieldAccessorTable =
  178. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder>(internal__static_google_protobuf_EnumDescriptorProto__Descriptor,
  179. new string[] { "Name", "Value", "Options", });
  180. internal__static_google_protobuf_EnumValueDescriptorProto__Descriptor = Descriptor.MessageTypes[5];
  181. internal__static_google_protobuf_EnumValueDescriptorProto__FieldAccessorTable =
  182. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.Builder>(internal__static_google_protobuf_EnumValueDescriptorProto__Descriptor,
  183. new string[] { "Name", "Number", "Options", });
  184. internal__static_google_protobuf_ServiceDescriptorProto__Descriptor = Descriptor.MessageTypes[6];
  185. internal__static_google_protobuf_ServiceDescriptorProto__FieldAccessorTable =
  186. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.Builder>(internal__static_google_protobuf_ServiceDescriptorProto__Descriptor,
  187. new string[] { "Name", "Method", "Options", });
  188. internal__static_google_protobuf_MethodDescriptorProto__Descriptor = Descriptor.MessageTypes[7];
  189. internal__static_google_protobuf_MethodDescriptorProto__FieldAccessorTable =
  190. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto, global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.Builder>(internal__static_google_protobuf_MethodDescriptorProto__Descriptor,
  191. new string[] { "Name", "InputType", "OutputType", "Options", });
  192. internal__static_google_protobuf_FileOptions__Descriptor = Descriptor.MessageTypes[8];
  193. internal__static_google_protobuf_FileOptions__FieldAccessorTable =
  194. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FileOptions, global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Builder>(internal__static_google_protobuf_FileOptions__Descriptor,
  195. new string[] { "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "OptimizeFor", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "UninterpretedOption", });
  196. internal__static_google_protobuf_MessageOptions__Descriptor = Descriptor.MessageTypes[9];
  197. internal__static_google_protobuf_MessageOptions__FieldAccessorTable =
  198. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions, global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.Builder>(internal__static_google_protobuf_MessageOptions__Descriptor,
  199. new string[] { "MessageSetWireFormat", "NoStandardDescriptorAccessor", "UninterpretedOption", });
  200. internal__static_google_protobuf_FieldOptions__Descriptor = Descriptor.MessageTypes[10];
  201. internal__static_google_protobuf_FieldOptions__FieldAccessorTable =
  202. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Builder>(internal__static_google_protobuf_FieldOptions__Descriptor,
  203. new string[] { "Ctype", "Packed", "Deprecated", "ExperimentalMapKey", "UninterpretedOption", });
  204. internal__static_google_protobuf_EnumOptions__Descriptor = Descriptor.MessageTypes[11];
  205. internal__static_google_protobuf_EnumOptions__FieldAccessorTable =
  206. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions, global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.Builder>(internal__static_google_protobuf_EnumOptions__Descriptor,
  207. new string[] { "UninterpretedOption", });
  208. internal__static_google_protobuf_EnumValueOptions__Descriptor = Descriptor.MessageTypes[12];
  209. internal__static_google_protobuf_EnumValueOptions__FieldAccessorTable =
  210. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.Builder>(internal__static_google_protobuf_EnumValueOptions__Descriptor,
  211. new string[] { "UninterpretedOption", });
  212. internal__static_google_protobuf_ServiceOptions__Descriptor = Descriptor.MessageTypes[13];
  213. internal__static_google_protobuf_ServiceOptions__FieldAccessorTable =
  214. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.Builder>(internal__static_google_protobuf_ServiceOptions__Descriptor,
  215. new string[] { "UninterpretedOption", });
  216. internal__static_google_protobuf_MethodOptions__Descriptor = Descriptor.MessageTypes[14];
  217. internal__static_google_protobuf_MethodOptions__FieldAccessorTable =
  218. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.Builder>(internal__static_google_protobuf_MethodOptions__Descriptor,
  219. new string[] { "UninterpretedOption", });
  220. internal__static_google_protobuf_UninterpretedOption__Descriptor = Descriptor.MessageTypes[15];
  221. internal__static_google_protobuf_UninterpretedOption__FieldAccessorTable =
  222. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder>(internal__static_google_protobuf_UninterpretedOption__Descriptor,
  223. new string[] { "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue", });
  224. internal__static_google_protobuf_UninterpretedOption_NamePart__Descriptor = internal__static_google_protobuf_UninterpretedOption__Descriptor.NestedTypes[0];
  225. internal__static_google_protobuf_UninterpretedOption_NamePart__FieldAccessorTable =
  226. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart.Builder>(internal__static_google_protobuf_UninterpretedOption_NamePart__Descriptor,
  227. new string[] { "NamePart_", "IsExtension", });
  228. internal__static_google_protobuf_SourceCodeInfo__Descriptor = Descriptor.MessageTypes[16];
  229. internal__static_google_protobuf_SourceCodeInfo__FieldAccessorTable =
  230. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo, global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Builder>(internal__static_google_protobuf_SourceCodeInfo__Descriptor,
  231. new string[] { "Location", });
  232. internal__static_google_protobuf_SourceCodeInfo_Location__Descriptor = internal__static_google_protobuf_SourceCodeInfo__Descriptor.NestedTypes[0];
  233. internal__static_google_protobuf_SourceCodeInfo_Location__FieldAccessorTable =
  234. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location, global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location.Builder>(internal__static_google_protobuf_SourceCodeInfo_Location__Descriptor,
  235. new string[] { "Path", "Span", });
  236. return null;
  237. };
  238. pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  239. new pbd::FileDescriptor[] {
  240. }, assigner);
  241. }
  242. #endregion
  243. }
  244. #region Messages
  245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  246. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  248. public sealed partial class FileDescriptorSet : pb::GeneratedMessage<FileDescriptorSet, FileDescriptorSet.Builder> {
  249. private FileDescriptorSet() { }
  250. private static readonly FileDescriptorSet defaultInstance = new FileDescriptorSet().MakeReadOnly();
  251. private static readonly string[] _fileDescriptorSetFieldNames = new string[] { "file" };
  252. private static readonly uint[] _fileDescriptorSetFieldTags = new uint[] { 10 };
  253. public static FileDescriptorSet DefaultInstance {
  254. get { return defaultInstance; }
  255. }
  256. public override FileDescriptorSet DefaultInstanceForType {
  257. get { return DefaultInstance; }
  258. }
  259. protected override FileDescriptorSet ThisMessage {
  260. get { return this; }
  261. }
  262. public static pbd::MessageDescriptor Descriptor {
  263. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileDescriptorSet__Descriptor; }
  264. }
  265. protected override pb::FieldAccess.FieldAccessorTable<FileDescriptorSet, FileDescriptorSet.Builder> InternalFieldAccessors {
  266. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileDescriptorSet__FieldAccessorTable; }
  267. }
  268. public const int FileFieldNumber = 1;
  269. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto> file_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto>();
  270. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto> FileList {
  271. get { return file_; }
  272. }
  273. public int FileCount {
  274. get { return file_.Count; }
  275. }
  276. public global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto GetFile(int index) {
  277. return file_[index];
  278. }
  279. public override bool IsInitialized {
  280. get {
  281. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto element in FileList) {
  282. if (!element.IsInitialized) return false;
  283. }
  284. return true;
  285. }
  286. }
  287. public override void WriteTo(pb::ICodedOutputStream output) {
  288. int size = SerializedSize;
  289. string[] field_names = _fileDescriptorSetFieldNames;
  290. if (file_.Count > 0) {
  291. output.WriteMessageArray(1, field_names[0], file_);
  292. }
  293. UnknownFields.WriteTo(output);
  294. }
  295. private int memoizedSerializedSize = -1;
  296. public override int SerializedSize {
  297. get {
  298. int size = memoizedSerializedSize;
  299. if (size != -1) return size;
  300. size = 0;
  301. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto element in FileList) {
  302. size += pb::CodedOutputStream.ComputeMessageSize(1, element);
  303. }
  304. size += UnknownFields.SerializedSize;
  305. memoizedSerializedSize = size;
  306. return size;
  307. }
  308. }
  309. public static FileDescriptorSet ParseFrom(pb::ByteString data) {
  310. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  311. }
  312. public static FileDescriptorSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  313. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  314. }
  315. public static FileDescriptorSet ParseFrom(byte[] data) {
  316. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  317. }
  318. public static FileDescriptorSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  319. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  320. }
  321. public static FileDescriptorSet ParseFrom(global::System.IO.Stream input) {
  322. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  323. }
  324. public static FileDescriptorSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  325. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  326. }
  327. public static FileDescriptorSet ParseDelimitedFrom(global::System.IO.Stream input) {
  328. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  329. }
  330. public static FileDescriptorSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  331. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  332. }
  333. public static FileDescriptorSet ParseFrom(pb::ICodedInputStream input) {
  334. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  335. }
  336. public static FileDescriptorSet ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  337. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  338. }
  339. private FileDescriptorSet MakeReadOnly() {
  340. file_.MakeReadOnly();
  341. return this;
  342. }
  343. public static Builder CreateBuilder() { return new Builder(); }
  344. public override Builder ToBuilder() { return CreateBuilder(this); }
  345. public override Builder CreateBuilderForType() { return new Builder(); }
  346. public static Builder CreateBuilder(FileDescriptorSet prototype) {
  347. return new Builder(prototype);
  348. }
  349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  350. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  352. public sealed partial class Builder : pb::GeneratedBuilder<FileDescriptorSet, Builder> {
  353. protected override Builder ThisBuilder {
  354. get { return this; }
  355. }
  356. public Builder() {
  357. result = DefaultInstance;
  358. resultIsReadOnly = true;
  359. }
  360. internal Builder(FileDescriptorSet cloneFrom) {
  361. result = cloneFrom;
  362. resultIsReadOnly = true;
  363. }
  364. private bool resultIsReadOnly;
  365. private FileDescriptorSet result;
  366. private FileDescriptorSet PrepareBuilder() {
  367. if (resultIsReadOnly) {
  368. FileDescriptorSet original = result;
  369. result = new FileDescriptorSet();
  370. resultIsReadOnly = false;
  371. MergeFrom(original);
  372. }
  373. return result;
  374. }
  375. public override bool IsInitialized {
  376. get { return result.IsInitialized; }
  377. }
  378. protected override FileDescriptorSet MessageBeingBuilt {
  379. get { return PrepareBuilder(); }
  380. }
  381. public override Builder Clear() {
  382. result = DefaultInstance;
  383. resultIsReadOnly = true;
  384. return this;
  385. }
  386. public override Builder Clone() {
  387. if (resultIsReadOnly) {
  388. return new Builder(result);
  389. } else {
  390. return new Builder().MergeFrom(result);
  391. }
  392. }
  393. public override pbd::MessageDescriptor DescriptorForType {
  394. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.Descriptor; }
  395. }
  396. public override FileDescriptorSet DefaultInstanceForType {
  397. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.DefaultInstance; }
  398. }
  399. public override FileDescriptorSet BuildPartial() {
  400. if (resultIsReadOnly) {
  401. return result;
  402. }
  403. resultIsReadOnly = true;
  404. return result.MakeReadOnly();
  405. }
  406. public override Builder MergeFrom(pb::IMessage other) {
  407. if (other is FileDescriptorSet) {
  408. return MergeFrom((FileDescriptorSet) other);
  409. } else {
  410. base.MergeFrom(other);
  411. return this;
  412. }
  413. }
  414. public override Builder MergeFrom(FileDescriptorSet other) {
  415. if (other == global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorSet.DefaultInstance) return this;
  416. PrepareBuilder();
  417. if (other.file_.Count != 0) {
  418. result.file_.Add(other.file_);
  419. }
  420. this.MergeUnknownFields(other.UnknownFields);
  421. return this;
  422. }
  423. public override Builder MergeFrom(pb::ICodedInputStream input) {
  424. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  425. }
  426. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  427. PrepareBuilder();
  428. pb::UnknownFieldSet.Builder unknownFields = null;
  429. uint tag;
  430. string field_name;
  431. while (input.ReadTag(out tag, out field_name)) {
  432. if(tag == 0 && field_name != null) {
  433. int field_ordinal = global::System.Array.BinarySearch(_fileDescriptorSetFieldNames, field_name, global::System.StringComparer.Ordinal);
  434. if(field_ordinal >= 0)
  435. tag = _fileDescriptorSetFieldTags[field_ordinal];
  436. else {
  437. if (unknownFields == null) {
  438. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  439. }
  440. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  441. continue;
  442. }
  443. }
  444. switch (tag) {
  445. case 0: {
  446. throw pb::InvalidProtocolBufferException.InvalidTag();
  447. }
  448. default: {
  449. if (pb::WireFormat.IsEndGroupTag(tag)) {
  450. if (unknownFields != null) {
  451. this.UnknownFields = unknownFields.Build();
  452. }
  453. return this;
  454. }
  455. if (unknownFields == null) {
  456. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  457. }
  458. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  459. break;
  460. }
  461. case 10: {
  462. input.ReadMessageArray(tag, field_name, result.file_, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.DefaultInstance, extensionRegistry);
  463. break;
  464. }
  465. }
  466. }
  467. if (unknownFields != null) {
  468. this.UnknownFields = unknownFields.Build();
  469. }
  470. return this;
  471. }
  472. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto> FileList {
  473. get { return PrepareBuilder().file_; }
  474. }
  475. public int FileCount {
  476. get { return result.FileCount; }
  477. }
  478. public global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto GetFile(int index) {
  479. return result.GetFile(index);
  480. }
  481. public Builder SetFile(int index, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto value) {
  482. pb::ThrowHelper.ThrowIfNull(value, "value");
  483. PrepareBuilder();
  484. result.file_[index] = value;
  485. return this;
  486. }
  487. public Builder SetFile(int index, global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
  488. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  489. PrepareBuilder();
  490. result.file_[index] = builderForValue.Build();
  491. return this;
  492. }
  493. public Builder AddFile(global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto value) {
  494. pb::ThrowHelper.ThrowIfNull(value, "value");
  495. PrepareBuilder();
  496. result.file_.Add(value);
  497. return this;
  498. }
  499. public Builder AddFile(global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Builder builderForValue) {
  500. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  501. PrepareBuilder();
  502. result.file_.Add(builderForValue.Build());
  503. return this;
  504. }
  505. public Builder AddRangeFile(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto> values) {
  506. PrepareBuilder();
  507. result.file_.Add(values);
  508. return this;
  509. }
  510. public Builder ClearFile() {
  511. PrepareBuilder();
  512. result.file_.Clear();
  513. return this;
  514. }
  515. }
  516. static FileDescriptorSet() {
  517. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  518. }
  519. }
  520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  521. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  523. public sealed partial class FileDescriptorProto : pb::GeneratedMessage<FileDescriptorProto, FileDescriptorProto.Builder> {
  524. private FileDescriptorProto() { }
  525. private static readonly FileDescriptorProto defaultInstance = new FileDescriptorProto().MakeReadOnly();
  526. private static readonly string[] _fileDescriptorProtoFieldNames = new string[] { "dependency", "enum_type", "extension", "message_type", "name", "options", "package", "service", "source_code_info" };
  527. private static readonly uint[] _fileDescriptorProtoFieldTags = new uint[] { 26, 42, 58, 34, 10, 66, 18, 50, 74 };
  528. public static FileDescriptorProto DefaultInstance {
  529. get { return defaultInstance; }
  530. }
  531. public override FileDescriptorProto DefaultInstanceForType {
  532. get { return DefaultInstance; }
  533. }
  534. protected override FileDescriptorProto ThisMessage {
  535. get { return this; }
  536. }
  537. public static pbd::MessageDescriptor Descriptor {
  538. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileDescriptorProto__Descriptor; }
  539. }
  540. protected override pb::FieldAccess.FieldAccessorTable<FileDescriptorProto, FileDescriptorProto.Builder> InternalFieldAccessors {
  541. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileDescriptorProto__FieldAccessorTable; }
  542. }
  543. public const int NameFieldNumber = 1;
  544. private bool hasName;
  545. private string name_ = "";
  546. public bool HasName {
  547. get { return hasName; }
  548. }
  549. public string Name {
  550. get { return name_; }
  551. }
  552. public const int PackageFieldNumber = 2;
  553. private bool hasPackage;
  554. private string package_ = "";
  555. public bool HasPackage {
  556. get { return hasPackage; }
  557. }
  558. public string Package {
  559. get { return package_; }
  560. }
  561. public const int DependencyFieldNumber = 3;
  562. private pbc::PopsicleList<string> dependency_ = new pbc::PopsicleList<string>();
  563. public scg::IList<string> DependencyList {
  564. get { return pbc::Lists.AsReadOnly(dependency_); }
  565. }
  566. public int DependencyCount {
  567. get { return dependency_.Count; }
  568. }
  569. public string GetDependency(int index) {
  570. return dependency_[index];
  571. }
  572. public const int MessageTypeFieldNumber = 4;
  573. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> messageType_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>();
  574. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> MessageTypeList {
  575. get { return messageType_; }
  576. }
  577. public int MessageTypeCount {
  578. get { return messageType_.Count; }
  579. }
  580. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto GetMessageType(int index) {
  581. return messageType_[index];
  582. }
  583. public const int EnumTypeFieldNumber = 5;
  584. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> enumType_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>();
  585. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> EnumTypeList {
  586. get { return enumType_; }
  587. }
  588. public int EnumTypeCount {
  589. get { return enumType_.Count; }
  590. }
  591. public global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto GetEnumType(int index) {
  592. return enumType_[index];
  593. }
  594. public const int ServiceFieldNumber = 6;
  595. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto> service_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto>();
  596. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto> ServiceList {
  597. get { return service_; }
  598. }
  599. public int ServiceCount {
  600. get { return service_.Count; }
  601. }
  602. public global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto GetService(int index) {
  603. return service_[index];
  604. }
  605. public const int ExtensionFieldNumber = 7;
  606. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> extension_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  607. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> ExtensionList {
  608. get { return extension_; }
  609. }
  610. public int ExtensionCount {
  611. get { return extension_.Count; }
  612. }
  613. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetExtension(int index) {
  614. return extension_[index];
  615. }
  616. public const int OptionsFieldNumber = 8;
  617. private bool hasOptions;
  618. private global::Google.ProtocolBuffers.DescriptorProtos.FileOptions options_;
  619. public bool HasOptions {
  620. get { return hasOptions; }
  621. }
  622. public global::Google.ProtocolBuffers.DescriptorProtos.FileOptions Options {
  623. get { return options_ ?? global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.DefaultInstance; }
  624. }
  625. public const int SourceCodeInfoFieldNumber = 9;
  626. private bool hasSourceCodeInfo;
  627. private global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo sourceCodeInfo_;
  628. public bool HasSourceCodeInfo {
  629. get { return hasSourceCodeInfo; }
  630. }
  631. public global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo SourceCodeInfo {
  632. get { return sourceCodeInfo_ ?? global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.DefaultInstance; }
  633. }
  634. public override bool IsInitialized {
  635. get {
  636. foreach (global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto element in MessageTypeList) {
  637. if (!element.IsInitialized) return false;
  638. }
  639. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto element in EnumTypeList) {
  640. if (!element.IsInitialized) return false;
  641. }
  642. foreach (global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto element in ServiceList) {
  643. if (!element.IsInitialized) return false;
  644. }
  645. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in ExtensionList) {
  646. if (!element.IsInitialized) return false;
  647. }
  648. if (HasOptions) {
  649. if (!Options.IsInitialized) return false;
  650. }
  651. return true;
  652. }
  653. }
  654. public override void WriteTo(pb::ICodedOutputStream output) {
  655. int size = SerializedSize;
  656. string[] field_names = _fileDescriptorProtoFieldNames;
  657. if (hasName) {
  658. output.WriteString(1, field_names[4], Name);
  659. }
  660. if (hasPackage) {
  661. output.WriteString(2, field_names[6], Package);
  662. }
  663. if (dependency_.Count > 0) {
  664. output.WriteStringArray(3, field_names[0], dependency_);
  665. }
  666. if (messageType_.Count > 0) {
  667. output.WriteMessageArray(4, field_names[3], messageType_);
  668. }
  669. if (enumType_.Count > 0) {
  670. output.WriteMessageArray(5, field_names[1], enumType_);
  671. }
  672. if (service_.Count > 0) {
  673. output.WriteMessageArray(6, field_names[7], service_);
  674. }
  675. if (extension_.Count > 0) {
  676. output.WriteMessageArray(7, field_names[2], extension_);
  677. }
  678. if (hasOptions) {
  679. output.WriteMessage(8, field_names[5], Options);
  680. }
  681. if (hasSourceCodeInfo) {
  682. output.WriteMessage(9, field_names[8], SourceCodeInfo);
  683. }
  684. UnknownFields.WriteTo(output);
  685. }
  686. private int memoizedSerializedSize = -1;
  687. public override int SerializedSize {
  688. get {
  689. int size = memoizedSerializedSize;
  690. if (size != -1) return size;
  691. size = 0;
  692. if (hasName) {
  693. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  694. }
  695. if (hasPackage) {
  696. size += pb::CodedOutputStream.ComputeStringSize(2, Package);
  697. }
  698. {
  699. int dataSize = 0;
  700. foreach (string element in DependencyList) {
  701. dataSize += pb::CodedOutputStream.ComputeStringSizeNoTag(element);
  702. }
  703. size += dataSize;
  704. size += 1 * dependency_.Count;
  705. }
  706. foreach (global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto element in MessageTypeList) {
  707. size += pb::CodedOutputStream.ComputeMessageSize(4, element);
  708. }
  709. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto element in EnumTypeList) {
  710. size += pb::CodedOutputStream.ComputeMessageSize(5, element);
  711. }
  712. foreach (global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto element in ServiceList) {
  713. size += pb::CodedOutputStream.ComputeMessageSize(6, element);
  714. }
  715. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in ExtensionList) {
  716. size += pb::CodedOutputStream.ComputeMessageSize(7, element);
  717. }
  718. if (hasOptions) {
  719. size += pb::CodedOutputStream.ComputeMessageSize(8, Options);
  720. }
  721. if (hasSourceCodeInfo) {
  722. size += pb::CodedOutputStream.ComputeMessageSize(9, SourceCodeInfo);
  723. }
  724. size += UnknownFields.SerializedSize;
  725. memoizedSerializedSize = size;
  726. return size;
  727. }
  728. }
  729. public static FileDescriptorProto ParseFrom(pb::ByteString data) {
  730. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  731. }
  732. public static FileDescriptorProto ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  733. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  734. }
  735. public static FileDescriptorProto ParseFrom(byte[] data) {
  736. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  737. }
  738. public static FileDescriptorProto ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  739. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  740. }
  741. public static FileDescriptorProto ParseFrom(global::System.IO.Stream input) {
  742. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  743. }
  744. public static FileDescriptorProto ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  745. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  746. }
  747. public static FileDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input) {
  748. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  749. }
  750. public static FileDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  751. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  752. }
  753. public static FileDescriptorProto ParseFrom(pb::ICodedInputStream input) {
  754. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  755. }
  756. public static FileDescriptorProto ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  757. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  758. }
  759. private FileDescriptorProto MakeReadOnly() {
  760. dependency_.MakeReadOnly();
  761. messageType_.MakeReadOnly();
  762. enumType_.MakeReadOnly();
  763. service_.MakeReadOnly();
  764. extension_.MakeReadOnly();
  765. return this;
  766. }
  767. public static Builder CreateBuilder() { return new Builder(); }
  768. public override Builder ToBuilder() { return CreateBuilder(this); }
  769. public override Builder CreateBuilderForType() { return new Builder(); }
  770. public static Builder CreateBuilder(FileDescriptorProto prototype) {
  771. return new Builder(prototype);
  772. }
  773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  774. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  775. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  776. public sealed partial class Builder : pb::GeneratedBuilder<FileDescriptorProto, Builder> {
  777. protected override Builder ThisBuilder {
  778. get { return this; }
  779. }
  780. public Builder() {
  781. result = DefaultInstance;
  782. resultIsReadOnly = true;
  783. }
  784. internal Builder(FileDescriptorProto cloneFrom) {
  785. result = cloneFrom;
  786. resultIsReadOnly = true;
  787. }
  788. private bool resultIsReadOnly;
  789. private FileDescriptorProto result;
  790. private FileDescriptorProto PrepareBuilder() {
  791. if (resultIsReadOnly) {
  792. FileDescriptorProto original = result;
  793. result = new FileDescriptorProto();
  794. resultIsReadOnly = false;
  795. MergeFrom(original);
  796. }
  797. return result;
  798. }
  799. public override bool IsInitialized {
  800. get { return result.IsInitialized; }
  801. }
  802. protected override FileDescriptorProto MessageBeingBuilt {
  803. get { return PrepareBuilder(); }
  804. }
  805. public override Builder Clear() {
  806. result = DefaultInstance;
  807. resultIsReadOnly = true;
  808. return this;
  809. }
  810. public override Builder Clone() {
  811. if (resultIsReadOnly) {
  812. return new Builder(result);
  813. } else {
  814. return new Builder().MergeFrom(result);
  815. }
  816. }
  817. public override pbd::MessageDescriptor DescriptorForType {
  818. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.Descriptor; }
  819. }
  820. public override FileDescriptorProto DefaultInstanceForType {
  821. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.DefaultInstance; }
  822. }
  823. public override FileDescriptorProto BuildPartial() {
  824. if (resultIsReadOnly) {
  825. return result;
  826. }
  827. resultIsReadOnly = true;
  828. return result.MakeReadOnly();
  829. }
  830. public override Builder MergeFrom(pb::IMessage other) {
  831. if (other is FileDescriptorProto) {
  832. return MergeFrom((FileDescriptorProto) other);
  833. } else {
  834. base.MergeFrom(other);
  835. return this;
  836. }
  837. }
  838. public override Builder MergeFrom(FileDescriptorProto other) {
  839. if (other == global::Google.ProtocolBuffers.DescriptorProtos.FileDescriptorProto.DefaultInstance) return this;
  840. PrepareBuilder();
  841. if (other.HasName) {
  842. Name = other.Name;
  843. }
  844. if (other.HasPackage) {
  845. Package = other.Package;
  846. }
  847. if (other.dependency_.Count != 0) {
  848. result.dependency_.Add(other.dependency_);
  849. }
  850. if (other.messageType_.Count != 0) {
  851. result.messageType_.Add(other.messageType_);
  852. }
  853. if (other.enumType_.Count != 0) {
  854. result.enumType_.Add(other.enumType_);
  855. }
  856. if (other.service_.Count != 0) {
  857. result.service_.Add(other.service_);
  858. }
  859. if (other.extension_.Count != 0) {
  860. result.extension_.Add(other.extension_);
  861. }
  862. if (other.HasOptions) {
  863. MergeOptions(other.Options);
  864. }
  865. if (other.HasSourceCodeInfo) {
  866. MergeSourceCodeInfo(other.SourceCodeInfo);
  867. }
  868. this.MergeUnknownFields(other.UnknownFields);
  869. return this;
  870. }
  871. public override Builder MergeFrom(pb::ICodedInputStream input) {
  872. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  873. }
  874. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  875. PrepareBuilder();
  876. pb::UnknownFieldSet.Builder unknownFields = null;
  877. uint tag;
  878. string field_name;
  879. while (input.ReadTag(out tag, out field_name)) {
  880. if(tag == 0 && field_name != null) {
  881. int field_ordinal = global::System.Array.BinarySearch(_fileDescriptorProtoFieldNames, field_name, global::System.StringComparer.Ordinal);
  882. if(field_ordinal >= 0)
  883. tag = _fileDescriptorProtoFieldTags[field_ordinal];
  884. else {
  885. if (unknownFields == null) {
  886. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  887. }
  888. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  889. continue;
  890. }
  891. }
  892. switch (tag) {
  893. case 0: {
  894. throw pb::InvalidProtocolBufferException.InvalidTag();
  895. }
  896. default: {
  897. if (pb::WireFormat.IsEndGroupTag(tag)) {
  898. if (unknownFields != null) {
  899. this.UnknownFields = unknownFields.Build();
  900. }
  901. return this;
  902. }
  903. if (unknownFields == null) {
  904. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  905. }
  906. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  907. break;
  908. }
  909. case 10: {
  910. result.hasName = input.ReadString(ref result.name_);
  911. break;
  912. }
  913. case 18: {
  914. result.hasPackage = input.ReadString(ref result.package_);
  915. break;
  916. }
  917. case 26: {
  918. input.ReadStringArray(tag, field_name, result.dependency_);
  919. break;
  920. }
  921. case 34: {
  922. input.ReadMessageArray(tag, field_name, result.messageType_, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.DefaultInstance, extensionRegistry);
  923. break;
  924. }
  925. case 42: {
  926. input.ReadMessageArray(tag, field_name, result.enumType_, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.DefaultInstance, extensionRegistry);
  927. break;
  928. }
  929. case 50: {
  930. input.ReadMessageArray(tag, field_name, result.service_, global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.DefaultInstance, extensionRegistry);
  931. break;
  932. }
  933. case 58: {
  934. input.ReadMessageArray(tag, field_name, result.extension_, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.DefaultInstance, extensionRegistry);
  935. break;
  936. }
  937. case 66: {
  938. global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.CreateBuilder();
  939. if (result.hasOptions) {
  940. subBuilder.MergeFrom(Options);
  941. }
  942. input.ReadMessage(subBuilder, extensionRegistry);
  943. Options = subBuilder.BuildPartial();
  944. break;
  945. }
  946. case 74: {
  947. global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.CreateBuilder();
  948. if (result.hasSourceCodeInfo) {
  949. subBuilder.MergeFrom(SourceCodeInfo);
  950. }
  951. input.ReadMessage(subBuilder, extensionRegistry);
  952. SourceCodeInfo = subBuilder.BuildPartial();
  953. break;
  954. }
  955. }
  956. }
  957. if (unknownFields != null) {
  958. this.UnknownFields = unknownFields.Build();
  959. }
  960. return this;
  961. }
  962. public bool HasName {
  963. get { return result.hasName; }
  964. }
  965. public string Name {
  966. get { return result.Name; }
  967. set { SetName(value); }
  968. }
  969. public Builder SetName(string value) {
  970. pb::ThrowHelper.ThrowIfNull(value, "value");
  971. PrepareBuilder();
  972. result.hasName = true;
  973. result.name_ = value;
  974. return this;
  975. }
  976. public Builder ClearName() {
  977. PrepareBuilder();
  978. result.hasName = false;
  979. result.name_ = "";
  980. return this;
  981. }
  982. public bool HasPackage {
  983. get { return result.hasPackage; }
  984. }
  985. public string Package {
  986. get { return result.Package; }
  987. set { SetPackage(value); }
  988. }
  989. public Builder SetPackage(string value) {
  990. pb::ThrowHelper.ThrowIfNull(value, "value");
  991. PrepareBuilder();
  992. result.hasPackage = true;
  993. result.package_ = value;
  994. return this;
  995. }
  996. public Builder ClearPackage() {
  997. PrepareBuilder();
  998. result.hasPackage = false;
  999. result.package_ = "";
  1000. return this;
  1001. }
  1002. public pbc::IPopsicleList<string> DependencyList {
  1003. get { return PrepareBuilder().dependency_; }
  1004. }
  1005. public int DependencyCount {
  1006. get { return result.DependencyCount; }
  1007. }
  1008. public string GetDependency(int index) {
  1009. return result.GetDependency(index);
  1010. }
  1011. public Builder SetDependency(int index, string value) {
  1012. pb::ThrowHelper.ThrowIfNull(value, "value");
  1013. PrepareBuilder();
  1014. result.dependency_[index] = value;
  1015. return this;
  1016. }
  1017. public Builder AddDependency(string value) {
  1018. pb::ThrowHelper.ThrowIfNull(value, "value");
  1019. PrepareBuilder();
  1020. result.dependency_.Add(value);
  1021. return this;
  1022. }
  1023. public Builder AddRangeDependency(scg::IEnumerable<string> values) {
  1024. PrepareBuilder();
  1025. result.dependency_.Add(values);
  1026. return this;
  1027. }
  1028. public Builder ClearDependency() {
  1029. PrepareBuilder();
  1030. result.dependency_.Clear();
  1031. return this;
  1032. }
  1033. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> MessageTypeList {
  1034. get { return PrepareBuilder().messageType_; }
  1035. }
  1036. public int MessageTypeCount {
  1037. get { return result.MessageTypeCount; }
  1038. }
  1039. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto GetMessageType(int index) {
  1040. return result.GetMessageType(index);
  1041. }
  1042. public Builder SetMessageType(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto value) {
  1043. pb::ThrowHelper.ThrowIfNull(value, "value");
  1044. PrepareBuilder();
  1045. result.messageType_[index] = value;
  1046. return this;
  1047. }
  1048. public Builder SetMessageType(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder builderForValue) {
  1049. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1050. PrepareBuilder();
  1051. result.messageType_[index] = builderForValue.Build();
  1052. return this;
  1053. }
  1054. public Builder AddMessageType(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto value) {
  1055. pb::ThrowHelper.ThrowIfNull(value, "value");
  1056. PrepareBuilder();
  1057. result.messageType_.Add(value);
  1058. return this;
  1059. }
  1060. public Builder AddMessageType(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder builderForValue) {
  1061. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1062. PrepareBuilder();
  1063. result.messageType_.Add(builderForValue.Build());
  1064. return this;
  1065. }
  1066. public Builder AddRangeMessageType(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> values) {
  1067. PrepareBuilder();
  1068. result.messageType_.Add(values);
  1069. return this;
  1070. }
  1071. public Builder ClearMessageType() {
  1072. PrepareBuilder();
  1073. result.messageType_.Clear();
  1074. return this;
  1075. }
  1076. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> EnumTypeList {
  1077. get { return PrepareBuilder().enumType_; }
  1078. }
  1079. public int EnumTypeCount {
  1080. get { return result.EnumTypeCount; }
  1081. }
  1082. public global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto GetEnumType(int index) {
  1083. return result.GetEnumType(index);
  1084. }
  1085. public Builder SetEnumType(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto value) {
  1086. pb::ThrowHelper.ThrowIfNull(value, "value");
  1087. PrepareBuilder();
  1088. result.enumType_[index] = value;
  1089. return this;
  1090. }
  1091. public Builder SetEnumType(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
  1092. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1093. PrepareBuilder();
  1094. result.enumType_[index] = builderForValue.Build();
  1095. return this;
  1096. }
  1097. public Builder AddEnumType(global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto value) {
  1098. pb::ThrowHelper.ThrowIfNull(value, "value");
  1099. PrepareBuilder();
  1100. result.enumType_.Add(value);
  1101. return this;
  1102. }
  1103. public Builder AddEnumType(global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
  1104. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1105. PrepareBuilder();
  1106. result.enumType_.Add(builderForValue.Build());
  1107. return this;
  1108. }
  1109. public Builder AddRangeEnumType(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> values) {
  1110. PrepareBuilder();
  1111. result.enumType_.Add(values);
  1112. return this;
  1113. }
  1114. public Builder ClearEnumType() {
  1115. PrepareBuilder();
  1116. result.enumType_.Clear();
  1117. return this;
  1118. }
  1119. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto> ServiceList {
  1120. get { return PrepareBuilder().service_; }
  1121. }
  1122. public int ServiceCount {
  1123. get { return result.ServiceCount; }
  1124. }
  1125. public global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto GetService(int index) {
  1126. return result.GetService(index);
  1127. }
  1128. public Builder SetService(int index, global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto value) {
  1129. pb::ThrowHelper.ThrowIfNull(value, "value");
  1130. PrepareBuilder();
  1131. result.service_[index] = value;
  1132. return this;
  1133. }
  1134. public Builder SetService(int index, global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) {
  1135. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1136. PrepareBuilder();
  1137. result.service_[index] = builderForValue.Build();
  1138. return this;
  1139. }
  1140. public Builder AddService(global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto value) {
  1141. pb::ThrowHelper.ThrowIfNull(value, "value");
  1142. PrepareBuilder();
  1143. result.service_.Add(value);
  1144. return this;
  1145. }
  1146. public Builder AddService(global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.Builder builderForValue) {
  1147. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1148. PrepareBuilder();
  1149. result.service_.Add(builderForValue.Build());
  1150. return this;
  1151. }
  1152. public Builder AddRangeService(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto> values) {
  1153. PrepareBuilder();
  1154. result.service_.Add(values);
  1155. return this;
  1156. }
  1157. public Builder ClearService() {
  1158. PrepareBuilder();
  1159. result.service_.Clear();
  1160. return this;
  1161. }
  1162. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> ExtensionList {
  1163. get { return PrepareBuilder().extension_; }
  1164. }
  1165. public int ExtensionCount {
  1166. get { return result.ExtensionCount; }
  1167. }
  1168. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetExtension(int index) {
  1169. return result.GetExtension(index);
  1170. }
  1171. public Builder SetExtension(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  1172. pb::ThrowHelper.ThrowIfNull(value, "value");
  1173. PrepareBuilder();
  1174. result.extension_[index] = value;
  1175. return this;
  1176. }
  1177. public Builder SetExtension(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  1178. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1179. PrepareBuilder();
  1180. result.extension_[index] = builderForValue.Build();
  1181. return this;
  1182. }
  1183. public Builder AddExtension(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  1184. pb::ThrowHelper.ThrowIfNull(value, "value");
  1185. PrepareBuilder();
  1186. result.extension_.Add(value);
  1187. return this;
  1188. }
  1189. public Builder AddExtension(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  1190. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1191. PrepareBuilder();
  1192. result.extension_.Add(builderForValue.Build());
  1193. return this;
  1194. }
  1195. public Builder AddRangeExtension(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> values) {
  1196. PrepareBuilder();
  1197. result.extension_.Add(values);
  1198. return this;
  1199. }
  1200. public Builder ClearExtension() {
  1201. PrepareBuilder();
  1202. result.extension_.Clear();
  1203. return this;
  1204. }
  1205. public bool HasOptions {
  1206. get { return result.hasOptions; }
  1207. }
  1208. public global::Google.ProtocolBuffers.DescriptorProtos.FileOptions Options {
  1209. get { return result.Options; }
  1210. set { SetOptions(value); }
  1211. }
  1212. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.FileOptions value) {
  1213. pb::ThrowHelper.ThrowIfNull(value, "value");
  1214. PrepareBuilder();
  1215. result.hasOptions = true;
  1216. result.options_ = value;
  1217. return this;
  1218. }
  1219. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Builder builderForValue) {
  1220. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1221. PrepareBuilder();
  1222. result.hasOptions = true;
  1223. result.options_ = builderForValue.Build();
  1224. return this;
  1225. }
  1226. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.FileOptions value) {
  1227. pb::ThrowHelper.ThrowIfNull(value, "value");
  1228. PrepareBuilder();
  1229. if (result.hasOptions &&
  1230. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.DefaultInstance) {
  1231. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  1232. } else {
  1233. result.options_ = value;
  1234. }
  1235. result.hasOptions = true;
  1236. return this;
  1237. }
  1238. public Builder ClearOptions() {
  1239. PrepareBuilder();
  1240. result.hasOptions = false;
  1241. result.options_ = null;
  1242. return this;
  1243. }
  1244. public bool HasSourceCodeInfo {
  1245. get { return result.hasSourceCodeInfo; }
  1246. }
  1247. public global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo SourceCodeInfo {
  1248. get { return result.SourceCodeInfo; }
  1249. set { SetSourceCodeInfo(value); }
  1250. }
  1251. public Builder SetSourceCodeInfo(global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo value) {
  1252. pb::ThrowHelper.ThrowIfNull(value, "value");
  1253. PrepareBuilder();
  1254. result.hasSourceCodeInfo = true;
  1255. result.sourceCodeInfo_ = value;
  1256. return this;
  1257. }
  1258. public Builder SetSourceCodeInfo(global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Builder builderForValue) {
  1259. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  1260. PrepareBuilder();
  1261. result.hasSourceCodeInfo = true;
  1262. result.sourceCodeInfo_ = builderForValue.Build();
  1263. return this;
  1264. }
  1265. public Builder MergeSourceCodeInfo(global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo value) {
  1266. pb::ThrowHelper.ThrowIfNull(value, "value");
  1267. PrepareBuilder();
  1268. if (result.hasSourceCodeInfo &&
  1269. result.sourceCodeInfo_ != global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.DefaultInstance) {
  1270. result.sourceCodeInfo_ = global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.CreateBuilder(result.sourceCodeInfo_).MergeFrom(value).BuildPartial();
  1271. } else {
  1272. result.sourceCodeInfo_ = value;
  1273. }
  1274. result.hasSourceCodeInfo = true;
  1275. return this;
  1276. }
  1277. public Builder ClearSourceCodeInfo() {
  1278. PrepareBuilder();
  1279. result.hasSourceCodeInfo = false;
  1280. result.sourceCodeInfo_ = null;
  1281. return this;
  1282. }
  1283. }
  1284. static FileDescriptorProto() {
  1285. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  1286. }
  1287. }
  1288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1289. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  1291. public sealed partial class DescriptorProto : pb::GeneratedMessage<DescriptorProto, DescriptorProto.Builder> {
  1292. private DescriptorProto() { }
  1293. private static readonly DescriptorProto defaultInstance = new DescriptorProto().MakeReadOnly();
  1294. private static readonly string[] _descriptorProtoFieldNames = new string[] { "enum_type", "extension", "extension_range", "field", "name", "nested_type", "options" };
  1295. private static readonly uint[] _descriptorProtoFieldTags = new uint[] { 34, 50, 42, 18, 10, 26, 58 };
  1296. public static DescriptorProto DefaultInstance {
  1297. get { return defaultInstance; }
  1298. }
  1299. public override DescriptorProto DefaultInstanceForType {
  1300. get { return DefaultInstance; }
  1301. }
  1302. protected override DescriptorProto ThisMessage {
  1303. get { return this; }
  1304. }
  1305. public static pbd::MessageDescriptor Descriptor {
  1306. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_DescriptorProto__Descriptor; }
  1307. }
  1308. protected override pb::FieldAccess.FieldAccessorTable<DescriptorProto, DescriptorProto.Builder> InternalFieldAccessors {
  1309. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_DescriptorProto__FieldAccessorTable; }
  1310. }
  1311. #region Nested types
  1312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1313. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  1315. public static class Types {
  1316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1317. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  1319. public sealed partial class ExtensionRange : pb::GeneratedMessage<ExtensionRange, ExtensionRange.Builder> {
  1320. private ExtensionRange() { }
  1321. private static readonly ExtensionRange defaultInstance = new ExtensionRange().MakeReadOnly();
  1322. private static readonly string[] _extensionRangeFieldNames = new string[] { "end", "start" };
  1323. private static readonly uint[] _extensionRangeFieldTags = new uint[] { 16, 8 };
  1324. public static ExtensionRange DefaultInstance {
  1325. get { return defaultInstance; }
  1326. }
  1327. public override ExtensionRange DefaultInstanceForType {
  1328. get { return DefaultInstance; }
  1329. }
  1330. protected override ExtensionRange ThisMessage {
  1331. get { return this; }
  1332. }
  1333. public static pbd::MessageDescriptor Descriptor {
  1334. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_DescriptorProto_ExtensionRange__Descriptor; }
  1335. }
  1336. protected override pb::FieldAccess.FieldAccessorTable<ExtensionRange, ExtensionRange.Builder> InternalFieldAccessors {
  1337. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_DescriptorProto_ExtensionRange__FieldAccessorTable; }
  1338. }
  1339. public const int StartFieldNumber = 1;
  1340. private bool hasStart;
  1341. private int start_;
  1342. public bool HasStart {
  1343. get { return hasStart; }
  1344. }
  1345. public int Start {
  1346. get { return start_; }
  1347. }
  1348. public const int EndFieldNumber = 2;
  1349. private bool hasEnd;
  1350. private int end_;
  1351. public bool HasEnd {
  1352. get { return hasEnd; }
  1353. }
  1354. public int End {
  1355. get { return end_; }
  1356. }
  1357. public override bool IsInitialized {
  1358. get {
  1359. return true;
  1360. }
  1361. }
  1362. public override void WriteTo(pb::ICodedOutputStream output) {
  1363. int size = SerializedSize;
  1364. string[] field_names = _extensionRangeFieldNames;
  1365. if (hasStart) {
  1366. output.WriteInt32(1, field_names[1], Start);
  1367. }
  1368. if (hasEnd) {
  1369. output.WriteInt32(2, field_names[0], End);
  1370. }
  1371. UnknownFields.WriteTo(output);
  1372. }
  1373. private int memoizedSerializedSize = -1;
  1374. public override int SerializedSize {
  1375. get {
  1376. int size = memoizedSerializedSize;
  1377. if (size != -1) return size;
  1378. size = 0;
  1379. if (hasStart) {
  1380. size += pb::CodedOutputStream.ComputeInt32Size(1, Start);
  1381. }
  1382. if (hasEnd) {
  1383. size += pb::CodedOutputStream.ComputeInt32Size(2, End);
  1384. }
  1385. size += UnknownFields.SerializedSize;
  1386. memoizedSerializedSize = size;
  1387. return size;
  1388. }
  1389. }
  1390. public static ExtensionRange ParseFrom(pb::ByteString data) {
  1391. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1392. }
  1393. public static ExtensionRange ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1394. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1395. }
  1396. public static ExtensionRange ParseFrom(byte[] data) {
  1397. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1398. }
  1399. public static ExtensionRange ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1400. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1401. }
  1402. public static ExtensionRange ParseFrom(global::System.IO.Stream input) {
  1403. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1404. }
  1405. public static ExtensionRange ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1406. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1407. }
  1408. public static ExtensionRange ParseDelimitedFrom(global::System.IO.Stream input) {
  1409. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1410. }
  1411. public static ExtensionRange ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1412. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1413. }
  1414. public static ExtensionRange ParseFrom(pb::ICodedInputStream input) {
  1415. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1416. }
  1417. public static ExtensionRange ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1418. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1419. }
  1420. private ExtensionRange MakeReadOnly() {
  1421. return this;
  1422. }
  1423. public static Builder CreateBuilder() { return new Builder(); }
  1424. public override Builder ToBuilder() { return CreateBuilder(this); }
  1425. public override Builder CreateBuilderForType() { return new Builder(); }
  1426. public static Builder CreateBuilder(ExtensionRange prototype) {
  1427. return new Builder(prototype);
  1428. }
  1429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1430. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  1432. public sealed partial class Builder : pb::GeneratedBuilder<ExtensionRange, Builder> {
  1433. protected override Builder ThisBuilder {
  1434. get { return this; }
  1435. }
  1436. public Builder() {
  1437. result = DefaultInstance;
  1438. resultIsReadOnly = true;
  1439. }
  1440. internal Builder(ExtensionRange cloneFrom) {
  1441. result = cloneFrom;
  1442. resultIsReadOnly = true;
  1443. }
  1444. private bool resultIsReadOnly;
  1445. private ExtensionRange result;
  1446. private ExtensionRange PrepareBuilder() {
  1447. if (resultIsReadOnly) {
  1448. ExtensionRange original = result;
  1449. result = new ExtensionRange();
  1450. resultIsReadOnly = false;
  1451. MergeFrom(original);
  1452. }
  1453. return result;
  1454. }
  1455. public override bool IsInitialized {
  1456. get { return result.IsInitialized; }
  1457. }
  1458. protected override ExtensionRange MessageBeingBuilt {
  1459. get { return PrepareBuilder(); }
  1460. }
  1461. public override Builder Clear() {
  1462. result = DefaultInstance;
  1463. resultIsReadOnly = true;
  1464. return this;
  1465. }
  1466. public override Builder Clone() {
  1467. if (resultIsReadOnly) {
  1468. return new Builder(result);
  1469. } else {
  1470. return new Builder().MergeFrom(result);
  1471. }
  1472. }
  1473. public override pbd::MessageDescriptor DescriptorForType {
  1474. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Descriptor; }
  1475. }
  1476. public override ExtensionRange DefaultInstanceForType {
  1477. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.DefaultInstance; }
  1478. }
  1479. public override ExtensionRange BuildPartial() {
  1480. if (resultIsReadOnly) {
  1481. return result;
  1482. }
  1483. resultIsReadOnly = true;
  1484. return result.MakeReadOnly();
  1485. }
  1486. public override Builder MergeFrom(pb::IMessage other) {
  1487. if (other is ExtensionRange) {
  1488. return MergeFrom((ExtensionRange) other);
  1489. } else {
  1490. base.MergeFrom(other);
  1491. return this;
  1492. }
  1493. }
  1494. public override Builder MergeFrom(ExtensionRange other) {
  1495. if (other == global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.DefaultInstance) return this;
  1496. PrepareBuilder();
  1497. if (other.HasStart) {
  1498. Start = other.Start;
  1499. }
  1500. if (other.HasEnd) {
  1501. End = other.End;
  1502. }
  1503. this.MergeUnknownFields(other.UnknownFields);
  1504. return this;
  1505. }
  1506. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1507. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1508. }
  1509. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1510. PrepareBuilder();
  1511. pb::UnknownFieldSet.Builder unknownFields = null;
  1512. uint tag;
  1513. string field_name;
  1514. while (input.ReadTag(out tag, out field_name)) {
  1515. if(tag == 0 && field_name != null) {
  1516. int field_ordinal = global::System.Array.BinarySearch(_extensionRangeFieldNames, field_name, global::System.StringComparer.Ordinal);
  1517. if(field_ordinal >= 0)
  1518. tag = _extensionRangeFieldTags[field_ordinal];
  1519. else {
  1520. if (unknownFields == null) {
  1521. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1522. }
  1523. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1524. continue;
  1525. }
  1526. }
  1527. switch (tag) {
  1528. case 0: {
  1529. throw pb::InvalidProtocolBufferException.InvalidTag();
  1530. }
  1531. default: {
  1532. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1533. if (unknownFields != null) {
  1534. this.UnknownFields = unknownFields.Build();
  1535. }
  1536. return this;
  1537. }
  1538. if (unknownFields == null) {
  1539. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1540. }
  1541. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1542. break;
  1543. }
  1544. case 8: {
  1545. result.hasStart = input.ReadInt32(ref result.start_);
  1546. break;
  1547. }
  1548. case 16: {
  1549. result.hasEnd = input.ReadInt32(ref result.end_);
  1550. break;
  1551. }
  1552. }
  1553. }
  1554. if (unknownFields != null) {
  1555. this.UnknownFields = unknownFields.Build();
  1556. }
  1557. return this;
  1558. }
  1559. public bool HasStart {
  1560. get { return result.hasStart; }
  1561. }
  1562. public int Start {
  1563. get { return result.Start; }
  1564. set { SetStart(value); }
  1565. }
  1566. public Builder SetStart(int value) {
  1567. PrepareBuilder();
  1568. result.hasStart = true;
  1569. result.start_ = value;
  1570. return this;
  1571. }
  1572. public Builder ClearStart() {
  1573. PrepareBuilder();
  1574. result.hasStart = false;
  1575. result.start_ = 0;
  1576. return this;
  1577. }
  1578. public bool HasEnd {
  1579. get { return result.hasEnd; }
  1580. }
  1581. public int End {
  1582. get { return result.End; }
  1583. set { SetEnd(value); }
  1584. }
  1585. public Builder SetEnd(int value) {
  1586. PrepareBuilder();
  1587. result.hasEnd = true;
  1588. result.end_ = value;
  1589. return this;
  1590. }
  1591. public Builder ClearEnd() {
  1592. PrepareBuilder();
  1593. result.hasEnd = false;
  1594. result.end_ = 0;
  1595. return this;
  1596. }
  1597. }
  1598. static ExtensionRange() {
  1599. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  1600. }
  1601. }
  1602. }
  1603. #endregion
  1604. public const int NameFieldNumber = 1;
  1605. private bool hasName;
  1606. private string name_ = "";
  1607. public bool HasName {
  1608. get { return hasName; }
  1609. }
  1610. public string Name {
  1611. get { return name_; }
  1612. }
  1613. public const int FieldFieldNumber = 2;
  1614. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> field_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1615. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> FieldList {
  1616. get { return field_; }
  1617. }
  1618. public int FieldCount {
  1619. get { return field_.Count; }
  1620. }
  1621. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetField(int index) {
  1622. return field_[index];
  1623. }
  1624. public const int ExtensionFieldNumber = 6;
  1625. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> extension_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto>();
  1626. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> ExtensionList {
  1627. get { return extension_; }
  1628. }
  1629. public int ExtensionCount {
  1630. get { return extension_.Count; }
  1631. }
  1632. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetExtension(int index) {
  1633. return extension_[index];
  1634. }
  1635. public const int NestedTypeFieldNumber = 3;
  1636. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> nestedType_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto>();
  1637. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> NestedTypeList {
  1638. get { return nestedType_; }
  1639. }
  1640. public int NestedTypeCount {
  1641. get { return nestedType_.Count; }
  1642. }
  1643. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto GetNestedType(int index) {
  1644. return nestedType_[index];
  1645. }
  1646. public const int EnumTypeFieldNumber = 4;
  1647. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> enumType_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto>();
  1648. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> EnumTypeList {
  1649. get { return enumType_; }
  1650. }
  1651. public int EnumTypeCount {
  1652. get { return enumType_.Count; }
  1653. }
  1654. public global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto GetEnumType(int index) {
  1655. return enumType_[index];
  1656. }
  1657. public const int ExtensionRangeFieldNumber = 5;
  1658. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange>();
  1659. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange> ExtensionRangeList {
  1660. get { return extensionRange_; }
  1661. }
  1662. public int ExtensionRangeCount {
  1663. get { return extensionRange_.Count; }
  1664. }
  1665. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange GetExtensionRange(int index) {
  1666. return extensionRange_[index];
  1667. }
  1668. public const int OptionsFieldNumber = 7;
  1669. private bool hasOptions;
  1670. private global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions options_;
  1671. public bool HasOptions {
  1672. get { return hasOptions; }
  1673. }
  1674. public global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions Options {
  1675. get { return options_ ?? global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.DefaultInstance; }
  1676. }
  1677. public override bool IsInitialized {
  1678. get {
  1679. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in FieldList) {
  1680. if (!element.IsInitialized) return false;
  1681. }
  1682. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in ExtensionList) {
  1683. if (!element.IsInitialized) return false;
  1684. }
  1685. foreach (global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto element in NestedTypeList) {
  1686. if (!element.IsInitialized) return false;
  1687. }
  1688. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto element in EnumTypeList) {
  1689. if (!element.IsInitialized) return false;
  1690. }
  1691. if (HasOptions) {
  1692. if (!Options.IsInitialized) return false;
  1693. }
  1694. return true;
  1695. }
  1696. }
  1697. public override void WriteTo(pb::ICodedOutputStream output) {
  1698. int size = SerializedSize;
  1699. string[] field_names = _descriptorProtoFieldNames;
  1700. if (hasName) {
  1701. output.WriteString(1, field_names[4], Name);
  1702. }
  1703. if (field_.Count > 0) {
  1704. output.WriteMessageArray(2, field_names[3], field_);
  1705. }
  1706. if (nestedType_.Count > 0) {
  1707. output.WriteMessageArray(3, field_names[5], nestedType_);
  1708. }
  1709. if (enumType_.Count > 0) {
  1710. output.WriteMessageArray(4, field_names[0], enumType_);
  1711. }
  1712. if (extensionRange_.Count > 0) {
  1713. output.WriteMessageArray(5, field_names[2], extensionRange_);
  1714. }
  1715. if (extension_.Count > 0) {
  1716. output.WriteMessageArray(6, field_names[1], extension_);
  1717. }
  1718. if (hasOptions) {
  1719. output.WriteMessage(7, field_names[6], Options);
  1720. }
  1721. UnknownFields.WriteTo(output);
  1722. }
  1723. private int memoizedSerializedSize = -1;
  1724. public override int SerializedSize {
  1725. get {
  1726. int size = memoizedSerializedSize;
  1727. if (size != -1) return size;
  1728. size = 0;
  1729. if (hasName) {
  1730. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  1731. }
  1732. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in FieldList) {
  1733. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  1734. }
  1735. foreach (global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto element in ExtensionList) {
  1736. size += pb::CodedOutputStream.ComputeMessageSize(6, element);
  1737. }
  1738. foreach (global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto element in NestedTypeList) {
  1739. size += pb::CodedOutputStream.ComputeMessageSize(3, element);
  1740. }
  1741. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto element in EnumTypeList) {
  1742. size += pb::CodedOutputStream.ComputeMessageSize(4, element);
  1743. }
  1744. foreach (global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange element in ExtensionRangeList) {
  1745. size += pb::CodedOutputStream.ComputeMessageSize(5, element);
  1746. }
  1747. if (hasOptions) {
  1748. size += pb::CodedOutputStream.ComputeMessageSize(7, Options);
  1749. }
  1750. size += UnknownFields.SerializedSize;
  1751. memoizedSerializedSize = size;
  1752. return size;
  1753. }
  1754. }
  1755. public static DescriptorProto ParseFrom(pb::ByteString data) {
  1756. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1757. }
  1758. public static DescriptorProto ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1759. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1760. }
  1761. public static DescriptorProto ParseFrom(byte[] data) {
  1762. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1763. }
  1764. public static DescriptorProto ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1765. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1766. }
  1767. public static DescriptorProto ParseFrom(global::System.IO.Stream input) {
  1768. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1769. }
  1770. public static DescriptorProto ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1771. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1772. }
  1773. public static DescriptorProto ParseDelimitedFrom(global::System.IO.Stream input) {
  1774. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1775. }
  1776. public static DescriptorProto ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1777. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1778. }
  1779. public static DescriptorProto ParseFrom(pb::ICodedInputStream input) {
  1780. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1781. }
  1782. public static DescriptorProto ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1783. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1784. }
  1785. private DescriptorProto MakeReadOnly() {
  1786. field_.MakeReadOnly();
  1787. extension_.MakeReadOnly();
  1788. nestedType_.MakeReadOnly();
  1789. enumType_.MakeReadOnly();
  1790. extensionRange_.MakeReadOnly();
  1791. return this;
  1792. }
  1793. public static Builder CreateBuilder() { return new Builder(); }
  1794. public override Builder ToBuilder() { return CreateBuilder(this); }
  1795. public override Builder CreateBuilderForType() { return new Builder(); }
  1796. public static Builder CreateBuilder(DescriptorProto prototype) {
  1797. return new Builder(prototype);
  1798. }
  1799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1800. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  1802. public sealed partial class Builder : pb::GeneratedBuilder<DescriptorProto, Builder> {
  1803. protected override Builder ThisBuilder {
  1804. get { return this; }
  1805. }
  1806. public Builder() {
  1807. result = DefaultInstance;
  1808. resultIsReadOnly = true;
  1809. }
  1810. internal Builder(DescriptorProto cloneFrom) {
  1811. result = cloneFrom;
  1812. resultIsReadOnly = true;
  1813. }
  1814. private bool resultIsReadOnly;
  1815. private DescriptorProto result;
  1816. private DescriptorProto PrepareBuilder() {
  1817. if (resultIsReadOnly) {
  1818. DescriptorProto original = result;
  1819. result = new DescriptorProto();
  1820. resultIsReadOnly = false;
  1821. MergeFrom(original);
  1822. }
  1823. return result;
  1824. }
  1825. public override bool IsInitialized {
  1826. get { return result.IsInitialized; }
  1827. }
  1828. protected override DescriptorProto MessageBeingBuilt {
  1829. get { return PrepareBuilder(); }
  1830. }
  1831. public override Builder Clear() {
  1832. result = DefaultInstance;
  1833. resultIsReadOnly = true;
  1834. return this;
  1835. }
  1836. public override Builder Clone() {
  1837. if (resultIsReadOnly) {
  1838. return new Builder(result);
  1839. } else {
  1840. return new Builder().MergeFrom(result);
  1841. }
  1842. }
  1843. public override pbd::MessageDescriptor DescriptorForType {
  1844. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Descriptor; }
  1845. }
  1846. public override DescriptorProto DefaultInstanceForType {
  1847. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.DefaultInstance; }
  1848. }
  1849. public override DescriptorProto BuildPartial() {
  1850. if (resultIsReadOnly) {
  1851. return result;
  1852. }
  1853. resultIsReadOnly = true;
  1854. return result.MakeReadOnly();
  1855. }
  1856. public override Builder MergeFrom(pb::IMessage other) {
  1857. if (other is DescriptorProto) {
  1858. return MergeFrom((DescriptorProto) other);
  1859. } else {
  1860. base.MergeFrom(other);
  1861. return this;
  1862. }
  1863. }
  1864. public override Builder MergeFrom(DescriptorProto other) {
  1865. if (other == global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.DefaultInstance) return this;
  1866. PrepareBuilder();
  1867. if (other.HasName) {
  1868. Name = other.Name;
  1869. }
  1870. if (other.field_.Count != 0) {
  1871. result.field_.Add(other.field_);
  1872. }
  1873. if (other.extension_.Count != 0) {
  1874. result.extension_.Add(other.extension_);
  1875. }
  1876. if (other.nestedType_.Count != 0) {
  1877. result.nestedType_.Add(other.nestedType_);
  1878. }
  1879. if (other.enumType_.Count != 0) {
  1880. result.enumType_.Add(other.enumType_);
  1881. }
  1882. if (other.extensionRange_.Count != 0) {
  1883. result.extensionRange_.Add(other.extensionRange_);
  1884. }
  1885. if (other.HasOptions) {
  1886. MergeOptions(other.Options);
  1887. }
  1888. this.MergeUnknownFields(other.UnknownFields);
  1889. return this;
  1890. }
  1891. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1892. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1893. }
  1894. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1895. PrepareBuilder();
  1896. pb::UnknownFieldSet.Builder unknownFields = null;
  1897. uint tag;
  1898. string field_name;
  1899. while (input.ReadTag(out tag, out field_name)) {
  1900. if(tag == 0 && field_name != null) {
  1901. int field_ordinal = global::System.Array.BinarySearch(_descriptorProtoFieldNames, field_name, global::System.StringComparer.Ordinal);
  1902. if(field_ordinal >= 0)
  1903. tag = _descriptorProtoFieldTags[field_ordinal];
  1904. else {
  1905. if (unknownFields == null) {
  1906. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1907. }
  1908. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1909. continue;
  1910. }
  1911. }
  1912. switch (tag) {
  1913. case 0: {
  1914. throw pb::InvalidProtocolBufferException.InvalidTag();
  1915. }
  1916. default: {
  1917. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1918. if (unknownFields != null) {
  1919. this.UnknownFields = unknownFields.Build();
  1920. }
  1921. return this;
  1922. }
  1923. if (unknownFields == null) {
  1924. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1925. }
  1926. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1927. break;
  1928. }
  1929. case 10: {
  1930. result.hasName = input.ReadString(ref result.name_);
  1931. break;
  1932. }
  1933. case 18: {
  1934. input.ReadMessageArray(tag, field_name, result.field_, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.DefaultInstance, extensionRegistry);
  1935. break;
  1936. }
  1937. case 26: {
  1938. input.ReadMessageArray(tag, field_name, result.nestedType_, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.DefaultInstance, extensionRegistry);
  1939. break;
  1940. }
  1941. case 34: {
  1942. input.ReadMessageArray(tag, field_name, result.enumType_, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.DefaultInstance, extensionRegistry);
  1943. break;
  1944. }
  1945. case 42: {
  1946. input.ReadMessageArray(tag, field_name, result.extensionRange_, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.DefaultInstance, extensionRegistry);
  1947. break;
  1948. }
  1949. case 50: {
  1950. input.ReadMessageArray(tag, field_name, result.extension_, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.DefaultInstance, extensionRegistry);
  1951. break;
  1952. }
  1953. case 58: {
  1954. global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.CreateBuilder();
  1955. if (result.hasOptions) {
  1956. subBuilder.MergeFrom(Options);
  1957. }
  1958. input.ReadMessage(subBuilder, extensionRegistry);
  1959. Options = subBuilder.BuildPartial();
  1960. break;
  1961. }
  1962. }
  1963. }
  1964. if (unknownFields != null) {
  1965. this.UnknownFields = unknownFields.Build();
  1966. }
  1967. return this;
  1968. }
  1969. public bool HasName {
  1970. get { return result.hasName; }
  1971. }
  1972. public string Name {
  1973. get { return result.Name; }
  1974. set { SetName(value); }
  1975. }
  1976. public Builder SetName(string value) {
  1977. pb::ThrowHelper.ThrowIfNull(value, "value");
  1978. PrepareBuilder();
  1979. result.hasName = true;
  1980. result.name_ = value;
  1981. return this;
  1982. }
  1983. public Builder ClearName() {
  1984. PrepareBuilder();
  1985. result.hasName = false;
  1986. result.name_ = "";
  1987. return this;
  1988. }
  1989. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> FieldList {
  1990. get { return PrepareBuilder().field_; }
  1991. }
  1992. public int FieldCount {
  1993. get { return result.FieldCount; }
  1994. }
  1995. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetField(int index) {
  1996. return result.GetField(index);
  1997. }
  1998. public Builder SetField(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  1999. pb::ThrowHelper.ThrowIfNull(value, "value");
  2000. PrepareBuilder();
  2001. result.field_[index] = value;
  2002. return this;
  2003. }
  2004. public Builder SetField(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  2005. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2006. PrepareBuilder();
  2007. result.field_[index] = builderForValue.Build();
  2008. return this;
  2009. }
  2010. public Builder AddField(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  2011. pb::ThrowHelper.ThrowIfNull(value, "value");
  2012. PrepareBuilder();
  2013. result.field_.Add(value);
  2014. return this;
  2015. }
  2016. public Builder AddField(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  2017. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2018. PrepareBuilder();
  2019. result.field_.Add(builderForValue.Build());
  2020. return this;
  2021. }
  2022. public Builder AddRangeField(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> values) {
  2023. PrepareBuilder();
  2024. result.field_.Add(values);
  2025. return this;
  2026. }
  2027. public Builder ClearField() {
  2028. PrepareBuilder();
  2029. result.field_.Clear();
  2030. return this;
  2031. }
  2032. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> ExtensionList {
  2033. get { return PrepareBuilder().extension_; }
  2034. }
  2035. public int ExtensionCount {
  2036. get { return result.ExtensionCount; }
  2037. }
  2038. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto GetExtension(int index) {
  2039. return result.GetExtension(index);
  2040. }
  2041. public Builder SetExtension(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  2042. pb::ThrowHelper.ThrowIfNull(value, "value");
  2043. PrepareBuilder();
  2044. result.extension_[index] = value;
  2045. return this;
  2046. }
  2047. public Builder SetExtension(int index, global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  2048. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2049. PrepareBuilder();
  2050. result.extension_[index] = builderForValue.Build();
  2051. return this;
  2052. }
  2053. public Builder AddExtension(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto value) {
  2054. pb::ThrowHelper.ThrowIfNull(value, "value");
  2055. PrepareBuilder();
  2056. result.extension_.Add(value);
  2057. return this;
  2058. }
  2059. public Builder AddExtension(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Builder builderForValue) {
  2060. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2061. PrepareBuilder();
  2062. result.extension_.Add(builderForValue.Build());
  2063. return this;
  2064. }
  2065. public Builder AddRangeExtension(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto> values) {
  2066. PrepareBuilder();
  2067. result.extension_.Add(values);
  2068. return this;
  2069. }
  2070. public Builder ClearExtension() {
  2071. PrepareBuilder();
  2072. result.extension_.Clear();
  2073. return this;
  2074. }
  2075. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> NestedTypeList {
  2076. get { return PrepareBuilder().nestedType_; }
  2077. }
  2078. public int NestedTypeCount {
  2079. get { return result.NestedTypeCount; }
  2080. }
  2081. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto GetNestedType(int index) {
  2082. return result.GetNestedType(index);
  2083. }
  2084. public Builder SetNestedType(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto value) {
  2085. pb::ThrowHelper.ThrowIfNull(value, "value");
  2086. PrepareBuilder();
  2087. result.nestedType_[index] = value;
  2088. return this;
  2089. }
  2090. public Builder SetNestedType(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder builderForValue) {
  2091. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2092. PrepareBuilder();
  2093. result.nestedType_[index] = builderForValue.Build();
  2094. return this;
  2095. }
  2096. public Builder AddNestedType(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto value) {
  2097. pb::ThrowHelper.ThrowIfNull(value, "value");
  2098. PrepareBuilder();
  2099. result.nestedType_.Add(value);
  2100. return this;
  2101. }
  2102. public Builder AddNestedType(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Builder builderForValue) {
  2103. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2104. PrepareBuilder();
  2105. result.nestedType_.Add(builderForValue.Build());
  2106. return this;
  2107. }
  2108. public Builder AddRangeNestedType(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto> values) {
  2109. PrepareBuilder();
  2110. result.nestedType_.Add(values);
  2111. return this;
  2112. }
  2113. public Builder ClearNestedType() {
  2114. PrepareBuilder();
  2115. result.nestedType_.Clear();
  2116. return this;
  2117. }
  2118. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> EnumTypeList {
  2119. get { return PrepareBuilder().enumType_; }
  2120. }
  2121. public int EnumTypeCount {
  2122. get { return result.EnumTypeCount; }
  2123. }
  2124. public global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto GetEnumType(int index) {
  2125. return result.GetEnumType(index);
  2126. }
  2127. public Builder SetEnumType(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto value) {
  2128. pb::ThrowHelper.ThrowIfNull(value, "value");
  2129. PrepareBuilder();
  2130. result.enumType_[index] = value;
  2131. return this;
  2132. }
  2133. public Builder SetEnumType(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
  2134. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2135. PrepareBuilder();
  2136. result.enumType_[index] = builderForValue.Build();
  2137. return this;
  2138. }
  2139. public Builder AddEnumType(global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto value) {
  2140. pb::ThrowHelper.ThrowIfNull(value, "value");
  2141. PrepareBuilder();
  2142. result.enumType_.Add(value);
  2143. return this;
  2144. }
  2145. public Builder AddEnumType(global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Builder builderForValue) {
  2146. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2147. PrepareBuilder();
  2148. result.enumType_.Add(builderForValue.Build());
  2149. return this;
  2150. }
  2151. public Builder AddRangeEnumType(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto> values) {
  2152. PrepareBuilder();
  2153. result.enumType_.Add(values);
  2154. return this;
  2155. }
  2156. public Builder ClearEnumType() {
  2157. PrepareBuilder();
  2158. result.enumType_.Clear();
  2159. return this;
  2160. }
  2161. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange> ExtensionRangeList {
  2162. get { return PrepareBuilder().extensionRange_; }
  2163. }
  2164. public int ExtensionRangeCount {
  2165. get { return result.ExtensionRangeCount; }
  2166. }
  2167. public global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange GetExtensionRange(int index) {
  2168. return result.GetExtensionRange(index);
  2169. }
  2170. public Builder SetExtensionRange(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange value) {
  2171. pb::ThrowHelper.ThrowIfNull(value, "value");
  2172. PrepareBuilder();
  2173. result.extensionRange_[index] = value;
  2174. return this;
  2175. }
  2176. public Builder SetExtensionRange(int index, global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Builder builderForValue) {
  2177. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2178. PrepareBuilder();
  2179. result.extensionRange_[index] = builderForValue.Build();
  2180. return this;
  2181. }
  2182. public Builder AddExtensionRange(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange value) {
  2183. pb::ThrowHelper.ThrowIfNull(value, "value");
  2184. PrepareBuilder();
  2185. result.extensionRange_.Add(value);
  2186. return this;
  2187. }
  2188. public Builder AddExtensionRange(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange.Builder builderForValue) {
  2189. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2190. PrepareBuilder();
  2191. result.extensionRange_.Add(builderForValue.Build());
  2192. return this;
  2193. }
  2194. public Builder AddRangeExtensionRange(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProto.Types.ExtensionRange> values) {
  2195. PrepareBuilder();
  2196. result.extensionRange_.Add(values);
  2197. return this;
  2198. }
  2199. public Builder ClearExtensionRange() {
  2200. PrepareBuilder();
  2201. result.extensionRange_.Clear();
  2202. return this;
  2203. }
  2204. public bool HasOptions {
  2205. get { return result.hasOptions; }
  2206. }
  2207. public global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions Options {
  2208. get { return result.Options; }
  2209. set { SetOptions(value); }
  2210. }
  2211. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions value) {
  2212. pb::ThrowHelper.ThrowIfNull(value, "value");
  2213. PrepareBuilder();
  2214. result.hasOptions = true;
  2215. result.options_ = value;
  2216. return this;
  2217. }
  2218. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.Builder builderForValue) {
  2219. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2220. PrepareBuilder();
  2221. result.hasOptions = true;
  2222. result.options_ = builderForValue.Build();
  2223. return this;
  2224. }
  2225. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions value) {
  2226. pb::ThrowHelper.ThrowIfNull(value, "value");
  2227. PrepareBuilder();
  2228. if (result.hasOptions &&
  2229. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.DefaultInstance) {
  2230. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  2231. } else {
  2232. result.options_ = value;
  2233. }
  2234. result.hasOptions = true;
  2235. return this;
  2236. }
  2237. public Builder ClearOptions() {
  2238. PrepareBuilder();
  2239. result.hasOptions = false;
  2240. result.options_ = null;
  2241. return this;
  2242. }
  2243. }
  2244. static DescriptorProto() {
  2245. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  2246. }
  2247. }
  2248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2249. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  2250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  2251. public sealed partial class FieldDescriptorProto : pb::GeneratedMessage<FieldDescriptorProto, FieldDescriptorProto.Builder> {
  2252. private FieldDescriptorProto() { }
  2253. private static readonly FieldDescriptorProto defaultInstance = new FieldDescriptorProto().MakeReadOnly();
  2254. private static readonly string[] _fieldDescriptorProtoFieldNames = new string[] { "default_value", "extendee", "label", "name", "number", "options", "type", "type_name" };
  2255. private static readonly uint[] _fieldDescriptorProtoFieldTags = new uint[] { 58, 18, 32, 10, 24, 66, 40, 50 };
  2256. public static FieldDescriptorProto DefaultInstance {
  2257. get { return defaultInstance; }
  2258. }
  2259. public override FieldDescriptorProto DefaultInstanceForType {
  2260. get { return DefaultInstance; }
  2261. }
  2262. protected override FieldDescriptorProto ThisMessage {
  2263. get { return this; }
  2264. }
  2265. public static pbd::MessageDescriptor Descriptor {
  2266. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FieldDescriptorProto__Descriptor; }
  2267. }
  2268. protected override pb::FieldAccess.FieldAccessorTable<FieldDescriptorProto, FieldDescriptorProto.Builder> InternalFieldAccessors {
  2269. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FieldDescriptorProto__FieldAccessorTable; }
  2270. }
  2271. #region Nested types
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2273. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  2274. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  2275. public static class Types {
  2276. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  2277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  2278. public enum Type {
  2279. TYPE_DOUBLE = 1,
  2280. TYPE_FLOAT = 2,
  2281. TYPE_INT64 = 3,
  2282. TYPE_UINT64 = 4,
  2283. TYPE_INT32 = 5,
  2284. TYPE_FIXED64 = 6,
  2285. TYPE_FIXED32 = 7,
  2286. TYPE_BOOL = 8,
  2287. TYPE_STRING = 9,
  2288. TYPE_GROUP = 10,
  2289. TYPE_MESSAGE = 11,
  2290. TYPE_BYTES = 12,
  2291. TYPE_UINT32 = 13,
  2292. TYPE_ENUM = 14,
  2293. TYPE_SFIXED32 = 15,
  2294. TYPE_SFIXED64 = 16,
  2295. TYPE_SINT32 = 17,
  2296. TYPE_SINT64 = 18,
  2297. }
  2298. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  2299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  2300. public enum Label {
  2301. LABEL_OPTIONAL = 1,
  2302. LABEL_REQUIRED = 2,
  2303. LABEL_REPEATED = 3,
  2304. }
  2305. }
  2306. #endregion
  2307. public const int NameFieldNumber = 1;
  2308. private bool hasName;
  2309. private string name_ = "";
  2310. public bool HasName {
  2311. get { return hasName; }
  2312. }
  2313. public string Name {
  2314. get { return name_; }
  2315. }
  2316. public const int NumberFieldNumber = 3;
  2317. private bool hasNumber;
  2318. private int number_;
  2319. public bool HasNumber {
  2320. get { return hasNumber; }
  2321. }
  2322. public int Number {
  2323. get { return number_; }
  2324. }
  2325. public const int LabelFieldNumber = 4;
  2326. private bool hasLabel;
  2327. private global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label label_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL;
  2328. public bool HasLabel {
  2329. get { return hasLabel; }
  2330. }
  2331. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label Label {
  2332. get { return label_; }
  2333. }
  2334. public const int TypeFieldNumber = 5;
  2335. private bool hasType;
  2336. private global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type type_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type.TYPE_DOUBLE;
  2337. public bool HasType {
  2338. get { return hasType; }
  2339. }
  2340. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type Type {
  2341. get { return type_; }
  2342. }
  2343. public const int TypeNameFieldNumber = 6;
  2344. private bool hasTypeName;
  2345. private string typeName_ = "";
  2346. public bool HasTypeName {
  2347. get { return hasTypeName; }
  2348. }
  2349. public string TypeName {
  2350. get { return typeName_; }
  2351. }
  2352. public const int ExtendeeFieldNumber = 2;
  2353. private bool hasExtendee;
  2354. private string extendee_ = "";
  2355. public bool HasExtendee {
  2356. get { return hasExtendee; }
  2357. }
  2358. public string Extendee {
  2359. get { return extendee_; }
  2360. }
  2361. public const int DefaultValueFieldNumber = 7;
  2362. private bool hasDefaultValue;
  2363. private string defaultValue_ = "";
  2364. public bool HasDefaultValue {
  2365. get { return hasDefaultValue; }
  2366. }
  2367. public string DefaultValue {
  2368. get { return defaultValue_; }
  2369. }
  2370. public const int OptionsFieldNumber = 8;
  2371. private bool hasOptions;
  2372. private global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions options_;
  2373. public bool HasOptions {
  2374. get { return hasOptions; }
  2375. }
  2376. public global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions Options {
  2377. get { return options_ ?? global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.DefaultInstance; }
  2378. }
  2379. public override bool IsInitialized {
  2380. get {
  2381. if (HasOptions) {
  2382. if (!Options.IsInitialized) return false;
  2383. }
  2384. return true;
  2385. }
  2386. }
  2387. public override void WriteTo(pb::ICodedOutputStream output) {
  2388. int size = SerializedSize;
  2389. string[] field_names = _fieldDescriptorProtoFieldNames;
  2390. if (hasName) {
  2391. output.WriteString(1, field_names[3], Name);
  2392. }
  2393. if (hasExtendee) {
  2394. output.WriteString(2, field_names[1], Extendee);
  2395. }
  2396. if (hasNumber) {
  2397. output.WriteInt32(3, field_names[4], Number);
  2398. }
  2399. if (hasLabel) {
  2400. output.WriteEnum(4, field_names[2], (int) Label, Label);
  2401. }
  2402. if (hasType) {
  2403. output.WriteEnum(5, field_names[6], (int) Type, Type);
  2404. }
  2405. if (hasTypeName) {
  2406. output.WriteString(6, field_names[7], TypeName);
  2407. }
  2408. if (hasDefaultValue) {
  2409. output.WriteString(7, field_names[0], DefaultValue);
  2410. }
  2411. if (hasOptions) {
  2412. output.WriteMessage(8, field_names[5], Options);
  2413. }
  2414. UnknownFields.WriteTo(output);
  2415. }
  2416. private int memoizedSerializedSize = -1;
  2417. public override int SerializedSize {
  2418. get {
  2419. int size = memoizedSerializedSize;
  2420. if (size != -1) return size;
  2421. size = 0;
  2422. if (hasName) {
  2423. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  2424. }
  2425. if (hasNumber) {
  2426. size += pb::CodedOutputStream.ComputeInt32Size(3, Number);
  2427. }
  2428. if (hasLabel) {
  2429. size += pb::CodedOutputStream.ComputeEnumSize(4, (int) Label);
  2430. }
  2431. if (hasType) {
  2432. size += pb::CodedOutputStream.ComputeEnumSize(5, (int) Type);
  2433. }
  2434. if (hasTypeName) {
  2435. size += pb::CodedOutputStream.ComputeStringSize(6, TypeName);
  2436. }
  2437. if (hasExtendee) {
  2438. size += pb::CodedOutputStream.ComputeStringSize(2, Extendee);
  2439. }
  2440. if (hasDefaultValue) {
  2441. size += pb::CodedOutputStream.ComputeStringSize(7, DefaultValue);
  2442. }
  2443. if (hasOptions) {
  2444. size += pb::CodedOutputStream.ComputeMessageSize(8, Options);
  2445. }
  2446. size += UnknownFields.SerializedSize;
  2447. memoizedSerializedSize = size;
  2448. return size;
  2449. }
  2450. }
  2451. public static FieldDescriptorProto ParseFrom(pb::ByteString data) {
  2452. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2453. }
  2454. public static FieldDescriptorProto ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  2455. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2456. }
  2457. public static FieldDescriptorProto ParseFrom(byte[] data) {
  2458. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2459. }
  2460. public static FieldDescriptorProto ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  2461. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2462. }
  2463. public static FieldDescriptorProto ParseFrom(global::System.IO.Stream input) {
  2464. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2465. }
  2466. public static FieldDescriptorProto ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2467. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2468. }
  2469. public static FieldDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input) {
  2470. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  2471. }
  2472. public static FieldDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2473. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  2474. }
  2475. public static FieldDescriptorProto ParseFrom(pb::ICodedInputStream input) {
  2476. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2477. }
  2478. public static FieldDescriptorProto ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2479. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2480. }
  2481. private FieldDescriptorProto MakeReadOnly() {
  2482. return this;
  2483. }
  2484. public static Builder CreateBuilder() { return new Builder(); }
  2485. public override Builder ToBuilder() { return CreateBuilder(this); }
  2486. public override Builder CreateBuilderForType() { return new Builder(); }
  2487. public static Builder CreateBuilder(FieldDescriptorProto prototype) {
  2488. return new Builder(prototype);
  2489. }
  2490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2491. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  2492. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  2493. public sealed partial class Builder : pb::GeneratedBuilder<FieldDescriptorProto, Builder> {
  2494. protected override Builder ThisBuilder {
  2495. get { return this; }
  2496. }
  2497. public Builder() {
  2498. result = DefaultInstance;
  2499. resultIsReadOnly = true;
  2500. }
  2501. internal Builder(FieldDescriptorProto cloneFrom) {
  2502. result = cloneFrom;
  2503. resultIsReadOnly = true;
  2504. }
  2505. private bool resultIsReadOnly;
  2506. private FieldDescriptorProto result;
  2507. private FieldDescriptorProto PrepareBuilder() {
  2508. if (resultIsReadOnly) {
  2509. FieldDescriptorProto original = result;
  2510. result = new FieldDescriptorProto();
  2511. resultIsReadOnly = false;
  2512. MergeFrom(original);
  2513. }
  2514. return result;
  2515. }
  2516. public override bool IsInitialized {
  2517. get { return result.IsInitialized; }
  2518. }
  2519. protected override FieldDescriptorProto MessageBeingBuilt {
  2520. get { return PrepareBuilder(); }
  2521. }
  2522. public override Builder Clear() {
  2523. result = DefaultInstance;
  2524. resultIsReadOnly = true;
  2525. return this;
  2526. }
  2527. public override Builder Clone() {
  2528. if (resultIsReadOnly) {
  2529. return new Builder(result);
  2530. } else {
  2531. return new Builder().MergeFrom(result);
  2532. }
  2533. }
  2534. public override pbd::MessageDescriptor DescriptorForType {
  2535. get { return global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Descriptor; }
  2536. }
  2537. public override FieldDescriptorProto DefaultInstanceForType {
  2538. get { return global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.DefaultInstance; }
  2539. }
  2540. public override FieldDescriptorProto BuildPartial() {
  2541. if (resultIsReadOnly) {
  2542. return result;
  2543. }
  2544. resultIsReadOnly = true;
  2545. return result.MakeReadOnly();
  2546. }
  2547. public override Builder MergeFrom(pb::IMessage other) {
  2548. if (other is FieldDescriptorProto) {
  2549. return MergeFrom((FieldDescriptorProto) other);
  2550. } else {
  2551. base.MergeFrom(other);
  2552. return this;
  2553. }
  2554. }
  2555. public override Builder MergeFrom(FieldDescriptorProto other) {
  2556. if (other == global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.DefaultInstance) return this;
  2557. PrepareBuilder();
  2558. if (other.HasName) {
  2559. Name = other.Name;
  2560. }
  2561. if (other.HasNumber) {
  2562. Number = other.Number;
  2563. }
  2564. if (other.HasLabel) {
  2565. Label = other.Label;
  2566. }
  2567. if (other.HasType) {
  2568. Type = other.Type;
  2569. }
  2570. if (other.HasTypeName) {
  2571. TypeName = other.TypeName;
  2572. }
  2573. if (other.HasExtendee) {
  2574. Extendee = other.Extendee;
  2575. }
  2576. if (other.HasDefaultValue) {
  2577. DefaultValue = other.DefaultValue;
  2578. }
  2579. if (other.HasOptions) {
  2580. MergeOptions(other.Options);
  2581. }
  2582. this.MergeUnknownFields(other.UnknownFields);
  2583. return this;
  2584. }
  2585. public override Builder MergeFrom(pb::ICodedInputStream input) {
  2586. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  2587. }
  2588. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2589. PrepareBuilder();
  2590. pb::UnknownFieldSet.Builder unknownFields = null;
  2591. uint tag;
  2592. string field_name;
  2593. while (input.ReadTag(out tag, out field_name)) {
  2594. if(tag == 0 && field_name != null) {
  2595. int field_ordinal = global::System.Array.BinarySearch(_fieldDescriptorProtoFieldNames, field_name, global::System.StringComparer.Ordinal);
  2596. if(field_ordinal >= 0)
  2597. tag = _fieldDescriptorProtoFieldTags[field_ordinal];
  2598. else {
  2599. if (unknownFields == null) {
  2600. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2601. }
  2602. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  2603. continue;
  2604. }
  2605. }
  2606. switch (tag) {
  2607. case 0: {
  2608. throw pb::InvalidProtocolBufferException.InvalidTag();
  2609. }
  2610. default: {
  2611. if (pb::WireFormat.IsEndGroupTag(tag)) {
  2612. if (unknownFields != null) {
  2613. this.UnknownFields = unknownFields.Build();
  2614. }
  2615. return this;
  2616. }
  2617. if (unknownFields == null) {
  2618. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2619. }
  2620. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  2621. break;
  2622. }
  2623. case 10: {
  2624. result.hasName = input.ReadString(ref result.name_);
  2625. break;
  2626. }
  2627. case 18: {
  2628. result.hasExtendee = input.ReadString(ref result.extendee_);
  2629. break;
  2630. }
  2631. case 24: {
  2632. result.hasNumber = input.ReadInt32(ref result.number_);
  2633. break;
  2634. }
  2635. case 32: {
  2636. object unknown;
  2637. if(input.ReadEnum(ref result.label_, out unknown)) {
  2638. result.hasLabel = true;
  2639. } else if(unknown is int) {
  2640. if (unknownFields == null) {
  2641. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2642. }
  2643. unknownFields.MergeVarintField(4, (ulong)(int)unknown);
  2644. }
  2645. break;
  2646. }
  2647. case 40: {
  2648. object unknown;
  2649. if(input.ReadEnum(ref result.type_, out unknown)) {
  2650. result.hasType = true;
  2651. } else if(unknown is int) {
  2652. if (unknownFields == null) {
  2653. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  2654. }
  2655. unknownFields.MergeVarintField(5, (ulong)(int)unknown);
  2656. }
  2657. break;
  2658. }
  2659. case 50: {
  2660. result.hasTypeName = input.ReadString(ref result.typeName_);
  2661. break;
  2662. }
  2663. case 58: {
  2664. result.hasDefaultValue = input.ReadString(ref result.defaultValue_);
  2665. break;
  2666. }
  2667. case 66: {
  2668. global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.CreateBuilder();
  2669. if (result.hasOptions) {
  2670. subBuilder.MergeFrom(Options);
  2671. }
  2672. input.ReadMessage(subBuilder, extensionRegistry);
  2673. Options = subBuilder.BuildPartial();
  2674. break;
  2675. }
  2676. }
  2677. }
  2678. if (unknownFields != null) {
  2679. this.UnknownFields = unknownFields.Build();
  2680. }
  2681. return this;
  2682. }
  2683. public bool HasName {
  2684. get { return result.hasName; }
  2685. }
  2686. public string Name {
  2687. get { return result.Name; }
  2688. set { SetName(value); }
  2689. }
  2690. public Builder SetName(string value) {
  2691. pb::ThrowHelper.ThrowIfNull(value, "value");
  2692. PrepareBuilder();
  2693. result.hasName = true;
  2694. result.name_ = value;
  2695. return this;
  2696. }
  2697. public Builder ClearName() {
  2698. PrepareBuilder();
  2699. result.hasName = false;
  2700. result.name_ = "";
  2701. return this;
  2702. }
  2703. public bool HasNumber {
  2704. get { return result.hasNumber; }
  2705. }
  2706. public int Number {
  2707. get { return result.Number; }
  2708. set { SetNumber(value); }
  2709. }
  2710. public Builder SetNumber(int value) {
  2711. PrepareBuilder();
  2712. result.hasNumber = true;
  2713. result.number_ = value;
  2714. return this;
  2715. }
  2716. public Builder ClearNumber() {
  2717. PrepareBuilder();
  2718. result.hasNumber = false;
  2719. result.number_ = 0;
  2720. return this;
  2721. }
  2722. public bool HasLabel {
  2723. get { return result.hasLabel; }
  2724. }
  2725. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label Label {
  2726. get { return result.Label; }
  2727. set { SetLabel(value); }
  2728. }
  2729. public Builder SetLabel(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label value) {
  2730. PrepareBuilder();
  2731. result.hasLabel = true;
  2732. result.label_ = value;
  2733. return this;
  2734. }
  2735. public Builder ClearLabel() {
  2736. PrepareBuilder();
  2737. result.hasLabel = false;
  2738. result.label_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL;
  2739. return this;
  2740. }
  2741. public bool HasType {
  2742. get { return result.hasType; }
  2743. }
  2744. public global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type Type {
  2745. get { return result.Type; }
  2746. set { SetType(value); }
  2747. }
  2748. public Builder SetType(global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type value) {
  2749. PrepareBuilder();
  2750. result.hasType = true;
  2751. result.type_ = value;
  2752. return this;
  2753. }
  2754. public Builder ClearType() {
  2755. PrepareBuilder();
  2756. result.hasType = false;
  2757. result.type_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldDescriptorProto.Types.Type.TYPE_DOUBLE;
  2758. return this;
  2759. }
  2760. public bool HasTypeName {
  2761. get { return result.hasTypeName; }
  2762. }
  2763. public string TypeName {
  2764. get { return result.TypeName; }
  2765. set { SetTypeName(value); }
  2766. }
  2767. public Builder SetTypeName(string value) {
  2768. pb::ThrowHelper.ThrowIfNull(value, "value");
  2769. PrepareBuilder();
  2770. result.hasTypeName = true;
  2771. result.typeName_ = value;
  2772. return this;
  2773. }
  2774. public Builder ClearTypeName() {
  2775. PrepareBuilder();
  2776. result.hasTypeName = false;
  2777. result.typeName_ = "";
  2778. return this;
  2779. }
  2780. public bool HasExtendee {
  2781. get { return result.hasExtendee; }
  2782. }
  2783. public string Extendee {
  2784. get { return result.Extendee; }
  2785. set { SetExtendee(value); }
  2786. }
  2787. public Builder SetExtendee(string value) {
  2788. pb::ThrowHelper.ThrowIfNull(value, "value");
  2789. PrepareBuilder();
  2790. result.hasExtendee = true;
  2791. result.extendee_ = value;
  2792. return this;
  2793. }
  2794. public Builder ClearExtendee() {
  2795. PrepareBuilder();
  2796. result.hasExtendee = false;
  2797. result.extendee_ = "";
  2798. return this;
  2799. }
  2800. public bool HasDefaultValue {
  2801. get { return result.hasDefaultValue; }
  2802. }
  2803. public string DefaultValue {
  2804. get { return result.DefaultValue; }
  2805. set { SetDefaultValue(value); }
  2806. }
  2807. public Builder SetDefaultValue(string value) {
  2808. pb::ThrowHelper.ThrowIfNull(value, "value");
  2809. PrepareBuilder();
  2810. result.hasDefaultValue = true;
  2811. result.defaultValue_ = value;
  2812. return this;
  2813. }
  2814. public Builder ClearDefaultValue() {
  2815. PrepareBuilder();
  2816. result.hasDefaultValue = false;
  2817. result.defaultValue_ = "";
  2818. return this;
  2819. }
  2820. public bool HasOptions {
  2821. get { return result.hasOptions; }
  2822. }
  2823. public global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions Options {
  2824. get { return result.Options; }
  2825. set { SetOptions(value); }
  2826. }
  2827. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions value) {
  2828. pb::ThrowHelper.ThrowIfNull(value, "value");
  2829. PrepareBuilder();
  2830. result.hasOptions = true;
  2831. result.options_ = value;
  2832. return this;
  2833. }
  2834. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Builder builderForValue) {
  2835. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  2836. PrepareBuilder();
  2837. result.hasOptions = true;
  2838. result.options_ = builderForValue.Build();
  2839. return this;
  2840. }
  2841. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions value) {
  2842. pb::ThrowHelper.ThrowIfNull(value, "value");
  2843. PrepareBuilder();
  2844. if (result.hasOptions &&
  2845. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.DefaultInstance) {
  2846. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  2847. } else {
  2848. result.options_ = value;
  2849. }
  2850. result.hasOptions = true;
  2851. return this;
  2852. }
  2853. public Builder ClearOptions() {
  2854. PrepareBuilder();
  2855. result.hasOptions = false;
  2856. result.options_ = null;
  2857. return this;
  2858. }
  2859. }
  2860. static FieldDescriptorProto() {
  2861. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  2862. }
  2863. }
  2864. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2865. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  2866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  2867. public sealed partial class EnumDescriptorProto : pb::GeneratedMessage<EnumDescriptorProto, EnumDescriptorProto.Builder> {
  2868. private EnumDescriptorProto() { }
  2869. private static readonly EnumDescriptorProto defaultInstance = new EnumDescriptorProto().MakeReadOnly();
  2870. private static readonly string[] _enumDescriptorProtoFieldNames = new string[] { "name", "options", "value" };
  2871. private static readonly uint[] _enumDescriptorProtoFieldTags = new uint[] { 10, 26, 18 };
  2872. public static EnumDescriptorProto DefaultInstance {
  2873. get { return defaultInstance; }
  2874. }
  2875. public override EnumDescriptorProto DefaultInstanceForType {
  2876. get { return DefaultInstance; }
  2877. }
  2878. protected override EnumDescriptorProto ThisMessage {
  2879. get { return this; }
  2880. }
  2881. public static pbd::MessageDescriptor Descriptor {
  2882. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumDescriptorProto__Descriptor; }
  2883. }
  2884. protected override pb::FieldAccess.FieldAccessorTable<EnumDescriptorProto, EnumDescriptorProto.Builder> InternalFieldAccessors {
  2885. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumDescriptorProto__FieldAccessorTable; }
  2886. }
  2887. public const int NameFieldNumber = 1;
  2888. private bool hasName;
  2889. private string name_ = "";
  2890. public bool HasName {
  2891. get { return hasName; }
  2892. }
  2893. public string Name {
  2894. get { return name_; }
  2895. }
  2896. public const int ValueFieldNumber = 2;
  2897. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto> value_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto>();
  2898. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto> ValueList {
  2899. get { return value_; }
  2900. }
  2901. public int ValueCount {
  2902. get { return value_.Count; }
  2903. }
  2904. public global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto GetValue(int index) {
  2905. return value_[index];
  2906. }
  2907. public const int OptionsFieldNumber = 3;
  2908. private bool hasOptions;
  2909. private global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions options_;
  2910. public bool HasOptions {
  2911. get { return hasOptions; }
  2912. }
  2913. public global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions Options {
  2914. get { return options_ ?? global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.DefaultInstance; }
  2915. }
  2916. public override bool IsInitialized {
  2917. get {
  2918. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto element in ValueList) {
  2919. if (!element.IsInitialized) return false;
  2920. }
  2921. if (HasOptions) {
  2922. if (!Options.IsInitialized) return false;
  2923. }
  2924. return true;
  2925. }
  2926. }
  2927. public override void WriteTo(pb::ICodedOutputStream output) {
  2928. int size = SerializedSize;
  2929. string[] field_names = _enumDescriptorProtoFieldNames;
  2930. if (hasName) {
  2931. output.WriteString(1, field_names[0], Name);
  2932. }
  2933. if (value_.Count > 0) {
  2934. output.WriteMessageArray(2, field_names[2], value_);
  2935. }
  2936. if (hasOptions) {
  2937. output.WriteMessage(3, field_names[1], Options);
  2938. }
  2939. UnknownFields.WriteTo(output);
  2940. }
  2941. private int memoizedSerializedSize = -1;
  2942. public override int SerializedSize {
  2943. get {
  2944. int size = memoizedSerializedSize;
  2945. if (size != -1) return size;
  2946. size = 0;
  2947. if (hasName) {
  2948. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  2949. }
  2950. foreach (global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto element in ValueList) {
  2951. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  2952. }
  2953. if (hasOptions) {
  2954. size += pb::CodedOutputStream.ComputeMessageSize(3, Options);
  2955. }
  2956. size += UnknownFields.SerializedSize;
  2957. memoizedSerializedSize = size;
  2958. return size;
  2959. }
  2960. }
  2961. public static EnumDescriptorProto ParseFrom(pb::ByteString data) {
  2962. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2963. }
  2964. public static EnumDescriptorProto ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  2965. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2966. }
  2967. public static EnumDescriptorProto ParseFrom(byte[] data) {
  2968. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  2969. }
  2970. public static EnumDescriptorProto ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  2971. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  2972. }
  2973. public static EnumDescriptorProto ParseFrom(global::System.IO.Stream input) {
  2974. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2975. }
  2976. public static EnumDescriptorProto ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2977. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2978. }
  2979. public static EnumDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input) {
  2980. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  2981. }
  2982. public static EnumDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  2983. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  2984. }
  2985. public static EnumDescriptorProto ParseFrom(pb::ICodedInputStream input) {
  2986. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  2987. }
  2988. public static EnumDescriptorProto ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  2989. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  2990. }
  2991. private EnumDescriptorProto MakeReadOnly() {
  2992. value_.MakeReadOnly();
  2993. return this;
  2994. }
  2995. public static Builder CreateBuilder() { return new Builder(); }
  2996. public override Builder ToBuilder() { return CreateBuilder(this); }
  2997. public override Builder CreateBuilderForType() { return new Builder(); }
  2998. public static Builder CreateBuilder(EnumDescriptorProto prototype) {
  2999. return new Builder(prototype);
  3000. }
  3001. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3002. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  3003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  3004. public sealed partial class Builder : pb::GeneratedBuilder<EnumDescriptorProto, Builder> {
  3005. protected override Builder ThisBuilder {
  3006. get { return this; }
  3007. }
  3008. public Builder() {
  3009. result = DefaultInstance;
  3010. resultIsReadOnly = true;
  3011. }
  3012. internal Builder(EnumDescriptorProto cloneFrom) {
  3013. result = cloneFrom;
  3014. resultIsReadOnly = true;
  3015. }
  3016. private bool resultIsReadOnly;
  3017. private EnumDescriptorProto result;
  3018. private EnumDescriptorProto PrepareBuilder() {
  3019. if (resultIsReadOnly) {
  3020. EnumDescriptorProto original = result;
  3021. result = new EnumDescriptorProto();
  3022. resultIsReadOnly = false;
  3023. MergeFrom(original);
  3024. }
  3025. return result;
  3026. }
  3027. public override bool IsInitialized {
  3028. get { return result.IsInitialized; }
  3029. }
  3030. protected override EnumDescriptorProto MessageBeingBuilt {
  3031. get { return PrepareBuilder(); }
  3032. }
  3033. public override Builder Clear() {
  3034. result = DefaultInstance;
  3035. resultIsReadOnly = true;
  3036. return this;
  3037. }
  3038. public override Builder Clone() {
  3039. if (resultIsReadOnly) {
  3040. return new Builder(result);
  3041. } else {
  3042. return new Builder().MergeFrom(result);
  3043. }
  3044. }
  3045. public override pbd::MessageDescriptor DescriptorForType {
  3046. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.Descriptor; }
  3047. }
  3048. public override EnumDescriptorProto DefaultInstanceForType {
  3049. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.DefaultInstance; }
  3050. }
  3051. public override EnumDescriptorProto BuildPartial() {
  3052. if (resultIsReadOnly) {
  3053. return result;
  3054. }
  3055. resultIsReadOnly = true;
  3056. return result.MakeReadOnly();
  3057. }
  3058. public override Builder MergeFrom(pb::IMessage other) {
  3059. if (other is EnumDescriptorProto) {
  3060. return MergeFrom((EnumDescriptorProto) other);
  3061. } else {
  3062. base.MergeFrom(other);
  3063. return this;
  3064. }
  3065. }
  3066. public override Builder MergeFrom(EnumDescriptorProto other) {
  3067. if (other == global::Google.ProtocolBuffers.DescriptorProtos.EnumDescriptorProto.DefaultInstance) return this;
  3068. PrepareBuilder();
  3069. if (other.HasName) {
  3070. Name = other.Name;
  3071. }
  3072. if (other.value_.Count != 0) {
  3073. result.value_.Add(other.value_);
  3074. }
  3075. if (other.HasOptions) {
  3076. MergeOptions(other.Options);
  3077. }
  3078. this.MergeUnknownFields(other.UnknownFields);
  3079. return this;
  3080. }
  3081. public override Builder MergeFrom(pb::ICodedInputStream input) {
  3082. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3083. }
  3084. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3085. PrepareBuilder();
  3086. pb::UnknownFieldSet.Builder unknownFields = null;
  3087. uint tag;
  3088. string field_name;
  3089. while (input.ReadTag(out tag, out field_name)) {
  3090. if(tag == 0 && field_name != null) {
  3091. int field_ordinal = global::System.Array.BinarySearch(_enumDescriptorProtoFieldNames, field_name, global::System.StringComparer.Ordinal);
  3092. if(field_ordinal >= 0)
  3093. tag = _enumDescriptorProtoFieldTags[field_ordinal];
  3094. else {
  3095. if (unknownFields == null) {
  3096. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3097. }
  3098. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  3099. continue;
  3100. }
  3101. }
  3102. switch (tag) {
  3103. case 0: {
  3104. throw pb::InvalidProtocolBufferException.InvalidTag();
  3105. }
  3106. default: {
  3107. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3108. if (unknownFields != null) {
  3109. this.UnknownFields = unknownFields.Build();
  3110. }
  3111. return this;
  3112. }
  3113. if (unknownFields == null) {
  3114. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3115. }
  3116. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  3117. break;
  3118. }
  3119. case 10: {
  3120. result.hasName = input.ReadString(ref result.name_);
  3121. break;
  3122. }
  3123. case 18: {
  3124. input.ReadMessageArray(tag, field_name, result.value_, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.DefaultInstance, extensionRegistry);
  3125. break;
  3126. }
  3127. case 26: {
  3128. global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.CreateBuilder();
  3129. if (result.hasOptions) {
  3130. subBuilder.MergeFrom(Options);
  3131. }
  3132. input.ReadMessage(subBuilder, extensionRegistry);
  3133. Options = subBuilder.BuildPartial();
  3134. break;
  3135. }
  3136. }
  3137. }
  3138. if (unknownFields != null) {
  3139. this.UnknownFields = unknownFields.Build();
  3140. }
  3141. return this;
  3142. }
  3143. public bool HasName {
  3144. get { return result.hasName; }
  3145. }
  3146. public string Name {
  3147. get { return result.Name; }
  3148. set { SetName(value); }
  3149. }
  3150. public Builder SetName(string value) {
  3151. pb::ThrowHelper.ThrowIfNull(value, "value");
  3152. PrepareBuilder();
  3153. result.hasName = true;
  3154. result.name_ = value;
  3155. return this;
  3156. }
  3157. public Builder ClearName() {
  3158. PrepareBuilder();
  3159. result.hasName = false;
  3160. result.name_ = "";
  3161. return this;
  3162. }
  3163. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto> ValueList {
  3164. get { return PrepareBuilder().value_; }
  3165. }
  3166. public int ValueCount {
  3167. get { return result.ValueCount; }
  3168. }
  3169. public global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto GetValue(int index) {
  3170. return result.GetValue(index);
  3171. }
  3172. public Builder SetValue(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto value) {
  3173. pb::ThrowHelper.ThrowIfNull(value, "value");
  3174. PrepareBuilder();
  3175. result.value_[index] = value;
  3176. return this;
  3177. }
  3178. public Builder SetValue(int index, global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) {
  3179. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  3180. PrepareBuilder();
  3181. result.value_[index] = builderForValue.Build();
  3182. return this;
  3183. }
  3184. public Builder AddValue(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto value) {
  3185. pb::ThrowHelper.ThrowIfNull(value, "value");
  3186. PrepareBuilder();
  3187. result.value_.Add(value);
  3188. return this;
  3189. }
  3190. public Builder AddValue(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.Builder builderForValue) {
  3191. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  3192. PrepareBuilder();
  3193. result.value_.Add(builderForValue.Build());
  3194. return this;
  3195. }
  3196. public Builder AddRangeValue(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto> values) {
  3197. PrepareBuilder();
  3198. result.value_.Add(values);
  3199. return this;
  3200. }
  3201. public Builder ClearValue() {
  3202. PrepareBuilder();
  3203. result.value_.Clear();
  3204. return this;
  3205. }
  3206. public bool HasOptions {
  3207. get { return result.hasOptions; }
  3208. }
  3209. public global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions Options {
  3210. get { return result.Options; }
  3211. set { SetOptions(value); }
  3212. }
  3213. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions value) {
  3214. pb::ThrowHelper.ThrowIfNull(value, "value");
  3215. PrepareBuilder();
  3216. result.hasOptions = true;
  3217. result.options_ = value;
  3218. return this;
  3219. }
  3220. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.Builder builderForValue) {
  3221. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  3222. PrepareBuilder();
  3223. result.hasOptions = true;
  3224. result.options_ = builderForValue.Build();
  3225. return this;
  3226. }
  3227. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions value) {
  3228. pb::ThrowHelper.ThrowIfNull(value, "value");
  3229. PrepareBuilder();
  3230. if (result.hasOptions &&
  3231. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.DefaultInstance) {
  3232. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  3233. } else {
  3234. result.options_ = value;
  3235. }
  3236. result.hasOptions = true;
  3237. return this;
  3238. }
  3239. public Builder ClearOptions() {
  3240. PrepareBuilder();
  3241. result.hasOptions = false;
  3242. result.options_ = null;
  3243. return this;
  3244. }
  3245. }
  3246. static EnumDescriptorProto() {
  3247. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  3248. }
  3249. }
  3250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3251. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  3252. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  3253. public sealed partial class EnumValueDescriptorProto : pb::GeneratedMessage<EnumValueDescriptorProto, EnumValueDescriptorProto.Builder> {
  3254. private EnumValueDescriptorProto() { }
  3255. private static readonly EnumValueDescriptorProto defaultInstance = new EnumValueDescriptorProto().MakeReadOnly();
  3256. private static readonly string[] _enumValueDescriptorProtoFieldNames = new string[] { "name", "number", "options" };
  3257. private static readonly uint[] _enumValueDescriptorProtoFieldTags = new uint[] { 10, 16, 26 };
  3258. public static EnumValueDescriptorProto DefaultInstance {
  3259. get { return defaultInstance; }
  3260. }
  3261. public override EnumValueDescriptorProto DefaultInstanceForType {
  3262. get { return DefaultInstance; }
  3263. }
  3264. protected override EnumValueDescriptorProto ThisMessage {
  3265. get { return this; }
  3266. }
  3267. public static pbd::MessageDescriptor Descriptor {
  3268. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumValueDescriptorProto__Descriptor; }
  3269. }
  3270. protected override pb::FieldAccess.FieldAccessorTable<EnumValueDescriptorProto, EnumValueDescriptorProto.Builder> InternalFieldAccessors {
  3271. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumValueDescriptorProto__FieldAccessorTable; }
  3272. }
  3273. public const int NameFieldNumber = 1;
  3274. private bool hasName;
  3275. private string name_ = "";
  3276. public bool HasName {
  3277. get { return hasName; }
  3278. }
  3279. public string Name {
  3280. get { return name_; }
  3281. }
  3282. public const int NumberFieldNumber = 2;
  3283. private bool hasNumber;
  3284. private int number_;
  3285. public bool HasNumber {
  3286. get { return hasNumber; }
  3287. }
  3288. public int Number {
  3289. get { return number_; }
  3290. }
  3291. public const int OptionsFieldNumber = 3;
  3292. private bool hasOptions;
  3293. private global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions options_;
  3294. public bool HasOptions {
  3295. get { return hasOptions; }
  3296. }
  3297. public global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions Options {
  3298. get { return options_ ?? global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.DefaultInstance; }
  3299. }
  3300. public override bool IsInitialized {
  3301. get {
  3302. if (HasOptions) {
  3303. if (!Options.IsInitialized) return false;
  3304. }
  3305. return true;
  3306. }
  3307. }
  3308. public override void WriteTo(pb::ICodedOutputStream output) {
  3309. int size = SerializedSize;
  3310. string[] field_names = _enumValueDescriptorProtoFieldNames;
  3311. if (hasName) {
  3312. output.WriteString(1, field_names[0], Name);
  3313. }
  3314. if (hasNumber) {
  3315. output.WriteInt32(2, field_names[1], Number);
  3316. }
  3317. if (hasOptions) {
  3318. output.WriteMessage(3, field_names[2], Options);
  3319. }
  3320. UnknownFields.WriteTo(output);
  3321. }
  3322. private int memoizedSerializedSize = -1;
  3323. public override int SerializedSize {
  3324. get {
  3325. int size = memoizedSerializedSize;
  3326. if (size != -1) return size;
  3327. size = 0;
  3328. if (hasName) {
  3329. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  3330. }
  3331. if (hasNumber) {
  3332. size += pb::CodedOutputStream.ComputeInt32Size(2, Number);
  3333. }
  3334. if (hasOptions) {
  3335. size += pb::CodedOutputStream.ComputeMessageSize(3, Options);
  3336. }
  3337. size += UnknownFields.SerializedSize;
  3338. memoizedSerializedSize = size;
  3339. return size;
  3340. }
  3341. }
  3342. public static EnumValueDescriptorProto ParseFrom(pb::ByteString data) {
  3343. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3344. }
  3345. public static EnumValueDescriptorProto ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  3346. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3347. }
  3348. public static EnumValueDescriptorProto ParseFrom(byte[] data) {
  3349. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3350. }
  3351. public static EnumValueDescriptorProto ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  3352. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3353. }
  3354. public static EnumValueDescriptorProto ParseFrom(global::System.IO.Stream input) {
  3355. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3356. }
  3357. public static EnumValueDescriptorProto ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3358. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3359. }
  3360. public static EnumValueDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input) {
  3361. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  3362. }
  3363. public static EnumValueDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3364. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  3365. }
  3366. public static EnumValueDescriptorProto ParseFrom(pb::ICodedInputStream input) {
  3367. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3368. }
  3369. public static EnumValueDescriptorProto ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3370. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3371. }
  3372. private EnumValueDescriptorProto MakeReadOnly() {
  3373. return this;
  3374. }
  3375. public static Builder CreateBuilder() { return new Builder(); }
  3376. public override Builder ToBuilder() { return CreateBuilder(this); }
  3377. public override Builder CreateBuilderForType() { return new Builder(); }
  3378. public static Builder CreateBuilder(EnumValueDescriptorProto prototype) {
  3379. return new Builder(prototype);
  3380. }
  3381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3382. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  3383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  3384. public sealed partial class Builder : pb::GeneratedBuilder<EnumValueDescriptorProto, Builder> {
  3385. protected override Builder ThisBuilder {
  3386. get { return this; }
  3387. }
  3388. public Builder() {
  3389. result = DefaultInstance;
  3390. resultIsReadOnly = true;
  3391. }
  3392. internal Builder(EnumValueDescriptorProto cloneFrom) {
  3393. result = cloneFrom;
  3394. resultIsReadOnly = true;
  3395. }
  3396. private bool resultIsReadOnly;
  3397. private EnumValueDescriptorProto result;
  3398. private EnumValueDescriptorProto PrepareBuilder() {
  3399. if (resultIsReadOnly) {
  3400. EnumValueDescriptorProto original = result;
  3401. result = new EnumValueDescriptorProto();
  3402. resultIsReadOnly = false;
  3403. MergeFrom(original);
  3404. }
  3405. return result;
  3406. }
  3407. public override bool IsInitialized {
  3408. get { return result.IsInitialized; }
  3409. }
  3410. protected override EnumValueDescriptorProto MessageBeingBuilt {
  3411. get { return PrepareBuilder(); }
  3412. }
  3413. public override Builder Clear() {
  3414. result = DefaultInstance;
  3415. resultIsReadOnly = true;
  3416. return this;
  3417. }
  3418. public override Builder Clone() {
  3419. if (resultIsReadOnly) {
  3420. return new Builder(result);
  3421. } else {
  3422. return new Builder().MergeFrom(result);
  3423. }
  3424. }
  3425. public override pbd::MessageDescriptor DescriptorForType {
  3426. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.Descriptor; }
  3427. }
  3428. public override EnumValueDescriptorProto DefaultInstanceForType {
  3429. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.DefaultInstance; }
  3430. }
  3431. public override EnumValueDescriptorProto BuildPartial() {
  3432. if (resultIsReadOnly) {
  3433. return result;
  3434. }
  3435. resultIsReadOnly = true;
  3436. return result.MakeReadOnly();
  3437. }
  3438. public override Builder MergeFrom(pb::IMessage other) {
  3439. if (other is EnumValueDescriptorProto) {
  3440. return MergeFrom((EnumValueDescriptorProto) other);
  3441. } else {
  3442. base.MergeFrom(other);
  3443. return this;
  3444. }
  3445. }
  3446. public override Builder MergeFrom(EnumValueDescriptorProto other) {
  3447. if (other == global::Google.ProtocolBuffers.DescriptorProtos.EnumValueDescriptorProto.DefaultInstance) return this;
  3448. PrepareBuilder();
  3449. if (other.HasName) {
  3450. Name = other.Name;
  3451. }
  3452. if (other.HasNumber) {
  3453. Number = other.Number;
  3454. }
  3455. if (other.HasOptions) {
  3456. MergeOptions(other.Options);
  3457. }
  3458. this.MergeUnknownFields(other.UnknownFields);
  3459. return this;
  3460. }
  3461. public override Builder MergeFrom(pb::ICodedInputStream input) {
  3462. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3463. }
  3464. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3465. PrepareBuilder();
  3466. pb::UnknownFieldSet.Builder unknownFields = null;
  3467. uint tag;
  3468. string field_name;
  3469. while (input.ReadTag(out tag, out field_name)) {
  3470. if(tag == 0 && field_name != null) {
  3471. int field_ordinal = global::System.Array.BinarySearch(_enumValueDescriptorProtoFieldNames, field_name, global::System.StringComparer.Ordinal);
  3472. if(field_ordinal >= 0)
  3473. tag = _enumValueDescriptorProtoFieldTags[field_ordinal];
  3474. else {
  3475. if (unknownFields == null) {
  3476. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3477. }
  3478. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  3479. continue;
  3480. }
  3481. }
  3482. switch (tag) {
  3483. case 0: {
  3484. throw pb::InvalidProtocolBufferException.InvalidTag();
  3485. }
  3486. default: {
  3487. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3488. if (unknownFields != null) {
  3489. this.UnknownFields = unknownFields.Build();
  3490. }
  3491. return this;
  3492. }
  3493. if (unknownFields == null) {
  3494. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3495. }
  3496. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  3497. break;
  3498. }
  3499. case 10: {
  3500. result.hasName = input.ReadString(ref result.name_);
  3501. break;
  3502. }
  3503. case 16: {
  3504. result.hasNumber = input.ReadInt32(ref result.number_);
  3505. break;
  3506. }
  3507. case 26: {
  3508. global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.CreateBuilder();
  3509. if (result.hasOptions) {
  3510. subBuilder.MergeFrom(Options);
  3511. }
  3512. input.ReadMessage(subBuilder, extensionRegistry);
  3513. Options = subBuilder.BuildPartial();
  3514. break;
  3515. }
  3516. }
  3517. }
  3518. if (unknownFields != null) {
  3519. this.UnknownFields = unknownFields.Build();
  3520. }
  3521. return this;
  3522. }
  3523. public bool HasName {
  3524. get { return result.hasName; }
  3525. }
  3526. public string Name {
  3527. get { return result.Name; }
  3528. set { SetName(value); }
  3529. }
  3530. public Builder SetName(string value) {
  3531. pb::ThrowHelper.ThrowIfNull(value, "value");
  3532. PrepareBuilder();
  3533. result.hasName = true;
  3534. result.name_ = value;
  3535. return this;
  3536. }
  3537. public Builder ClearName() {
  3538. PrepareBuilder();
  3539. result.hasName = false;
  3540. result.name_ = "";
  3541. return this;
  3542. }
  3543. public bool HasNumber {
  3544. get { return result.hasNumber; }
  3545. }
  3546. public int Number {
  3547. get { return result.Number; }
  3548. set { SetNumber(value); }
  3549. }
  3550. public Builder SetNumber(int value) {
  3551. PrepareBuilder();
  3552. result.hasNumber = true;
  3553. result.number_ = value;
  3554. return this;
  3555. }
  3556. public Builder ClearNumber() {
  3557. PrepareBuilder();
  3558. result.hasNumber = false;
  3559. result.number_ = 0;
  3560. return this;
  3561. }
  3562. public bool HasOptions {
  3563. get { return result.hasOptions; }
  3564. }
  3565. public global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions Options {
  3566. get { return result.Options; }
  3567. set { SetOptions(value); }
  3568. }
  3569. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions value) {
  3570. pb::ThrowHelper.ThrowIfNull(value, "value");
  3571. PrepareBuilder();
  3572. result.hasOptions = true;
  3573. result.options_ = value;
  3574. return this;
  3575. }
  3576. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.Builder builderForValue) {
  3577. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  3578. PrepareBuilder();
  3579. result.hasOptions = true;
  3580. result.options_ = builderForValue.Build();
  3581. return this;
  3582. }
  3583. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions value) {
  3584. pb::ThrowHelper.ThrowIfNull(value, "value");
  3585. PrepareBuilder();
  3586. if (result.hasOptions &&
  3587. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.DefaultInstance) {
  3588. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  3589. } else {
  3590. result.options_ = value;
  3591. }
  3592. result.hasOptions = true;
  3593. return this;
  3594. }
  3595. public Builder ClearOptions() {
  3596. PrepareBuilder();
  3597. result.hasOptions = false;
  3598. result.options_ = null;
  3599. return this;
  3600. }
  3601. }
  3602. static EnumValueDescriptorProto() {
  3603. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  3604. }
  3605. }
  3606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3607. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  3608. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  3609. public sealed partial class ServiceDescriptorProto : pb::GeneratedMessage<ServiceDescriptorProto, ServiceDescriptorProto.Builder> {
  3610. private ServiceDescriptorProto() { }
  3611. private static readonly ServiceDescriptorProto defaultInstance = new ServiceDescriptorProto().MakeReadOnly();
  3612. private static readonly string[] _serviceDescriptorProtoFieldNames = new string[] { "method", "name", "options" };
  3613. private static readonly uint[] _serviceDescriptorProtoFieldTags = new uint[] { 18, 10, 26 };
  3614. public static ServiceDescriptorProto DefaultInstance {
  3615. get { return defaultInstance; }
  3616. }
  3617. public override ServiceDescriptorProto DefaultInstanceForType {
  3618. get { return DefaultInstance; }
  3619. }
  3620. protected override ServiceDescriptorProto ThisMessage {
  3621. get { return this; }
  3622. }
  3623. public static pbd::MessageDescriptor Descriptor {
  3624. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_ServiceDescriptorProto__Descriptor; }
  3625. }
  3626. protected override pb::FieldAccess.FieldAccessorTable<ServiceDescriptorProto, ServiceDescriptorProto.Builder> InternalFieldAccessors {
  3627. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_ServiceDescriptorProto__FieldAccessorTable; }
  3628. }
  3629. public const int NameFieldNumber = 1;
  3630. private bool hasName;
  3631. private string name_ = "";
  3632. public bool HasName {
  3633. get { return hasName; }
  3634. }
  3635. public string Name {
  3636. get { return name_; }
  3637. }
  3638. public const int MethodFieldNumber = 2;
  3639. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto> method_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto>();
  3640. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto> MethodList {
  3641. get { return method_; }
  3642. }
  3643. public int MethodCount {
  3644. get { return method_.Count; }
  3645. }
  3646. public global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto GetMethod(int index) {
  3647. return method_[index];
  3648. }
  3649. public const int OptionsFieldNumber = 3;
  3650. private bool hasOptions;
  3651. private global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions options_;
  3652. public bool HasOptions {
  3653. get { return hasOptions; }
  3654. }
  3655. public global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions Options {
  3656. get { return options_ ?? global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.DefaultInstance; }
  3657. }
  3658. public override bool IsInitialized {
  3659. get {
  3660. foreach (global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto element in MethodList) {
  3661. if (!element.IsInitialized) return false;
  3662. }
  3663. if (HasOptions) {
  3664. if (!Options.IsInitialized) return false;
  3665. }
  3666. return true;
  3667. }
  3668. }
  3669. public override void WriteTo(pb::ICodedOutputStream output) {
  3670. int size = SerializedSize;
  3671. string[] field_names = _serviceDescriptorProtoFieldNames;
  3672. if (hasName) {
  3673. output.WriteString(1, field_names[1], Name);
  3674. }
  3675. if (method_.Count > 0) {
  3676. output.WriteMessageArray(2, field_names[0], method_);
  3677. }
  3678. if (hasOptions) {
  3679. output.WriteMessage(3, field_names[2], Options);
  3680. }
  3681. UnknownFields.WriteTo(output);
  3682. }
  3683. private int memoizedSerializedSize = -1;
  3684. public override int SerializedSize {
  3685. get {
  3686. int size = memoizedSerializedSize;
  3687. if (size != -1) return size;
  3688. size = 0;
  3689. if (hasName) {
  3690. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  3691. }
  3692. foreach (global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto element in MethodList) {
  3693. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  3694. }
  3695. if (hasOptions) {
  3696. size += pb::CodedOutputStream.ComputeMessageSize(3, Options);
  3697. }
  3698. size += UnknownFields.SerializedSize;
  3699. memoizedSerializedSize = size;
  3700. return size;
  3701. }
  3702. }
  3703. public static ServiceDescriptorProto ParseFrom(pb::ByteString data) {
  3704. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3705. }
  3706. public static ServiceDescriptorProto ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  3707. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3708. }
  3709. public static ServiceDescriptorProto ParseFrom(byte[] data) {
  3710. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  3711. }
  3712. public static ServiceDescriptorProto ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  3713. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  3714. }
  3715. public static ServiceDescriptorProto ParseFrom(global::System.IO.Stream input) {
  3716. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3717. }
  3718. public static ServiceDescriptorProto ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3719. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3720. }
  3721. public static ServiceDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input) {
  3722. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  3723. }
  3724. public static ServiceDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  3725. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  3726. }
  3727. public static ServiceDescriptorProto ParseFrom(pb::ICodedInputStream input) {
  3728. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  3729. }
  3730. public static ServiceDescriptorProto ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3731. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  3732. }
  3733. private ServiceDescriptorProto MakeReadOnly() {
  3734. method_.MakeReadOnly();
  3735. return this;
  3736. }
  3737. public static Builder CreateBuilder() { return new Builder(); }
  3738. public override Builder ToBuilder() { return CreateBuilder(this); }
  3739. public override Builder CreateBuilderForType() { return new Builder(); }
  3740. public static Builder CreateBuilder(ServiceDescriptorProto prototype) {
  3741. return new Builder(prototype);
  3742. }
  3743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3744. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  3745. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  3746. public sealed partial class Builder : pb::GeneratedBuilder<ServiceDescriptorProto, Builder> {
  3747. protected override Builder ThisBuilder {
  3748. get { return this; }
  3749. }
  3750. public Builder() {
  3751. result = DefaultInstance;
  3752. resultIsReadOnly = true;
  3753. }
  3754. internal Builder(ServiceDescriptorProto cloneFrom) {
  3755. result = cloneFrom;
  3756. resultIsReadOnly = true;
  3757. }
  3758. private bool resultIsReadOnly;
  3759. private ServiceDescriptorProto result;
  3760. private ServiceDescriptorProto PrepareBuilder() {
  3761. if (resultIsReadOnly) {
  3762. ServiceDescriptorProto original = result;
  3763. result = new ServiceDescriptorProto();
  3764. resultIsReadOnly = false;
  3765. MergeFrom(original);
  3766. }
  3767. return result;
  3768. }
  3769. public override bool IsInitialized {
  3770. get { return result.IsInitialized; }
  3771. }
  3772. protected override ServiceDescriptorProto MessageBeingBuilt {
  3773. get { return PrepareBuilder(); }
  3774. }
  3775. public override Builder Clear() {
  3776. result = DefaultInstance;
  3777. resultIsReadOnly = true;
  3778. return this;
  3779. }
  3780. public override Builder Clone() {
  3781. if (resultIsReadOnly) {
  3782. return new Builder(result);
  3783. } else {
  3784. return new Builder().MergeFrom(result);
  3785. }
  3786. }
  3787. public override pbd::MessageDescriptor DescriptorForType {
  3788. get { return global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.Descriptor; }
  3789. }
  3790. public override ServiceDescriptorProto DefaultInstanceForType {
  3791. get { return global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.DefaultInstance; }
  3792. }
  3793. public override ServiceDescriptorProto BuildPartial() {
  3794. if (resultIsReadOnly) {
  3795. return result;
  3796. }
  3797. resultIsReadOnly = true;
  3798. return result.MakeReadOnly();
  3799. }
  3800. public override Builder MergeFrom(pb::IMessage other) {
  3801. if (other is ServiceDescriptorProto) {
  3802. return MergeFrom((ServiceDescriptorProto) other);
  3803. } else {
  3804. base.MergeFrom(other);
  3805. return this;
  3806. }
  3807. }
  3808. public override Builder MergeFrom(ServiceDescriptorProto other) {
  3809. if (other == global::Google.ProtocolBuffers.DescriptorProtos.ServiceDescriptorProto.DefaultInstance) return this;
  3810. PrepareBuilder();
  3811. if (other.HasName) {
  3812. Name = other.Name;
  3813. }
  3814. if (other.method_.Count != 0) {
  3815. result.method_.Add(other.method_);
  3816. }
  3817. if (other.HasOptions) {
  3818. MergeOptions(other.Options);
  3819. }
  3820. this.MergeUnknownFields(other.UnknownFields);
  3821. return this;
  3822. }
  3823. public override Builder MergeFrom(pb::ICodedInputStream input) {
  3824. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  3825. }
  3826. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  3827. PrepareBuilder();
  3828. pb::UnknownFieldSet.Builder unknownFields = null;
  3829. uint tag;
  3830. string field_name;
  3831. while (input.ReadTag(out tag, out field_name)) {
  3832. if(tag == 0 && field_name != null) {
  3833. int field_ordinal = global::System.Array.BinarySearch(_serviceDescriptorProtoFieldNames, field_name, global::System.StringComparer.Ordinal);
  3834. if(field_ordinal >= 0)
  3835. tag = _serviceDescriptorProtoFieldTags[field_ordinal];
  3836. else {
  3837. if (unknownFields == null) {
  3838. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3839. }
  3840. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  3841. continue;
  3842. }
  3843. }
  3844. switch (tag) {
  3845. case 0: {
  3846. throw pb::InvalidProtocolBufferException.InvalidTag();
  3847. }
  3848. default: {
  3849. if (pb::WireFormat.IsEndGroupTag(tag)) {
  3850. if (unknownFields != null) {
  3851. this.UnknownFields = unknownFields.Build();
  3852. }
  3853. return this;
  3854. }
  3855. if (unknownFields == null) {
  3856. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  3857. }
  3858. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  3859. break;
  3860. }
  3861. case 10: {
  3862. result.hasName = input.ReadString(ref result.name_);
  3863. break;
  3864. }
  3865. case 18: {
  3866. input.ReadMessageArray(tag, field_name, result.method_, global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.DefaultInstance, extensionRegistry);
  3867. break;
  3868. }
  3869. case 26: {
  3870. global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.CreateBuilder();
  3871. if (result.hasOptions) {
  3872. subBuilder.MergeFrom(Options);
  3873. }
  3874. input.ReadMessage(subBuilder, extensionRegistry);
  3875. Options = subBuilder.BuildPartial();
  3876. break;
  3877. }
  3878. }
  3879. }
  3880. if (unknownFields != null) {
  3881. this.UnknownFields = unknownFields.Build();
  3882. }
  3883. return this;
  3884. }
  3885. public bool HasName {
  3886. get { return result.hasName; }
  3887. }
  3888. public string Name {
  3889. get { return result.Name; }
  3890. set { SetName(value); }
  3891. }
  3892. public Builder SetName(string value) {
  3893. pb::ThrowHelper.ThrowIfNull(value, "value");
  3894. PrepareBuilder();
  3895. result.hasName = true;
  3896. result.name_ = value;
  3897. return this;
  3898. }
  3899. public Builder ClearName() {
  3900. PrepareBuilder();
  3901. result.hasName = false;
  3902. result.name_ = "";
  3903. return this;
  3904. }
  3905. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto> MethodList {
  3906. get { return PrepareBuilder().method_; }
  3907. }
  3908. public int MethodCount {
  3909. get { return result.MethodCount; }
  3910. }
  3911. public global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto GetMethod(int index) {
  3912. return result.GetMethod(index);
  3913. }
  3914. public Builder SetMethod(int index, global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto value) {
  3915. pb::ThrowHelper.ThrowIfNull(value, "value");
  3916. PrepareBuilder();
  3917. result.method_[index] = value;
  3918. return this;
  3919. }
  3920. public Builder SetMethod(int index, global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.Builder builderForValue) {
  3921. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  3922. PrepareBuilder();
  3923. result.method_[index] = builderForValue.Build();
  3924. return this;
  3925. }
  3926. public Builder AddMethod(global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto value) {
  3927. pb::ThrowHelper.ThrowIfNull(value, "value");
  3928. PrepareBuilder();
  3929. result.method_.Add(value);
  3930. return this;
  3931. }
  3932. public Builder AddMethod(global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.Builder builderForValue) {
  3933. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  3934. PrepareBuilder();
  3935. result.method_.Add(builderForValue.Build());
  3936. return this;
  3937. }
  3938. public Builder AddRangeMethod(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto> values) {
  3939. PrepareBuilder();
  3940. result.method_.Add(values);
  3941. return this;
  3942. }
  3943. public Builder ClearMethod() {
  3944. PrepareBuilder();
  3945. result.method_.Clear();
  3946. return this;
  3947. }
  3948. public bool HasOptions {
  3949. get { return result.hasOptions; }
  3950. }
  3951. public global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions Options {
  3952. get { return result.Options; }
  3953. set { SetOptions(value); }
  3954. }
  3955. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions value) {
  3956. pb::ThrowHelper.ThrowIfNull(value, "value");
  3957. PrepareBuilder();
  3958. result.hasOptions = true;
  3959. result.options_ = value;
  3960. return this;
  3961. }
  3962. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.Builder builderForValue) {
  3963. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  3964. PrepareBuilder();
  3965. result.hasOptions = true;
  3966. result.options_ = builderForValue.Build();
  3967. return this;
  3968. }
  3969. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions value) {
  3970. pb::ThrowHelper.ThrowIfNull(value, "value");
  3971. PrepareBuilder();
  3972. if (result.hasOptions &&
  3973. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.DefaultInstance) {
  3974. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  3975. } else {
  3976. result.options_ = value;
  3977. }
  3978. result.hasOptions = true;
  3979. return this;
  3980. }
  3981. public Builder ClearOptions() {
  3982. PrepareBuilder();
  3983. result.hasOptions = false;
  3984. result.options_ = null;
  3985. return this;
  3986. }
  3987. }
  3988. static ServiceDescriptorProto() {
  3989. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  3990. }
  3991. }
  3992. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3993. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  3995. public sealed partial class MethodDescriptorProto : pb::GeneratedMessage<MethodDescriptorProto, MethodDescriptorProto.Builder> {
  3996. private MethodDescriptorProto() { }
  3997. private static readonly MethodDescriptorProto defaultInstance = new MethodDescriptorProto().MakeReadOnly();
  3998. private static readonly string[] _methodDescriptorProtoFieldNames = new string[] { "input_type", "name", "options", "output_type" };
  3999. private static readonly uint[] _methodDescriptorProtoFieldTags = new uint[] { 18, 10, 34, 26 };
  4000. public static MethodDescriptorProto DefaultInstance {
  4001. get { return defaultInstance; }
  4002. }
  4003. public override MethodDescriptorProto DefaultInstanceForType {
  4004. get { return DefaultInstance; }
  4005. }
  4006. protected override MethodDescriptorProto ThisMessage {
  4007. get { return this; }
  4008. }
  4009. public static pbd::MessageDescriptor Descriptor {
  4010. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MethodDescriptorProto__Descriptor; }
  4011. }
  4012. protected override pb::FieldAccess.FieldAccessorTable<MethodDescriptorProto, MethodDescriptorProto.Builder> InternalFieldAccessors {
  4013. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MethodDescriptorProto__FieldAccessorTable; }
  4014. }
  4015. public const int NameFieldNumber = 1;
  4016. private bool hasName;
  4017. private string name_ = "";
  4018. public bool HasName {
  4019. get { return hasName; }
  4020. }
  4021. public string Name {
  4022. get { return name_; }
  4023. }
  4024. public const int InputTypeFieldNumber = 2;
  4025. private bool hasInputType;
  4026. private string inputType_ = "";
  4027. public bool HasInputType {
  4028. get { return hasInputType; }
  4029. }
  4030. public string InputType {
  4031. get { return inputType_; }
  4032. }
  4033. public const int OutputTypeFieldNumber = 3;
  4034. private bool hasOutputType;
  4035. private string outputType_ = "";
  4036. public bool HasOutputType {
  4037. get { return hasOutputType; }
  4038. }
  4039. public string OutputType {
  4040. get { return outputType_; }
  4041. }
  4042. public const int OptionsFieldNumber = 4;
  4043. private bool hasOptions;
  4044. private global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions options_;
  4045. public bool HasOptions {
  4046. get { return hasOptions; }
  4047. }
  4048. public global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions Options {
  4049. get { return options_ ?? global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.DefaultInstance; }
  4050. }
  4051. public override bool IsInitialized {
  4052. get {
  4053. if (HasOptions) {
  4054. if (!Options.IsInitialized) return false;
  4055. }
  4056. return true;
  4057. }
  4058. }
  4059. public override void WriteTo(pb::ICodedOutputStream output) {
  4060. int size = SerializedSize;
  4061. string[] field_names = _methodDescriptorProtoFieldNames;
  4062. if (hasName) {
  4063. output.WriteString(1, field_names[1], Name);
  4064. }
  4065. if (hasInputType) {
  4066. output.WriteString(2, field_names[0], InputType);
  4067. }
  4068. if (hasOutputType) {
  4069. output.WriteString(3, field_names[3], OutputType);
  4070. }
  4071. if (hasOptions) {
  4072. output.WriteMessage(4, field_names[2], Options);
  4073. }
  4074. UnknownFields.WriteTo(output);
  4075. }
  4076. private int memoizedSerializedSize = -1;
  4077. public override int SerializedSize {
  4078. get {
  4079. int size = memoizedSerializedSize;
  4080. if (size != -1) return size;
  4081. size = 0;
  4082. if (hasName) {
  4083. size += pb::CodedOutputStream.ComputeStringSize(1, Name);
  4084. }
  4085. if (hasInputType) {
  4086. size += pb::CodedOutputStream.ComputeStringSize(2, InputType);
  4087. }
  4088. if (hasOutputType) {
  4089. size += pb::CodedOutputStream.ComputeStringSize(3, OutputType);
  4090. }
  4091. if (hasOptions) {
  4092. size += pb::CodedOutputStream.ComputeMessageSize(4, Options);
  4093. }
  4094. size += UnknownFields.SerializedSize;
  4095. memoizedSerializedSize = size;
  4096. return size;
  4097. }
  4098. }
  4099. public static MethodDescriptorProto ParseFrom(pb::ByteString data) {
  4100. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4101. }
  4102. public static MethodDescriptorProto ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  4103. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4104. }
  4105. public static MethodDescriptorProto ParseFrom(byte[] data) {
  4106. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4107. }
  4108. public static MethodDescriptorProto ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  4109. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4110. }
  4111. public static MethodDescriptorProto ParseFrom(global::System.IO.Stream input) {
  4112. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4113. }
  4114. public static MethodDescriptorProto ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4115. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4116. }
  4117. public static MethodDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input) {
  4118. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  4119. }
  4120. public static MethodDescriptorProto ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4121. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  4122. }
  4123. public static MethodDescriptorProto ParseFrom(pb::ICodedInputStream input) {
  4124. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4125. }
  4126. public static MethodDescriptorProto ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4127. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4128. }
  4129. private MethodDescriptorProto MakeReadOnly() {
  4130. return this;
  4131. }
  4132. public static Builder CreateBuilder() { return new Builder(); }
  4133. public override Builder ToBuilder() { return CreateBuilder(this); }
  4134. public override Builder CreateBuilderForType() { return new Builder(); }
  4135. public static Builder CreateBuilder(MethodDescriptorProto prototype) {
  4136. return new Builder(prototype);
  4137. }
  4138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4139. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  4140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  4141. public sealed partial class Builder : pb::GeneratedBuilder<MethodDescriptorProto, Builder> {
  4142. protected override Builder ThisBuilder {
  4143. get { return this; }
  4144. }
  4145. public Builder() {
  4146. result = DefaultInstance;
  4147. resultIsReadOnly = true;
  4148. }
  4149. internal Builder(MethodDescriptorProto cloneFrom) {
  4150. result = cloneFrom;
  4151. resultIsReadOnly = true;
  4152. }
  4153. private bool resultIsReadOnly;
  4154. private MethodDescriptorProto result;
  4155. private MethodDescriptorProto PrepareBuilder() {
  4156. if (resultIsReadOnly) {
  4157. MethodDescriptorProto original = result;
  4158. result = new MethodDescriptorProto();
  4159. resultIsReadOnly = false;
  4160. MergeFrom(original);
  4161. }
  4162. return result;
  4163. }
  4164. public override bool IsInitialized {
  4165. get { return result.IsInitialized; }
  4166. }
  4167. protected override MethodDescriptorProto MessageBeingBuilt {
  4168. get { return PrepareBuilder(); }
  4169. }
  4170. public override Builder Clear() {
  4171. result = DefaultInstance;
  4172. resultIsReadOnly = true;
  4173. return this;
  4174. }
  4175. public override Builder Clone() {
  4176. if (resultIsReadOnly) {
  4177. return new Builder(result);
  4178. } else {
  4179. return new Builder().MergeFrom(result);
  4180. }
  4181. }
  4182. public override pbd::MessageDescriptor DescriptorForType {
  4183. get { return global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.Descriptor; }
  4184. }
  4185. public override MethodDescriptorProto DefaultInstanceForType {
  4186. get { return global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.DefaultInstance; }
  4187. }
  4188. public override MethodDescriptorProto BuildPartial() {
  4189. if (resultIsReadOnly) {
  4190. return result;
  4191. }
  4192. resultIsReadOnly = true;
  4193. return result.MakeReadOnly();
  4194. }
  4195. public override Builder MergeFrom(pb::IMessage other) {
  4196. if (other is MethodDescriptorProto) {
  4197. return MergeFrom((MethodDescriptorProto) other);
  4198. } else {
  4199. base.MergeFrom(other);
  4200. return this;
  4201. }
  4202. }
  4203. public override Builder MergeFrom(MethodDescriptorProto other) {
  4204. if (other == global::Google.ProtocolBuffers.DescriptorProtos.MethodDescriptorProto.DefaultInstance) return this;
  4205. PrepareBuilder();
  4206. if (other.HasName) {
  4207. Name = other.Name;
  4208. }
  4209. if (other.HasInputType) {
  4210. InputType = other.InputType;
  4211. }
  4212. if (other.HasOutputType) {
  4213. OutputType = other.OutputType;
  4214. }
  4215. if (other.HasOptions) {
  4216. MergeOptions(other.Options);
  4217. }
  4218. this.MergeUnknownFields(other.UnknownFields);
  4219. return this;
  4220. }
  4221. public override Builder MergeFrom(pb::ICodedInputStream input) {
  4222. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  4223. }
  4224. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4225. PrepareBuilder();
  4226. pb::UnknownFieldSet.Builder unknownFields = null;
  4227. uint tag;
  4228. string field_name;
  4229. while (input.ReadTag(out tag, out field_name)) {
  4230. if(tag == 0 && field_name != null) {
  4231. int field_ordinal = global::System.Array.BinarySearch(_methodDescriptorProtoFieldNames, field_name, global::System.StringComparer.Ordinal);
  4232. if(field_ordinal >= 0)
  4233. tag = _methodDescriptorProtoFieldTags[field_ordinal];
  4234. else {
  4235. if (unknownFields == null) {
  4236. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4237. }
  4238. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  4239. continue;
  4240. }
  4241. }
  4242. switch (tag) {
  4243. case 0: {
  4244. throw pb::InvalidProtocolBufferException.InvalidTag();
  4245. }
  4246. default: {
  4247. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4248. if (unknownFields != null) {
  4249. this.UnknownFields = unknownFields.Build();
  4250. }
  4251. return this;
  4252. }
  4253. if (unknownFields == null) {
  4254. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4255. }
  4256. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  4257. break;
  4258. }
  4259. case 10: {
  4260. result.hasName = input.ReadString(ref result.name_);
  4261. break;
  4262. }
  4263. case 18: {
  4264. result.hasInputType = input.ReadString(ref result.inputType_);
  4265. break;
  4266. }
  4267. case 26: {
  4268. result.hasOutputType = input.ReadString(ref result.outputType_);
  4269. break;
  4270. }
  4271. case 34: {
  4272. global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.Builder subBuilder = global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.CreateBuilder();
  4273. if (result.hasOptions) {
  4274. subBuilder.MergeFrom(Options);
  4275. }
  4276. input.ReadMessage(subBuilder, extensionRegistry);
  4277. Options = subBuilder.BuildPartial();
  4278. break;
  4279. }
  4280. }
  4281. }
  4282. if (unknownFields != null) {
  4283. this.UnknownFields = unknownFields.Build();
  4284. }
  4285. return this;
  4286. }
  4287. public bool HasName {
  4288. get { return result.hasName; }
  4289. }
  4290. public string Name {
  4291. get { return result.Name; }
  4292. set { SetName(value); }
  4293. }
  4294. public Builder SetName(string value) {
  4295. pb::ThrowHelper.ThrowIfNull(value, "value");
  4296. PrepareBuilder();
  4297. result.hasName = true;
  4298. result.name_ = value;
  4299. return this;
  4300. }
  4301. public Builder ClearName() {
  4302. PrepareBuilder();
  4303. result.hasName = false;
  4304. result.name_ = "";
  4305. return this;
  4306. }
  4307. public bool HasInputType {
  4308. get { return result.hasInputType; }
  4309. }
  4310. public string InputType {
  4311. get { return result.InputType; }
  4312. set { SetInputType(value); }
  4313. }
  4314. public Builder SetInputType(string value) {
  4315. pb::ThrowHelper.ThrowIfNull(value, "value");
  4316. PrepareBuilder();
  4317. result.hasInputType = true;
  4318. result.inputType_ = value;
  4319. return this;
  4320. }
  4321. public Builder ClearInputType() {
  4322. PrepareBuilder();
  4323. result.hasInputType = false;
  4324. result.inputType_ = "";
  4325. return this;
  4326. }
  4327. public bool HasOutputType {
  4328. get { return result.hasOutputType; }
  4329. }
  4330. public string OutputType {
  4331. get { return result.OutputType; }
  4332. set { SetOutputType(value); }
  4333. }
  4334. public Builder SetOutputType(string value) {
  4335. pb::ThrowHelper.ThrowIfNull(value, "value");
  4336. PrepareBuilder();
  4337. result.hasOutputType = true;
  4338. result.outputType_ = value;
  4339. return this;
  4340. }
  4341. public Builder ClearOutputType() {
  4342. PrepareBuilder();
  4343. result.hasOutputType = false;
  4344. result.outputType_ = "";
  4345. return this;
  4346. }
  4347. public bool HasOptions {
  4348. get { return result.hasOptions; }
  4349. }
  4350. public global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions Options {
  4351. get { return result.Options; }
  4352. set { SetOptions(value); }
  4353. }
  4354. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions value) {
  4355. pb::ThrowHelper.ThrowIfNull(value, "value");
  4356. PrepareBuilder();
  4357. result.hasOptions = true;
  4358. result.options_ = value;
  4359. return this;
  4360. }
  4361. public Builder SetOptions(global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.Builder builderForValue) {
  4362. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  4363. PrepareBuilder();
  4364. result.hasOptions = true;
  4365. result.options_ = builderForValue.Build();
  4366. return this;
  4367. }
  4368. public Builder MergeOptions(global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions value) {
  4369. pb::ThrowHelper.ThrowIfNull(value, "value");
  4370. PrepareBuilder();
  4371. if (result.hasOptions &&
  4372. result.options_ != global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.DefaultInstance) {
  4373. result.options_ = global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.CreateBuilder(result.options_).MergeFrom(value).BuildPartial();
  4374. } else {
  4375. result.options_ = value;
  4376. }
  4377. result.hasOptions = true;
  4378. return this;
  4379. }
  4380. public Builder ClearOptions() {
  4381. PrepareBuilder();
  4382. result.hasOptions = false;
  4383. result.options_ = null;
  4384. return this;
  4385. }
  4386. }
  4387. static MethodDescriptorProto() {
  4388. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  4389. }
  4390. }
  4391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4392. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  4393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  4394. public sealed partial class FileOptions : pb::ExtendableMessage<FileOptions, FileOptions.Builder> {
  4395. private FileOptions() { }
  4396. private static readonly FileOptions defaultInstance = new FileOptions().MakeReadOnly();
  4397. private static readonly string[] _fileOptionsFieldNames = new string[] { "cc_generic_services", "java_generate_equals_and_hash", "java_generic_services", "java_multiple_files", "java_outer_classname", "java_package", "optimize_for", "py_generic_services", "uninterpreted_option" };
  4398. private static readonly uint[] _fileOptionsFieldTags = new uint[] { 128, 160, 136, 80, 66, 10, 72, 144, 7994 };
  4399. public static FileOptions DefaultInstance {
  4400. get { return defaultInstance; }
  4401. }
  4402. public override FileOptions DefaultInstanceForType {
  4403. get { return DefaultInstance; }
  4404. }
  4405. protected override FileOptions ThisMessage {
  4406. get { return this; }
  4407. }
  4408. public static pbd::MessageDescriptor Descriptor {
  4409. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileOptions__Descriptor; }
  4410. }
  4411. protected override pb::FieldAccess.FieldAccessorTable<FileOptions, FileOptions.Builder> InternalFieldAccessors {
  4412. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FileOptions__FieldAccessorTable; }
  4413. }
  4414. #region Nested types
  4415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4416. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  4417. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  4418. public static class Types {
  4419. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  4420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  4421. public enum OptimizeMode {
  4422. SPEED = 1,
  4423. CODE_SIZE = 2,
  4424. LITE_RUNTIME = 3,
  4425. }
  4426. }
  4427. #endregion
  4428. public const int JavaPackageFieldNumber = 1;
  4429. private bool hasJavaPackage;
  4430. private string javaPackage_ = "";
  4431. public bool HasJavaPackage {
  4432. get { return hasJavaPackage; }
  4433. }
  4434. public string JavaPackage {
  4435. get { return javaPackage_; }
  4436. }
  4437. public const int JavaOuterClassnameFieldNumber = 8;
  4438. private bool hasJavaOuterClassname;
  4439. private string javaOuterClassname_ = "";
  4440. public bool HasJavaOuterClassname {
  4441. get { return hasJavaOuterClassname; }
  4442. }
  4443. public string JavaOuterClassname {
  4444. get { return javaOuterClassname_; }
  4445. }
  4446. public const int JavaMultipleFilesFieldNumber = 10;
  4447. private bool hasJavaMultipleFiles;
  4448. private bool javaMultipleFiles_;
  4449. public bool HasJavaMultipleFiles {
  4450. get { return hasJavaMultipleFiles; }
  4451. }
  4452. public bool JavaMultipleFiles {
  4453. get { return javaMultipleFiles_; }
  4454. }
  4455. public const int JavaGenerateEqualsAndHashFieldNumber = 20;
  4456. private bool hasJavaGenerateEqualsAndHash;
  4457. private bool javaGenerateEqualsAndHash_;
  4458. public bool HasJavaGenerateEqualsAndHash {
  4459. get { return hasJavaGenerateEqualsAndHash; }
  4460. }
  4461. public bool JavaGenerateEqualsAndHash {
  4462. get { return javaGenerateEqualsAndHash_; }
  4463. }
  4464. public const int OptimizeForFieldNumber = 9;
  4465. private bool hasOptimizeFor;
  4466. private global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode optimizeFor_ = global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode.SPEED;
  4467. public bool HasOptimizeFor {
  4468. get { return hasOptimizeFor; }
  4469. }
  4470. public global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode OptimizeFor {
  4471. get { return optimizeFor_; }
  4472. }
  4473. public const int CcGenericServicesFieldNumber = 16;
  4474. private bool hasCcGenericServices;
  4475. private bool ccGenericServices_;
  4476. public bool HasCcGenericServices {
  4477. get { return hasCcGenericServices; }
  4478. }
  4479. public bool CcGenericServices {
  4480. get { return ccGenericServices_; }
  4481. }
  4482. public const int JavaGenericServicesFieldNumber = 17;
  4483. private bool hasJavaGenericServices;
  4484. private bool javaGenericServices_;
  4485. public bool HasJavaGenericServices {
  4486. get { return hasJavaGenericServices; }
  4487. }
  4488. public bool JavaGenericServices {
  4489. get { return javaGenericServices_; }
  4490. }
  4491. public const int PyGenericServicesFieldNumber = 18;
  4492. private bool hasPyGenericServices;
  4493. private bool pyGenericServices_;
  4494. public bool HasPyGenericServices {
  4495. get { return hasPyGenericServices; }
  4496. }
  4497. public bool PyGenericServices {
  4498. get { return pyGenericServices_; }
  4499. }
  4500. public const int UninterpretedOptionFieldNumber = 999;
  4501. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption>();
  4502. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  4503. get { return uninterpretedOption_; }
  4504. }
  4505. public int UninterpretedOptionCount {
  4506. get { return uninterpretedOption_.Count; }
  4507. }
  4508. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  4509. return uninterpretedOption_[index];
  4510. }
  4511. public override bool IsInitialized {
  4512. get {
  4513. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  4514. if (!element.IsInitialized) return false;
  4515. }
  4516. if (!ExtensionsAreInitialized) return false;
  4517. return true;
  4518. }
  4519. }
  4520. public override void WriteTo(pb::ICodedOutputStream output) {
  4521. int size = SerializedSize;
  4522. string[] field_names = _fileOptionsFieldNames;
  4523. pb::ExtendableMessage<FileOptions, FileOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  4524. if (hasJavaPackage) {
  4525. output.WriteString(1, field_names[5], JavaPackage);
  4526. }
  4527. if (hasJavaOuterClassname) {
  4528. output.WriteString(8, field_names[4], JavaOuterClassname);
  4529. }
  4530. if (hasOptimizeFor) {
  4531. output.WriteEnum(9, field_names[6], (int) OptimizeFor, OptimizeFor);
  4532. }
  4533. if (hasJavaMultipleFiles) {
  4534. output.WriteBool(10, field_names[3], JavaMultipleFiles);
  4535. }
  4536. if (hasCcGenericServices) {
  4537. output.WriteBool(16, field_names[0], CcGenericServices);
  4538. }
  4539. if (hasJavaGenericServices) {
  4540. output.WriteBool(17, field_names[2], JavaGenericServices);
  4541. }
  4542. if (hasPyGenericServices) {
  4543. output.WriteBool(18, field_names[7], PyGenericServices);
  4544. }
  4545. if (hasJavaGenerateEqualsAndHash) {
  4546. output.WriteBool(20, field_names[1], JavaGenerateEqualsAndHash);
  4547. }
  4548. if (uninterpretedOption_.Count > 0) {
  4549. output.WriteMessageArray(999, field_names[8], uninterpretedOption_);
  4550. }
  4551. extensionWriter.WriteUntil(536870912, output);
  4552. UnknownFields.WriteTo(output);
  4553. }
  4554. private int memoizedSerializedSize = -1;
  4555. public override int SerializedSize {
  4556. get {
  4557. int size = memoizedSerializedSize;
  4558. if (size != -1) return size;
  4559. size = 0;
  4560. if (hasJavaPackage) {
  4561. size += pb::CodedOutputStream.ComputeStringSize(1, JavaPackage);
  4562. }
  4563. if (hasJavaOuterClassname) {
  4564. size += pb::CodedOutputStream.ComputeStringSize(8, JavaOuterClassname);
  4565. }
  4566. if (hasJavaMultipleFiles) {
  4567. size += pb::CodedOutputStream.ComputeBoolSize(10, JavaMultipleFiles);
  4568. }
  4569. if (hasJavaGenerateEqualsAndHash) {
  4570. size += pb::CodedOutputStream.ComputeBoolSize(20, JavaGenerateEqualsAndHash);
  4571. }
  4572. if (hasOptimizeFor) {
  4573. size += pb::CodedOutputStream.ComputeEnumSize(9, (int) OptimizeFor);
  4574. }
  4575. if (hasCcGenericServices) {
  4576. size += pb::CodedOutputStream.ComputeBoolSize(16, CcGenericServices);
  4577. }
  4578. if (hasJavaGenericServices) {
  4579. size += pb::CodedOutputStream.ComputeBoolSize(17, JavaGenericServices);
  4580. }
  4581. if (hasPyGenericServices) {
  4582. size += pb::CodedOutputStream.ComputeBoolSize(18, PyGenericServices);
  4583. }
  4584. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  4585. size += pb::CodedOutputStream.ComputeMessageSize(999, element);
  4586. }
  4587. size += ExtensionsSerializedSize;
  4588. size += UnknownFields.SerializedSize;
  4589. memoizedSerializedSize = size;
  4590. return size;
  4591. }
  4592. }
  4593. public static FileOptions ParseFrom(pb::ByteString data) {
  4594. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4595. }
  4596. public static FileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  4597. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4598. }
  4599. public static FileOptions ParseFrom(byte[] data) {
  4600. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  4601. }
  4602. public static FileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  4603. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  4604. }
  4605. public static FileOptions ParseFrom(global::System.IO.Stream input) {
  4606. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4607. }
  4608. public static FileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4609. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4610. }
  4611. public static FileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  4612. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  4613. }
  4614. public static FileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  4615. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  4616. }
  4617. public static FileOptions ParseFrom(pb::ICodedInputStream input) {
  4618. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  4619. }
  4620. public static FileOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4621. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  4622. }
  4623. private FileOptions MakeReadOnly() {
  4624. uninterpretedOption_.MakeReadOnly();
  4625. return this;
  4626. }
  4627. public static Builder CreateBuilder() { return new Builder(); }
  4628. public override Builder ToBuilder() { return CreateBuilder(this); }
  4629. public override Builder CreateBuilderForType() { return new Builder(); }
  4630. public static Builder CreateBuilder(FileOptions prototype) {
  4631. return new Builder(prototype);
  4632. }
  4633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4634. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  4635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  4636. public sealed partial class Builder : pb::ExtendableBuilder<FileOptions, Builder> {
  4637. protected override Builder ThisBuilder {
  4638. get { return this; }
  4639. }
  4640. public Builder() {
  4641. result = DefaultInstance;
  4642. resultIsReadOnly = true;
  4643. }
  4644. internal Builder(FileOptions cloneFrom) {
  4645. result = cloneFrom;
  4646. resultIsReadOnly = true;
  4647. }
  4648. private bool resultIsReadOnly;
  4649. private FileOptions result;
  4650. private FileOptions PrepareBuilder() {
  4651. if (resultIsReadOnly) {
  4652. FileOptions original = result;
  4653. result = new FileOptions();
  4654. resultIsReadOnly = false;
  4655. MergeFrom(original);
  4656. }
  4657. return result;
  4658. }
  4659. public override bool IsInitialized {
  4660. get { return result.IsInitialized; }
  4661. }
  4662. protected override FileOptions MessageBeingBuilt {
  4663. get { return PrepareBuilder(); }
  4664. }
  4665. public override Builder Clear() {
  4666. result = DefaultInstance;
  4667. resultIsReadOnly = true;
  4668. return this;
  4669. }
  4670. public override Builder Clone() {
  4671. if (resultIsReadOnly) {
  4672. return new Builder(result);
  4673. } else {
  4674. return new Builder().MergeFrom(result);
  4675. }
  4676. }
  4677. public override pbd::MessageDescriptor DescriptorForType {
  4678. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Descriptor; }
  4679. }
  4680. public override FileOptions DefaultInstanceForType {
  4681. get { return global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.DefaultInstance; }
  4682. }
  4683. public override FileOptions BuildPartial() {
  4684. if (resultIsReadOnly) {
  4685. return result;
  4686. }
  4687. resultIsReadOnly = true;
  4688. return result.MakeReadOnly();
  4689. }
  4690. public override Builder MergeFrom(pb::IMessage other) {
  4691. if (other is FileOptions) {
  4692. return MergeFrom((FileOptions) other);
  4693. } else {
  4694. base.MergeFrom(other);
  4695. return this;
  4696. }
  4697. }
  4698. public override Builder MergeFrom(FileOptions other) {
  4699. if (other == global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.DefaultInstance) return this;
  4700. PrepareBuilder();
  4701. if (other.HasJavaPackage) {
  4702. JavaPackage = other.JavaPackage;
  4703. }
  4704. if (other.HasJavaOuterClassname) {
  4705. JavaOuterClassname = other.JavaOuterClassname;
  4706. }
  4707. if (other.HasJavaMultipleFiles) {
  4708. JavaMultipleFiles = other.JavaMultipleFiles;
  4709. }
  4710. if (other.HasJavaGenerateEqualsAndHash) {
  4711. JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash;
  4712. }
  4713. if (other.HasOptimizeFor) {
  4714. OptimizeFor = other.OptimizeFor;
  4715. }
  4716. if (other.HasCcGenericServices) {
  4717. CcGenericServices = other.CcGenericServices;
  4718. }
  4719. if (other.HasJavaGenericServices) {
  4720. JavaGenericServices = other.JavaGenericServices;
  4721. }
  4722. if (other.HasPyGenericServices) {
  4723. PyGenericServices = other.PyGenericServices;
  4724. }
  4725. if (other.uninterpretedOption_.Count != 0) {
  4726. result.uninterpretedOption_.Add(other.uninterpretedOption_);
  4727. }
  4728. this.MergeExtensionFields(other);
  4729. this.MergeUnknownFields(other.UnknownFields);
  4730. return this;
  4731. }
  4732. public override Builder MergeFrom(pb::ICodedInputStream input) {
  4733. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  4734. }
  4735. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  4736. PrepareBuilder();
  4737. pb::UnknownFieldSet.Builder unknownFields = null;
  4738. uint tag;
  4739. string field_name;
  4740. while (input.ReadTag(out tag, out field_name)) {
  4741. if(tag == 0 && field_name != null) {
  4742. int field_ordinal = global::System.Array.BinarySearch(_fileOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  4743. if(field_ordinal >= 0)
  4744. tag = _fileOptionsFieldTags[field_ordinal];
  4745. else {
  4746. if (unknownFields == null) {
  4747. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4748. }
  4749. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  4750. continue;
  4751. }
  4752. }
  4753. switch (tag) {
  4754. case 0: {
  4755. throw pb::InvalidProtocolBufferException.InvalidTag();
  4756. }
  4757. default: {
  4758. if (pb::WireFormat.IsEndGroupTag(tag)) {
  4759. if (unknownFields != null) {
  4760. this.UnknownFields = unknownFields.Build();
  4761. }
  4762. return this;
  4763. }
  4764. if (unknownFields == null) {
  4765. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4766. }
  4767. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  4768. break;
  4769. }
  4770. case 10: {
  4771. result.hasJavaPackage = input.ReadString(ref result.javaPackage_);
  4772. break;
  4773. }
  4774. case 66: {
  4775. result.hasJavaOuterClassname = input.ReadString(ref result.javaOuterClassname_);
  4776. break;
  4777. }
  4778. case 72: {
  4779. object unknown;
  4780. if(input.ReadEnum(ref result.optimizeFor_, out unknown)) {
  4781. result.hasOptimizeFor = true;
  4782. } else if(unknown is int) {
  4783. if (unknownFields == null) {
  4784. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  4785. }
  4786. unknownFields.MergeVarintField(9, (ulong)(int)unknown);
  4787. }
  4788. break;
  4789. }
  4790. case 80: {
  4791. result.hasJavaMultipleFiles = input.ReadBool(ref result.javaMultipleFiles_);
  4792. break;
  4793. }
  4794. case 128: {
  4795. result.hasCcGenericServices = input.ReadBool(ref result.ccGenericServices_);
  4796. break;
  4797. }
  4798. case 136: {
  4799. result.hasJavaGenericServices = input.ReadBool(ref result.javaGenericServices_);
  4800. break;
  4801. }
  4802. case 144: {
  4803. result.hasPyGenericServices = input.ReadBool(ref result.pyGenericServices_);
  4804. break;
  4805. }
  4806. case 160: {
  4807. result.hasJavaGenerateEqualsAndHash = input.ReadBool(ref result.javaGenerateEqualsAndHash_);
  4808. break;
  4809. }
  4810. case 7994: {
  4811. input.ReadMessageArray(tag, field_name, result.uninterpretedOption_, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.DefaultInstance, extensionRegistry);
  4812. break;
  4813. }
  4814. }
  4815. }
  4816. if (unknownFields != null) {
  4817. this.UnknownFields = unknownFields.Build();
  4818. }
  4819. return this;
  4820. }
  4821. public bool HasJavaPackage {
  4822. get { return result.hasJavaPackage; }
  4823. }
  4824. public string JavaPackage {
  4825. get { return result.JavaPackage; }
  4826. set { SetJavaPackage(value); }
  4827. }
  4828. public Builder SetJavaPackage(string value) {
  4829. pb::ThrowHelper.ThrowIfNull(value, "value");
  4830. PrepareBuilder();
  4831. result.hasJavaPackage = true;
  4832. result.javaPackage_ = value;
  4833. return this;
  4834. }
  4835. public Builder ClearJavaPackage() {
  4836. PrepareBuilder();
  4837. result.hasJavaPackage = false;
  4838. result.javaPackage_ = "";
  4839. return this;
  4840. }
  4841. public bool HasJavaOuterClassname {
  4842. get { return result.hasJavaOuterClassname; }
  4843. }
  4844. public string JavaOuterClassname {
  4845. get { return result.JavaOuterClassname; }
  4846. set { SetJavaOuterClassname(value); }
  4847. }
  4848. public Builder SetJavaOuterClassname(string value) {
  4849. pb::ThrowHelper.ThrowIfNull(value, "value");
  4850. PrepareBuilder();
  4851. result.hasJavaOuterClassname = true;
  4852. result.javaOuterClassname_ = value;
  4853. return this;
  4854. }
  4855. public Builder ClearJavaOuterClassname() {
  4856. PrepareBuilder();
  4857. result.hasJavaOuterClassname = false;
  4858. result.javaOuterClassname_ = "";
  4859. return this;
  4860. }
  4861. public bool HasJavaMultipleFiles {
  4862. get { return result.hasJavaMultipleFiles; }
  4863. }
  4864. public bool JavaMultipleFiles {
  4865. get { return result.JavaMultipleFiles; }
  4866. set { SetJavaMultipleFiles(value); }
  4867. }
  4868. public Builder SetJavaMultipleFiles(bool value) {
  4869. PrepareBuilder();
  4870. result.hasJavaMultipleFiles = true;
  4871. result.javaMultipleFiles_ = value;
  4872. return this;
  4873. }
  4874. public Builder ClearJavaMultipleFiles() {
  4875. PrepareBuilder();
  4876. result.hasJavaMultipleFiles = false;
  4877. result.javaMultipleFiles_ = false;
  4878. return this;
  4879. }
  4880. public bool HasJavaGenerateEqualsAndHash {
  4881. get { return result.hasJavaGenerateEqualsAndHash; }
  4882. }
  4883. public bool JavaGenerateEqualsAndHash {
  4884. get { return result.JavaGenerateEqualsAndHash; }
  4885. set { SetJavaGenerateEqualsAndHash(value); }
  4886. }
  4887. public Builder SetJavaGenerateEqualsAndHash(bool value) {
  4888. PrepareBuilder();
  4889. result.hasJavaGenerateEqualsAndHash = true;
  4890. result.javaGenerateEqualsAndHash_ = value;
  4891. return this;
  4892. }
  4893. public Builder ClearJavaGenerateEqualsAndHash() {
  4894. PrepareBuilder();
  4895. result.hasJavaGenerateEqualsAndHash = false;
  4896. result.javaGenerateEqualsAndHash_ = false;
  4897. return this;
  4898. }
  4899. public bool HasOptimizeFor {
  4900. get { return result.hasOptimizeFor; }
  4901. }
  4902. public global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode OptimizeFor {
  4903. get { return result.OptimizeFor; }
  4904. set { SetOptimizeFor(value); }
  4905. }
  4906. public Builder SetOptimizeFor(global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode value) {
  4907. PrepareBuilder();
  4908. result.hasOptimizeFor = true;
  4909. result.optimizeFor_ = value;
  4910. return this;
  4911. }
  4912. public Builder ClearOptimizeFor() {
  4913. PrepareBuilder();
  4914. result.hasOptimizeFor = false;
  4915. result.optimizeFor_ = global::Google.ProtocolBuffers.DescriptorProtos.FileOptions.Types.OptimizeMode.SPEED;
  4916. return this;
  4917. }
  4918. public bool HasCcGenericServices {
  4919. get { return result.hasCcGenericServices; }
  4920. }
  4921. public bool CcGenericServices {
  4922. get { return result.CcGenericServices; }
  4923. set { SetCcGenericServices(value); }
  4924. }
  4925. public Builder SetCcGenericServices(bool value) {
  4926. PrepareBuilder();
  4927. result.hasCcGenericServices = true;
  4928. result.ccGenericServices_ = value;
  4929. return this;
  4930. }
  4931. public Builder ClearCcGenericServices() {
  4932. PrepareBuilder();
  4933. result.hasCcGenericServices = false;
  4934. result.ccGenericServices_ = false;
  4935. return this;
  4936. }
  4937. public bool HasJavaGenericServices {
  4938. get { return result.hasJavaGenericServices; }
  4939. }
  4940. public bool JavaGenericServices {
  4941. get { return result.JavaGenericServices; }
  4942. set { SetJavaGenericServices(value); }
  4943. }
  4944. public Builder SetJavaGenericServices(bool value) {
  4945. PrepareBuilder();
  4946. result.hasJavaGenericServices = true;
  4947. result.javaGenericServices_ = value;
  4948. return this;
  4949. }
  4950. public Builder ClearJavaGenericServices() {
  4951. PrepareBuilder();
  4952. result.hasJavaGenericServices = false;
  4953. result.javaGenericServices_ = false;
  4954. return this;
  4955. }
  4956. public bool HasPyGenericServices {
  4957. get { return result.hasPyGenericServices; }
  4958. }
  4959. public bool PyGenericServices {
  4960. get { return result.PyGenericServices; }
  4961. set { SetPyGenericServices(value); }
  4962. }
  4963. public Builder SetPyGenericServices(bool value) {
  4964. PrepareBuilder();
  4965. result.hasPyGenericServices = true;
  4966. result.pyGenericServices_ = value;
  4967. return this;
  4968. }
  4969. public Builder ClearPyGenericServices() {
  4970. PrepareBuilder();
  4971. result.hasPyGenericServices = false;
  4972. result.pyGenericServices_ = false;
  4973. return this;
  4974. }
  4975. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  4976. get { return PrepareBuilder().uninterpretedOption_; }
  4977. }
  4978. public int UninterpretedOptionCount {
  4979. get { return result.UninterpretedOptionCount; }
  4980. }
  4981. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  4982. return result.GetUninterpretedOption(index);
  4983. }
  4984. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  4985. pb::ThrowHelper.ThrowIfNull(value, "value");
  4986. PrepareBuilder();
  4987. result.uninterpretedOption_[index] = value;
  4988. return this;
  4989. }
  4990. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  4991. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  4992. PrepareBuilder();
  4993. result.uninterpretedOption_[index] = builderForValue.Build();
  4994. return this;
  4995. }
  4996. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  4997. pb::ThrowHelper.ThrowIfNull(value, "value");
  4998. PrepareBuilder();
  4999. result.uninterpretedOption_.Add(value);
  5000. return this;
  5001. }
  5002. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  5003. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5004. PrepareBuilder();
  5005. result.uninterpretedOption_.Add(builderForValue.Build());
  5006. return this;
  5007. }
  5008. public Builder AddRangeUninterpretedOption(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> values) {
  5009. PrepareBuilder();
  5010. result.uninterpretedOption_.Add(values);
  5011. return this;
  5012. }
  5013. public Builder ClearUninterpretedOption() {
  5014. PrepareBuilder();
  5015. result.uninterpretedOption_.Clear();
  5016. return this;
  5017. }
  5018. }
  5019. static FileOptions() {
  5020. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  5021. }
  5022. }
  5023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5024. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  5025. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  5026. public sealed partial class MessageOptions : pb::ExtendableMessage<MessageOptions, MessageOptions.Builder> {
  5027. private MessageOptions() { }
  5028. private static readonly MessageOptions defaultInstance = new MessageOptions().MakeReadOnly();
  5029. private static readonly string[] _messageOptionsFieldNames = new string[] { "message_set_wire_format", "no_standard_descriptor_accessor", "uninterpreted_option" };
  5030. private static readonly uint[] _messageOptionsFieldTags = new uint[] { 8, 16, 7994 };
  5031. public static MessageOptions DefaultInstance {
  5032. get { return defaultInstance; }
  5033. }
  5034. public override MessageOptions DefaultInstanceForType {
  5035. get { return DefaultInstance; }
  5036. }
  5037. protected override MessageOptions ThisMessage {
  5038. get { return this; }
  5039. }
  5040. public static pbd::MessageDescriptor Descriptor {
  5041. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MessageOptions__Descriptor; }
  5042. }
  5043. protected override pb::FieldAccess.FieldAccessorTable<MessageOptions, MessageOptions.Builder> InternalFieldAccessors {
  5044. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MessageOptions__FieldAccessorTable; }
  5045. }
  5046. public const int MessageSetWireFormatFieldNumber = 1;
  5047. private bool hasMessageSetWireFormat;
  5048. private bool messageSetWireFormat_;
  5049. public bool HasMessageSetWireFormat {
  5050. get { return hasMessageSetWireFormat; }
  5051. }
  5052. public bool MessageSetWireFormat {
  5053. get { return messageSetWireFormat_; }
  5054. }
  5055. public const int NoStandardDescriptorAccessorFieldNumber = 2;
  5056. private bool hasNoStandardDescriptorAccessor;
  5057. private bool noStandardDescriptorAccessor_;
  5058. public bool HasNoStandardDescriptorAccessor {
  5059. get { return hasNoStandardDescriptorAccessor; }
  5060. }
  5061. public bool NoStandardDescriptorAccessor {
  5062. get { return noStandardDescriptorAccessor_; }
  5063. }
  5064. public const int UninterpretedOptionFieldNumber = 999;
  5065. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption>();
  5066. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  5067. get { return uninterpretedOption_; }
  5068. }
  5069. public int UninterpretedOptionCount {
  5070. get { return uninterpretedOption_.Count; }
  5071. }
  5072. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  5073. return uninterpretedOption_[index];
  5074. }
  5075. public override bool IsInitialized {
  5076. get {
  5077. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  5078. if (!element.IsInitialized) return false;
  5079. }
  5080. if (!ExtensionsAreInitialized) return false;
  5081. return true;
  5082. }
  5083. }
  5084. public override void WriteTo(pb::ICodedOutputStream output) {
  5085. int size = SerializedSize;
  5086. string[] field_names = _messageOptionsFieldNames;
  5087. pb::ExtendableMessage<MessageOptions, MessageOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  5088. if (hasMessageSetWireFormat) {
  5089. output.WriteBool(1, field_names[0], MessageSetWireFormat);
  5090. }
  5091. if (hasNoStandardDescriptorAccessor) {
  5092. output.WriteBool(2, field_names[1], NoStandardDescriptorAccessor);
  5093. }
  5094. if (uninterpretedOption_.Count > 0) {
  5095. output.WriteMessageArray(999, field_names[2], uninterpretedOption_);
  5096. }
  5097. extensionWriter.WriteUntil(536870912, output);
  5098. UnknownFields.WriteTo(output);
  5099. }
  5100. private int memoizedSerializedSize = -1;
  5101. public override int SerializedSize {
  5102. get {
  5103. int size = memoizedSerializedSize;
  5104. if (size != -1) return size;
  5105. size = 0;
  5106. if (hasMessageSetWireFormat) {
  5107. size += pb::CodedOutputStream.ComputeBoolSize(1, MessageSetWireFormat);
  5108. }
  5109. if (hasNoStandardDescriptorAccessor) {
  5110. size += pb::CodedOutputStream.ComputeBoolSize(2, NoStandardDescriptorAccessor);
  5111. }
  5112. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  5113. size += pb::CodedOutputStream.ComputeMessageSize(999, element);
  5114. }
  5115. size += ExtensionsSerializedSize;
  5116. size += UnknownFields.SerializedSize;
  5117. memoizedSerializedSize = size;
  5118. return size;
  5119. }
  5120. }
  5121. public static MessageOptions ParseFrom(pb::ByteString data) {
  5122. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5123. }
  5124. public static MessageOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  5125. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  5126. }
  5127. public static MessageOptions ParseFrom(byte[] data) {
  5128. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5129. }
  5130. public static MessageOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  5131. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  5132. }
  5133. public static MessageOptions ParseFrom(global::System.IO.Stream input) {
  5134. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5135. }
  5136. public static MessageOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  5137. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  5138. }
  5139. public static MessageOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  5140. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  5141. }
  5142. public static MessageOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  5143. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  5144. }
  5145. public static MessageOptions ParseFrom(pb::ICodedInputStream input) {
  5146. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5147. }
  5148. public static MessageOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5149. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  5150. }
  5151. private MessageOptions MakeReadOnly() {
  5152. uninterpretedOption_.MakeReadOnly();
  5153. return this;
  5154. }
  5155. public static Builder CreateBuilder() { return new Builder(); }
  5156. public override Builder ToBuilder() { return CreateBuilder(this); }
  5157. public override Builder CreateBuilderForType() { return new Builder(); }
  5158. public static Builder CreateBuilder(MessageOptions prototype) {
  5159. return new Builder(prototype);
  5160. }
  5161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5162. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  5163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  5164. public sealed partial class Builder : pb::ExtendableBuilder<MessageOptions, Builder> {
  5165. protected override Builder ThisBuilder {
  5166. get { return this; }
  5167. }
  5168. public Builder() {
  5169. result = DefaultInstance;
  5170. resultIsReadOnly = true;
  5171. }
  5172. internal Builder(MessageOptions cloneFrom) {
  5173. result = cloneFrom;
  5174. resultIsReadOnly = true;
  5175. }
  5176. private bool resultIsReadOnly;
  5177. private MessageOptions result;
  5178. private MessageOptions PrepareBuilder() {
  5179. if (resultIsReadOnly) {
  5180. MessageOptions original = result;
  5181. result = new MessageOptions();
  5182. resultIsReadOnly = false;
  5183. MergeFrom(original);
  5184. }
  5185. return result;
  5186. }
  5187. public override bool IsInitialized {
  5188. get { return result.IsInitialized; }
  5189. }
  5190. protected override MessageOptions MessageBeingBuilt {
  5191. get { return PrepareBuilder(); }
  5192. }
  5193. public override Builder Clear() {
  5194. result = DefaultInstance;
  5195. resultIsReadOnly = true;
  5196. return this;
  5197. }
  5198. public override Builder Clone() {
  5199. if (resultIsReadOnly) {
  5200. return new Builder(result);
  5201. } else {
  5202. return new Builder().MergeFrom(result);
  5203. }
  5204. }
  5205. public override pbd::MessageDescriptor DescriptorForType {
  5206. get { return global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.Descriptor; }
  5207. }
  5208. public override MessageOptions DefaultInstanceForType {
  5209. get { return global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.DefaultInstance; }
  5210. }
  5211. public override MessageOptions BuildPartial() {
  5212. if (resultIsReadOnly) {
  5213. return result;
  5214. }
  5215. resultIsReadOnly = true;
  5216. return result.MakeReadOnly();
  5217. }
  5218. public override Builder MergeFrom(pb::IMessage other) {
  5219. if (other is MessageOptions) {
  5220. return MergeFrom((MessageOptions) other);
  5221. } else {
  5222. base.MergeFrom(other);
  5223. return this;
  5224. }
  5225. }
  5226. public override Builder MergeFrom(MessageOptions other) {
  5227. if (other == global::Google.ProtocolBuffers.DescriptorProtos.MessageOptions.DefaultInstance) return this;
  5228. PrepareBuilder();
  5229. if (other.HasMessageSetWireFormat) {
  5230. MessageSetWireFormat = other.MessageSetWireFormat;
  5231. }
  5232. if (other.HasNoStandardDescriptorAccessor) {
  5233. NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
  5234. }
  5235. if (other.uninterpretedOption_.Count != 0) {
  5236. result.uninterpretedOption_.Add(other.uninterpretedOption_);
  5237. }
  5238. this.MergeExtensionFields(other);
  5239. this.MergeUnknownFields(other.UnknownFields);
  5240. return this;
  5241. }
  5242. public override Builder MergeFrom(pb::ICodedInputStream input) {
  5243. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5244. }
  5245. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5246. PrepareBuilder();
  5247. pb::UnknownFieldSet.Builder unknownFields = null;
  5248. uint tag;
  5249. string field_name;
  5250. while (input.ReadTag(out tag, out field_name)) {
  5251. if(tag == 0 && field_name != null) {
  5252. int field_ordinal = global::System.Array.BinarySearch(_messageOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  5253. if(field_ordinal >= 0)
  5254. tag = _messageOptionsFieldTags[field_ordinal];
  5255. else {
  5256. if (unknownFields == null) {
  5257. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5258. }
  5259. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  5260. continue;
  5261. }
  5262. }
  5263. switch (tag) {
  5264. case 0: {
  5265. throw pb::InvalidProtocolBufferException.InvalidTag();
  5266. }
  5267. default: {
  5268. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5269. if (unknownFields != null) {
  5270. this.UnknownFields = unknownFields.Build();
  5271. }
  5272. return this;
  5273. }
  5274. if (unknownFields == null) {
  5275. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5276. }
  5277. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  5278. break;
  5279. }
  5280. case 8: {
  5281. result.hasMessageSetWireFormat = input.ReadBool(ref result.messageSetWireFormat_);
  5282. break;
  5283. }
  5284. case 16: {
  5285. result.hasNoStandardDescriptorAccessor = input.ReadBool(ref result.noStandardDescriptorAccessor_);
  5286. break;
  5287. }
  5288. case 7994: {
  5289. input.ReadMessageArray(tag, field_name, result.uninterpretedOption_, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.DefaultInstance, extensionRegistry);
  5290. break;
  5291. }
  5292. }
  5293. }
  5294. if (unknownFields != null) {
  5295. this.UnknownFields = unknownFields.Build();
  5296. }
  5297. return this;
  5298. }
  5299. public bool HasMessageSetWireFormat {
  5300. get { return result.hasMessageSetWireFormat; }
  5301. }
  5302. public bool MessageSetWireFormat {
  5303. get { return result.MessageSetWireFormat; }
  5304. set { SetMessageSetWireFormat(value); }
  5305. }
  5306. public Builder SetMessageSetWireFormat(bool value) {
  5307. PrepareBuilder();
  5308. result.hasMessageSetWireFormat = true;
  5309. result.messageSetWireFormat_ = value;
  5310. return this;
  5311. }
  5312. public Builder ClearMessageSetWireFormat() {
  5313. PrepareBuilder();
  5314. result.hasMessageSetWireFormat = false;
  5315. result.messageSetWireFormat_ = false;
  5316. return this;
  5317. }
  5318. public bool HasNoStandardDescriptorAccessor {
  5319. get { return result.hasNoStandardDescriptorAccessor; }
  5320. }
  5321. public bool NoStandardDescriptorAccessor {
  5322. get { return result.NoStandardDescriptorAccessor; }
  5323. set { SetNoStandardDescriptorAccessor(value); }
  5324. }
  5325. public Builder SetNoStandardDescriptorAccessor(bool value) {
  5326. PrepareBuilder();
  5327. result.hasNoStandardDescriptorAccessor = true;
  5328. result.noStandardDescriptorAccessor_ = value;
  5329. return this;
  5330. }
  5331. public Builder ClearNoStandardDescriptorAccessor() {
  5332. PrepareBuilder();
  5333. result.hasNoStandardDescriptorAccessor = false;
  5334. result.noStandardDescriptorAccessor_ = false;
  5335. return this;
  5336. }
  5337. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  5338. get { return PrepareBuilder().uninterpretedOption_; }
  5339. }
  5340. public int UninterpretedOptionCount {
  5341. get { return result.UninterpretedOptionCount; }
  5342. }
  5343. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  5344. return result.GetUninterpretedOption(index);
  5345. }
  5346. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  5347. pb::ThrowHelper.ThrowIfNull(value, "value");
  5348. PrepareBuilder();
  5349. result.uninterpretedOption_[index] = value;
  5350. return this;
  5351. }
  5352. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  5353. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5354. PrepareBuilder();
  5355. result.uninterpretedOption_[index] = builderForValue.Build();
  5356. return this;
  5357. }
  5358. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  5359. pb::ThrowHelper.ThrowIfNull(value, "value");
  5360. PrepareBuilder();
  5361. result.uninterpretedOption_.Add(value);
  5362. return this;
  5363. }
  5364. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  5365. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5366. PrepareBuilder();
  5367. result.uninterpretedOption_.Add(builderForValue.Build());
  5368. return this;
  5369. }
  5370. public Builder AddRangeUninterpretedOption(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> values) {
  5371. PrepareBuilder();
  5372. result.uninterpretedOption_.Add(values);
  5373. return this;
  5374. }
  5375. public Builder ClearUninterpretedOption() {
  5376. PrepareBuilder();
  5377. result.uninterpretedOption_.Clear();
  5378. return this;
  5379. }
  5380. }
  5381. static MessageOptions() {
  5382. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  5383. }
  5384. }
  5385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5386. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  5387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  5388. public sealed partial class FieldOptions : pb::ExtendableMessage<FieldOptions, FieldOptions.Builder> {
  5389. private FieldOptions() { }
  5390. private static readonly FieldOptions defaultInstance = new FieldOptions().MakeReadOnly();
  5391. private static readonly string[] _fieldOptionsFieldNames = new string[] { "ctype", "deprecated", "experimental_map_key", "packed", "uninterpreted_option" };
  5392. private static readonly uint[] _fieldOptionsFieldTags = new uint[] { 8, 24, 74, 16, 7994 };
  5393. public static FieldOptions DefaultInstance {
  5394. get { return defaultInstance; }
  5395. }
  5396. public override FieldOptions DefaultInstanceForType {
  5397. get { return DefaultInstance; }
  5398. }
  5399. protected override FieldOptions ThisMessage {
  5400. get { return this; }
  5401. }
  5402. public static pbd::MessageDescriptor Descriptor {
  5403. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FieldOptions__Descriptor; }
  5404. }
  5405. protected override pb::FieldAccess.FieldAccessorTable<FieldOptions, FieldOptions.Builder> InternalFieldAccessors {
  5406. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_FieldOptions__FieldAccessorTable; }
  5407. }
  5408. #region Nested types
  5409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5410. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  5411. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  5412. public static class Types {
  5413. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  5414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  5415. public enum CType {
  5416. STRING = 0,
  5417. CORD = 1,
  5418. STRING_PIECE = 2,
  5419. }
  5420. }
  5421. #endregion
  5422. public const int CtypeFieldNumber = 1;
  5423. private bool hasCtype;
  5424. private global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType ctype_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType.STRING;
  5425. public bool HasCtype {
  5426. get { return hasCtype; }
  5427. }
  5428. public global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType Ctype {
  5429. get { return ctype_; }
  5430. }
  5431. public const int PackedFieldNumber = 2;
  5432. private bool hasPacked;
  5433. private bool packed_;
  5434. public bool HasPacked {
  5435. get { return hasPacked; }
  5436. }
  5437. public bool Packed {
  5438. get { return packed_; }
  5439. }
  5440. public const int DeprecatedFieldNumber = 3;
  5441. private bool hasDeprecated;
  5442. private bool deprecated_;
  5443. public bool HasDeprecated {
  5444. get { return hasDeprecated; }
  5445. }
  5446. public bool Deprecated {
  5447. get { return deprecated_; }
  5448. }
  5449. public const int ExperimentalMapKeyFieldNumber = 9;
  5450. private bool hasExperimentalMapKey;
  5451. private string experimentalMapKey_ = "";
  5452. public bool HasExperimentalMapKey {
  5453. get { return hasExperimentalMapKey; }
  5454. }
  5455. public string ExperimentalMapKey {
  5456. get { return experimentalMapKey_; }
  5457. }
  5458. public const int UninterpretedOptionFieldNumber = 999;
  5459. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption>();
  5460. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  5461. get { return uninterpretedOption_; }
  5462. }
  5463. public int UninterpretedOptionCount {
  5464. get { return uninterpretedOption_.Count; }
  5465. }
  5466. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  5467. return uninterpretedOption_[index];
  5468. }
  5469. public override bool IsInitialized {
  5470. get {
  5471. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  5472. if (!element.IsInitialized) return false;
  5473. }
  5474. if (!ExtensionsAreInitialized) return false;
  5475. return true;
  5476. }
  5477. }
  5478. public override void WriteTo(pb::ICodedOutputStream output) {
  5479. int size = SerializedSize;
  5480. string[] field_names = _fieldOptionsFieldNames;
  5481. pb::ExtendableMessage<FieldOptions, FieldOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  5482. if (hasCtype) {
  5483. output.WriteEnum(1, field_names[0], (int) Ctype, Ctype);
  5484. }
  5485. if (hasPacked) {
  5486. output.WriteBool(2, field_names[3], Packed);
  5487. }
  5488. if (hasDeprecated) {
  5489. output.WriteBool(3, field_names[1], Deprecated);
  5490. }
  5491. if (hasExperimentalMapKey) {
  5492. output.WriteString(9, field_names[2], ExperimentalMapKey);
  5493. }
  5494. if (uninterpretedOption_.Count > 0) {
  5495. output.WriteMessageArray(999, field_names[4], uninterpretedOption_);
  5496. }
  5497. extensionWriter.WriteUntil(536870912, output);
  5498. UnknownFields.WriteTo(output);
  5499. }
  5500. private int memoizedSerializedSize = -1;
  5501. public override int SerializedSize {
  5502. get {
  5503. int size = memoizedSerializedSize;
  5504. if (size != -1) return size;
  5505. size = 0;
  5506. if (hasCtype) {
  5507. size += pb::CodedOutputStream.ComputeEnumSize(1, (int) Ctype);
  5508. }
  5509. if (hasPacked) {
  5510. size += pb::CodedOutputStream.ComputeBoolSize(2, Packed);
  5511. }
  5512. if (hasDeprecated) {
  5513. size += pb::CodedOutputStream.ComputeBoolSize(3, Deprecated);
  5514. }
  5515. if (hasExperimentalMapKey) {
  5516. size += pb::CodedOutputStream.ComputeStringSize(9, ExperimentalMapKey);
  5517. }
  5518. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  5519. size += pb::CodedOutputStream.ComputeMessageSize(999, element);
  5520. }
  5521. size += ExtensionsSerializedSize;
  5522. size += UnknownFields.SerializedSize;
  5523. memoizedSerializedSize = size;
  5524. return size;
  5525. }
  5526. }
  5527. public static FieldOptions ParseFrom(pb::ByteString data) {
  5528. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5529. }
  5530. public static FieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  5531. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  5532. }
  5533. public static FieldOptions ParseFrom(byte[] data) {
  5534. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5535. }
  5536. public static FieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  5537. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  5538. }
  5539. public static FieldOptions ParseFrom(global::System.IO.Stream input) {
  5540. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5541. }
  5542. public static FieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  5543. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  5544. }
  5545. public static FieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  5546. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  5547. }
  5548. public static FieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  5549. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  5550. }
  5551. public static FieldOptions ParseFrom(pb::ICodedInputStream input) {
  5552. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5553. }
  5554. public static FieldOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5555. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  5556. }
  5557. private FieldOptions MakeReadOnly() {
  5558. uninterpretedOption_.MakeReadOnly();
  5559. return this;
  5560. }
  5561. public static Builder CreateBuilder() { return new Builder(); }
  5562. public override Builder ToBuilder() { return CreateBuilder(this); }
  5563. public override Builder CreateBuilderForType() { return new Builder(); }
  5564. public static Builder CreateBuilder(FieldOptions prototype) {
  5565. return new Builder(prototype);
  5566. }
  5567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5568. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  5569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  5570. public sealed partial class Builder : pb::ExtendableBuilder<FieldOptions, Builder> {
  5571. protected override Builder ThisBuilder {
  5572. get { return this; }
  5573. }
  5574. public Builder() {
  5575. result = DefaultInstance;
  5576. resultIsReadOnly = true;
  5577. }
  5578. internal Builder(FieldOptions cloneFrom) {
  5579. result = cloneFrom;
  5580. resultIsReadOnly = true;
  5581. }
  5582. private bool resultIsReadOnly;
  5583. private FieldOptions result;
  5584. private FieldOptions PrepareBuilder() {
  5585. if (resultIsReadOnly) {
  5586. FieldOptions original = result;
  5587. result = new FieldOptions();
  5588. resultIsReadOnly = false;
  5589. MergeFrom(original);
  5590. }
  5591. return result;
  5592. }
  5593. public override bool IsInitialized {
  5594. get { return result.IsInitialized; }
  5595. }
  5596. protected override FieldOptions MessageBeingBuilt {
  5597. get { return PrepareBuilder(); }
  5598. }
  5599. public override Builder Clear() {
  5600. result = DefaultInstance;
  5601. resultIsReadOnly = true;
  5602. return this;
  5603. }
  5604. public override Builder Clone() {
  5605. if (resultIsReadOnly) {
  5606. return new Builder(result);
  5607. } else {
  5608. return new Builder().MergeFrom(result);
  5609. }
  5610. }
  5611. public override pbd::MessageDescriptor DescriptorForType {
  5612. get { return global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Descriptor; }
  5613. }
  5614. public override FieldOptions DefaultInstanceForType {
  5615. get { return global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.DefaultInstance; }
  5616. }
  5617. public override FieldOptions BuildPartial() {
  5618. if (resultIsReadOnly) {
  5619. return result;
  5620. }
  5621. resultIsReadOnly = true;
  5622. return result.MakeReadOnly();
  5623. }
  5624. public override Builder MergeFrom(pb::IMessage other) {
  5625. if (other is FieldOptions) {
  5626. return MergeFrom((FieldOptions) other);
  5627. } else {
  5628. base.MergeFrom(other);
  5629. return this;
  5630. }
  5631. }
  5632. public override Builder MergeFrom(FieldOptions other) {
  5633. if (other == global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.DefaultInstance) return this;
  5634. PrepareBuilder();
  5635. if (other.HasCtype) {
  5636. Ctype = other.Ctype;
  5637. }
  5638. if (other.HasPacked) {
  5639. Packed = other.Packed;
  5640. }
  5641. if (other.HasDeprecated) {
  5642. Deprecated = other.Deprecated;
  5643. }
  5644. if (other.HasExperimentalMapKey) {
  5645. ExperimentalMapKey = other.ExperimentalMapKey;
  5646. }
  5647. if (other.uninterpretedOption_.Count != 0) {
  5648. result.uninterpretedOption_.Add(other.uninterpretedOption_);
  5649. }
  5650. this.MergeExtensionFields(other);
  5651. this.MergeUnknownFields(other.UnknownFields);
  5652. return this;
  5653. }
  5654. public override Builder MergeFrom(pb::ICodedInputStream input) {
  5655. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  5656. }
  5657. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5658. PrepareBuilder();
  5659. pb::UnknownFieldSet.Builder unknownFields = null;
  5660. uint tag;
  5661. string field_name;
  5662. while (input.ReadTag(out tag, out field_name)) {
  5663. if(tag == 0 && field_name != null) {
  5664. int field_ordinal = global::System.Array.BinarySearch(_fieldOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  5665. if(field_ordinal >= 0)
  5666. tag = _fieldOptionsFieldTags[field_ordinal];
  5667. else {
  5668. if (unknownFields == null) {
  5669. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5670. }
  5671. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  5672. continue;
  5673. }
  5674. }
  5675. switch (tag) {
  5676. case 0: {
  5677. throw pb::InvalidProtocolBufferException.InvalidTag();
  5678. }
  5679. default: {
  5680. if (pb::WireFormat.IsEndGroupTag(tag)) {
  5681. if (unknownFields != null) {
  5682. this.UnknownFields = unknownFields.Build();
  5683. }
  5684. return this;
  5685. }
  5686. if (unknownFields == null) {
  5687. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5688. }
  5689. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  5690. break;
  5691. }
  5692. case 8: {
  5693. object unknown;
  5694. if(input.ReadEnum(ref result.ctype_, out unknown)) {
  5695. result.hasCtype = true;
  5696. } else if(unknown is int) {
  5697. if (unknownFields == null) {
  5698. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  5699. }
  5700. unknownFields.MergeVarintField(1, (ulong)(int)unknown);
  5701. }
  5702. break;
  5703. }
  5704. case 16: {
  5705. result.hasPacked = input.ReadBool(ref result.packed_);
  5706. break;
  5707. }
  5708. case 24: {
  5709. result.hasDeprecated = input.ReadBool(ref result.deprecated_);
  5710. break;
  5711. }
  5712. case 74: {
  5713. result.hasExperimentalMapKey = input.ReadString(ref result.experimentalMapKey_);
  5714. break;
  5715. }
  5716. case 7994: {
  5717. input.ReadMessageArray(tag, field_name, result.uninterpretedOption_, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.DefaultInstance, extensionRegistry);
  5718. break;
  5719. }
  5720. }
  5721. }
  5722. if (unknownFields != null) {
  5723. this.UnknownFields = unknownFields.Build();
  5724. }
  5725. return this;
  5726. }
  5727. public bool HasCtype {
  5728. get { return result.hasCtype; }
  5729. }
  5730. public global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType Ctype {
  5731. get { return result.Ctype; }
  5732. set { SetCtype(value); }
  5733. }
  5734. public Builder SetCtype(global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType value) {
  5735. PrepareBuilder();
  5736. result.hasCtype = true;
  5737. result.ctype_ = value;
  5738. return this;
  5739. }
  5740. public Builder ClearCtype() {
  5741. PrepareBuilder();
  5742. result.hasCtype = false;
  5743. result.ctype_ = global::Google.ProtocolBuffers.DescriptorProtos.FieldOptions.Types.CType.STRING;
  5744. return this;
  5745. }
  5746. public bool HasPacked {
  5747. get { return result.hasPacked; }
  5748. }
  5749. public bool Packed {
  5750. get { return result.Packed; }
  5751. set { SetPacked(value); }
  5752. }
  5753. public Builder SetPacked(bool value) {
  5754. PrepareBuilder();
  5755. result.hasPacked = true;
  5756. result.packed_ = value;
  5757. return this;
  5758. }
  5759. public Builder ClearPacked() {
  5760. PrepareBuilder();
  5761. result.hasPacked = false;
  5762. result.packed_ = false;
  5763. return this;
  5764. }
  5765. public bool HasDeprecated {
  5766. get { return result.hasDeprecated; }
  5767. }
  5768. public bool Deprecated {
  5769. get { return result.Deprecated; }
  5770. set { SetDeprecated(value); }
  5771. }
  5772. public Builder SetDeprecated(bool value) {
  5773. PrepareBuilder();
  5774. result.hasDeprecated = true;
  5775. result.deprecated_ = value;
  5776. return this;
  5777. }
  5778. public Builder ClearDeprecated() {
  5779. PrepareBuilder();
  5780. result.hasDeprecated = false;
  5781. result.deprecated_ = false;
  5782. return this;
  5783. }
  5784. public bool HasExperimentalMapKey {
  5785. get { return result.hasExperimentalMapKey; }
  5786. }
  5787. public string ExperimentalMapKey {
  5788. get { return result.ExperimentalMapKey; }
  5789. set { SetExperimentalMapKey(value); }
  5790. }
  5791. public Builder SetExperimentalMapKey(string value) {
  5792. pb::ThrowHelper.ThrowIfNull(value, "value");
  5793. PrepareBuilder();
  5794. result.hasExperimentalMapKey = true;
  5795. result.experimentalMapKey_ = value;
  5796. return this;
  5797. }
  5798. public Builder ClearExperimentalMapKey() {
  5799. PrepareBuilder();
  5800. result.hasExperimentalMapKey = false;
  5801. result.experimentalMapKey_ = "";
  5802. return this;
  5803. }
  5804. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  5805. get { return PrepareBuilder().uninterpretedOption_; }
  5806. }
  5807. public int UninterpretedOptionCount {
  5808. get { return result.UninterpretedOptionCount; }
  5809. }
  5810. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  5811. return result.GetUninterpretedOption(index);
  5812. }
  5813. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  5814. pb::ThrowHelper.ThrowIfNull(value, "value");
  5815. PrepareBuilder();
  5816. result.uninterpretedOption_[index] = value;
  5817. return this;
  5818. }
  5819. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  5820. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5821. PrepareBuilder();
  5822. result.uninterpretedOption_[index] = builderForValue.Build();
  5823. return this;
  5824. }
  5825. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  5826. pb::ThrowHelper.ThrowIfNull(value, "value");
  5827. PrepareBuilder();
  5828. result.uninterpretedOption_.Add(value);
  5829. return this;
  5830. }
  5831. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  5832. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  5833. PrepareBuilder();
  5834. result.uninterpretedOption_.Add(builderForValue.Build());
  5835. return this;
  5836. }
  5837. public Builder AddRangeUninterpretedOption(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> values) {
  5838. PrepareBuilder();
  5839. result.uninterpretedOption_.Add(values);
  5840. return this;
  5841. }
  5842. public Builder ClearUninterpretedOption() {
  5843. PrepareBuilder();
  5844. result.uninterpretedOption_.Clear();
  5845. return this;
  5846. }
  5847. }
  5848. static FieldOptions() {
  5849. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  5850. }
  5851. }
  5852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5853. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  5854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  5855. public sealed partial class EnumOptions : pb::ExtendableMessage<EnumOptions, EnumOptions.Builder> {
  5856. private EnumOptions() { }
  5857. private static readonly EnumOptions defaultInstance = new EnumOptions().MakeReadOnly();
  5858. private static readonly string[] _enumOptionsFieldNames = new string[] { "uninterpreted_option" };
  5859. private static readonly uint[] _enumOptionsFieldTags = new uint[] { 7994 };
  5860. public static EnumOptions DefaultInstance {
  5861. get { return defaultInstance; }
  5862. }
  5863. public override EnumOptions DefaultInstanceForType {
  5864. get { return DefaultInstance; }
  5865. }
  5866. protected override EnumOptions ThisMessage {
  5867. get { return this; }
  5868. }
  5869. public static pbd::MessageDescriptor Descriptor {
  5870. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumOptions__Descriptor; }
  5871. }
  5872. protected override pb::FieldAccess.FieldAccessorTable<EnumOptions, EnumOptions.Builder> InternalFieldAccessors {
  5873. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumOptions__FieldAccessorTable; }
  5874. }
  5875. public const int UninterpretedOptionFieldNumber = 999;
  5876. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption>();
  5877. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  5878. get { return uninterpretedOption_; }
  5879. }
  5880. public int UninterpretedOptionCount {
  5881. get { return uninterpretedOption_.Count; }
  5882. }
  5883. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  5884. return uninterpretedOption_[index];
  5885. }
  5886. public override bool IsInitialized {
  5887. get {
  5888. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  5889. if (!element.IsInitialized) return false;
  5890. }
  5891. if (!ExtensionsAreInitialized) return false;
  5892. return true;
  5893. }
  5894. }
  5895. public override void WriteTo(pb::ICodedOutputStream output) {
  5896. int size = SerializedSize;
  5897. string[] field_names = _enumOptionsFieldNames;
  5898. pb::ExtendableMessage<EnumOptions, EnumOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  5899. if (uninterpretedOption_.Count > 0) {
  5900. output.WriteMessageArray(999, field_names[0], uninterpretedOption_);
  5901. }
  5902. extensionWriter.WriteUntil(536870912, output);
  5903. UnknownFields.WriteTo(output);
  5904. }
  5905. private int memoizedSerializedSize = -1;
  5906. public override int SerializedSize {
  5907. get {
  5908. int size = memoizedSerializedSize;
  5909. if (size != -1) return size;
  5910. size = 0;
  5911. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  5912. size += pb::CodedOutputStream.ComputeMessageSize(999, element);
  5913. }
  5914. size += ExtensionsSerializedSize;
  5915. size += UnknownFields.SerializedSize;
  5916. memoizedSerializedSize = size;
  5917. return size;
  5918. }
  5919. }
  5920. public static EnumOptions ParseFrom(pb::ByteString data) {
  5921. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5922. }
  5923. public static EnumOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  5924. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  5925. }
  5926. public static EnumOptions ParseFrom(byte[] data) {
  5927. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  5928. }
  5929. public static EnumOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  5930. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  5931. }
  5932. public static EnumOptions ParseFrom(global::System.IO.Stream input) {
  5933. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5934. }
  5935. public static EnumOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  5936. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  5937. }
  5938. public static EnumOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  5939. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  5940. }
  5941. public static EnumOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  5942. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  5943. }
  5944. public static EnumOptions ParseFrom(pb::ICodedInputStream input) {
  5945. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  5946. }
  5947. public static EnumOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  5948. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  5949. }
  5950. private EnumOptions MakeReadOnly() {
  5951. uninterpretedOption_.MakeReadOnly();
  5952. return this;
  5953. }
  5954. public static Builder CreateBuilder() { return new Builder(); }
  5955. public override Builder ToBuilder() { return CreateBuilder(this); }
  5956. public override Builder CreateBuilderForType() { return new Builder(); }
  5957. public static Builder CreateBuilder(EnumOptions prototype) {
  5958. return new Builder(prototype);
  5959. }
  5960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  5961. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  5962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  5963. public sealed partial class Builder : pb::ExtendableBuilder<EnumOptions, Builder> {
  5964. protected override Builder ThisBuilder {
  5965. get { return this; }
  5966. }
  5967. public Builder() {
  5968. result = DefaultInstance;
  5969. resultIsReadOnly = true;
  5970. }
  5971. internal Builder(EnumOptions cloneFrom) {
  5972. result = cloneFrom;
  5973. resultIsReadOnly = true;
  5974. }
  5975. private bool resultIsReadOnly;
  5976. private EnumOptions result;
  5977. private EnumOptions PrepareBuilder() {
  5978. if (resultIsReadOnly) {
  5979. EnumOptions original = result;
  5980. result = new EnumOptions();
  5981. resultIsReadOnly = false;
  5982. MergeFrom(original);
  5983. }
  5984. return result;
  5985. }
  5986. public override bool IsInitialized {
  5987. get { return result.IsInitialized; }
  5988. }
  5989. protected override EnumOptions MessageBeingBuilt {
  5990. get { return PrepareBuilder(); }
  5991. }
  5992. public override Builder Clear() {
  5993. result = DefaultInstance;
  5994. resultIsReadOnly = true;
  5995. return this;
  5996. }
  5997. public override Builder Clone() {
  5998. if (resultIsReadOnly) {
  5999. return new Builder(result);
  6000. } else {
  6001. return new Builder().MergeFrom(result);
  6002. }
  6003. }
  6004. public override pbd::MessageDescriptor DescriptorForType {
  6005. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.Descriptor; }
  6006. }
  6007. public override EnumOptions DefaultInstanceForType {
  6008. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.DefaultInstance; }
  6009. }
  6010. public override EnumOptions BuildPartial() {
  6011. if (resultIsReadOnly) {
  6012. return result;
  6013. }
  6014. resultIsReadOnly = true;
  6015. return result.MakeReadOnly();
  6016. }
  6017. public override Builder MergeFrom(pb::IMessage other) {
  6018. if (other is EnumOptions) {
  6019. return MergeFrom((EnumOptions) other);
  6020. } else {
  6021. base.MergeFrom(other);
  6022. return this;
  6023. }
  6024. }
  6025. public override Builder MergeFrom(EnumOptions other) {
  6026. if (other == global::Google.ProtocolBuffers.DescriptorProtos.EnumOptions.DefaultInstance) return this;
  6027. PrepareBuilder();
  6028. if (other.uninterpretedOption_.Count != 0) {
  6029. result.uninterpretedOption_.Add(other.uninterpretedOption_);
  6030. }
  6031. this.MergeExtensionFields(other);
  6032. this.MergeUnknownFields(other.UnknownFields);
  6033. return this;
  6034. }
  6035. public override Builder MergeFrom(pb::ICodedInputStream input) {
  6036. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6037. }
  6038. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6039. PrepareBuilder();
  6040. pb::UnknownFieldSet.Builder unknownFields = null;
  6041. uint tag;
  6042. string field_name;
  6043. while (input.ReadTag(out tag, out field_name)) {
  6044. if(tag == 0 && field_name != null) {
  6045. int field_ordinal = global::System.Array.BinarySearch(_enumOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  6046. if(field_ordinal >= 0)
  6047. tag = _enumOptionsFieldTags[field_ordinal];
  6048. else {
  6049. if (unknownFields == null) {
  6050. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6051. }
  6052. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6053. continue;
  6054. }
  6055. }
  6056. switch (tag) {
  6057. case 0: {
  6058. throw pb::InvalidProtocolBufferException.InvalidTag();
  6059. }
  6060. default: {
  6061. if (pb::WireFormat.IsEndGroupTag(tag)) {
  6062. if (unknownFields != null) {
  6063. this.UnknownFields = unknownFields.Build();
  6064. }
  6065. return this;
  6066. }
  6067. if (unknownFields == null) {
  6068. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6069. }
  6070. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6071. break;
  6072. }
  6073. case 7994: {
  6074. input.ReadMessageArray(tag, field_name, result.uninterpretedOption_, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.DefaultInstance, extensionRegistry);
  6075. break;
  6076. }
  6077. }
  6078. }
  6079. if (unknownFields != null) {
  6080. this.UnknownFields = unknownFields.Build();
  6081. }
  6082. return this;
  6083. }
  6084. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  6085. get { return PrepareBuilder().uninterpretedOption_; }
  6086. }
  6087. public int UninterpretedOptionCount {
  6088. get { return result.UninterpretedOptionCount; }
  6089. }
  6090. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  6091. return result.GetUninterpretedOption(index);
  6092. }
  6093. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  6094. pb::ThrowHelper.ThrowIfNull(value, "value");
  6095. PrepareBuilder();
  6096. result.uninterpretedOption_[index] = value;
  6097. return this;
  6098. }
  6099. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  6100. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6101. PrepareBuilder();
  6102. result.uninterpretedOption_[index] = builderForValue.Build();
  6103. return this;
  6104. }
  6105. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  6106. pb::ThrowHelper.ThrowIfNull(value, "value");
  6107. PrepareBuilder();
  6108. result.uninterpretedOption_.Add(value);
  6109. return this;
  6110. }
  6111. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  6112. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6113. PrepareBuilder();
  6114. result.uninterpretedOption_.Add(builderForValue.Build());
  6115. return this;
  6116. }
  6117. public Builder AddRangeUninterpretedOption(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> values) {
  6118. PrepareBuilder();
  6119. result.uninterpretedOption_.Add(values);
  6120. return this;
  6121. }
  6122. public Builder ClearUninterpretedOption() {
  6123. PrepareBuilder();
  6124. result.uninterpretedOption_.Clear();
  6125. return this;
  6126. }
  6127. }
  6128. static EnumOptions() {
  6129. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  6130. }
  6131. }
  6132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6133. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  6134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  6135. public sealed partial class EnumValueOptions : pb::ExtendableMessage<EnumValueOptions, EnumValueOptions.Builder> {
  6136. private EnumValueOptions() { }
  6137. private static readonly EnumValueOptions defaultInstance = new EnumValueOptions().MakeReadOnly();
  6138. private static readonly string[] _enumValueOptionsFieldNames = new string[] { "uninterpreted_option" };
  6139. private static readonly uint[] _enumValueOptionsFieldTags = new uint[] { 7994 };
  6140. public static EnumValueOptions DefaultInstance {
  6141. get { return defaultInstance; }
  6142. }
  6143. public override EnumValueOptions DefaultInstanceForType {
  6144. get { return DefaultInstance; }
  6145. }
  6146. protected override EnumValueOptions ThisMessage {
  6147. get { return this; }
  6148. }
  6149. public static pbd::MessageDescriptor Descriptor {
  6150. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumValueOptions__Descriptor; }
  6151. }
  6152. protected override pb::FieldAccess.FieldAccessorTable<EnumValueOptions, EnumValueOptions.Builder> InternalFieldAccessors {
  6153. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_EnumValueOptions__FieldAccessorTable; }
  6154. }
  6155. public const int UninterpretedOptionFieldNumber = 999;
  6156. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption>();
  6157. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  6158. get { return uninterpretedOption_; }
  6159. }
  6160. public int UninterpretedOptionCount {
  6161. get { return uninterpretedOption_.Count; }
  6162. }
  6163. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  6164. return uninterpretedOption_[index];
  6165. }
  6166. public override bool IsInitialized {
  6167. get {
  6168. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  6169. if (!element.IsInitialized) return false;
  6170. }
  6171. if (!ExtensionsAreInitialized) return false;
  6172. return true;
  6173. }
  6174. }
  6175. public override void WriteTo(pb::ICodedOutputStream output) {
  6176. int size = SerializedSize;
  6177. string[] field_names = _enumValueOptionsFieldNames;
  6178. pb::ExtendableMessage<EnumValueOptions, EnumValueOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  6179. if (uninterpretedOption_.Count > 0) {
  6180. output.WriteMessageArray(999, field_names[0], uninterpretedOption_);
  6181. }
  6182. extensionWriter.WriteUntil(536870912, output);
  6183. UnknownFields.WriteTo(output);
  6184. }
  6185. private int memoizedSerializedSize = -1;
  6186. public override int SerializedSize {
  6187. get {
  6188. int size = memoizedSerializedSize;
  6189. if (size != -1) return size;
  6190. size = 0;
  6191. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  6192. size += pb::CodedOutputStream.ComputeMessageSize(999, element);
  6193. }
  6194. size += ExtensionsSerializedSize;
  6195. size += UnknownFields.SerializedSize;
  6196. memoizedSerializedSize = size;
  6197. return size;
  6198. }
  6199. }
  6200. public static EnumValueOptions ParseFrom(pb::ByteString data) {
  6201. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6202. }
  6203. public static EnumValueOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  6204. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6205. }
  6206. public static EnumValueOptions ParseFrom(byte[] data) {
  6207. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6208. }
  6209. public static EnumValueOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  6210. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6211. }
  6212. public static EnumValueOptions ParseFrom(global::System.IO.Stream input) {
  6213. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6214. }
  6215. public static EnumValueOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6216. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6217. }
  6218. public static EnumValueOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  6219. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  6220. }
  6221. public static EnumValueOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6222. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  6223. }
  6224. public static EnumValueOptions ParseFrom(pb::ICodedInputStream input) {
  6225. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6226. }
  6227. public static EnumValueOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6228. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6229. }
  6230. private EnumValueOptions MakeReadOnly() {
  6231. uninterpretedOption_.MakeReadOnly();
  6232. return this;
  6233. }
  6234. public static Builder CreateBuilder() { return new Builder(); }
  6235. public override Builder ToBuilder() { return CreateBuilder(this); }
  6236. public override Builder CreateBuilderForType() { return new Builder(); }
  6237. public static Builder CreateBuilder(EnumValueOptions prototype) {
  6238. return new Builder(prototype);
  6239. }
  6240. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6241. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  6242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  6243. public sealed partial class Builder : pb::ExtendableBuilder<EnumValueOptions, Builder> {
  6244. protected override Builder ThisBuilder {
  6245. get { return this; }
  6246. }
  6247. public Builder() {
  6248. result = DefaultInstance;
  6249. resultIsReadOnly = true;
  6250. }
  6251. internal Builder(EnumValueOptions cloneFrom) {
  6252. result = cloneFrom;
  6253. resultIsReadOnly = true;
  6254. }
  6255. private bool resultIsReadOnly;
  6256. private EnumValueOptions result;
  6257. private EnumValueOptions PrepareBuilder() {
  6258. if (resultIsReadOnly) {
  6259. EnumValueOptions original = result;
  6260. result = new EnumValueOptions();
  6261. resultIsReadOnly = false;
  6262. MergeFrom(original);
  6263. }
  6264. return result;
  6265. }
  6266. public override bool IsInitialized {
  6267. get { return result.IsInitialized; }
  6268. }
  6269. protected override EnumValueOptions MessageBeingBuilt {
  6270. get { return PrepareBuilder(); }
  6271. }
  6272. public override Builder Clear() {
  6273. result = DefaultInstance;
  6274. resultIsReadOnly = true;
  6275. return this;
  6276. }
  6277. public override Builder Clone() {
  6278. if (resultIsReadOnly) {
  6279. return new Builder(result);
  6280. } else {
  6281. return new Builder().MergeFrom(result);
  6282. }
  6283. }
  6284. public override pbd::MessageDescriptor DescriptorForType {
  6285. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.Descriptor; }
  6286. }
  6287. public override EnumValueOptions DefaultInstanceForType {
  6288. get { return global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.DefaultInstance; }
  6289. }
  6290. public override EnumValueOptions BuildPartial() {
  6291. if (resultIsReadOnly) {
  6292. return result;
  6293. }
  6294. resultIsReadOnly = true;
  6295. return result.MakeReadOnly();
  6296. }
  6297. public override Builder MergeFrom(pb::IMessage other) {
  6298. if (other is EnumValueOptions) {
  6299. return MergeFrom((EnumValueOptions) other);
  6300. } else {
  6301. base.MergeFrom(other);
  6302. return this;
  6303. }
  6304. }
  6305. public override Builder MergeFrom(EnumValueOptions other) {
  6306. if (other == global::Google.ProtocolBuffers.DescriptorProtos.EnumValueOptions.DefaultInstance) return this;
  6307. PrepareBuilder();
  6308. if (other.uninterpretedOption_.Count != 0) {
  6309. result.uninterpretedOption_.Add(other.uninterpretedOption_);
  6310. }
  6311. this.MergeExtensionFields(other);
  6312. this.MergeUnknownFields(other.UnknownFields);
  6313. return this;
  6314. }
  6315. public override Builder MergeFrom(pb::ICodedInputStream input) {
  6316. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6317. }
  6318. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6319. PrepareBuilder();
  6320. pb::UnknownFieldSet.Builder unknownFields = null;
  6321. uint tag;
  6322. string field_name;
  6323. while (input.ReadTag(out tag, out field_name)) {
  6324. if(tag == 0 && field_name != null) {
  6325. int field_ordinal = global::System.Array.BinarySearch(_enumValueOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  6326. if(field_ordinal >= 0)
  6327. tag = _enumValueOptionsFieldTags[field_ordinal];
  6328. else {
  6329. if (unknownFields == null) {
  6330. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6331. }
  6332. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6333. continue;
  6334. }
  6335. }
  6336. switch (tag) {
  6337. case 0: {
  6338. throw pb::InvalidProtocolBufferException.InvalidTag();
  6339. }
  6340. default: {
  6341. if (pb::WireFormat.IsEndGroupTag(tag)) {
  6342. if (unknownFields != null) {
  6343. this.UnknownFields = unknownFields.Build();
  6344. }
  6345. return this;
  6346. }
  6347. if (unknownFields == null) {
  6348. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6349. }
  6350. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6351. break;
  6352. }
  6353. case 7994: {
  6354. input.ReadMessageArray(tag, field_name, result.uninterpretedOption_, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.DefaultInstance, extensionRegistry);
  6355. break;
  6356. }
  6357. }
  6358. }
  6359. if (unknownFields != null) {
  6360. this.UnknownFields = unknownFields.Build();
  6361. }
  6362. return this;
  6363. }
  6364. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  6365. get { return PrepareBuilder().uninterpretedOption_; }
  6366. }
  6367. public int UninterpretedOptionCount {
  6368. get { return result.UninterpretedOptionCount; }
  6369. }
  6370. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  6371. return result.GetUninterpretedOption(index);
  6372. }
  6373. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  6374. pb::ThrowHelper.ThrowIfNull(value, "value");
  6375. PrepareBuilder();
  6376. result.uninterpretedOption_[index] = value;
  6377. return this;
  6378. }
  6379. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  6380. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6381. PrepareBuilder();
  6382. result.uninterpretedOption_[index] = builderForValue.Build();
  6383. return this;
  6384. }
  6385. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  6386. pb::ThrowHelper.ThrowIfNull(value, "value");
  6387. PrepareBuilder();
  6388. result.uninterpretedOption_.Add(value);
  6389. return this;
  6390. }
  6391. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  6392. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6393. PrepareBuilder();
  6394. result.uninterpretedOption_.Add(builderForValue.Build());
  6395. return this;
  6396. }
  6397. public Builder AddRangeUninterpretedOption(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> values) {
  6398. PrepareBuilder();
  6399. result.uninterpretedOption_.Add(values);
  6400. return this;
  6401. }
  6402. public Builder ClearUninterpretedOption() {
  6403. PrepareBuilder();
  6404. result.uninterpretedOption_.Clear();
  6405. return this;
  6406. }
  6407. }
  6408. static EnumValueOptions() {
  6409. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  6410. }
  6411. }
  6412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6413. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  6414. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  6415. public sealed partial class ServiceOptions : pb::ExtendableMessage<ServiceOptions, ServiceOptions.Builder> {
  6416. private ServiceOptions() { }
  6417. private static readonly ServiceOptions defaultInstance = new ServiceOptions().MakeReadOnly();
  6418. private static readonly string[] _serviceOptionsFieldNames = new string[] { "uninterpreted_option" };
  6419. private static readonly uint[] _serviceOptionsFieldTags = new uint[] { 7994 };
  6420. public static ServiceOptions DefaultInstance {
  6421. get { return defaultInstance; }
  6422. }
  6423. public override ServiceOptions DefaultInstanceForType {
  6424. get { return DefaultInstance; }
  6425. }
  6426. protected override ServiceOptions ThisMessage {
  6427. get { return this; }
  6428. }
  6429. public static pbd::MessageDescriptor Descriptor {
  6430. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_ServiceOptions__Descriptor; }
  6431. }
  6432. protected override pb::FieldAccess.FieldAccessorTable<ServiceOptions, ServiceOptions.Builder> InternalFieldAccessors {
  6433. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_ServiceOptions__FieldAccessorTable; }
  6434. }
  6435. public const int UninterpretedOptionFieldNumber = 999;
  6436. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption>();
  6437. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  6438. get { return uninterpretedOption_; }
  6439. }
  6440. public int UninterpretedOptionCount {
  6441. get { return uninterpretedOption_.Count; }
  6442. }
  6443. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  6444. return uninterpretedOption_[index];
  6445. }
  6446. public override bool IsInitialized {
  6447. get {
  6448. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  6449. if (!element.IsInitialized) return false;
  6450. }
  6451. if (!ExtensionsAreInitialized) return false;
  6452. return true;
  6453. }
  6454. }
  6455. public override void WriteTo(pb::ICodedOutputStream output) {
  6456. int size = SerializedSize;
  6457. string[] field_names = _serviceOptionsFieldNames;
  6458. pb::ExtendableMessage<ServiceOptions, ServiceOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  6459. if (uninterpretedOption_.Count > 0) {
  6460. output.WriteMessageArray(999, field_names[0], uninterpretedOption_);
  6461. }
  6462. extensionWriter.WriteUntil(536870912, output);
  6463. UnknownFields.WriteTo(output);
  6464. }
  6465. private int memoizedSerializedSize = -1;
  6466. public override int SerializedSize {
  6467. get {
  6468. int size = memoizedSerializedSize;
  6469. if (size != -1) return size;
  6470. size = 0;
  6471. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  6472. size += pb::CodedOutputStream.ComputeMessageSize(999, element);
  6473. }
  6474. size += ExtensionsSerializedSize;
  6475. size += UnknownFields.SerializedSize;
  6476. memoizedSerializedSize = size;
  6477. return size;
  6478. }
  6479. }
  6480. public static ServiceOptions ParseFrom(pb::ByteString data) {
  6481. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6482. }
  6483. public static ServiceOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  6484. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6485. }
  6486. public static ServiceOptions ParseFrom(byte[] data) {
  6487. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6488. }
  6489. public static ServiceOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  6490. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6491. }
  6492. public static ServiceOptions ParseFrom(global::System.IO.Stream input) {
  6493. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6494. }
  6495. public static ServiceOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6496. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6497. }
  6498. public static ServiceOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  6499. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  6500. }
  6501. public static ServiceOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6502. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  6503. }
  6504. public static ServiceOptions ParseFrom(pb::ICodedInputStream input) {
  6505. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6506. }
  6507. public static ServiceOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6508. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6509. }
  6510. private ServiceOptions MakeReadOnly() {
  6511. uninterpretedOption_.MakeReadOnly();
  6512. return this;
  6513. }
  6514. public static Builder CreateBuilder() { return new Builder(); }
  6515. public override Builder ToBuilder() { return CreateBuilder(this); }
  6516. public override Builder CreateBuilderForType() { return new Builder(); }
  6517. public static Builder CreateBuilder(ServiceOptions prototype) {
  6518. return new Builder(prototype);
  6519. }
  6520. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6521. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  6522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  6523. public sealed partial class Builder : pb::ExtendableBuilder<ServiceOptions, Builder> {
  6524. protected override Builder ThisBuilder {
  6525. get { return this; }
  6526. }
  6527. public Builder() {
  6528. result = DefaultInstance;
  6529. resultIsReadOnly = true;
  6530. }
  6531. internal Builder(ServiceOptions cloneFrom) {
  6532. result = cloneFrom;
  6533. resultIsReadOnly = true;
  6534. }
  6535. private bool resultIsReadOnly;
  6536. private ServiceOptions result;
  6537. private ServiceOptions PrepareBuilder() {
  6538. if (resultIsReadOnly) {
  6539. ServiceOptions original = result;
  6540. result = new ServiceOptions();
  6541. resultIsReadOnly = false;
  6542. MergeFrom(original);
  6543. }
  6544. return result;
  6545. }
  6546. public override bool IsInitialized {
  6547. get { return result.IsInitialized; }
  6548. }
  6549. protected override ServiceOptions MessageBeingBuilt {
  6550. get { return PrepareBuilder(); }
  6551. }
  6552. public override Builder Clear() {
  6553. result = DefaultInstance;
  6554. resultIsReadOnly = true;
  6555. return this;
  6556. }
  6557. public override Builder Clone() {
  6558. if (resultIsReadOnly) {
  6559. return new Builder(result);
  6560. } else {
  6561. return new Builder().MergeFrom(result);
  6562. }
  6563. }
  6564. public override pbd::MessageDescriptor DescriptorForType {
  6565. get { return global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.Descriptor; }
  6566. }
  6567. public override ServiceOptions DefaultInstanceForType {
  6568. get { return global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.DefaultInstance; }
  6569. }
  6570. public override ServiceOptions BuildPartial() {
  6571. if (resultIsReadOnly) {
  6572. return result;
  6573. }
  6574. resultIsReadOnly = true;
  6575. return result.MakeReadOnly();
  6576. }
  6577. public override Builder MergeFrom(pb::IMessage other) {
  6578. if (other is ServiceOptions) {
  6579. return MergeFrom((ServiceOptions) other);
  6580. } else {
  6581. base.MergeFrom(other);
  6582. return this;
  6583. }
  6584. }
  6585. public override Builder MergeFrom(ServiceOptions other) {
  6586. if (other == global::Google.ProtocolBuffers.DescriptorProtos.ServiceOptions.DefaultInstance) return this;
  6587. PrepareBuilder();
  6588. if (other.uninterpretedOption_.Count != 0) {
  6589. result.uninterpretedOption_.Add(other.uninterpretedOption_);
  6590. }
  6591. this.MergeExtensionFields(other);
  6592. this.MergeUnknownFields(other.UnknownFields);
  6593. return this;
  6594. }
  6595. public override Builder MergeFrom(pb::ICodedInputStream input) {
  6596. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6597. }
  6598. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6599. PrepareBuilder();
  6600. pb::UnknownFieldSet.Builder unknownFields = null;
  6601. uint tag;
  6602. string field_name;
  6603. while (input.ReadTag(out tag, out field_name)) {
  6604. if(tag == 0 && field_name != null) {
  6605. int field_ordinal = global::System.Array.BinarySearch(_serviceOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  6606. if(field_ordinal >= 0)
  6607. tag = _serviceOptionsFieldTags[field_ordinal];
  6608. else {
  6609. if (unknownFields == null) {
  6610. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6611. }
  6612. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6613. continue;
  6614. }
  6615. }
  6616. switch (tag) {
  6617. case 0: {
  6618. throw pb::InvalidProtocolBufferException.InvalidTag();
  6619. }
  6620. default: {
  6621. if (pb::WireFormat.IsEndGroupTag(tag)) {
  6622. if (unknownFields != null) {
  6623. this.UnknownFields = unknownFields.Build();
  6624. }
  6625. return this;
  6626. }
  6627. if (unknownFields == null) {
  6628. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6629. }
  6630. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6631. break;
  6632. }
  6633. case 7994: {
  6634. input.ReadMessageArray(tag, field_name, result.uninterpretedOption_, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.DefaultInstance, extensionRegistry);
  6635. break;
  6636. }
  6637. }
  6638. }
  6639. if (unknownFields != null) {
  6640. this.UnknownFields = unknownFields.Build();
  6641. }
  6642. return this;
  6643. }
  6644. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  6645. get { return PrepareBuilder().uninterpretedOption_; }
  6646. }
  6647. public int UninterpretedOptionCount {
  6648. get { return result.UninterpretedOptionCount; }
  6649. }
  6650. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  6651. return result.GetUninterpretedOption(index);
  6652. }
  6653. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  6654. pb::ThrowHelper.ThrowIfNull(value, "value");
  6655. PrepareBuilder();
  6656. result.uninterpretedOption_[index] = value;
  6657. return this;
  6658. }
  6659. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  6660. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6661. PrepareBuilder();
  6662. result.uninterpretedOption_[index] = builderForValue.Build();
  6663. return this;
  6664. }
  6665. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  6666. pb::ThrowHelper.ThrowIfNull(value, "value");
  6667. PrepareBuilder();
  6668. result.uninterpretedOption_.Add(value);
  6669. return this;
  6670. }
  6671. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  6672. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6673. PrepareBuilder();
  6674. result.uninterpretedOption_.Add(builderForValue.Build());
  6675. return this;
  6676. }
  6677. public Builder AddRangeUninterpretedOption(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> values) {
  6678. PrepareBuilder();
  6679. result.uninterpretedOption_.Add(values);
  6680. return this;
  6681. }
  6682. public Builder ClearUninterpretedOption() {
  6683. PrepareBuilder();
  6684. result.uninterpretedOption_.Clear();
  6685. return this;
  6686. }
  6687. }
  6688. static ServiceOptions() {
  6689. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  6690. }
  6691. }
  6692. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6693. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  6694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  6695. public sealed partial class MethodOptions : pb::ExtendableMessage<MethodOptions, MethodOptions.Builder> {
  6696. private MethodOptions() { }
  6697. private static readonly MethodOptions defaultInstance = new MethodOptions().MakeReadOnly();
  6698. private static readonly string[] _methodOptionsFieldNames = new string[] { "uninterpreted_option" };
  6699. private static readonly uint[] _methodOptionsFieldTags = new uint[] { 7994 };
  6700. public static MethodOptions DefaultInstance {
  6701. get { return defaultInstance; }
  6702. }
  6703. public override MethodOptions DefaultInstanceForType {
  6704. get { return DefaultInstance; }
  6705. }
  6706. protected override MethodOptions ThisMessage {
  6707. get { return this; }
  6708. }
  6709. public static pbd::MessageDescriptor Descriptor {
  6710. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MethodOptions__Descriptor; }
  6711. }
  6712. protected override pb::FieldAccess.FieldAccessorTable<MethodOptions, MethodOptions.Builder> InternalFieldAccessors {
  6713. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_MethodOptions__FieldAccessorTable; }
  6714. }
  6715. public const int UninterpretedOptionFieldNumber = 999;
  6716. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> uninterpretedOption_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption>();
  6717. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  6718. get { return uninterpretedOption_; }
  6719. }
  6720. public int UninterpretedOptionCount {
  6721. get { return uninterpretedOption_.Count; }
  6722. }
  6723. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  6724. return uninterpretedOption_[index];
  6725. }
  6726. public override bool IsInitialized {
  6727. get {
  6728. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  6729. if (!element.IsInitialized) return false;
  6730. }
  6731. if (!ExtensionsAreInitialized) return false;
  6732. return true;
  6733. }
  6734. }
  6735. public override void WriteTo(pb::ICodedOutputStream output) {
  6736. int size = SerializedSize;
  6737. string[] field_names = _methodOptionsFieldNames;
  6738. pb::ExtendableMessage<MethodOptions, MethodOptions.Builder>.ExtensionWriter extensionWriter = CreateExtensionWriter(this);
  6739. if (uninterpretedOption_.Count > 0) {
  6740. output.WriteMessageArray(999, field_names[0], uninterpretedOption_);
  6741. }
  6742. extensionWriter.WriteUntil(536870912, output);
  6743. UnknownFields.WriteTo(output);
  6744. }
  6745. private int memoizedSerializedSize = -1;
  6746. public override int SerializedSize {
  6747. get {
  6748. int size = memoizedSerializedSize;
  6749. if (size != -1) return size;
  6750. size = 0;
  6751. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption element in UninterpretedOptionList) {
  6752. size += pb::CodedOutputStream.ComputeMessageSize(999, element);
  6753. }
  6754. size += ExtensionsSerializedSize;
  6755. size += UnknownFields.SerializedSize;
  6756. memoizedSerializedSize = size;
  6757. return size;
  6758. }
  6759. }
  6760. public static MethodOptions ParseFrom(pb::ByteString data) {
  6761. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6762. }
  6763. public static MethodOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  6764. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6765. }
  6766. public static MethodOptions ParseFrom(byte[] data) {
  6767. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  6768. }
  6769. public static MethodOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  6770. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  6771. }
  6772. public static MethodOptions ParseFrom(global::System.IO.Stream input) {
  6773. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6774. }
  6775. public static MethodOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6776. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6777. }
  6778. public static MethodOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  6779. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  6780. }
  6781. public static MethodOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  6782. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  6783. }
  6784. public static MethodOptions ParseFrom(pb::ICodedInputStream input) {
  6785. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  6786. }
  6787. public static MethodOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6788. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  6789. }
  6790. private MethodOptions MakeReadOnly() {
  6791. uninterpretedOption_.MakeReadOnly();
  6792. return this;
  6793. }
  6794. public static Builder CreateBuilder() { return new Builder(); }
  6795. public override Builder ToBuilder() { return CreateBuilder(this); }
  6796. public override Builder CreateBuilderForType() { return new Builder(); }
  6797. public static Builder CreateBuilder(MethodOptions prototype) {
  6798. return new Builder(prototype);
  6799. }
  6800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6801. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  6802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  6803. public sealed partial class Builder : pb::ExtendableBuilder<MethodOptions, Builder> {
  6804. protected override Builder ThisBuilder {
  6805. get { return this; }
  6806. }
  6807. public Builder() {
  6808. result = DefaultInstance;
  6809. resultIsReadOnly = true;
  6810. }
  6811. internal Builder(MethodOptions cloneFrom) {
  6812. result = cloneFrom;
  6813. resultIsReadOnly = true;
  6814. }
  6815. private bool resultIsReadOnly;
  6816. private MethodOptions result;
  6817. private MethodOptions PrepareBuilder() {
  6818. if (resultIsReadOnly) {
  6819. MethodOptions original = result;
  6820. result = new MethodOptions();
  6821. resultIsReadOnly = false;
  6822. MergeFrom(original);
  6823. }
  6824. return result;
  6825. }
  6826. public override bool IsInitialized {
  6827. get { return result.IsInitialized; }
  6828. }
  6829. protected override MethodOptions MessageBeingBuilt {
  6830. get { return PrepareBuilder(); }
  6831. }
  6832. public override Builder Clear() {
  6833. result = DefaultInstance;
  6834. resultIsReadOnly = true;
  6835. return this;
  6836. }
  6837. public override Builder Clone() {
  6838. if (resultIsReadOnly) {
  6839. return new Builder(result);
  6840. } else {
  6841. return new Builder().MergeFrom(result);
  6842. }
  6843. }
  6844. public override pbd::MessageDescriptor DescriptorForType {
  6845. get { return global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.Descriptor; }
  6846. }
  6847. public override MethodOptions DefaultInstanceForType {
  6848. get { return global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.DefaultInstance; }
  6849. }
  6850. public override MethodOptions BuildPartial() {
  6851. if (resultIsReadOnly) {
  6852. return result;
  6853. }
  6854. resultIsReadOnly = true;
  6855. return result.MakeReadOnly();
  6856. }
  6857. public override Builder MergeFrom(pb::IMessage other) {
  6858. if (other is MethodOptions) {
  6859. return MergeFrom((MethodOptions) other);
  6860. } else {
  6861. base.MergeFrom(other);
  6862. return this;
  6863. }
  6864. }
  6865. public override Builder MergeFrom(MethodOptions other) {
  6866. if (other == global::Google.ProtocolBuffers.DescriptorProtos.MethodOptions.DefaultInstance) return this;
  6867. PrepareBuilder();
  6868. if (other.uninterpretedOption_.Count != 0) {
  6869. result.uninterpretedOption_.Add(other.uninterpretedOption_);
  6870. }
  6871. this.MergeExtensionFields(other);
  6872. this.MergeUnknownFields(other.UnknownFields);
  6873. return this;
  6874. }
  6875. public override Builder MergeFrom(pb::ICodedInputStream input) {
  6876. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  6877. }
  6878. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  6879. PrepareBuilder();
  6880. pb::UnknownFieldSet.Builder unknownFields = null;
  6881. uint tag;
  6882. string field_name;
  6883. while (input.ReadTag(out tag, out field_name)) {
  6884. if(tag == 0 && field_name != null) {
  6885. int field_ordinal = global::System.Array.BinarySearch(_methodOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  6886. if(field_ordinal >= 0)
  6887. tag = _methodOptionsFieldTags[field_ordinal];
  6888. else {
  6889. if (unknownFields == null) {
  6890. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6891. }
  6892. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6893. continue;
  6894. }
  6895. }
  6896. switch (tag) {
  6897. case 0: {
  6898. throw pb::InvalidProtocolBufferException.InvalidTag();
  6899. }
  6900. default: {
  6901. if (pb::WireFormat.IsEndGroupTag(tag)) {
  6902. if (unknownFields != null) {
  6903. this.UnknownFields = unknownFields.Build();
  6904. }
  6905. return this;
  6906. }
  6907. if (unknownFields == null) {
  6908. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  6909. }
  6910. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  6911. break;
  6912. }
  6913. case 7994: {
  6914. input.ReadMessageArray(tag, field_name, result.uninterpretedOption_, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.DefaultInstance, extensionRegistry);
  6915. break;
  6916. }
  6917. }
  6918. }
  6919. if (unknownFields != null) {
  6920. this.UnknownFields = unknownFields.Build();
  6921. }
  6922. return this;
  6923. }
  6924. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> UninterpretedOptionList {
  6925. get { return PrepareBuilder().uninterpretedOption_; }
  6926. }
  6927. public int UninterpretedOptionCount {
  6928. get { return result.UninterpretedOptionCount; }
  6929. }
  6930. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption GetUninterpretedOption(int index) {
  6931. return result.GetUninterpretedOption(index);
  6932. }
  6933. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  6934. pb::ThrowHelper.ThrowIfNull(value, "value");
  6935. PrepareBuilder();
  6936. result.uninterpretedOption_[index] = value;
  6937. return this;
  6938. }
  6939. public Builder SetUninterpretedOption(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  6940. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6941. PrepareBuilder();
  6942. result.uninterpretedOption_[index] = builderForValue.Build();
  6943. return this;
  6944. }
  6945. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption value) {
  6946. pb::ThrowHelper.ThrowIfNull(value, "value");
  6947. PrepareBuilder();
  6948. result.uninterpretedOption_.Add(value);
  6949. return this;
  6950. }
  6951. public Builder AddUninterpretedOption(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Builder builderForValue) {
  6952. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  6953. PrepareBuilder();
  6954. result.uninterpretedOption_.Add(builderForValue.Build());
  6955. return this;
  6956. }
  6957. public Builder AddRangeUninterpretedOption(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption> values) {
  6958. PrepareBuilder();
  6959. result.uninterpretedOption_.Add(values);
  6960. return this;
  6961. }
  6962. public Builder ClearUninterpretedOption() {
  6963. PrepareBuilder();
  6964. result.uninterpretedOption_.Clear();
  6965. return this;
  6966. }
  6967. }
  6968. static MethodOptions() {
  6969. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  6970. }
  6971. }
  6972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6973. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  6974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  6975. public sealed partial class UninterpretedOption : pb::GeneratedMessage<UninterpretedOption, UninterpretedOption.Builder> {
  6976. private UninterpretedOption() { }
  6977. private static readonly UninterpretedOption defaultInstance = new UninterpretedOption().MakeReadOnly();
  6978. private static readonly string[] _uninterpretedOptionFieldNames = new string[] { "aggregate_value", "double_value", "identifier_value", "name", "negative_int_value", "positive_int_value", "string_value" };
  6979. private static readonly uint[] _uninterpretedOptionFieldTags = new uint[] { 66, 49, 26, 18, 40, 32, 58 };
  6980. public static UninterpretedOption DefaultInstance {
  6981. get { return defaultInstance; }
  6982. }
  6983. public override UninterpretedOption DefaultInstanceForType {
  6984. get { return DefaultInstance; }
  6985. }
  6986. protected override UninterpretedOption ThisMessage {
  6987. get { return this; }
  6988. }
  6989. public static pbd::MessageDescriptor Descriptor {
  6990. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_UninterpretedOption__Descriptor; }
  6991. }
  6992. protected override pb::FieldAccess.FieldAccessorTable<UninterpretedOption, UninterpretedOption.Builder> InternalFieldAccessors {
  6993. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_UninterpretedOption__FieldAccessorTable; }
  6994. }
  6995. #region Nested types
  6996. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  6997. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  6998. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  6999. public static class Types {
  7000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7001. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  7002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  7003. public sealed partial class NamePart : pb::GeneratedMessage<NamePart, NamePart.Builder> {
  7004. private NamePart() { }
  7005. private static readonly NamePart defaultInstance = new NamePart().MakeReadOnly();
  7006. private static readonly string[] _namePartFieldNames = new string[] { "is_extension", "name_part" };
  7007. private static readonly uint[] _namePartFieldTags = new uint[] { 16, 10 };
  7008. public static NamePart DefaultInstance {
  7009. get { return defaultInstance; }
  7010. }
  7011. public override NamePart DefaultInstanceForType {
  7012. get { return DefaultInstance; }
  7013. }
  7014. protected override NamePart ThisMessage {
  7015. get { return this; }
  7016. }
  7017. public static pbd::MessageDescriptor Descriptor {
  7018. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_UninterpretedOption_NamePart__Descriptor; }
  7019. }
  7020. protected override pb::FieldAccess.FieldAccessorTable<NamePart, NamePart.Builder> InternalFieldAccessors {
  7021. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_UninterpretedOption_NamePart__FieldAccessorTable; }
  7022. }
  7023. public const int NamePart_FieldNumber = 1;
  7024. private bool hasNamePart_;
  7025. private string namePart_ = "";
  7026. public bool HasNamePart_ {
  7027. get { return hasNamePart_; }
  7028. }
  7029. public string NamePart_ {
  7030. get { return namePart_; }
  7031. }
  7032. public const int IsExtensionFieldNumber = 2;
  7033. private bool hasIsExtension;
  7034. private bool isExtension_;
  7035. public bool HasIsExtension {
  7036. get { return hasIsExtension; }
  7037. }
  7038. public bool IsExtension {
  7039. get { return isExtension_; }
  7040. }
  7041. public override bool IsInitialized {
  7042. get {
  7043. if (!hasNamePart_) return false;
  7044. if (!hasIsExtension) return false;
  7045. return true;
  7046. }
  7047. }
  7048. public override void WriteTo(pb::ICodedOutputStream output) {
  7049. int size = SerializedSize;
  7050. string[] field_names = _namePartFieldNames;
  7051. if (hasNamePart_) {
  7052. output.WriteString(1, field_names[1], NamePart_);
  7053. }
  7054. if (hasIsExtension) {
  7055. output.WriteBool(2, field_names[0], IsExtension);
  7056. }
  7057. UnknownFields.WriteTo(output);
  7058. }
  7059. private int memoizedSerializedSize = -1;
  7060. public override int SerializedSize {
  7061. get {
  7062. int size = memoizedSerializedSize;
  7063. if (size != -1) return size;
  7064. size = 0;
  7065. if (hasNamePart_) {
  7066. size += pb::CodedOutputStream.ComputeStringSize(1, NamePart_);
  7067. }
  7068. if (hasIsExtension) {
  7069. size += pb::CodedOutputStream.ComputeBoolSize(2, IsExtension);
  7070. }
  7071. size += UnknownFields.SerializedSize;
  7072. memoizedSerializedSize = size;
  7073. return size;
  7074. }
  7075. }
  7076. public static NamePart ParseFrom(pb::ByteString data) {
  7077. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7078. }
  7079. public static NamePart ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  7080. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7081. }
  7082. public static NamePart ParseFrom(byte[] data) {
  7083. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7084. }
  7085. public static NamePart ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  7086. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7087. }
  7088. public static NamePart ParseFrom(global::System.IO.Stream input) {
  7089. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7090. }
  7091. public static NamePart ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7092. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7093. }
  7094. public static NamePart ParseDelimitedFrom(global::System.IO.Stream input) {
  7095. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  7096. }
  7097. public static NamePart ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7098. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  7099. }
  7100. public static NamePart ParseFrom(pb::ICodedInputStream input) {
  7101. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7102. }
  7103. public static NamePart ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7104. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7105. }
  7106. private NamePart MakeReadOnly() {
  7107. return this;
  7108. }
  7109. public static Builder CreateBuilder() { return new Builder(); }
  7110. public override Builder ToBuilder() { return CreateBuilder(this); }
  7111. public override Builder CreateBuilderForType() { return new Builder(); }
  7112. public static Builder CreateBuilder(NamePart prototype) {
  7113. return new Builder(prototype);
  7114. }
  7115. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7116. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  7117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  7118. public sealed partial class Builder : pb::GeneratedBuilder<NamePart, Builder> {
  7119. protected override Builder ThisBuilder {
  7120. get { return this; }
  7121. }
  7122. public Builder() {
  7123. result = DefaultInstance;
  7124. resultIsReadOnly = true;
  7125. }
  7126. internal Builder(NamePart cloneFrom) {
  7127. result = cloneFrom;
  7128. resultIsReadOnly = true;
  7129. }
  7130. private bool resultIsReadOnly;
  7131. private NamePart result;
  7132. private NamePart PrepareBuilder() {
  7133. if (resultIsReadOnly) {
  7134. NamePart original = result;
  7135. result = new NamePart();
  7136. resultIsReadOnly = false;
  7137. MergeFrom(original);
  7138. }
  7139. return result;
  7140. }
  7141. public override bool IsInitialized {
  7142. get { return result.IsInitialized; }
  7143. }
  7144. protected override NamePart MessageBeingBuilt {
  7145. get { return PrepareBuilder(); }
  7146. }
  7147. public override Builder Clear() {
  7148. result = DefaultInstance;
  7149. resultIsReadOnly = true;
  7150. return this;
  7151. }
  7152. public override Builder Clone() {
  7153. if (resultIsReadOnly) {
  7154. return new Builder(result);
  7155. } else {
  7156. return new Builder().MergeFrom(result);
  7157. }
  7158. }
  7159. public override pbd::MessageDescriptor DescriptorForType {
  7160. get { return global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart.Descriptor; }
  7161. }
  7162. public override NamePart DefaultInstanceForType {
  7163. get { return global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart.DefaultInstance; }
  7164. }
  7165. public override NamePart BuildPartial() {
  7166. if (resultIsReadOnly) {
  7167. return result;
  7168. }
  7169. resultIsReadOnly = true;
  7170. return result.MakeReadOnly();
  7171. }
  7172. public override Builder MergeFrom(pb::IMessage other) {
  7173. if (other is NamePart) {
  7174. return MergeFrom((NamePart) other);
  7175. } else {
  7176. base.MergeFrom(other);
  7177. return this;
  7178. }
  7179. }
  7180. public override Builder MergeFrom(NamePart other) {
  7181. if (other == global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart.DefaultInstance) return this;
  7182. PrepareBuilder();
  7183. if (other.HasNamePart_) {
  7184. NamePart_ = other.NamePart_;
  7185. }
  7186. if (other.HasIsExtension) {
  7187. IsExtension = other.IsExtension;
  7188. }
  7189. this.MergeUnknownFields(other.UnknownFields);
  7190. return this;
  7191. }
  7192. public override Builder MergeFrom(pb::ICodedInputStream input) {
  7193. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7194. }
  7195. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7196. PrepareBuilder();
  7197. pb::UnknownFieldSet.Builder unknownFields = null;
  7198. uint tag;
  7199. string field_name;
  7200. while (input.ReadTag(out tag, out field_name)) {
  7201. if(tag == 0 && field_name != null) {
  7202. int field_ordinal = global::System.Array.BinarySearch(_namePartFieldNames, field_name, global::System.StringComparer.Ordinal);
  7203. if(field_ordinal >= 0)
  7204. tag = _namePartFieldTags[field_ordinal];
  7205. else {
  7206. if (unknownFields == null) {
  7207. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7208. }
  7209. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7210. continue;
  7211. }
  7212. }
  7213. switch (tag) {
  7214. case 0: {
  7215. throw pb::InvalidProtocolBufferException.InvalidTag();
  7216. }
  7217. default: {
  7218. if (pb::WireFormat.IsEndGroupTag(tag)) {
  7219. if (unknownFields != null) {
  7220. this.UnknownFields = unknownFields.Build();
  7221. }
  7222. return this;
  7223. }
  7224. if (unknownFields == null) {
  7225. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7226. }
  7227. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7228. break;
  7229. }
  7230. case 10: {
  7231. result.hasNamePart_ = input.ReadString(ref result.namePart_);
  7232. break;
  7233. }
  7234. case 16: {
  7235. result.hasIsExtension = input.ReadBool(ref result.isExtension_);
  7236. break;
  7237. }
  7238. }
  7239. }
  7240. if (unknownFields != null) {
  7241. this.UnknownFields = unknownFields.Build();
  7242. }
  7243. return this;
  7244. }
  7245. public bool HasNamePart_ {
  7246. get { return result.hasNamePart_; }
  7247. }
  7248. public string NamePart_ {
  7249. get { return result.NamePart_; }
  7250. set { SetNamePart_(value); }
  7251. }
  7252. public Builder SetNamePart_(string value) {
  7253. pb::ThrowHelper.ThrowIfNull(value, "value");
  7254. PrepareBuilder();
  7255. result.hasNamePart_ = true;
  7256. result.namePart_ = value;
  7257. return this;
  7258. }
  7259. public Builder ClearNamePart_() {
  7260. PrepareBuilder();
  7261. result.hasNamePart_ = false;
  7262. result.namePart_ = "";
  7263. return this;
  7264. }
  7265. public bool HasIsExtension {
  7266. get { return result.hasIsExtension; }
  7267. }
  7268. public bool IsExtension {
  7269. get { return result.IsExtension; }
  7270. set { SetIsExtension(value); }
  7271. }
  7272. public Builder SetIsExtension(bool value) {
  7273. PrepareBuilder();
  7274. result.hasIsExtension = true;
  7275. result.isExtension_ = value;
  7276. return this;
  7277. }
  7278. public Builder ClearIsExtension() {
  7279. PrepareBuilder();
  7280. result.hasIsExtension = false;
  7281. result.isExtension_ = false;
  7282. return this;
  7283. }
  7284. }
  7285. static NamePart() {
  7286. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  7287. }
  7288. }
  7289. }
  7290. #endregion
  7291. public const int NameFieldNumber = 2;
  7292. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart> name_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart>();
  7293. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart> NameList {
  7294. get { return name_; }
  7295. }
  7296. public int NameCount {
  7297. get { return name_.Count; }
  7298. }
  7299. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart GetName(int index) {
  7300. return name_[index];
  7301. }
  7302. public const int IdentifierValueFieldNumber = 3;
  7303. private bool hasIdentifierValue;
  7304. private string identifierValue_ = "";
  7305. public bool HasIdentifierValue {
  7306. get { return hasIdentifierValue; }
  7307. }
  7308. public string IdentifierValue {
  7309. get { return identifierValue_; }
  7310. }
  7311. public const int PositiveIntValueFieldNumber = 4;
  7312. private bool hasPositiveIntValue;
  7313. private ulong positiveIntValue_;
  7314. public bool HasPositiveIntValue {
  7315. get { return hasPositiveIntValue; }
  7316. }
  7317. [global::System.CLSCompliant(false)]
  7318. public ulong PositiveIntValue {
  7319. get { return positiveIntValue_; }
  7320. }
  7321. public const int NegativeIntValueFieldNumber = 5;
  7322. private bool hasNegativeIntValue;
  7323. private long negativeIntValue_;
  7324. public bool HasNegativeIntValue {
  7325. get { return hasNegativeIntValue; }
  7326. }
  7327. public long NegativeIntValue {
  7328. get { return negativeIntValue_; }
  7329. }
  7330. public const int DoubleValueFieldNumber = 6;
  7331. private bool hasDoubleValue;
  7332. private double doubleValue_;
  7333. public bool HasDoubleValue {
  7334. get { return hasDoubleValue; }
  7335. }
  7336. public double DoubleValue {
  7337. get { return doubleValue_; }
  7338. }
  7339. public const int StringValueFieldNumber = 7;
  7340. private bool hasStringValue;
  7341. private pb::ByteString stringValue_ = pb::ByteString.Empty;
  7342. public bool HasStringValue {
  7343. get { return hasStringValue; }
  7344. }
  7345. public pb::ByteString StringValue {
  7346. get { return stringValue_; }
  7347. }
  7348. public const int AggregateValueFieldNumber = 8;
  7349. private bool hasAggregateValue;
  7350. private string aggregateValue_ = "";
  7351. public bool HasAggregateValue {
  7352. get { return hasAggregateValue; }
  7353. }
  7354. public string AggregateValue {
  7355. get { return aggregateValue_; }
  7356. }
  7357. public override bool IsInitialized {
  7358. get {
  7359. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart element in NameList) {
  7360. if (!element.IsInitialized) return false;
  7361. }
  7362. return true;
  7363. }
  7364. }
  7365. public override void WriteTo(pb::ICodedOutputStream output) {
  7366. int size = SerializedSize;
  7367. string[] field_names = _uninterpretedOptionFieldNames;
  7368. if (name_.Count > 0) {
  7369. output.WriteMessageArray(2, field_names[3], name_);
  7370. }
  7371. if (hasIdentifierValue) {
  7372. output.WriteString(3, field_names[2], IdentifierValue);
  7373. }
  7374. if (hasPositiveIntValue) {
  7375. output.WriteUInt64(4, field_names[5], PositiveIntValue);
  7376. }
  7377. if (hasNegativeIntValue) {
  7378. output.WriteInt64(5, field_names[4], NegativeIntValue);
  7379. }
  7380. if (hasDoubleValue) {
  7381. output.WriteDouble(6, field_names[1], DoubleValue);
  7382. }
  7383. if (hasStringValue) {
  7384. output.WriteBytes(7, field_names[6], StringValue);
  7385. }
  7386. if (hasAggregateValue) {
  7387. output.WriteString(8, field_names[0], AggregateValue);
  7388. }
  7389. UnknownFields.WriteTo(output);
  7390. }
  7391. private int memoizedSerializedSize = -1;
  7392. public override int SerializedSize {
  7393. get {
  7394. int size = memoizedSerializedSize;
  7395. if (size != -1) return size;
  7396. size = 0;
  7397. foreach (global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart element in NameList) {
  7398. size += pb::CodedOutputStream.ComputeMessageSize(2, element);
  7399. }
  7400. if (hasIdentifierValue) {
  7401. size += pb::CodedOutputStream.ComputeStringSize(3, IdentifierValue);
  7402. }
  7403. if (hasPositiveIntValue) {
  7404. size += pb::CodedOutputStream.ComputeUInt64Size(4, PositiveIntValue);
  7405. }
  7406. if (hasNegativeIntValue) {
  7407. size += pb::CodedOutputStream.ComputeInt64Size(5, NegativeIntValue);
  7408. }
  7409. if (hasDoubleValue) {
  7410. size += pb::CodedOutputStream.ComputeDoubleSize(6, DoubleValue);
  7411. }
  7412. if (hasStringValue) {
  7413. size += pb::CodedOutputStream.ComputeBytesSize(7, StringValue);
  7414. }
  7415. if (hasAggregateValue) {
  7416. size += pb::CodedOutputStream.ComputeStringSize(8, AggregateValue);
  7417. }
  7418. size += UnknownFields.SerializedSize;
  7419. memoizedSerializedSize = size;
  7420. return size;
  7421. }
  7422. }
  7423. public static UninterpretedOption ParseFrom(pb::ByteString data) {
  7424. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7425. }
  7426. public static UninterpretedOption ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  7427. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7428. }
  7429. public static UninterpretedOption ParseFrom(byte[] data) {
  7430. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7431. }
  7432. public static UninterpretedOption ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  7433. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7434. }
  7435. public static UninterpretedOption ParseFrom(global::System.IO.Stream input) {
  7436. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7437. }
  7438. public static UninterpretedOption ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7439. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7440. }
  7441. public static UninterpretedOption ParseDelimitedFrom(global::System.IO.Stream input) {
  7442. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  7443. }
  7444. public static UninterpretedOption ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7445. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  7446. }
  7447. public static UninterpretedOption ParseFrom(pb::ICodedInputStream input) {
  7448. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7449. }
  7450. public static UninterpretedOption ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7451. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7452. }
  7453. private UninterpretedOption MakeReadOnly() {
  7454. name_.MakeReadOnly();
  7455. return this;
  7456. }
  7457. public static Builder CreateBuilder() { return new Builder(); }
  7458. public override Builder ToBuilder() { return CreateBuilder(this); }
  7459. public override Builder CreateBuilderForType() { return new Builder(); }
  7460. public static Builder CreateBuilder(UninterpretedOption prototype) {
  7461. return new Builder(prototype);
  7462. }
  7463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7464. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  7465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  7466. public sealed partial class Builder : pb::GeneratedBuilder<UninterpretedOption, Builder> {
  7467. protected override Builder ThisBuilder {
  7468. get { return this; }
  7469. }
  7470. public Builder() {
  7471. result = DefaultInstance;
  7472. resultIsReadOnly = true;
  7473. }
  7474. internal Builder(UninterpretedOption cloneFrom) {
  7475. result = cloneFrom;
  7476. resultIsReadOnly = true;
  7477. }
  7478. private bool resultIsReadOnly;
  7479. private UninterpretedOption result;
  7480. private UninterpretedOption PrepareBuilder() {
  7481. if (resultIsReadOnly) {
  7482. UninterpretedOption original = result;
  7483. result = new UninterpretedOption();
  7484. resultIsReadOnly = false;
  7485. MergeFrom(original);
  7486. }
  7487. return result;
  7488. }
  7489. public override bool IsInitialized {
  7490. get { return result.IsInitialized; }
  7491. }
  7492. protected override UninterpretedOption MessageBeingBuilt {
  7493. get { return PrepareBuilder(); }
  7494. }
  7495. public override Builder Clear() {
  7496. result = DefaultInstance;
  7497. resultIsReadOnly = true;
  7498. return this;
  7499. }
  7500. public override Builder Clone() {
  7501. if (resultIsReadOnly) {
  7502. return new Builder(result);
  7503. } else {
  7504. return new Builder().MergeFrom(result);
  7505. }
  7506. }
  7507. public override pbd::MessageDescriptor DescriptorForType {
  7508. get { return global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Descriptor; }
  7509. }
  7510. public override UninterpretedOption DefaultInstanceForType {
  7511. get { return global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.DefaultInstance; }
  7512. }
  7513. public override UninterpretedOption BuildPartial() {
  7514. if (resultIsReadOnly) {
  7515. return result;
  7516. }
  7517. resultIsReadOnly = true;
  7518. return result.MakeReadOnly();
  7519. }
  7520. public override Builder MergeFrom(pb::IMessage other) {
  7521. if (other is UninterpretedOption) {
  7522. return MergeFrom((UninterpretedOption) other);
  7523. } else {
  7524. base.MergeFrom(other);
  7525. return this;
  7526. }
  7527. }
  7528. public override Builder MergeFrom(UninterpretedOption other) {
  7529. if (other == global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.DefaultInstance) return this;
  7530. PrepareBuilder();
  7531. if (other.name_.Count != 0) {
  7532. result.name_.Add(other.name_);
  7533. }
  7534. if (other.HasIdentifierValue) {
  7535. IdentifierValue = other.IdentifierValue;
  7536. }
  7537. if (other.HasPositiveIntValue) {
  7538. PositiveIntValue = other.PositiveIntValue;
  7539. }
  7540. if (other.HasNegativeIntValue) {
  7541. NegativeIntValue = other.NegativeIntValue;
  7542. }
  7543. if (other.HasDoubleValue) {
  7544. DoubleValue = other.DoubleValue;
  7545. }
  7546. if (other.HasStringValue) {
  7547. StringValue = other.StringValue;
  7548. }
  7549. if (other.HasAggregateValue) {
  7550. AggregateValue = other.AggregateValue;
  7551. }
  7552. this.MergeUnknownFields(other.UnknownFields);
  7553. return this;
  7554. }
  7555. public override Builder MergeFrom(pb::ICodedInputStream input) {
  7556. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  7557. }
  7558. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7559. PrepareBuilder();
  7560. pb::UnknownFieldSet.Builder unknownFields = null;
  7561. uint tag;
  7562. string field_name;
  7563. while (input.ReadTag(out tag, out field_name)) {
  7564. if(tag == 0 && field_name != null) {
  7565. int field_ordinal = global::System.Array.BinarySearch(_uninterpretedOptionFieldNames, field_name, global::System.StringComparer.Ordinal);
  7566. if(field_ordinal >= 0)
  7567. tag = _uninterpretedOptionFieldTags[field_ordinal];
  7568. else {
  7569. if (unknownFields == null) {
  7570. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7571. }
  7572. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7573. continue;
  7574. }
  7575. }
  7576. switch (tag) {
  7577. case 0: {
  7578. throw pb::InvalidProtocolBufferException.InvalidTag();
  7579. }
  7580. default: {
  7581. if (pb::WireFormat.IsEndGroupTag(tag)) {
  7582. if (unknownFields != null) {
  7583. this.UnknownFields = unknownFields.Build();
  7584. }
  7585. return this;
  7586. }
  7587. if (unknownFields == null) {
  7588. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  7589. }
  7590. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  7591. break;
  7592. }
  7593. case 18: {
  7594. input.ReadMessageArray(tag, field_name, result.name_, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart.DefaultInstance, extensionRegistry);
  7595. break;
  7596. }
  7597. case 26: {
  7598. result.hasIdentifierValue = input.ReadString(ref result.identifierValue_);
  7599. break;
  7600. }
  7601. case 32: {
  7602. result.hasPositiveIntValue = input.ReadUInt64(ref result.positiveIntValue_);
  7603. break;
  7604. }
  7605. case 40: {
  7606. result.hasNegativeIntValue = input.ReadInt64(ref result.negativeIntValue_);
  7607. break;
  7608. }
  7609. case 49: {
  7610. result.hasDoubleValue = input.ReadDouble(ref result.doubleValue_);
  7611. break;
  7612. }
  7613. case 58: {
  7614. result.hasStringValue = input.ReadBytes(ref result.stringValue_);
  7615. break;
  7616. }
  7617. case 66: {
  7618. result.hasAggregateValue = input.ReadString(ref result.aggregateValue_);
  7619. break;
  7620. }
  7621. }
  7622. }
  7623. if (unknownFields != null) {
  7624. this.UnknownFields = unknownFields.Build();
  7625. }
  7626. return this;
  7627. }
  7628. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart> NameList {
  7629. get { return PrepareBuilder().name_; }
  7630. }
  7631. public int NameCount {
  7632. get { return result.NameCount; }
  7633. }
  7634. public global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart GetName(int index) {
  7635. return result.GetName(index);
  7636. }
  7637. public Builder SetName(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart value) {
  7638. pb::ThrowHelper.ThrowIfNull(value, "value");
  7639. PrepareBuilder();
  7640. result.name_[index] = value;
  7641. return this;
  7642. }
  7643. public Builder SetName(int index, global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart.Builder builderForValue) {
  7644. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  7645. PrepareBuilder();
  7646. result.name_[index] = builderForValue.Build();
  7647. return this;
  7648. }
  7649. public Builder AddName(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart value) {
  7650. pb::ThrowHelper.ThrowIfNull(value, "value");
  7651. PrepareBuilder();
  7652. result.name_.Add(value);
  7653. return this;
  7654. }
  7655. public Builder AddName(global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart.Builder builderForValue) {
  7656. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  7657. PrepareBuilder();
  7658. result.name_.Add(builderForValue.Build());
  7659. return this;
  7660. }
  7661. public Builder AddRangeName(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.UninterpretedOption.Types.NamePart> values) {
  7662. PrepareBuilder();
  7663. result.name_.Add(values);
  7664. return this;
  7665. }
  7666. public Builder ClearName() {
  7667. PrepareBuilder();
  7668. result.name_.Clear();
  7669. return this;
  7670. }
  7671. public bool HasIdentifierValue {
  7672. get { return result.hasIdentifierValue; }
  7673. }
  7674. public string IdentifierValue {
  7675. get { return result.IdentifierValue; }
  7676. set { SetIdentifierValue(value); }
  7677. }
  7678. public Builder SetIdentifierValue(string value) {
  7679. pb::ThrowHelper.ThrowIfNull(value, "value");
  7680. PrepareBuilder();
  7681. result.hasIdentifierValue = true;
  7682. result.identifierValue_ = value;
  7683. return this;
  7684. }
  7685. public Builder ClearIdentifierValue() {
  7686. PrepareBuilder();
  7687. result.hasIdentifierValue = false;
  7688. result.identifierValue_ = "";
  7689. return this;
  7690. }
  7691. public bool HasPositiveIntValue {
  7692. get { return result.hasPositiveIntValue; }
  7693. }
  7694. [global::System.CLSCompliant(false)]
  7695. public ulong PositiveIntValue {
  7696. get { return result.PositiveIntValue; }
  7697. set { SetPositiveIntValue(value); }
  7698. }
  7699. [global::System.CLSCompliant(false)]
  7700. public Builder SetPositiveIntValue(ulong value) {
  7701. PrepareBuilder();
  7702. result.hasPositiveIntValue = true;
  7703. result.positiveIntValue_ = value;
  7704. return this;
  7705. }
  7706. public Builder ClearPositiveIntValue() {
  7707. PrepareBuilder();
  7708. result.hasPositiveIntValue = false;
  7709. result.positiveIntValue_ = 0UL;
  7710. return this;
  7711. }
  7712. public bool HasNegativeIntValue {
  7713. get { return result.hasNegativeIntValue; }
  7714. }
  7715. public long NegativeIntValue {
  7716. get { return result.NegativeIntValue; }
  7717. set { SetNegativeIntValue(value); }
  7718. }
  7719. public Builder SetNegativeIntValue(long value) {
  7720. PrepareBuilder();
  7721. result.hasNegativeIntValue = true;
  7722. result.negativeIntValue_ = value;
  7723. return this;
  7724. }
  7725. public Builder ClearNegativeIntValue() {
  7726. PrepareBuilder();
  7727. result.hasNegativeIntValue = false;
  7728. result.negativeIntValue_ = 0L;
  7729. return this;
  7730. }
  7731. public bool HasDoubleValue {
  7732. get { return result.hasDoubleValue; }
  7733. }
  7734. public double DoubleValue {
  7735. get { return result.DoubleValue; }
  7736. set { SetDoubleValue(value); }
  7737. }
  7738. public Builder SetDoubleValue(double value) {
  7739. PrepareBuilder();
  7740. result.hasDoubleValue = true;
  7741. result.doubleValue_ = value;
  7742. return this;
  7743. }
  7744. public Builder ClearDoubleValue() {
  7745. PrepareBuilder();
  7746. result.hasDoubleValue = false;
  7747. result.doubleValue_ = 0D;
  7748. return this;
  7749. }
  7750. public bool HasStringValue {
  7751. get { return result.hasStringValue; }
  7752. }
  7753. public pb::ByteString StringValue {
  7754. get { return result.StringValue; }
  7755. set { SetStringValue(value); }
  7756. }
  7757. public Builder SetStringValue(pb::ByteString value) {
  7758. pb::ThrowHelper.ThrowIfNull(value, "value");
  7759. PrepareBuilder();
  7760. result.hasStringValue = true;
  7761. result.stringValue_ = value;
  7762. return this;
  7763. }
  7764. public Builder ClearStringValue() {
  7765. PrepareBuilder();
  7766. result.hasStringValue = false;
  7767. result.stringValue_ = pb::ByteString.Empty;
  7768. return this;
  7769. }
  7770. public bool HasAggregateValue {
  7771. get { return result.hasAggregateValue; }
  7772. }
  7773. public string AggregateValue {
  7774. get { return result.AggregateValue; }
  7775. set { SetAggregateValue(value); }
  7776. }
  7777. public Builder SetAggregateValue(string value) {
  7778. pb::ThrowHelper.ThrowIfNull(value, "value");
  7779. PrepareBuilder();
  7780. result.hasAggregateValue = true;
  7781. result.aggregateValue_ = value;
  7782. return this;
  7783. }
  7784. public Builder ClearAggregateValue() {
  7785. PrepareBuilder();
  7786. result.hasAggregateValue = false;
  7787. result.aggregateValue_ = "";
  7788. return this;
  7789. }
  7790. }
  7791. static UninterpretedOption() {
  7792. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  7793. }
  7794. }
  7795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7796. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  7797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  7798. public sealed partial class SourceCodeInfo : pb::GeneratedMessage<SourceCodeInfo, SourceCodeInfo.Builder> {
  7799. private SourceCodeInfo() { }
  7800. private static readonly SourceCodeInfo defaultInstance = new SourceCodeInfo().MakeReadOnly();
  7801. private static readonly string[] _sourceCodeInfoFieldNames = new string[] { "location" };
  7802. private static readonly uint[] _sourceCodeInfoFieldTags = new uint[] { 10 };
  7803. public static SourceCodeInfo DefaultInstance {
  7804. get { return defaultInstance; }
  7805. }
  7806. public override SourceCodeInfo DefaultInstanceForType {
  7807. get { return DefaultInstance; }
  7808. }
  7809. protected override SourceCodeInfo ThisMessage {
  7810. get { return this; }
  7811. }
  7812. public static pbd::MessageDescriptor Descriptor {
  7813. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_SourceCodeInfo__Descriptor; }
  7814. }
  7815. protected override pb::FieldAccess.FieldAccessorTable<SourceCodeInfo, SourceCodeInfo.Builder> InternalFieldAccessors {
  7816. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_SourceCodeInfo__FieldAccessorTable; }
  7817. }
  7818. #region Nested types
  7819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7820. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  7821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  7822. public static class Types {
  7823. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7824. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  7825. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  7826. public sealed partial class Location : pb::GeneratedMessage<Location, Location.Builder> {
  7827. private Location() { }
  7828. private static readonly Location defaultInstance = new Location().MakeReadOnly();
  7829. private static readonly string[] _locationFieldNames = new string[] { "path", "span" };
  7830. private static readonly uint[] _locationFieldTags = new uint[] { 10, 18 };
  7831. public static Location DefaultInstance {
  7832. get { return defaultInstance; }
  7833. }
  7834. public override Location DefaultInstanceForType {
  7835. get { return DefaultInstance; }
  7836. }
  7837. protected override Location ThisMessage {
  7838. get { return this; }
  7839. }
  7840. public static pbd::MessageDescriptor Descriptor {
  7841. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_SourceCodeInfo_Location__Descriptor; }
  7842. }
  7843. protected override pb::FieldAccess.FieldAccessorTable<Location, Location.Builder> InternalFieldAccessors {
  7844. get { return global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.internal__static_google_protobuf_SourceCodeInfo_Location__FieldAccessorTable; }
  7845. }
  7846. public const int PathFieldNumber = 1;
  7847. private int pathMemoizedSerializedSize;
  7848. private pbc::PopsicleList<int> path_ = new pbc::PopsicleList<int>();
  7849. public scg::IList<int> PathList {
  7850. get { return pbc::Lists.AsReadOnly(path_); }
  7851. }
  7852. public int PathCount {
  7853. get { return path_.Count; }
  7854. }
  7855. public int GetPath(int index) {
  7856. return path_[index];
  7857. }
  7858. public const int SpanFieldNumber = 2;
  7859. private int spanMemoizedSerializedSize;
  7860. private pbc::PopsicleList<int> span_ = new pbc::PopsicleList<int>();
  7861. public scg::IList<int> SpanList {
  7862. get { return pbc::Lists.AsReadOnly(span_); }
  7863. }
  7864. public int SpanCount {
  7865. get { return span_.Count; }
  7866. }
  7867. public int GetSpan(int index) {
  7868. return span_[index];
  7869. }
  7870. public override bool IsInitialized {
  7871. get {
  7872. return true;
  7873. }
  7874. }
  7875. public override void WriteTo(pb::ICodedOutputStream output) {
  7876. int size = SerializedSize;
  7877. string[] field_names = _locationFieldNames;
  7878. if (path_.Count > 0) {
  7879. output.WritePackedInt32Array(1, field_names[0], pathMemoizedSerializedSize, path_);
  7880. }
  7881. if (span_.Count > 0) {
  7882. output.WritePackedInt32Array(2, field_names[1], spanMemoizedSerializedSize, span_);
  7883. }
  7884. UnknownFields.WriteTo(output);
  7885. }
  7886. private int memoizedSerializedSize = -1;
  7887. public override int SerializedSize {
  7888. get {
  7889. int size = memoizedSerializedSize;
  7890. if (size != -1) return size;
  7891. size = 0;
  7892. {
  7893. int dataSize = 0;
  7894. foreach (int element in PathList) {
  7895. dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
  7896. }
  7897. size += dataSize;
  7898. if (path_.Count != 0) {
  7899. size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  7900. }
  7901. pathMemoizedSerializedSize = dataSize;
  7902. }
  7903. {
  7904. int dataSize = 0;
  7905. foreach (int element in SpanList) {
  7906. dataSize += pb::CodedOutputStream.ComputeInt32SizeNoTag(element);
  7907. }
  7908. size += dataSize;
  7909. if (span_.Count != 0) {
  7910. size += 1 + pb::CodedOutputStream.ComputeInt32SizeNoTag(dataSize);
  7911. }
  7912. spanMemoizedSerializedSize = dataSize;
  7913. }
  7914. size += UnknownFields.SerializedSize;
  7915. memoizedSerializedSize = size;
  7916. return size;
  7917. }
  7918. }
  7919. public static Location ParseFrom(pb::ByteString data) {
  7920. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7921. }
  7922. public static Location ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  7923. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7924. }
  7925. public static Location ParseFrom(byte[] data) {
  7926. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  7927. }
  7928. public static Location ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  7929. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  7930. }
  7931. public static Location ParseFrom(global::System.IO.Stream input) {
  7932. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7933. }
  7934. public static Location ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7935. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7936. }
  7937. public static Location ParseDelimitedFrom(global::System.IO.Stream input) {
  7938. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  7939. }
  7940. public static Location ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  7941. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  7942. }
  7943. public static Location ParseFrom(pb::ICodedInputStream input) {
  7944. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  7945. }
  7946. public static Location ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  7947. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  7948. }
  7949. private Location MakeReadOnly() {
  7950. path_.MakeReadOnly();
  7951. span_.MakeReadOnly();
  7952. return this;
  7953. }
  7954. public static Builder CreateBuilder() { return new Builder(); }
  7955. public override Builder ToBuilder() { return CreateBuilder(this); }
  7956. public override Builder CreateBuilderForType() { return new Builder(); }
  7957. public static Builder CreateBuilder(Location prototype) {
  7958. return new Builder(prototype);
  7959. }
  7960. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  7961. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  7962. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  7963. public sealed partial class Builder : pb::GeneratedBuilder<Location, Builder> {
  7964. protected override Builder ThisBuilder {
  7965. get { return this; }
  7966. }
  7967. public Builder() {
  7968. result = DefaultInstance;
  7969. resultIsReadOnly = true;
  7970. }
  7971. internal Builder(Location cloneFrom) {
  7972. result = cloneFrom;
  7973. resultIsReadOnly = true;
  7974. }
  7975. private bool resultIsReadOnly;
  7976. private Location result;
  7977. private Location PrepareBuilder() {
  7978. if (resultIsReadOnly) {
  7979. Location original = result;
  7980. result = new Location();
  7981. resultIsReadOnly = false;
  7982. MergeFrom(original);
  7983. }
  7984. return result;
  7985. }
  7986. public override bool IsInitialized {
  7987. get { return result.IsInitialized; }
  7988. }
  7989. protected override Location MessageBeingBuilt {
  7990. get { return PrepareBuilder(); }
  7991. }
  7992. public override Builder Clear() {
  7993. result = DefaultInstance;
  7994. resultIsReadOnly = true;
  7995. return this;
  7996. }
  7997. public override Builder Clone() {
  7998. if (resultIsReadOnly) {
  7999. return new Builder(result);
  8000. } else {
  8001. return new Builder().MergeFrom(result);
  8002. }
  8003. }
  8004. public override pbd::MessageDescriptor DescriptorForType {
  8005. get { return global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location.Descriptor; }
  8006. }
  8007. public override Location DefaultInstanceForType {
  8008. get { return global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location.DefaultInstance; }
  8009. }
  8010. public override Location BuildPartial() {
  8011. if (resultIsReadOnly) {
  8012. return result;
  8013. }
  8014. resultIsReadOnly = true;
  8015. return result.MakeReadOnly();
  8016. }
  8017. public override Builder MergeFrom(pb::IMessage other) {
  8018. if (other is Location) {
  8019. return MergeFrom((Location) other);
  8020. } else {
  8021. base.MergeFrom(other);
  8022. return this;
  8023. }
  8024. }
  8025. public override Builder MergeFrom(Location other) {
  8026. if (other == global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location.DefaultInstance) return this;
  8027. PrepareBuilder();
  8028. if (other.path_.Count != 0) {
  8029. result.path_.Add(other.path_);
  8030. }
  8031. if (other.span_.Count != 0) {
  8032. result.span_.Add(other.span_);
  8033. }
  8034. this.MergeUnknownFields(other.UnknownFields);
  8035. return this;
  8036. }
  8037. public override Builder MergeFrom(pb::ICodedInputStream input) {
  8038. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8039. }
  8040. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8041. PrepareBuilder();
  8042. pb::UnknownFieldSet.Builder unknownFields = null;
  8043. uint tag;
  8044. string field_name;
  8045. while (input.ReadTag(out tag, out field_name)) {
  8046. if(tag == 0 && field_name != null) {
  8047. int field_ordinal = global::System.Array.BinarySearch(_locationFieldNames, field_name, global::System.StringComparer.Ordinal);
  8048. if(field_ordinal >= 0)
  8049. tag = _locationFieldTags[field_ordinal];
  8050. else {
  8051. if (unknownFields == null) {
  8052. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8053. }
  8054. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  8055. continue;
  8056. }
  8057. }
  8058. switch (tag) {
  8059. case 0: {
  8060. throw pb::InvalidProtocolBufferException.InvalidTag();
  8061. }
  8062. default: {
  8063. if (pb::WireFormat.IsEndGroupTag(tag)) {
  8064. if (unknownFields != null) {
  8065. this.UnknownFields = unknownFields.Build();
  8066. }
  8067. return this;
  8068. }
  8069. if (unknownFields == null) {
  8070. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8071. }
  8072. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  8073. break;
  8074. }
  8075. case 10:
  8076. case 8: {
  8077. input.ReadInt32Array(tag, field_name, result.path_);
  8078. break;
  8079. }
  8080. case 18:
  8081. case 16: {
  8082. input.ReadInt32Array(tag, field_name, result.span_);
  8083. break;
  8084. }
  8085. }
  8086. }
  8087. if (unknownFields != null) {
  8088. this.UnknownFields = unknownFields.Build();
  8089. }
  8090. return this;
  8091. }
  8092. public pbc::IPopsicleList<int> PathList {
  8093. get { return PrepareBuilder().path_; }
  8094. }
  8095. public int PathCount {
  8096. get { return result.PathCount; }
  8097. }
  8098. public int GetPath(int index) {
  8099. return result.GetPath(index);
  8100. }
  8101. public Builder SetPath(int index, int value) {
  8102. PrepareBuilder();
  8103. result.path_[index] = value;
  8104. return this;
  8105. }
  8106. public Builder AddPath(int value) {
  8107. PrepareBuilder();
  8108. result.path_.Add(value);
  8109. return this;
  8110. }
  8111. public Builder AddRangePath(scg::IEnumerable<int> values) {
  8112. PrepareBuilder();
  8113. result.path_.Add(values);
  8114. return this;
  8115. }
  8116. public Builder ClearPath() {
  8117. PrepareBuilder();
  8118. result.path_.Clear();
  8119. return this;
  8120. }
  8121. public pbc::IPopsicleList<int> SpanList {
  8122. get { return PrepareBuilder().span_; }
  8123. }
  8124. public int SpanCount {
  8125. get { return result.SpanCount; }
  8126. }
  8127. public int GetSpan(int index) {
  8128. return result.GetSpan(index);
  8129. }
  8130. public Builder SetSpan(int index, int value) {
  8131. PrepareBuilder();
  8132. result.span_[index] = value;
  8133. return this;
  8134. }
  8135. public Builder AddSpan(int value) {
  8136. PrepareBuilder();
  8137. result.span_.Add(value);
  8138. return this;
  8139. }
  8140. public Builder AddRangeSpan(scg::IEnumerable<int> values) {
  8141. PrepareBuilder();
  8142. result.span_.Add(values);
  8143. return this;
  8144. }
  8145. public Builder ClearSpan() {
  8146. PrepareBuilder();
  8147. result.span_.Clear();
  8148. return this;
  8149. }
  8150. }
  8151. static Location() {
  8152. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  8153. }
  8154. }
  8155. }
  8156. #endregion
  8157. public const int LocationFieldNumber = 1;
  8158. private pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location> location_ = new pbc::PopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location>();
  8159. public scg::IList<global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location> LocationList {
  8160. get { return location_; }
  8161. }
  8162. public int LocationCount {
  8163. get { return location_.Count; }
  8164. }
  8165. public global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location GetLocation(int index) {
  8166. return location_[index];
  8167. }
  8168. public override bool IsInitialized {
  8169. get {
  8170. return true;
  8171. }
  8172. }
  8173. public override void WriteTo(pb::ICodedOutputStream output) {
  8174. int size = SerializedSize;
  8175. string[] field_names = _sourceCodeInfoFieldNames;
  8176. if (location_.Count > 0) {
  8177. output.WriteMessageArray(1, field_names[0], location_);
  8178. }
  8179. UnknownFields.WriteTo(output);
  8180. }
  8181. private int memoizedSerializedSize = -1;
  8182. public override int SerializedSize {
  8183. get {
  8184. int size = memoizedSerializedSize;
  8185. if (size != -1) return size;
  8186. size = 0;
  8187. foreach (global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location element in LocationList) {
  8188. size += pb::CodedOutputStream.ComputeMessageSize(1, element);
  8189. }
  8190. size += UnknownFields.SerializedSize;
  8191. memoizedSerializedSize = size;
  8192. return size;
  8193. }
  8194. }
  8195. public static SourceCodeInfo ParseFrom(pb::ByteString data) {
  8196. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8197. }
  8198. public static SourceCodeInfo ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  8199. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  8200. }
  8201. public static SourceCodeInfo ParseFrom(byte[] data) {
  8202. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  8203. }
  8204. public static SourceCodeInfo ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  8205. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  8206. }
  8207. public static SourceCodeInfo ParseFrom(global::System.IO.Stream input) {
  8208. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8209. }
  8210. public static SourceCodeInfo ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  8211. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  8212. }
  8213. public static SourceCodeInfo ParseDelimitedFrom(global::System.IO.Stream input) {
  8214. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  8215. }
  8216. public static SourceCodeInfo ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  8217. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  8218. }
  8219. public static SourceCodeInfo ParseFrom(pb::ICodedInputStream input) {
  8220. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  8221. }
  8222. public static SourceCodeInfo ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8223. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  8224. }
  8225. private SourceCodeInfo MakeReadOnly() {
  8226. location_.MakeReadOnly();
  8227. return this;
  8228. }
  8229. public static Builder CreateBuilder() { return new Builder(); }
  8230. public override Builder ToBuilder() { return CreateBuilder(this); }
  8231. public override Builder CreateBuilderForType() { return new Builder(); }
  8232. public static Builder CreateBuilder(SourceCodeInfo prototype) {
  8233. return new Builder(prototype);
  8234. }
  8235. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8236. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  8237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  8238. public sealed partial class Builder : pb::GeneratedBuilder<SourceCodeInfo, Builder> {
  8239. protected override Builder ThisBuilder {
  8240. get { return this; }
  8241. }
  8242. public Builder() {
  8243. result = DefaultInstance;
  8244. resultIsReadOnly = true;
  8245. }
  8246. internal Builder(SourceCodeInfo cloneFrom) {
  8247. result = cloneFrom;
  8248. resultIsReadOnly = true;
  8249. }
  8250. private bool resultIsReadOnly;
  8251. private SourceCodeInfo result;
  8252. private SourceCodeInfo PrepareBuilder() {
  8253. if (resultIsReadOnly) {
  8254. SourceCodeInfo original = result;
  8255. result = new SourceCodeInfo();
  8256. resultIsReadOnly = false;
  8257. MergeFrom(original);
  8258. }
  8259. return result;
  8260. }
  8261. public override bool IsInitialized {
  8262. get { return result.IsInitialized; }
  8263. }
  8264. protected override SourceCodeInfo MessageBeingBuilt {
  8265. get { return PrepareBuilder(); }
  8266. }
  8267. public override Builder Clear() {
  8268. result = DefaultInstance;
  8269. resultIsReadOnly = true;
  8270. return this;
  8271. }
  8272. public override Builder Clone() {
  8273. if (resultIsReadOnly) {
  8274. return new Builder(result);
  8275. } else {
  8276. return new Builder().MergeFrom(result);
  8277. }
  8278. }
  8279. public override pbd::MessageDescriptor DescriptorForType {
  8280. get { return global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Descriptor; }
  8281. }
  8282. public override SourceCodeInfo DefaultInstanceForType {
  8283. get { return global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.DefaultInstance; }
  8284. }
  8285. public override SourceCodeInfo BuildPartial() {
  8286. if (resultIsReadOnly) {
  8287. return result;
  8288. }
  8289. resultIsReadOnly = true;
  8290. return result.MakeReadOnly();
  8291. }
  8292. public override Builder MergeFrom(pb::IMessage other) {
  8293. if (other is SourceCodeInfo) {
  8294. return MergeFrom((SourceCodeInfo) other);
  8295. } else {
  8296. base.MergeFrom(other);
  8297. return this;
  8298. }
  8299. }
  8300. public override Builder MergeFrom(SourceCodeInfo other) {
  8301. if (other == global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.DefaultInstance) return this;
  8302. PrepareBuilder();
  8303. if (other.location_.Count != 0) {
  8304. result.location_.Add(other.location_);
  8305. }
  8306. this.MergeUnknownFields(other.UnknownFields);
  8307. return this;
  8308. }
  8309. public override Builder MergeFrom(pb::ICodedInputStream input) {
  8310. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  8311. }
  8312. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  8313. PrepareBuilder();
  8314. pb::UnknownFieldSet.Builder unknownFields = null;
  8315. uint tag;
  8316. string field_name;
  8317. while (input.ReadTag(out tag, out field_name)) {
  8318. if(tag == 0 && field_name != null) {
  8319. int field_ordinal = global::System.Array.BinarySearch(_sourceCodeInfoFieldNames, field_name, global::System.StringComparer.Ordinal);
  8320. if(field_ordinal >= 0)
  8321. tag = _sourceCodeInfoFieldTags[field_ordinal];
  8322. else {
  8323. if (unknownFields == null) {
  8324. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8325. }
  8326. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  8327. continue;
  8328. }
  8329. }
  8330. switch (tag) {
  8331. case 0: {
  8332. throw pb::InvalidProtocolBufferException.InvalidTag();
  8333. }
  8334. default: {
  8335. if (pb::WireFormat.IsEndGroupTag(tag)) {
  8336. if (unknownFields != null) {
  8337. this.UnknownFields = unknownFields.Build();
  8338. }
  8339. return this;
  8340. }
  8341. if (unknownFields == null) {
  8342. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  8343. }
  8344. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  8345. break;
  8346. }
  8347. case 10: {
  8348. input.ReadMessageArray(tag, field_name, result.location_, global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location.DefaultInstance, extensionRegistry);
  8349. break;
  8350. }
  8351. }
  8352. }
  8353. if (unknownFields != null) {
  8354. this.UnknownFields = unknownFields.Build();
  8355. }
  8356. return this;
  8357. }
  8358. public pbc::IPopsicleList<global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location> LocationList {
  8359. get { return PrepareBuilder().location_; }
  8360. }
  8361. public int LocationCount {
  8362. get { return result.LocationCount; }
  8363. }
  8364. public global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location GetLocation(int index) {
  8365. return result.GetLocation(index);
  8366. }
  8367. public Builder SetLocation(int index, global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location value) {
  8368. pb::ThrowHelper.ThrowIfNull(value, "value");
  8369. PrepareBuilder();
  8370. result.location_[index] = value;
  8371. return this;
  8372. }
  8373. public Builder SetLocation(int index, global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location.Builder builderForValue) {
  8374. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  8375. PrepareBuilder();
  8376. result.location_[index] = builderForValue.Build();
  8377. return this;
  8378. }
  8379. public Builder AddLocation(global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location value) {
  8380. pb::ThrowHelper.ThrowIfNull(value, "value");
  8381. PrepareBuilder();
  8382. result.location_.Add(value);
  8383. return this;
  8384. }
  8385. public Builder AddLocation(global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location.Builder builderForValue) {
  8386. pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
  8387. PrepareBuilder();
  8388. result.location_.Add(builderForValue.Build());
  8389. return this;
  8390. }
  8391. public Builder AddRangeLocation(scg::IEnumerable<global::Google.ProtocolBuffers.DescriptorProtos.SourceCodeInfo.Types.Location> values) {
  8392. PrepareBuilder();
  8393. result.location_.Add(values);
  8394. return this;
  8395. }
  8396. public Builder ClearLocation() {
  8397. PrepareBuilder();
  8398. result.location_.Clear();
  8399. return this;
  8400. }
  8401. }
  8402. static SourceCodeInfo() {
  8403. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor, null);
  8404. }
  8405. }
  8406. #endregion
  8407. }
  8408. #endregion Designer generated code