DescriptorProtoFile.cs 243 KB

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