DescriptorProtoFile.cs 239 KB

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