Descriptor.cs 195 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace Google.Protobuf.Reflection {
  10. /// <summary>Holder for reflection information generated from google/protobuf/descriptor.proto</summary>
  11. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  12. internal static partial class DescriptorReflection {
  13. #region Descriptor
  14. /// <summary>File descriptor for google/protobuf/descriptor.proto</summary>
  15. public static pbr::FileDescriptor Descriptor {
  16. get { return descriptor; }
  17. }
  18. private static pbr::FileDescriptor descriptor;
  19. static DescriptorReflection() {
  20. byte[] descriptorData = global::System.Convert.FromBase64String(
  21. string.Concat(
  22. "CiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxIPZ29vZ2xlLnBy",
  23. "b3RvYnVmIkcKEUZpbGVEZXNjcmlwdG9yU2V0EjIKBGZpbGUYASADKAsyJC5n",
  24. "b29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90byLbAwoTRmlsZURl",
  25. "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg8KB3BhY2thZ2UYAiABKAkS",
  26. "EgoKZGVwZW5kZW5jeRgDIAMoCRIZChFwdWJsaWNfZGVwZW5kZW5jeRgKIAMo",
  27. "BRIXCg93ZWFrX2RlcGVuZGVuY3kYCyADKAUSNgoMbWVzc2FnZV90eXBlGAQg",
  28. "AygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQcm90bxI3CgllbnVt",
  29. "X3R5cGUYBSADKAsyJC5nb29nbGUucHJvdG9idWYuRW51bURlc2NyaXB0b3JQ",
  30. "cm90bxI4CgdzZXJ2aWNlGAYgAygLMicuZ29vZ2xlLnByb3RvYnVmLlNlcnZp",
  31. "Y2VEZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAcgAygLMiUuZ29vZ2xl",
  32. "LnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMYCCAB",
  33. "KAsyHC5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMSOQoQc291cmNlX2Nv",
  34. "ZGVfaW5mbxgJIAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5m",
  35. "bxIOCgZzeW50YXgYDCABKAki8AQKD0Rlc2NyaXB0b3JQcm90bxIMCgRuYW1l",
  36. "GAEgASgJEjQKBWZpZWxkGAIgAygLMiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxk",
  37. "RGVzY3JpcHRvclByb3RvEjgKCWV4dGVuc2lvbhgGIAMoCzIlLmdvb2dsZS5w",
  38. "cm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90bxI1CgtuZXN0ZWRfdHlwZRgD",
  39. "IAMoCzIgLmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8SNwoJZW51",
  40. "bV90eXBlGAQgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9y",
  41. "UHJvdG8SSAoPZXh0ZW5zaW9uX3JhbmdlGAUgAygLMi8uZ29vZ2xlLnByb3Rv",
  42. "YnVmLkRlc2NyaXB0b3JQcm90by5FeHRlbnNpb25SYW5nZRI5CgpvbmVvZl9k",
  43. "ZWNsGAggAygLMiUuZ29vZ2xlLnByb3RvYnVmLk9uZW9mRGVzY3JpcHRvclBy",
  44. "b3RvEjAKB29wdGlvbnMYByABKAsyHy5nb29nbGUucHJvdG9idWYuTWVzc2Fn",
  45. "ZU9wdGlvbnMSRgoOcmVzZXJ2ZWRfcmFuZ2UYCSADKAsyLi5nb29nbGUucHJv",
  46. "dG9idWYuRGVzY3JpcHRvclByb3RvLlJlc2VydmVkUmFuZ2USFQoNcmVzZXJ2",
  47. "ZWRfbmFtZRgKIAMoCRosCg5FeHRlbnNpb25SYW5nZRINCgVzdGFydBgBIAEo",
  48. "BRILCgNlbmQYAiABKAUaKwoNUmVzZXJ2ZWRSYW5nZRINCgVzdGFydBgBIAEo",
  49. "BRILCgNlbmQYAiABKAUivAUKFEZpZWxkRGVzY3JpcHRvclByb3RvEgwKBG5h",
  50. "bWUYASABKAkSDgoGbnVtYmVyGAMgASgFEjoKBWxhYmVsGAQgASgOMisuZ29v",
  51. "Z2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvLkxhYmVsEjgKBHR5",
  52. "cGUYBSABKA4yKi5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJv",
  53. "dG8uVHlwZRIRCgl0eXBlX25hbWUYBiABKAkSEAoIZXh0ZW5kZWUYAiABKAkS",
  54. "FQoNZGVmYXVsdF92YWx1ZRgHIAEoCRITCgtvbmVvZl9pbmRleBgJIAEoBRIR",
  55. "Cglqc29uX25hbWUYCiABKAkSLgoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5w",
  56. "cm90b2J1Zi5GaWVsZE9wdGlvbnMitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQ",
  57. "ARIOCgpUWVBFX0ZMT0FUEAISDgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlO",
  58. "VDY0EAQSDgoKVFlQRV9JTlQzMhAFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZ",
  59. "UEVfRklYRUQzMhAHEg0KCVRZUEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkS",
  60. "DgoKVFlQRV9HUk9VUBAKEhAKDFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllU",
  61. "RVMQDBIPCgtUWVBFX1VJTlQzMhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVf",
  62. "U0ZJWEVEMzIQDxIRCg1UWVBFX1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQ",
  63. "ERIPCgtUWVBFX1NJTlQ2NBASIkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFM",
  64. "EAESEgoOTEFCRUxfUkVRVUlSRUQQAhISCg5MQUJFTF9SRVBFQVRFRBADIiQK",
  65. "FE9uZW9mRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkijAEKE0VudW1E",
  66. "ZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI4CgV2YWx1ZRgCIAMoCzIp",
  67. "Lmdvb2dsZS5wcm90b2J1Zi5FbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SLQoH",
  68. "b3B0aW9ucxgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9ucyJs",
  69. "ChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRIOCgZu",
  70. "dW1iZXIYAiABKAUSMgoHb3B0aW9ucxgDIAEoCzIhLmdvb2dsZS5wcm90b2J1",
  71. "Zi5FbnVtVmFsdWVPcHRpb25zIpABChZTZXJ2aWNlRGVzY3JpcHRvclByb3Rv",
  72. "EgwKBG5hbWUYASABKAkSNgoGbWV0aG9kGAIgAygLMiYuZ29vZ2xlLnByb3Rv",
  73. "YnVmLk1ldGhvZERlc2NyaXB0b3JQcm90bxIwCgdvcHRpb25zGAMgASgLMh8u",
  74. "Z29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zIsEBChVNZXRob2REZXNj",
  75. "cmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRISCgppbnB1dF90eXBlGAIgASgJ",
  76. "EhMKC291dHB1dF90eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5nb29n",
  77. "bGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxIfChBjbGllbnRfc3RyZWFtaW5n",
  78. "GAUgASgIOgVmYWxzZRIfChBzZXJ2ZXJfc3RyZWFtaW5nGAYgASgIOgVmYWxz",
  79. "ZSKHBQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwKFGph",
  80. "dmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFfbXVsdGlwbGVfZmls",
  81. "ZXMYCiABKAg6BWZhbHNlEiwKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2FuZF9o",
  82. "YXNoGBQgASgIOgVmYWxzZRIlChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsg",
  83. "ASgIOgVmYWxzZRJGCgxvcHRpbWl6ZV9mb3IYCSABKA4yKS5nb29nbGUucHJv",
  84. "dG9idWYuRmlsZU9wdGlvbnMuT3B0aW1pemVNb2RlOgVTUEVFRBISCgpnb19w",
  85. "YWNrYWdlGAsgASgJEiIKE2NjX2dlbmVyaWNfc2VydmljZXMYECABKAg6BWZh",
  86. "bHNlEiQKFWphdmFfZ2VuZXJpY19zZXJ2aWNlcxgRIAEoCDoFZmFsc2USIgoT",
  87. "cHlfZ2VuZXJpY19zZXJ2aWNlcxgSIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRl",
  88. "ZBgXIAEoCDoFZmFsc2USHwoQY2NfZW5hYmxlX2FyZW5hcxgfIAEoCDoFZmFs",
  89. "c2USGQoRb2JqY19jbGFzc19wcmVmaXgYJCABKAkSGAoQY3NoYXJwX25hbWVz",
  90. "cGFjZRglIAEoCRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5n",
  91. "b29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbiI6CgxPcHRpbWl6",
  92. "ZU1vZGUSCQoFU1BFRUQQARINCglDT0RFX1NJWkUQAhIQCgxMSVRFX1JVTlRJ",
  93. "TUUQAyoJCOgHEICAgIACSgQIJhAnIuYBCg5NZXNzYWdlT3B0aW9ucxImChdt",
  94. "ZXNzYWdlX3NldF93aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2USLgofbm9fc3Rh",
  95. "bmRhcmRfZGVzY3JpcHRvcl9hY2Nlc3NvchgCIAEoCDoFZmFsc2USGQoKZGVw",
  96. "cmVjYXRlZBgDIAEoCDoFZmFsc2USEQoJbWFwX2VudHJ5GAcgASgIEkMKFHVu",
  97. "aW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5V",
  98. "bmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIimAMKDEZpZWxkT3B0aW9u",
  99. "cxI6CgVjdHlwZRgBIAEoDjIjLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlv",
  100. "bnMuQ1R5cGU6BlNUUklORxIOCgZwYWNrZWQYAiABKAgSPwoGanN0eXBlGAYg",
  101. "ASgOMiQuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5KU1R5cGU6CUpT",
  102. "X05PUk1BTBITCgRsYXp5GAUgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVkGAMg",
  103. "ASgIOgVmYWxzZRITCgR3ZWFrGAogASgIOgVmYWxzZRJDChR1bmludGVycHJl",
  104. "dGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnBy",
  105. "ZXRlZE9wdGlvbiIvCgVDVHlwZRIKCgZTVFJJTkcQABIICgRDT1JEEAESEAoM",
  106. "U1RSSU5HX1BJRUNFEAIiNQoGSlNUeXBlEg0KCUpTX05PUk1BTBAAEg0KCUpT",
  107. "X1NUUklORxABEg0KCUpTX05VTUJFUhACKgkI6AcQgICAgAIijQEKC0VudW1P",
  108. "cHRpb25zEhMKC2FsbG93X2FsaWFzGAIgASgIEhkKCmRlcHJlY2F0ZWQYAyAB",
  109. "KAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdv",
  110. "b2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIi",
  111. "fQoQRW51bVZhbHVlT3B0aW9ucxIZCgpkZXByZWNhdGVkGAEgASgIOgVmYWxz",
  112. "ZRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJv",
  113. "dG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACInsKDlNlcnZp",
  114. "Y2VPcHRpb25zEhkKCmRlcHJlY2F0ZWQYISABKAg6BWZhbHNlEkMKFHVuaW50",
  115. "ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu",
  116. "dGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIiegoNTWV0aG9kT3B0aW9ucxIZ",
  117. "CgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29w",
  118. "dGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9w",
  119. "dGlvbioJCOgHEICAgIACIp4CChNVbmludGVycHJldGVkT3B0aW9uEjsKBG5h",
  120. "bWUYAiADKAsyLS5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlv",
  121. "bi5OYW1lUGFydBIYChBpZGVudGlmaWVyX3ZhbHVlGAMgASgJEhoKEnBvc2l0",
  122. "aXZlX2ludF92YWx1ZRgEIAEoBBIaChJuZWdhdGl2ZV9pbnRfdmFsdWUYBSAB",
  123. "KAMSFAoMZG91YmxlX3ZhbHVlGAYgASgBEhQKDHN0cmluZ192YWx1ZRgHIAEo",
  124. "DBIXCg9hZ2dyZWdhdGVfdmFsdWUYCCABKAkaMwoITmFtZVBhcnQSEQoJbmFt",
  125. "ZV9wYXJ0GAEgAigJEhQKDGlzX2V4dGVuc2lvbhgCIAIoCCLVAQoOU291cmNl",
  126. "Q29kZUluZm8SOgoIbG9jYXRpb24YASADKAsyKC5nb29nbGUucHJvdG9idWYu",
  127. "U291cmNlQ29kZUluZm8uTG9jYXRpb24ahgEKCExvY2F0aW9uEhAKBHBhdGgY",
  128. "ASADKAVCAhABEhAKBHNwYW4YAiADKAVCAhABEhgKEGxlYWRpbmdfY29tbWVu",
  129. "dHMYAyABKAkSGQoRdHJhaWxpbmdfY29tbWVudHMYBCABKAkSIQoZbGVhZGlu",
  130. "Z19kZXRhY2hlZF9jb21tZW50cxgGIAMoCSKnAQoRR2VuZXJhdGVkQ29kZUlu",
  131. "Zm8SQQoKYW5ub3RhdGlvbhgBIAMoCzItLmdvb2dsZS5wcm90b2J1Zi5HZW5l",
  132. "cmF0ZWRDb2RlSW5mby5Bbm5vdGF0aW9uGk8KCkFubm90YXRpb24SEAoEcGF0",
  133. "aBgBIAMoBUICEAESEwoLc291cmNlX2ZpbGUYAiABKAkSDQoFYmVnaW4YAyAB",
  134. "KAUSCwoDZW5kGAQgASgFQlgKE2NvbS5nb29nbGUucHJvdG9idWZCEERlc2Ny",
  135. "aXB0b3JQcm90b3NIAVoKZGVzY3JpcHRvcqICA0dQQqoCGkdvb2dsZS5Qcm90",
  136. "b2J1Zi5SZWZsZWN0aW9u"));
  137. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  138. new pbr::FileDescriptor[] { },
  139. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  140. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorSet), global::Google.Protobuf.Reflection.FileDescriptorSet.Parser, new[]{ "File" }, null, null, null),
  141. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorProto), global::Google.Protobuf.Reflection.FileDescriptorProto.Parser, new[]{ "Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", "Syntax" }, null, null, null),
  142. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto), global::Google.Protobuf.Reflection.DescriptorProto.Parser, new[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser, new[]{ "Start", "End" }, null, null, null),
  143. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange), global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser, new[]{ "Start", "End" }, null, null, null)}),
  144. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto), global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser, new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "JsonName", "Options" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null),
  145. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofDescriptorProto), global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser, new[]{ "Name" }, null, null, null),
  146. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumDescriptorProto), global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser, new[]{ "Name", "Value", "Options" }, null, null, null),
  147. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null),
  148. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null),
  149. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodDescriptorProto), global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser, new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming" }, null, null, null),
  150. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileOptions), global::Google.Protobuf.Reflection.FileOptions.Parser, new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null),
  151. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null),
  152. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FieldOptions), global::Google.Protobuf.Reflection.FieldOptions.Parser, new[]{ "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, null),
  153. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumOptions), global::Google.Protobuf.Reflection.EnumOptions.Parser, new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null),
  154. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueOptions), global::Google.Protobuf.Reflection.EnumValueOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  155. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceOptions), global::Google.Protobuf.Reflection.ServiceOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  156. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodOptions), global::Google.Protobuf.Reflection.MethodOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
  157. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption), global::Google.Protobuf.Reflection.UninterpretedOption.Parser, new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser, new[]{ "NamePart_", "IsExtension" }, null, null, null)}),
  158. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo), global::Google.Protobuf.Reflection.SourceCodeInfo.Parser, new[]{ "Location" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location), global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser, new[]{ "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments" }, null, null, null)}),
  159. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeInfo), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Parser, new[]{ "Annotation" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser, new[]{ "Path", "SourceFile", "Begin", "End" }, null, null, null)})
  160. }));
  161. }
  162. #endregion
  163. }
  164. #region Messages
  165. /// <summary>
  166. /// The protocol compiler can output a FileDescriptorSet containing the .proto
  167. /// files it parses.
  168. /// </summary>
  169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  170. internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorSet> {
  171. private static readonly pb::MessageParser<FileDescriptorSet> _parser = new pb::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet());
  172. public static pb::MessageParser<FileDescriptorSet> Parser { get { return _parser; } }
  173. public static pbr::MessageDescriptor Descriptor {
  174. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[0]; }
  175. }
  176. pbr::MessageDescriptor pb::IMessage.Descriptor {
  177. get { return Descriptor; }
  178. }
  179. public FileDescriptorSet() {
  180. OnConstruction();
  181. }
  182. partial void OnConstruction();
  183. public FileDescriptorSet(FileDescriptorSet other) : this() {
  184. file_ = other.file_.Clone();
  185. }
  186. public FileDescriptorSet Clone() {
  187. return new FileDescriptorSet(this);
  188. }
  189. /// <summary>Field number for the "file" field.</summary>
  190. public const int FileFieldNumber = 1;
  191. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec
  192. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser);
  193. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>();
  194. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File {
  195. get { return file_; }
  196. }
  197. public override bool Equals(object other) {
  198. return Equals(other as FileDescriptorSet);
  199. }
  200. public bool Equals(FileDescriptorSet other) {
  201. if (ReferenceEquals(other, null)) {
  202. return false;
  203. }
  204. if (ReferenceEquals(other, this)) {
  205. return true;
  206. }
  207. if(!file_.Equals(other.file_)) return false;
  208. return true;
  209. }
  210. public override int GetHashCode() {
  211. int hash = 1;
  212. hash ^= file_.GetHashCode();
  213. return hash;
  214. }
  215. public override string ToString() {
  216. return pb::JsonFormatter.ToDiagnosticString(this);
  217. }
  218. public void WriteTo(pb::CodedOutputStream output) {
  219. file_.WriteTo(output, _repeated_file_codec);
  220. }
  221. public int CalculateSize() {
  222. int size = 0;
  223. size += file_.CalculateSize(_repeated_file_codec);
  224. return size;
  225. }
  226. public void MergeFrom(FileDescriptorSet other) {
  227. if (other == null) {
  228. return;
  229. }
  230. file_.Add(other.file_);
  231. }
  232. public void MergeFrom(pb::CodedInputStream input) {
  233. uint tag;
  234. while ((tag = input.ReadTag()) != 0) {
  235. switch(tag) {
  236. default:
  237. input.SkipLastField();
  238. break;
  239. case 10: {
  240. file_.AddEntriesFrom(input, _repeated_file_codec);
  241. break;
  242. }
  243. }
  244. }
  245. }
  246. }
  247. /// <summary>
  248. /// Describes a complete .proto file.
  249. /// </summary>
  250. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  251. internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto> {
  252. private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto());
  253. public static pb::MessageParser<FileDescriptorProto> Parser { get { return _parser; } }
  254. public static pbr::MessageDescriptor Descriptor {
  255. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[1]; }
  256. }
  257. pbr::MessageDescriptor pb::IMessage.Descriptor {
  258. get { return Descriptor; }
  259. }
  260. public FileDescriptorProto() {
  261. OnConstruction();
  262. }
  263. partial void OnConstruction();
  264. public FileDescriptorProto(FileDescriptorProto other) : this() {
  265. name_ = other.name_;
  266. package_ = other.package_;
  267. dependency_ = other.dependency_.Clone();
  268. publicDependency_ = other.publicDependency_.Clone();
  269. weakDependency_ = other.weakDependency_.Clone();
  270. messageType_ = other.messageType_.Clone();
  271. enumType_ = other.enumType_.Clone();
  272. service_ = other.service_.Clone();
  273. extension_ = other.extension_.Clone();
  274. Options = other.options_ != null ? other.Options.Clone() : null;
  275. SourceCodeInfo = other.sourceCodeInfo_ != null ? other.SourceCodeInfo.Clone() : null;
  276. syntax_ = other.syntax_;
  277. }
  278. public FileDescriptorProto Clone() {
  279. return new FileDescriptorProto(this);
  280. }
  281. /// <summary>Field number for the "name" field.</summary>
  282. public const int NameFieldNumber = 1;
  283. private string name_ = "";
  284. /// <summary>
  285. /// file name, relative to root of source tree
  286. /// </summary>
  287. public string Name {
  288. get { return name_; }
  289. set {
  290. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  291. }
  292. }
  293. /// <summary>Field number for the "package" field.</summary>
  294. public const int PackageFieldNumber = 2;
  295. private string package_ = "";
  296. /// <summary>
  297. /// e.g. "foo", "foo.bar", etc.
  298. /// </summary>
  299. public string Package {
  300. get { return package_; }
  301. set {
  302. package_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  303. }
  304. }
  305. /// <summary>Field number for the "dependency" field.</summary>
  306. public const int DependencyFieldNumber = 3;
  307. private static readonly pb::FieldCodec<string> _repeated_dependency_codec
  308. = pb::FieldCodec.ForString(26);
  309. private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>();
  310. /// <summary>
  311. /// Names of files imported by this file.
  312. /// </summary>
  313. public pbc::RepeatedField<string> Dependency {
  314. get { return dependency_; }
  315. }
  316. /// <summary>Field number for the "public_dependency" field.</summary>
  317. public const int PublicDependencyFieldNumber = 10;
  318. private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec
  319. = pb::FieldCodec.ForInt32(80);
  320. private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>();
  321. /// <summary>
  322. /// Indexes of the public imported files in the dependency list above.
  323. /// </summary>
  324. public pbc::RepeatedField<int> PublicDependency {
  325. get { return publicDependency_; }
  326. }
  327. /// <summary>Field number for the "weak_dependency" field.</summary>
  328. public const int WeakDependencyFieldNumber = 11;
  329. private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec
  330. = pb::FieldCodec.ForInt32(88);
  331. private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>();
  332. /// <summary>
  333. /// Indexes of the weak imported files in the dependency list.
  334. /// For Google-internal migration only. Do not use.
  335. /// </summary>
  336. public pbc::RepeatedField<int> WeakDependency {
  337. get { return weakDependency_; }
  338. }
  339. /// <summary>Field number for the "message_type" field.</summary>
  340. public const int MessageTypeFieldNumber = 4;
  341. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec
  342. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
  343. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
  344. /// <summary>
  345. /// All top-level definitions in this file.
  346. /// </summary>
  347. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
  348. get { return messageType_; }
  349. }
  350. /// <summary>Field number for the "enum_type" field.</summary>
  351. public const int EnumTypeFieldNumber = 5;
  352. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
  353. = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
  354. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
  355. public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
  356. get { return enumType_; }
  357. }
  358. /// <summary>Field number for the "service" field.</summary>
  359. public const int ServiceFieldNumber = 6;
  360. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec
  361. = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser);
  362. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>();
  363. public pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service {
  364. get { return service_; }
  365. }
  366. /// <summary>Field number for the "extension" field.</summary>
  367. public const int ExtensionFieldNumber = 7;
  368. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
  369. = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  370. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  371. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
  372. get { return extension_; }
  373. }
  374. /// <summary>Field number for the "options" field.</summary>
  375. public const int OptionsFieldNumber = 8;
  376. private global::Google.Protobuf.Reflection.FileOptions options_;
  377. public global::Google.Protobuf.Reflection.FileOptions Options {
  378. get { return options_; }
  379. set {
  380. options_ = value;
  381. }
  382. }
  383. /// <summary>Field number for the "source_code_info" field.</summary>
  384. public const int SourceCodeInfoFieldNumber = 9;
  385. private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_;
  386. /// <summary>
  387. /// This field contains optional information about the original source code.
  388. /// You may safely remove this entire field without harming runtime
  389. /// functionality of the descriptors -- the information is needed only by
  390. /// development tools.
  391. /// </summary>
  392. public global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo {
  393. get { return sourceCodeInfo_; }
  394. set {
  395. sourceCodeInfo_ = value;
  396. }
  397. }
  398. /// <summary>Field number for the "syntax" field.</summary>
  399. public const int SyntaxFieldNumber = 12;
  400. private string syntax_ = "";
  401. /// <summary>
  402. /// The syntax of the proto file.
  403. /// The supported values are "proto2" and "proto3".
  404. /// </summary>
  405. public string Syntax {
  406. get { return syntax_; }
  407. set {
  408. syntax_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  409. }
  410. }
  411. public override bool Equals(object other) {
  412. return Equals(other as FileDescriptorProto);
  413. }
  414. public bool Equals(FileDescriptorProto other) {
  415. if (ReferenceEquals(other, null)) {
  416. return false;
  417. }
  418. if (ReferenceEquals(other, this)) {
  419. return true;
  420. }
  421. if (Name != other.Name) return false;
  422. if (Package != other.Package) return false;
  423. if(!dependency_.Equals(other.dependency_)) return false;
  424. if(!publicDependency_.Equals(other.publicDependency_)) return false;
  425. if(!weakDependency_.Equals(other.weakDependency_)) return false;
  426. if(!messageType_.Equals(other.messageType_)) return false;
  427. if(!enumType_.Equals(other.enumType_)) return false;
  428. if(!service_.Equals(other.service_)) return false;
  429. if(!extension_.Equals(other.extension_)) return false;
  430. if (!object.Equals(Options, other.Options)) return false;
  431. if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false;
  432. if (Syntax != other.Syntax) return false;
  433. return true;
  434. }
  435. public override int GetHashCode() {
  436. int hash = 1;
  437. if (Name.Length != 0) hash ^= Name.GetHashCode();
  438. if (Package.Length != 0) hash ^= Package.GetHashCode();
  439. hash ^= dependency_.GetHashCode();
  440. hash ^= publicDependency_.GetHashCode();
  441. hash ^= weakDependency_.GetHashCode();
  442. hash ^= messageType_.GetHashCode();
  443. hash ^= enumType_.GetHashCode();
  444. hash ^= service_.GetHashCode();
  445. hash ^= extension_.GetHashCode();
  446. if (options_ != null) hash ^= Options.GetHashCode();
  447. if (sourceCodeInfo_ != null) hash ^= SourceCodeInfo.GetHashCode();
  448. if (Syntax.Length != 0) hash ^= Syntax.GetHashCode();
  449. return hash;
  450. }
  451. public override string ToString() {
  452. return pb::JsonFormatter.ToDiagnosticString(this);
  453. }
  454. public void WriteTo(pb::CodedOutputStream output) {
  455. if (Name.Length != 0) {
  456. output.WriteRawTag(10);
  457. output.WriteString(Name);
  458. }
  459. if (Package.Length != 0) {
  460. output.WriteRawTag(18);
  461. output.WriteString(Package);
  462. }
  463. dependency_.WriteTo(output, _repeated_dependency_codec);
  464. messageType_.WriteTo(output, _repeated_messageType_codec);
  465. enumType_.WriteTo(output, _repeated_enumType_codec);
  466. service_.WriteTo(output, _repeated_service_codec);
  467. extension_.WriteTo(output, _repeated_extension_codec);
  468. if (options_ != null) {
  469. output.WriteRawTag(66);
  470. output.WriteMessage(Options);
  471. }
  472. if (sourceCodeInfo_ != null) {
  473. output.WriteRawTag(74);
  474. output.WriteMessage(SourceCodeInfo);
  475. }
  476. publicDependency_.WriteTo(output, _repeated_publicDependency_codec);
  477. weakDependency_.WriteTo(output, _repeated_weakDependency_codec);
  478. if (Syntax.Length != 0) {
  479. output.WriteRawTag(98);
  480. output.WriteString(Syntax);
  481. }
  482. }
  483. public int CalculateSize() {
  484. int size = 0;
  485. if (Name.Length != 0) {
  486. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  487. }
  488. if (Package.Length != 0) {
  489. size += 1 + pb::CodedOutputStream.ComputeStringSize(Package);
  490. }
  491. size += dependency_.CalculateSize(_repeated_dependency_codec);
  492. size += publicDependency_.CalculateSize(_repeated_publicDependency_codec);
  493. size += weakDependency_.CalculateSize(_repeated_weakDependency_codec);
  494. size += messageType_.CalculateSize(_repeated_messageType_codec);
  495. size += enumType_.CalculateSize(_repeated_enumType_codec);
  496. size += service_.CalculateSize(_repeated_service_codec);
  497. size += extension_.CalculateSize(_repeated_extension_codec);
  498. if (options_ != null) {
  499. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  500. }
  501. if (sourceCodeInfo_ != null) {
  502. size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
  503. }
  504. if (Syntax.Length != 0) {
  505. size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax);
  506. }
  507. return size;
  508. }
  509. public void MergeFrom(FileDescriptorProto other) {
  510. if (other == null) {
  511. return;
  512. }
  513. if (other.Name.Length != 0) {
  514. Name = other.Name;
  515. }
  516. if (other.Package.Length != 0) {
  517. Package = other.Package;
  518. }
  519. dependency_.Add(other.dependency_);
  520. publicDependency_.Add(other.publicDependency_);
  521. weakDependency_.Add(other.weakDependency_);
  522. messageType_.Add(other.messageType_);
  523. enumType_.Add(other.enumType_);
  524. service_.Add(other.service_);
  525. extension_.Add(other.extension_);
  526. if (other.options_ != null) {
  527. if (options_ == null) {
  528. options_ = new global::Google.Protobuf.Reflection.FileOptions();
  529. }
  530. Options.MergeFrom(other.Options);
  531. }
  532. if (other.sourceCodeInfo_ != null) {
  533. if (sourceCodeInfo_ == null) {
  534. sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
  535. }
  536. SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
  537. }
  538. if (other.Syntax.Length != 0) {
  539. Syntax = other.Syntax;
  540. }
  541. }
  542. public void MergeFrom(pb::CodedInputStream input) {
  543. uint tag;
  544. while ((tag = input.ReadTag()) != 0) {
  545. switch(tag) {
  546. default:
  547. input.SkipLastField();
  548. break;
  549. case 10: {
  550. Name = input.ReadString();
  551. break;
  552. }
  553. case 18: {
  554. Package = input.ReadString();
  555. break;
  556. }
  557. case 26: {
  558. dependency_.AddEntriesFrom(input, _repeated_dependency_codec);
  559. break;
  560. }
  561. case 34: {
  562. messageType_.AddEntriesFrom(input, _repeated_messageType_codec);
  563. break;
  564. }
  565. case 42: {
  566. enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
  567. break;
  568. }
  569. case 50: {
  570. service_.AddEntriesFrom(input, _repeated_service_codec);
  571. break;
  572. }
  573. case 58: {
  574. extension_.AddEntriesFrom(input, _repeated_extension_codec);
  575. break;
  576. }
  577. case 66: {
  578. if (options_ == null) {
  579. options_ = new global::Google.Protobuf.Reflection.FileOptions();
  580. }
  581. input.ReadMessage(options_);
  582. break;
  583. }
  584. case 74: {
  585. if (sourceCodeInfo_ == null) {
  586. sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
  587. }
  588. input.ReadMessage(sourceCodeInfo_);
  589. break;
  590. }
  591. case 82:
  592. case 80: {
  593. publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec);
  594. break;
  595. }
  596. case 90:
  597. case 88: {
  598. weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec);
  599. break;
  600. }
  601. case 98: {
  602. Syntax = input.ReadString();
  603. break;
  604. }
  605. }
  606. }
  607. }
  608. }
  609. /// <summary>
  610. /// Describes a message type.
  611. /// </summary>
  612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  613. internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> {
  614. private static readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>(() => new DescriptorProto());
  615. public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } }
  616. public static pbr::MessageDescriptor Descriptor {
  617. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[2]; }
  618. }
  619. pbr::MessageDescriptor pb::IMessage.Descriptor {
  620. get { return Descriptor; }
  621. }
  622. public DescriptorProto() {
  623. OnConstruction();
  624. }
  625. partial void OnConstruction();
  626. public DescriptorProto(DescriptorProto other) : this() {
  627. name_ = other.name_;
  628. field_ = other.field_.Clone();
  629. extension_ = other.extension_.Clone();
  630. nestedType_ = other.nestedType_.Clone();
  631. enumType_ = other.enumType_.Clone();
  632. extensionRange_ = other.extensionRange_.Clone();
  633. oneofDecl_ = other.oneofDecl_.Clone();
  634. Options = other.options_ != null ? other.Options.Clone() : null;
  635. reservedRange_ = other.reservedRange_.Clone();
  636. reservedName_ = other.reservedName_.Clone();
  637. }
  638. public DescriptorProto Clone() {
  639. return new DescriptorProto(this);
  640. }
  641. /// <summary>Field number for the "name" field.</summary>
  642. public const int NameFieldNumber = 1;
  643. private string name_ = "";
  644. public string Name {
  645. get { return name_; }
  646. set {
  647. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  648. }
  649. }
  650. /// <summary>Field number for the "field" field.</summary>
  651. public const int FieldFieldNumber = 2;
  652. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec
  653. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  654. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  655. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field {
  656. get { return field_; }
  657. }
  658. /// <summary>Field number for the "extension" field.</summary>
  659. public const int ExtensionFieldNumber = 6;
  660. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
  661. = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
  662. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
  663. public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
  664. get { return extension_; }
  665. }
  666. /// <summary>Field number for the "nested_type" field.</summary>
  667. public const int NestedTypeFieldNumber = 3;
  668. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec
  669. = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
  670. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
  671. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType {
  672. get { return nestedType_; }
  673. }
  674. /// <summary>Field number for the "enum_type" field.</summary>
  675. public const int EnumTypeFieldNumber = 4;
  676. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
  677. = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
  678. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
  679. public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
  680. get { return enumType_; }
  681. }
  682. /// <summary>Field number for the "extension_range" field.</summary>
  683. public const int ExtensionRangeFieldNumber = 5;
  684. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec
  685. = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser);
  686. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>();
  687. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange {
  688. get { return extensionRange_; }
  689. }
  690. /// <summary>Field number for the "oneof_decl" field.</summary>
  691. public const int OneofDeclFieldNumber = 8;
  692. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec
  693. = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser);
  694. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>();
  695. public pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl {
  696. get { return oneofDecl_; }
  697. }
  698. /// <summary>Field number for the "options" field.</summary>
  699. public const int OptionsFieldNumber = 7;
  700. private global::Google.Protobuf.Reflection.MessageOptions options_;
  701. public global::Google.Protobuf.Reflection.MessageOptions Options {
  702. get { return options_; }
  703. set {
  704. options_ = value;
  705. }
  706. }
  707. /// <summary>Field number for the "reserved_range" field.</summary>
  708. public const int ReservedRangeFieldNumber = 9;
  709. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec
  710. = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser);
  711. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>();
  712. public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange {
  713. get { return reservedRange_; }
  714. }
  715. /// <summary>Field number for the "reserved_name" field.</summary>
  716. public const int ReservedNameFieldNumber = 10;
  717. private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
  718. = pb::FieldCodec.ForString(82);
  719. private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
  720. /// <summary>
  721. /// Reserved field names, which may not be used by fields in the same message.
  722. /// A given name may only be reserved once.
  723. /// </summary>
  724. public pbc::RepeatedField<string> ReservedName {
  725. get { return reservedName_; }
  726. }
  727. public override bool Equals(object other) {
  728. return Equals(other as DescriptorProto);
  729. }
  730. public bool Equals(DescriptorProto other) {
  731. if (ReferenceEquals(other, null)) {
  732. return false;
  733. }
  734. if (ReferenceEquals(other, this)) {
  735. return true;
  736. }
  737. if (Name != other.Name) return false;
  738. if(!field_.Equals(other.field_)) return false;
  739. if(!extension_.Equals(other.extension_)) return false;
  740. if(!nestedType_.Equals(other.nestedType_)) return false;
  741. if(!enumType_.Equals(other.enumType_)) return false;
  742. if(!extensionRange_.Equals(other.extensionRange_)) return false;
  743. if(!oneofDecl_.Equals(other.oneofDecl_)) return false;
  744. if (!object.Equals(Options, other.Options)) return false;
  745. if(!reservedRange_.Equals(other.reservedRange_)) return false;
  746. if(!reservedName_.Equals(other.reservedName_)) return false;
  747. return true;
  748. }
  749. public override int GetHashCode() {
  750. int hash = 1;
  751. if (Name.Length != 0) hash ^= Name.GetHashCode();
  752. hash ^= field_.GetHashCode();
  753. hash ^= extension_.GetHashCode();
  754. hash ^= nestedType_.GetHashCode();
  755. hash ^= enumType_.GetHashCode();
  756. hash ^= extensionRange_.GetHashCode();
  757. hash ^= oneofDecl_.GetHashCode();
  758. if (options_ != null) hash ^= Options.GetHashCode();
  759. hash ^= reservedRange_.GetHashCode();
  760. hash ^= reservedName_.GetHashCode();
  761. return hash;
  762. }
  763. public override string ToString() {
  764. return pb::JsonFormatter.ToDiagnosticString(this);
  765. }
  766. public void WriteTo(pb::CodedOutputStream output) {
  767. if (Name.Length != 0) {
  768. output.WriteRawTag(10);
  769. output.WriteString(Name);
  770. }
  771. field_.WriteTo(output, _repeated_field_codec);
  772. nestedType_.WriteTo(output, _repeated_nestedType_codec);
  773. enumType_.WriteTo(output, _repeated_enumType_codec);
  774. extensionRange_.WriteTo(output, _repeated_extensionRange_codec);
  775. extension_.WriteTo(output, _repeated_extension_codec);
  776. if (options_ != null) {
  777. output.WriteRawTag(58);
  778. output.WriteMessage(Options);
  779. }
  780. oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec);
  781. reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
  782. reservedName_.WriteTo(output, _repeated_reservedName_codec);
  783. }
  784. public int CalculateSize() {
  785. int size = 0;
  786. if (Name.Length != 0) {
  787. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  788. }
  789. size += field_.CalculateSize(_repeated_field_codec);
  790. size += extension_.CalculateSize(_repeated_extension_codec);
  791. size += nestedType_.CalculateSize(_repeated_nestedType_codec);
  792. size += enumType_.CalculateSize(_repeated_enumType_codec);
  793. size += extensionRange_.CalculateSize(_repeated_extensionRange_codec);
  794. size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec);
  795. if (options_ != null) {
  796. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  797. }
  798. size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
  799. size += reservedName_.CalculateSize(_repeated_reservedName_codec);
  800. return size;
  801. }
  802. public void MergeFrom(DescriptorProto other) {
  803. if (other == null) {
  804. return;
  805. }
  806. if (other.Name.Length != 0) {
  807. Name = other.Name;
  808. }
  809. field_.Add(other.field_);
  810. extension_.Add(other.extension_);
  811. nestedType_.Add(other.nestedType_);
  812. enumType_.Add(other.enumType_);
  813. extensionRange_.Add(other.extensionRange_);
  814. oneofDecl_.Add(other.oneofDecl_);
  815. if (other.options_ != null) {
  816. if (options_ == null) {
  817. options_ = new global::Google.Protobuf.Reflection.MessageOptions();
  818. }
  819. Options.MergeFrom(other.Options);
  820. }
  821. reservedRange_.Add(other.reservedRange_);
  822. reservedName_.Add(other.reservedName_);
  823. }
  824. public void MergeFrom(pb::CodedInputStream input) {
  825. uint tag;
  826. while ((tag = input.ReadTag()) != 0) {
  827. switch(tag) {
  828. default:
  829. input.SkipLastField();
  830. break;
  831. case 10: {
  832. Name = input.ReadString();
  833. break;
  834. }
  835. case 18: {
  836. field_.AddEntriesFrom(input, _repeated_field_codec);
  837. break;
  838. }
  839. case 26: {
  840. nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec);
  841. break;
  842. }
  843. case 34: {
  844. enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
  845. break;
  846. }
  847. case 42: {
  848. extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec);
  849. break;
  850. }
  851. case 50: {
  852. extension_.AddEntriesFrom(input, _repeated_extension_codec);
  853. break;
  854. }
  855. case 58: {
  856. if (options_ == null) {
  857. options_ = new global::Google.Protobuf.Reflection.MessageOptions();
  858. }
  859. input.ReadMessage(options_);
  860. break;
  861. }
  862. case 66: {
  863. oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec);
  864. break;
  865. }
  866. case 74: {
  867. reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
  868. break;
  869. }
  870. case 82: {
  871. reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
  872. break;
  873. }
  874. }
  875. }
  876. }
  877. #region Nested types
  878. /// <summary>Container for nested types declared in the DescriptorProto message type.</summary>
  879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  880. public static partial class Types {
  881. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  882. internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange> {
  883. private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange());
  884. public static pb::MessageParser<ExtensionRange> Parser { get { return _parser; } }
  885. public static pbr::MessageDescriptor Descriptor {
  886. get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[0]; }
  887. }
  888. pbr::MessageDescriptor pb::IMessage.Descriptor {
  889. get { return Descriptor; }
  890. }
  891. public ExtensionRange() {
  892. OnConstruction();
  893. }
  894. partial void OnConstruction();
  895. public ExtensionRange(ExtensionRange other) : this() {
  896. start_ = other.start_;
  897. end_ = other.end_;
  898. }
  899. public ExtensionRange Clone() {
  900. return new ExtensionRange(this);
  901. }
  902. /// <summary>Field number for the "start" field.</summary>
  903. public const int StartFieldNumber = 1;
  904. private int start_;
  905. public int Start {
  906. get { return start_; }
  907. set {
  908. start_ = value;
  909. }
  910. }
  911. /// <summary>Field number for the "end" field.</summary>
  912. public const int EndFieldNumber = 2;
  913. private int end_;
  914. public int End {
  915. get { return end_; }
  916. set {
  917. end_ = value;
  918. }
  919. }
  920. public override bool Equals(object other) {
  921. return Equals(other as ExtensionRange);
  922. }
  923. public bool Equals(ExtensionRange other) {
  924. if (ReferenceEquals(other, null)) {
  925. return false;
  926. }
  927. if (ReferenceEquals(other, this)) {
  928. return true;
  929. }
  930. if (Start != other.Start) return false;
  931. if (End != other.End) return false;
  932. return true;
  933. }
  934. public override int GetHashCode() {
  935. int hash = 1;
  936. if (Start != 0) hash ^= Start.GetHashCode();
  937. if (End != 0) hash ^= End.GetHashCode();
  938. return hash;
  939. }
  940. public override string ToString() {
  941. return pb::JsonFormatter.ToDiagnosticString(this);
  942. }
  943. public void WriteTo(pb::CodedOutputStream output) {
  944. if (Start != 0) {
  945. output.WriteRawTag(8);
  946. output.WriteInt32(Start);
  947. }
  948. if (End != 0) {
  949. output.WriteRawTag(16);
  950. output.WriteInt32(End);
  951. }
  952. }
  953. public int CalculateSize() {
  954. int size = 0;
  955. if (Start != 0) {
  956. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
  957. }
  958. if (End != 0) {
  959. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  960. }
  961. return size;
  962. }
  963. public void MergeFrom(ExtensionRange other) {
  964. if (other == null) {
  965. return;
  966. }
  967. if (other.Start != 0) {
  968. Start = other.Start;
  969. }
  970. if (other.End != 0) {
  971. End = other.End;
  972. }
  973. }
  974. public void MergeFrom(pb::CodedInputStream input) {
  975. uint tag;
  976. while ((tag = input.ReadTag()) != 0) {
  977. switch(tag) {
  978. default:
  979. input.SkipLastField();
  980. break;
  981. case 8: {
  982. Start = input.ReadInt32();
  983. break;
  984. }
  985. case 16: {
  986. End = input.ReadInt32();
  987. break;
  988. }
  989. }
  990. }
  991. }
  992. }
  993. /// <summary>
  994. /// Range of reserved tag numbers. Reserved tag numbers may not be used by
  995. /// fields or extension ranges in the same message. Reserved ranges may
  996. /// not overlap.
  997. /// </summary>
  998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  999. internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> {
  1000. private static readonly pb::MessageParser<ReservedRange> _parser = new pb::MessageParser<ReservedRange>(() => new ReservedRange());
  1001. public static pb::MessageParser<ReservedRange> Parser { get { return _parser; } }
  1002. public static pbr::MessageDescriptor Descriptor {
  1003. get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[1]; }
  1004. }
  1005. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1006. get { return Descriptor; }
  1007. }
  1008. public ReservedRange() {
  1009. OnConstruction();
  1010. }
  1011. partial void OnConstruction();
  1012. public ReservedRange(ReservedRange other) : this() {
  1013. start_ = other.start_;
  1014. end_ = other.end_;
  1015. }
  1016. public ReservedRange Clone() {
  1017. return new ReservedRange(this);
  1018. }
  1019. /// <summary>Field number for the "start" field.</summary>
  1020. public const int StartFieldNumber = 1;
  1021. private int start_;
  1022. /// <summary>
  1023. /// Inclusive.
  1024. /// </summary>
  1025. public int Start {
  1026. get { return start_; }
  1027. set {
  1028. start_ = value;
  1029. }
  1030. }
  1031. /// <summary>Field number for the "end" field.</summary>
  1032. public const int EndFieldNumber = 2;
  1033. private int end_;
  1034. /// <summary>
  1035. /// Exclusive.
  1036. /// </summary>
  1037. public int End {
  1038. get { return end_; }
  1039. set {
  1040. end_ = value;
  1041. }
  1042. }
  1043. public override bool Equals(object other) {
  1044. return Equals(other as ReservedRange);
  1045. }
  1046. public bool Equals(ReservedRange other) {
  1047. if (ReferenceEquals(other, null)) {
  1048. return false;
  1049. }
  1050. if (ReferenceEquals(other, this)) {
  1051. return true;
  1052. }
  1053. if (Start != other.Start) return false;
  1054. if (End != other.End) return false;
  1055. return true;
  1056. }
  1057. public override int GetHashCode() {
  1058. int hash = 1;
  1059. if (Start != 0) hash ^= Start.GetHashCode();
  1060. if (End != 0) hash ^= End.GetHashCode();
  1061. return hash;
  1062. }
  1063. public override string ToString() {
  1064. return pb::JsonFormatter.ToDiagnosticString(this);
  1065. }
  1066. public void WriteTo(pb::CodedOutputStream output) {
  1067. if (Start != 0) {
  1068. output.WriteRawTag(8);
  1069. output.WriteInt32(Start);
  1070. }
  1071. if (End != 0) {
  1072. output.WriteRawTag(16);
  1073. output.WriteInt32(End);
  1074. }
  1075. }
  1076. public int CalculateSize() {
  1077. int size = 0;
  1078. if (Start != 0) {
  1079. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
  1080. }
  1081. if (End != 0) {
  1082. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  1083. }
  1084. return size;
  1085. }
  1086. public void MergeFrom(ReservedRange other) {
  1087. if (other == null) {
  1088. return;
  1089. }
  1090. if (other.Start != 0) {
  1091. Start = other.Start;
  1092. }
  1093. if (other.End != 0) {
  1094. End = other.End;
  1095. }
  1096. }
  1097. public void MergeFrom(pb::CodedInputStream input) {
  1098. uint tag;
  1099. while ((tag = input.ReadTag()) != 0) {
  1100. switch(tag) {
  1101. default:
  1102. input.SkipLastField();
  1103. break;
  1104. case 8: {
  1105. Start = input.ReadInt32();
  1106. break;
  1107. }
  1108. case 16: {
  1109. End = input.ReadInt32();
  1110. break;
  1111. }
  1112. }
  1113. }
  1114. }
  1115. }
  1116. }
  1117. #endregion
  1118. }
  1119. /// <summary>
  1120. /// Describes a field within a message.
  1121. /// </summary>
  1122. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1123. internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescriptorProto> {
  1124. private static readonly pb::MessageParser<FieldDescriptorProto> _parser = new pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto());
  1125. public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } }
  1126. public static pbr::MessageDescriptor Descriptor {
  1127. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[3]; }
  1128. }
  1129. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1130. get { return Descriptor; }
  1131. }
  1132. public FieldDescriptorProto() {
  1133. OnConstruction();
  1134. }
  1135. partial void OnConstruction();
  1136. public FieldDescriptorProto(FieldDescriptorProto other) : this() {
  1137. name_ = other.name_;
  1138. number_ = other.number_;
  1139. label_ = other.label_;
  1140. type_ = other.type_;
  1141. typeName_ = other.typeName_;
  1142. extendee_ = other.extendee_;
  1143. defaultValue_ = other.defaultValue_;
  1144. oneofIndex_ = other.oneofIndex_;
  1145. jsonName_ = other.jsonName_;
  1146. Options = other.options_ != null ? other.Options.Clone() : null;
  1147. }
  1148. public FieldDescriptorProto Clone() {
  1149. return new FieldDescriptorProto(this);
  1150. }
  1151. /// <summary>Field number for the "name" field.</summary>
  1152. public const int NameFieldNumber = 1;
  1153. private string name_ = "";
  1154. public string Name {
  1155. get { return name_; }
  1156. set {
  1157. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1158. }
  1159. }
  1160. /// <summary>Field number for the "number" field.</summary>
  1161. public const int NumberFieldNumber = 3;
  1162. private int number_;
  1163. public int Number {
  1164. get { return number_; }
  1165. set {
  1166. number_ = value;
  1167. }
  1168. }
  1169. /// <summary>Field number for the "label" field.</summary>
  1170. public const int LabelFieldNumber = 4;
  1171. private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_ = 0;
  1172. public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label {
  1173. get { return label_; }
  1174. set {
  1175. label_ = value;
  1176. }
  1177. }
  1178. /// <summary>Field number for the "type" field.</summary>
  1179. public const int TypeFieldNumber = 5;
  1180. private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_ = 0;
  1181. /// <summary>
  1182. /// If type_name is set, this need not be set. If both this and type_name
  1183. /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
  1184. /// </summary>
  1185. public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type {
  1186. get { return type_; }
  1187. set {
  1188. type_ = value;
  1189. }
  1190. }
  1191. /// <summary>Field number for the "type_name" field.</summary>
  1192. public const int TypeNameFieldNumber = 6;
  1193. private string typeName_ = "";
  1194. /// <summary>
  1195. /// For message and enum types, this is the name of the type. If the name
  1196. /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
  1197. /// rules are used to find the type (i.e. first the nested types within this
  1198. /// message are searched, then within the parent, on up to the root
  1199. /// namespace).
  1200. /// </summary>
  1201. public string TypeName {
  1202. get { return typeName_; }
  1203. set {
  1204. typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1205. }
  1206. }
  1207. /// <summary>Field number for the "extendee" field.</summary>
  1208. public const int ExtendeeFieldNumber = 2;
  1209. private string extendee_ = "";
  1210. /// <summary>
  1211. /// For extensions, this is the name of the type being extended. It is
  1212. /// resolved in the same manner as type_name.
  1213. /// </summary>
  1214. public string Extendee {
  1215. get { return extendee_; }
  1216. set {
  1217. extendee_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1218. }
  1219. }
  1220. /// <summary>Field number for the "default_value" field.</summary>
  1221. public const int DefaultValueFieldNumber = 7;
  1222. private string defaultValue_ = "";
  1223. /// <summary>
  1224. /// For numeric types, contains the original text representation of the value.
  1225. /// For booleans, "true" or "false".
  1226. /// For strings, contains the default text contents (not escaped in any way).
  1227. /// For bytes, contains the C escaped value. All bytes >= 128 are escaped.
  1228. /// TODO(kenton): Base-64 encode?
  1229. /// </summary>
  1230. public string DefaultValue {
  1231. get { return defaultValue_; }
  1232. set {
  1233. defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1234. }
  1235. }
  1236. /// <summary>Field number for the "oneof_index" field.</summary>
  1237. public const int OneofIndexFieldNumber = 9;
  1238. private int oneofIndex_;
  1239. /// <summary>
  1240. /// If set, gives the index of a oneof in the containing type's oneof_decl
  1241. /// list. This field is a member of that oneof.
  1242. /// </summary>
  1243. public int OneofIndex {
  1244. get { return oneofIndex_; }
  1245. set {
  1246. oneofIndex_ = value;
  1247. }
  1248. }
  1249. /// <summary>Field number for the "json_name" field.</summary>
  1250. public const int JsonNameFieldNumber = 10;
  1251. private string jsonName_ = "";
  1252. /// <summary>
  1253. /// JSON name of this field. The value is set by protocol compiler. If the
  1254. /// user has set a "json_name" option on this field, that option's value
  1255. /// will be used. Otherwise, it's deduced from the field's name by converting
  1256. /// it to camelCase.
  1257. /// </summary>
  1258. public string JsonName {
  1259. get { return jsonName_; }
  1260. set {
  1261. jsonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1262. }
  1263. }
  1264. /// <summary>Field number for the "options" field.</summary>
  1265. public const int OptionsFieldNumber = 8;
  1266. private global::Google.Protobuf.Reflection.FieldOptions options_;
  1267. public global::Google.Protobuf.Reflection.FieldOptions Options {
  1268. get { return options_; }
  1269. set {
  1270. options_ = value;
  1271. }
  1272. }
  1273. public override bool Equals(object other) {
  1274. return Equals(other as FieldDescriptorProto);
  1275. }
  1276. public bool Equals(FieldDescriptorProto other) {
  1277. if (ReferenceEquals(other, null)) {
  1278. return false;
  1279. }
  1280. if (ReferenceEquals(other, this)) {
  1281. return true;
  1282. }
  1283. if (Name != other.Name) return false;
  1284. if (Number != other.Number) return false;
  1285. if (Label != other.Label) return false;
  1286. if (Type != other.Type) return false;
  1287. if (TypeName != other.TypeName) return false;
  1288. if (Extendee != other.Extendee) return false;
  1289. if (DefaultValue != other.DefaultValue) return false;
  1290. if (OneofIndex != other.OneofIndex) return false;
  1291. if (JsonName != other.JsonName) return false;
  1292. if (!object.Equals(Options, other.Options)) return false;
  1293. return true;
  1294. }
  1295. public override int GetHashCode() {
  1296. int hash = 1;
  1297. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1298. if (Number != 0) hash ^= Number.GetHashCode();
  1299. if (Label != 0) hash ^= Label.GetHashCode();
  1300. if (Type != 0) hash ^= Type.GetHashCode();
  1301. if (TypeName.Length != 0) hash ^= TypeName.GetHashCode();
  1302. if (Extendee.Length != 0) hash ^= Extendee.GetHashCode();
  1303. if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode();
  1304. if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode();
  1305. if (JsonName.Length != 0) hash ^= JsonName.GetHashCode();
  1306. if (options_ != null) hash ^= Options.GetHashCode();
  1307. return hash;
  1308. }
  1309. public override string ToString() {
  1310. return pb::JsonFormatter.ToDiagnosticString(this);
  1311. }
  1312. public void WriteTo(pb::CodedOutputStream output) {
  1313. if (Name.Length != 0) {
  1314. output.WriteRawTag(10);
  1315. output.WriteString(Name);
  1316. }
  1317. if (Extendee.Length != 0) {
  1318. output.WriteRawTag(18);
  1319. output.WriteString(Extendee);
  1320. }
  1321. if (Number != 0) {
  1322. output.WriteRawTag(24);
  1323. output.WriteInt32(Number);
  1324. }
  1325. if (Label != 0) {
  1326. output.WriteRawTag(32);
  1327. output.WriteEnum((int) Label);
  1328. }
  1329. if (Type != 0) {
  1330. output.WriteRawTag(40);
  1331. output.WriteEnum((int) Type);
  1332. }
  1333. if (TypeName.Length != 0) {
  1334. output.WriteRawTag(50);
  1335. output.WriteString(TypeName);
  1336. }
  1337. if (DefaultValue.Length != 0) {
  1338. output.WriteRawTag(58);
  1339. output.WriteString(DefaultValue);
  1340. }
  1341. if (options_ != null) {
  1342. output.WriteRawTag(66);
  1343. output.WriteMessage(Options);
  1344. }
  1345. if (OneofIndex != 0) {
  1346. output.WriteRawTag(72);
  1347. output.WriteInt32(OneofIndex);
  1348. }
  1349. if (JsonName.Length != 0) {
  1350. output.WriteRawTag(82);
  1351. output.WriteString(JsonName);
  1352. }
  1353. }
  1354. public int CalculateSize() {
  1355. int size = 0;
  1356. if (Name.Length != 0) {
  1357. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1358. }
  1359. if (Number != 0) {
  1360. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
  1361. }
  1362. if (Label != 0) {
  1363. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label);
  1364. }
  1365. if (Type != 0) {
  1366. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
  1367. }
  1368. if (TypeName.Length != 0) {
  1369. size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName);
  1370. }
  1371. if (Extendee.Length != 0) {
  1372. size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee);
  1373. }
  1374. if (DefaultValue.Length != 0) {
  1375. size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue);
  1376. }
  1377. if (OneofIndex != 0) {
  1378. size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex);
  1379. }
  1380. if (JsonName.Length != 0) {
  1381. size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonName);
  1382. }
  1383. if (options_ != null) {
  1384. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1385. }
  1386. return size;
  1387. }
  1388. public void MergeFrom(FieldDescriptorProto other) {
  1389. if (other == null) {
  1390. return;
  1391. }
  1392. if (other.Name.Length != 0) {
  1393. Name = other.Name;
  1394. }
  1395. if (other.Number != 0) {
  1396. Number = other.Number;
  1397. }
  1398. if (other.Label != 0) {
  1399. Label = other.Label;
  1400. }
  1401. if (other.Type != 0) {
  1402. Type = other.Type;
  1403. }
  1404. if (other.TypeName.Length != 0) {
  1405. TypeName = other.TypeName;
  1406. }
  1407. if (other.Extendee.Length != 0) {
  1408. Extendee = other.Extendee;
  1409. }
  1410. if (other.DefaultValue.Length != 0) {
  1411. DefaultValue = other.DefaultValue;
  1412. }
  1413. if (other.OneofIndex != 0) {
  1414. OneofIndex = other.OneofIndex;
  1415. }
  1416. if (other.JsonName.Length != 0) {
  1417. JsonName = other.JsonName;
  1418. }
  1419. if (other.options_ != null) {
  1420. if (options_ == null) {
  1421. options_ = new global::Google.Protobuf.Reflection.FieldOptions();
  1422. }
  1423. Options.MergeFrom(other.Options);
  1424. }
  1425. }
  1426. public void MergeFrom(pb::CodedInputStream input) {
  1427. uint tag;
  1428. while ((tag = input.ReadTag()) != 0) {
  1429. switch(tag) {
  1430. default:
  1431. input.SkipLastField();
  1432. break;
  1433. case 10: {
  1434. Name = input.ReadString();
  1435. break;
  1436. }
  1437. case 18: {
  1438. Extendee = input.ReadString();
  1439. break;
  1440. }
  1441. case 24: {
  1442. Number = input.ReadInt32();
  1443. break;
  1444. }
  1445. case 32: {
  1446. label_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) input.ReadEnum();
  1447. break;
  1448. }
  1449. case 40: {
  1450. type_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type) input.ReadEnum();
  1451. break;
  1452. }
  1453. case 50: {
  1454. TypeName = input.ReadString();
  1455. break;
  1456. }
  1457. case 58: {
  1458. DefaultValue = input.ReadString();
  1459. break;
  1460. }
  1461. case 66: {
  1462. if (options_ == null) {
  1463. options_ = new global::Google.Protobuf.Reflection.FieldOptions();
  1464. }
  1465. input.ReadMessage(options_);
  1466. break;
  1467. }
  1468. case 72: {
  1469. OneofIndex = input.ReadInt32();
  1470. break;
  1471. }
  1472. case 82: {
  1473. JsonName = input.ReadString();
  1474. break;
  1475. }
  1476. }
  1477. }
  1478. }
  1479. #region Nested types
  1480. /// <summary>Container for nested types declared in the FieldDescriptorProto message type.</summary>
  1481. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1482. public static partial class Types {
  1483. internal enum Type {
  1484. /// <summary>
  1485. /// 0 is reserved for errors.
  1486. /// Order is weird for historical reasons.
  1487. /// </summary>
  1488. [pbr::OriginalName("TYPE_DOUBLE")] Double = 1,
  1489. [pbr::OriginalName("TYPE_FLOAT")] Float = 2,
  1490. /// <summary>
  1491. /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
  1492. /// negative values are likely.
  1493. /// </summary>
  1494. [pbr::OriginalName("TYPE_INT64")] Int64 = 3,
  1495. [pbr::OriginalName("TYPE_UINT64")] Uint64 = 4,
  1496. /// <summary>
  1497. /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
  1498. /// negative values are likely.
  1499. /// </summary>
  1500. [pbr::OriginalName("TYPE_INT32")] Int32 = 5,
  1501. [pbr::OriginalName("TYPE_FIXED64")] Fixed64 = 6,
  1502. [pbr::OriginalName("TYPE_FIXED32")] Fixed32 = 7,
  1503. [pbr::OriginalName("TYPE_BOOL")] Bool = 8,
  1504. [pbr::OriginalName("TYPE_STRING")] String = 9,
  1505. /// <summary>
  1506. /// Tag-delimited aggregate.
  1507. /// </summary>
  1508. [pbr::OriginalName("TYPE_GROUP")] Group = 10,
  1509. /// <summary>
  1510. /// Length-delimited aggregate.
  1511. /// </summary>
  1512. [pbr::OriginalName("TYPE_MESSAGE")] Message = 11,
  1513. /// <summary>
  1514. /// New in version 2.
  1515. /// </summary>
  1516. [pbr::OriginalName("TYPE_BYTES")] Bytes = 12,
  1517. [pbr::OriginalName("TYPE_UINT32")] Uint32 = 13,
  1518. [pbr::OriginalName("TYPE_ENUM")] Enum = 14,
  1519. [pbr::OriginalName("TYPE_SFIXED32")] Sfixed32 = 15,
  1520. [pbr::OriginalName("TYPE_SFIXED64")] Sfixed64 = 16,
  1521. /// <summary>
  1522. /// Uses ZigZag encoding.
  1523. /// </summary>
  1524. [pbr::OriginalName("TYPE_SINT32")] Sint32 = 17,
  1525. /// <summary>
  1526. /// Uses ZigZag encoding.
  1527. /// </summary>
  1528. [pbr::OriginalName("TYPE_SINT64")] Sint64 = 18,
  1529. }
  1530. internal enum Label {
  1531. /// <summary>
  1532. /// 0 is reserved for errors
  1533. /// </summary>
  1534. [pbr::OriginalName("LABEL_OPTIONAL")] Optional = 1,
  1535. [pbr::OriginalName("LABEL_REQUIRED")] Required = 2,
  1536. /// <summary>
  1537. /// TODO(sanjay): Should we add LABEL_MAP?
  1538. /// </summary>
  1539. [pbr::OriginalName("LABEL_REPEATED")] Repeated = 3,
  1540. }
  1541. }
  1542. #endregion
  1543. }
  1544. /// <summary>
  1545. /// Describes a oneof.
  1546. /// </summary>
  1547. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1548. internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescriptorProto> {
  1549. private static readonly pb::MessageParser<OneofDescriptorProto> _parser = new pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
  1550. public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } }
  1551. public static pbr::MessageDescriptor Descriptor {
  1552. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[4]; }
  1553. }
  1554. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1555. get { return Descriptor; }
  1556. }
  1557. public OneofDescriptorProto() {
  1558. OnConstruction();
  1559. }
  1560. partial void OnConstruction();
  1561. public OneofDescriptorProto(OneofDescriptorProto other) : this() {
  1562. name_ = other.name_;
  1563. }
  1564. public OneofDescriptorProto Clone() {
  1565. return new OneofDescriptorProto(this);
  1566. }
  1567. /// <summary>Field number for the "name" field.</summary>
  1568. public const int NameFieldNumber = 1;
  1569. private string name_ = "";
  1570. public string Name {
  1571. get { return name_; }
  1572. set {
  1573. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1574. }
  1575. }
  1576. public override bool Equals(object other) {
  1577. return Equals(other as OneofDescriptorProto);
  1578. }
  1579. public bool Equals(OneofDescriptorProto other) {
  1580. if (ReferenceEquals(other, null)) {
  1581. return false;
  1582. }
  1583. if (ReferenceEquals(other, this)) {
  1584. return true;
  1585. }
  1586. if (Name != other.Name) return false;
  1587. return true;
  1588. }
  1589. public override int GetHashCode() {
  1590. int hash = 1;
  1591. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1592. return hash;
  1593. }
  1594. public override string ToString() {
  1595. return pb::JsonFormatter.ToDiagnosticString(this);
  1596. }
  1597. public void WriteTo(pb::CodedOutputStream output) {
  1598. if (Name.Length != 0) {
  1599. output.WriteRawTag(10);
  1600. output.WriteString(Name);
  1601. }
  1602. }
  1603. public int CalculateSize() {
  1604. int size = 0;
  1605. if (Name.Length != 0) {
  1606. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1607. }
  1608. return size;
  1609. }
  1610. public void MergeFrom(OneofDescriptorProto other) {
  1611. if (other == null) {
  1612. return;
  1613. }
  1614. if (other.Name.Length != 0) {
  1615. Name = other.Name;
  1616. }
  1617. }
  1618. public void MergeFrom(pb::CodedInputStream input) {
  1619. uint tag;
  1620. while ((tag = input.ReadTag()) != 0) {
  1621. switch(tag) {
  1622. default:
  1623. input.SkipLastField();
  1624. break;
  1625. case 10: {
  1626. Name = input.ReadString();
  1627. break;
  1628. }
  1629. }
  1630. }
  1631. }
  1632. }
  1633. /// <summary>
  1634. /// Describes an enum type.
  1635. /// </summary>
  1636. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1637. internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescriptorProto> {
  1638. private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto());
  1639. public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _parser; } }
  1640. public static pbr::MessageDescriptor Descriptor {
  1641. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[5]; }
  1642. }
  1643. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1644. get { return Descriptor; }
  1645. }
  1646. public EnumDescriptorProto() {
  1647. OnConstruction();
  1648. }
  1649. partial void OnConstruction();
  1650. public EnumDescriptorProto(EnumDescriptorProto other) : this() {
  1651. name_ = other.name_;
  1652. value_ = other.value_.Clone();
  1653. Options = other.options_ != null ? other.Options.Clone() : null;
  1654. }
  1655. public EnumDescriptorProto Clone() {
  1656. return new EnumDescriptorProto(this);
  1657. }
  1658. /// <summary>Field number for the "name" field.</summary>
  1659. public const int NameFieldNumber = 1;
  1660. private string name_ = "";
  1661. public string Name {
  1662. get { return name_; }
  1663. set {
  1664. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1665. }
  1666. }
  1667. /// <summary>Field number for the "value" field.</summary>
  1668. public const int ValueFieldNumber = 2;
  1669. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec
  1670. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser);
  1671. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>();
  1672. public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value {
  1673. get { return value_; }
  1674. }
  1675. /// <summary>Field number for the "options" field.</summary>
  1676. public const int OptionsFieldNumber = 3;
  1677. private global::Google.Protobuf.Reflection.EnumOptions options_;
  1678. public global::Google.Protobuf.Reflection.EnumOptions Options {
  1679. get { return options_; }
  1680. set {
  1681. options_ = value;
  1682. }
  1683. }
  1684. public override bool Equals(object other) {
  1685. return Equals(other as EnumDescriptorProto);
  1686. }
  1687. public bool Equals(EnumDescriptorProto other) {
  1688. if (ReferenceEquals(other, null)) {
  1689. return false;
  1690. }
  1691. if (ReferenceEquals(other, this)) {
  1692. return true;
  1693. }
  1694. if (Name != other.Name) return false;
  1695. if(!value_.Equals(other.value_)) return false;
  1696. if (!object.Equals(Options, other.Options)) return false;
  1697. return true;
  1698. }
  1699. public override int GetHashCode() {
  1700. int hash = 1;
  1701. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1702. hash ^= value_.GetHashCode();
  1703. if (options_ != null) hash ^= Options.GetHashCode();
  1704. return hash;
  1705. }
  1706. public override string ToString() {
  1707. return pb::JsonFormatter.ToDiagnosticString(this);
  1708. }
  1709. public void WriteTo(pb::CodedOutputStream output) {
  1710. if (Name.Length != 0) {
  1711. output.WriteRawTag(10);
  1712. output.WriteString(Name);
  1713. }
  1714. value_.WriteTo(output, _repeated_value_codec);
  1715. if (options_ != null) {
  1716. output.WriteRawTag(26);
  1717. output.WriteMessage(Options);
  1718. }
  1719. }
  1720. public int CalculateSize() {
  1721. int size = 0;
  1722. if (Name.Length != 0) {
  1723. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1724. }
  1725. size += value_.CalculateSize(_repeated_value_codec);
  1726. if (options_ != null) {
  1727. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1728. }
  1729. return size;
  1730. }
  1731. public void MergeFrom(EnumDescriptorProto other) {
  1732. if (other == null) {
  1733. return;
  1734. }
  1735. if (other.Name.Length != 0) {
  1736. Name = other.Name;
  1737. }
  1738. value_.Add(other.value_);
  1739. if (other.options_ != null) {
  1740. if (options_ == null) {
  1741. options_ = new global::Google.Protobuf.Reflection.EnumOptions();
  1742. }
  1743. Options.MergeFrom(other.Options);
  1744. }
  1745. }
  1746. public void MergeFrom(pb::CodedInputStream input) {
  1747. uint tag;
  1748. while ((tag = input.ReadTag()) != 0) {
  1749. switch(tag) {
  1750. default:
  1751. input.SkipLastField();
  1752. break;
  1753. case 10: {
  1754. Name = input.ReadString();
  1755. break;
  1756. }
  1757. case 18: {
  1758. value_.AddEntriesFrom(input, _repeated_value_codec);
  1759. break;
  1760. }
  1761. case 26: {
  1762. if (options_ == null) {
  1763. options_ = new global::Google.Protobuf.Reflection.EnumOptions();
  1764. }
  1765. input.ReadMessage(options_);
  1766. break;
  1767. }
  1768. }
  1769. }
  1770. }
  1771. }
  1772. /// <summary>
  1773. /// Describes a value within an enum.
  1774. /// </summary>
  1775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1776. internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValueDescriptorProto> {
  1777. private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorProto());
  1778. public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { return _parser; } }
  1779. public static pbr::MessageDescriptor Descriptor {
  1780. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[6]; }
  1781. }
  1782. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1783. get { return Descriptor; }
  1784. }
  1785. public EnumValueDescriptorProto() {
  1786. OnConstruction();
  1787. }
  1788. partial void OnConstruction();
  1789. public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() {
  1790. name_ = other.name_;
  1791. number_ = other.number_;
  1792. Options = other.options_ != null ? other.Options.Clone() : null;
  1793. }
  1794. public EnumValueDescriptorProto Clone() {
  1795. return new EnumValueDescriptorProto(this);
  1796. }
  1797. /// <summary>Field number for the "name" field.</summary>
  1798. public const int NameFieldNumber = 1;
  1799. private string name_ = "";
  1800. public string Name {
  1801. get { return name_; }
  1802. set {
  1803. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1804. }
  1805. }
  1806. /// <summary>Field number for the "number" field.</summary>
  1807. public const int NumberFieldNumber = 2;
  1808. private int number_;
  1809. public int Number {
  1810. get { return number_; }
  1811. set {
  1812. number_ = value;
  1813. }
  1814. }
  1815. /// <summary>Field number for the "options" field.</summary>
  1816. public const int OptionsFieldNumber = 3;
  1817. private global::Google.Protobuf.Reflection.EnumValueOptions options_;
  1818. public global::Google.Protobuf.Reflection.EnumValueOptions Options {
  1819. get { return options_; }
  1820. set {
  1821. options_ = value;
  1822. }
  1823. }
  1824. public override bool Equals(object other) {
  1825. return Equals(other as EnumValueDescriptorProto);
  1826. }
  1827. public bool Equals(EnumValueDescriptorProto other) {
  1828. if (ReferenceEquals(other, null)) {
  1829. return false;
  1830. }
  1831. if (ReferenceEquals(other, this)) {
  1832. return true;
  1833. }
  1834. if (Name != other.Name) return false;
  1835. if (Number != other.Number) return false;
  1836. if (!object.Equals(Options, other.Options)) return false;
  1837. return true;
  1838. }
  1839. public override int GetHashCode() {
  1840. int hash = 1;
  1841. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1842. if (Number != 0) hash ^= Number.GetHashCode();
  1843. if (options_ != null) hash ^= Options.GetHashCode();
  1844. return hash;
  1845. }
  1846. public override string ToString() {
  1847. return pb::JsonFormatter.ToDiagnosticString(this);
  1848. }
  1849. public void WriteTo(pb::CodedOutputStream output) {
  1850. if (Name.Length != 0) {
  1851. output.WriteRawTag(10);
  1852. output.WriteString(Name);
  1853. }
  1854. if (Number != 0) {
  1855. output.WriteRawTag(16);
  1856. output.WriteInt32(Number);
  1857. }
  1858. if (options_ != null) {
  1859. output.WriteRawTag(26);
  1860. output.WriteMessage(Options);
  1861. }
  1862. }
  1863. public int CalculateSize() {
  1864. int size = 0;
  1865. if (Name.Length != 0) {
  1866. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  1867. }
  1868. if (Number != 0) {
  1869. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
  1870. }
  1871. if (options_ != null) {
  1872. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  1873. }
  1874. return size;
  1875. }
  1876. public void MergeFrom(EnumValueDescriptorProto other) {
  1877. if (other == null) {
  1878. return;
  1879. }
  1880. if (other.Name.Length != 0) {
  1881. Name = other.Name;
  1882. }
  1883. if (other.Number != 0) {
  1884. Number = other.Number;
  1885. }
  1886. if (other.options_ != null) {
  1887. if (options_ == null) {
  1888. options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
  1889. }
  1890. Options.MergeFrom(other.Options);
  1891. }
  1892. }
  1893. public void MergeFrom(pb::CodedInputStream input) {
  1894. uint tag;
  1895. while ((tag = input.ReadTag()) != 0) {
  1896. switch(tag) {
  1897. default:
  1898. input.SkipLastField();
  1899. break;
  1900. case 10: {
  1901. Name = input.ReadString();
  1902. break;
  1903. }
  1904. case 16: {
  1905. Number = input.ReadInt32();
  1906. break;
  1907. }
  1908. case 26: {
  1909. if (options_ == null) {
  1910. options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
  1911. }
  1912. input.ReadMessage(options_);
  1913. break;
  1914. }
  1915. }
  1916. }
  1917. }
  1918. }
  1919. /// <summary>
  1920. /// Describes a service.
  1921. /// </summary>
  1922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1923. internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDescriptorProto> {
  1924. private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto());
  1925. public static pb::MessageParser<ServiceDescriptorProto> Parser { get { return _parser; } }
  1926. public static pbr::MessageDescriptor Descriptor {
  1927. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[7]; }
  1928. }
  1929. pbr::MessageDescriptor pb::IMessage.Descriptor {
  1930. get { return Descriptor; }
  1931. }
  1932. public ServiceDescriptorProto() {
  1933. OnConstruction();
  1934. }
  1935. partial void OnConstruction();
  1936. public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
  1937. name_ = other.name_;
  1938. method_ = other.method_.Clone();
  1939. Options = other.options_ != null ? other.Options.Clone() : null;
  1940. }
  1941. public ServiceDescriptorProto Clone() {
  1942. return new ServiceDescriptorProto(this);
  1943. }
  1944. /// <summary>Field number for the "name" field.</summary>
  1945. public const int NameFieldNumber = 1;
  1946. private string name_ = "";
  1947. public string Name {
  1948. get { return name_; }
  1949. set {
  1950. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  1951. }
  1952. }
  1953. /// <summary>Field number for the "method" field.</summary>
  1954. public const int MethodFieldNumber = 2;
  1955. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec
  1956. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser);
  1957. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>();
  1958. public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method {
  1959. get { return method_; }
  1960. }
  1961. /// <summary>Field number for the "options" field.</summary>
  1962. public const int OptionsFieldNumber = 3;
  1963. private global::Google.Protobuf.Reflection.ServiceOptions options_;
  1964. public global::Google.Protobuf.Reflection.ServiceOptions Options {
  1965. get { return options_; }
  1966. set {
  1967. options_ = value;
  1968. }
  1969. }
  1970. public override bool Equals(object other) {
  1971. return Equals(other as ServiceDescriptorProto);
  1972. }
  1973. public bool Equals(ServiceDescriptorProto other) {
  1974. if (ReferenceEquals(other, null)) {
  1975. return false;
  1976. }
  1977. if (ReferenceEquals(other, this)) {
  1978. return true;
  1979. }
  1980. if (Name != other.Name) return false;
  1981. if(!method_.Equals(other.method_)) return false;
  1982. if (!object.Equals(Options, other.Options)) return false;
  1983. return true;
  1984. }
  1985. public override int GetHashCode() {
  1986. int hash = 1;
  1987. if (Name.Length != 0) hash ^= Name.GetHashCode();
  1988. hash ^= method_.GetHashCode();
  1989. if (options_ != null) hash ^= Options.GetHashCode();
  1990. return hash;
  1991. }
  1992. public override string ToString() {
  1993. return pb::JsonFormatter.ToDiagnosticString(this);
  1994. }
  1995. public void WriteTo(pb::CodedOutputStream output) {
  1996. if (Name.Length != 0) {
  1997. output.WriteRawTag(10);
  1998. output.WriteString(Name);
  1999. }
  2000. method_.WriteTo(output, _repeated_method_codec);
  2001. if (options_ != null) {
  2002. output.WriteRawTag(26);
  2003. output.WriteMessage(Options);
  2004. }
  2005. }
  2006. public int CalculateSize() {
  2007. int size = 0;
  2008. if (Name.Length != 0) {
  2009. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2010. }
  2011. size += method_.CalculateSize(_repeated_method_codec);
  2012. if (options_ != null) {
  2013. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  2014. }
  2015. return size;
  2016. }
  2017. public void MergeFrom(ServiceDescriptorProto other) {
  2018. if (other == null) {
  2019. return;
  2020. }
  2021. if (other.Name.Length != 0) {
  2022. Name = other.Name;
  2023. }
  2024. method_.Add(other.method_);
  2025. if (other.options_ != null) {
  2026. if (options_ == null) {
  2027. options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
  2028. }
  2029. Options.MergeFrom(other.Options);
  2030. }
  2031. }
  2032. public void MergeFrom(pb::CodedInputStream input) {
  2033. uint tag;
  2034. while ((tag = input.ReadTag()) != 0) {
  2035. switch(tag) {
  2036. default:
  2037. input.SkipLastField();
  2038. break;
  2039. case 10: {
  2040. Name = input.ReadString();
  2041. break;
  2042. }
  2043. case 18: {
  2044. method_.AddEntriesFrom(input, _repeated_method_codec);
  2045. break;
  2046. }
  2047. case 26: {
  2048. if (options_ == null) {
  2049. options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
  2050. }
  2051. input.ReadMessage(options_);
  2052. break;
  2053. }
  2054. }
  2055. }
  2056. }
  2057. }
  2058. /// <summary>
  2059. /// Describes a method of a service.
  2060. /// </summary>
  2061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2062. internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescriptorProto> {
  2063. private static readonly pb::MessageParser<MethodDescriptorProto> _parser = new pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto());
  2064. public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } }
  2065. public static pbr::MessageDescriptor Descriptor {
  2066. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[8]; }
  2067. }
  2068. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2069. get { return Descriptor; }
  2070. }
  2071. public MethodDescriptorProto() {
  2072. OnConstruction();
  2073. }
  2074. partial void OnConstruction();
  2075. public MethodDescriptorProto(MethodDescriptorProto other) : this() {
  2076. name_ = other.name_;
  2077. inputType_ = other.inputType_;
  2078. outputType_ = other.outputType_;
  2079. Options = other.options_ != null ? other.Options.Clone() : null;
  2080. clientStreaming_ = other.clientStreaming_;
  2081. serverStreaming_ = other.serverStreaming_;
  2082. }
  2083. public MethodDescriptorProto Clone() {
  2084. return new MethodDescriptorProto(this);
  2085. }
  2086. /// <summary>Field number for the "name" field.</summary>
  2087. public const int NameFieldNumber = 1;
  2088. private string name_ = "";
  2089. public string Name {
  2090. get { return name_; }
  2091. set {
  2092. name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2093. }
  2094. }
  2095. /// <summary>Field number for the "input_type" field.</summary>
  2096. public const int InputTypeFieldNumber = 2;
  2097. private string inputType_ = "";
  2098. /// <summary>
  2099. /// Input and output type names. These are resolved in the same way as
  2100. /// FieldDescriptorProto.type_name, but must refer to a message type.
  2101. /// </summary>
  2102. public string InputType {
  2103. get { return inputType_; }
  2104. set {
  2105. inputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2106. }
  2107. }
  2108. /// <summary>Field number for the "output_type" field.</summary>
  2109. public const int OutputTypeFieldNumber = 3;
  2110. private string outputType_ = "";
  2111. public string OutputType {
  2112. get { return outputType_; }
  2113. set {
  2114. outputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2115. }
  2116. }
  2117. /// <summary>Field number for the "options" field.</summary>
  2118. public const int OptionsFieldNumber = 4;
  2119. private global::Google.Protobuf.Reflection.MethodOptions options_;
  2120. public global::Google.Protobuf.Reflection.MethodOptions Options {
  2121. get { return options_; }
  2122. set {
  2123. options_ = value;
  2124. }
  2125. }
  2126. /// <summary>Field number for the "client_streaming" field.</summary>
  2127. public const int ClientStreamingFieldNumber = 5;
  2128. private bool clientStreaming_;
  2129. /// <summary>
  2130. /// Identifies if client streams multiple client messages
  2131. /// </summary>
  2132. public bool ClientStreaming {
  2133. get { return clientStreaming_; }
  2134. set {
  2135. clientStreaming_ = value;
  2136. }
  2137. }
  2138. /// <summary>Field number for the "server_streaming" field.</summary>
  2139. public const int ServerStreamingFieldNumber = 6;
  2140. private bool serverStreaming_;
  2141. /// <summary>
  2142. /// Identifies if server streams multiple server messages
  2143. /// </summary>
  2144. public bool ServerStreaming {
  2145. get { return serverStreaming_; }
  2146. set {
  2147. serverStreaming_ = value;
  2148. }
  2149. }
  2150. public override bool Equals(object other) {
  2151. return Equals(other as MethodDescriptorProto);
  2152. }
  2153. public bool Equals(MethodDescriptorProto other) {
  2154. if (ReferenceEquals(other, null)) {
  2155. return false;
  2156. }
  2157. if (ReferenceEquals(other, this)) {
  2158. return true;
  2159. }
  2160. if (Name != other.Name) return false;
  2161. if (InputType != other.InputType) return false;
  2162. if (OutputType != other.OutputType) return false;
  2163. if (!object.Equals(Options, other.Options)) return false;
  2164. if (ClientStreaming != other.ClientStreaming) return false;
  2165. if (ServerStreaming != other.ServerStreaming) return false;
  2166. return true;
  2167. }
  2168. public override int GetHashCode() {
  2169. int hash = 1;
  2170. if (Name.Length != 0) hash ^= Name.GetHashCode();
  2171. if (InputType.Length != 0) hash ^= InputType.GetHashCode();
  2172. if (OutputType.Length != 0) hash ^= OutputType.GetHashCode();
  2173. if (options_ != null) hash ^= Options.GetHashCode();
  2174. if (ClientStreaming != false) hash ^= ClientStreaming.GetHashCode();
  2175. if (ServerStreaming != false) hash ^= ServerStreaming.GetHashCode();
  2176. return hash;
  2177. }
  2178. public override string ToString() {
  2179. return pb::JsonFormatter.ToDiagnosticString(this);
  2180. }
  2181. public void WriteTo(pb::CodedOutputStream output) {
  2182. if (Name.Length != 0) {
  2183. output.WriteRawTag(10);
  2184. output.WriteString(Name);
  2185. }
  2186. if (InputType.Length != 0) {
  2187. output.WriteRawTag(18);
  2188. output.WriteString(InputType);
  2189. }
  2190. if (OutputType.Length != 0) {
  2191. output.WriteRawTag(26);
  2192. output.WriteString(OutputType);
  2193. }
  2194. if (options_ != null) {
  2195. output.WriteRawTag(34);
  2196. output.WriteMessage(Options);
  2197. }
  2198. if (ClientStreaming != false) {
  2199. output.WriteRawTag(40);
  2200. output.WriteBool(ClientStreaming);
  2201. }
  2202. if (ServerStreaming != false) {
  2203. output.WriteRawTag(48);
  2204. output.WriteBool(ServerStreaming);
  2205. }
  2206. }
  2207. public int CalculateSize() {
  2208. int size = 0;
  2209. if (Name.Length != 0) {
  2210. size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
  2211. }
  2212. if (InputType.Length != 0) {
  2213. size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType);
  2214. }
  2215. if (OutputType.Length != 0) {
  2216. size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
  2217. }
  2218. if (options_ != null) {
  2219. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
  2220. }
  2221. if (ClientStreaming != false) {
  2222. size += 1 + 1;
  2223. }
  2224. if (ServerStreaming != false) {
  2225. size += 1 + 1;
  2226. }
  2227. return size;
  2228. }
  2229. public void MergeFrom(MethodDescriptorProto other) {
  2230. if (other == null) {
  2231. return;
  2232. }
  2233. if (other.Name.Length != 0) {
  2234. Name = other.Name;
  2235. }
  2236. if (other.InputType.Length != 0) {
  2237. InputType = other.InputType;
  2238. }
  2239. if (other.OutputType.Length != 0) {
  2240. OutputType = other.OutputType;
  2241. }
  2242. if (other.options_ != null) {
  2243. if (options_ == null) {
  2244. options_ = new global::Google.Protobuf.Reflection.MethodOptions();
  2245. }
  2246. Options.MergeFrom(other.Options);
  2247. }
  2248. if (other.ClientStreaming != false) {
  2249. ClientStreaming = other.ClientStreaming;
  2250. }
  2251. if (other.ServerStreaming != false) {
  2252. ServerStreaming = other.ServerStreaming;
  2253. }
  2254. }
  2255. public void MergeFrom(pb::CodedInputStream input) {
  2256. uint tag;
  2257. while ((tag = input.ReadTag()) != 0) {
  2258. switch(tag) {
  2259. default:
  2260. input.SkipLastField();
  2261. break;
  2262. case 10: {
  2263. Name = input.ReadString();
  2264. break;
  2265. }
  2266. case 18: {
  2267. InputType = input.ReadString();
  2268. break;
  2269. }
  2270. case 26: {
  2271. OutputType = input.ReadString();
  2272. break;
  2273. }
  2274. case 34: {
  2275. if (options_ == null) {
  2276. options_ = new global::Google.Protobuf.Reflection.MethodOptions();
  2277. }
  2278. input.ReadMessage(options_);
  2279. break;
  2280. }
  2281. case 40: {
  2282. ClientStreaming = input.ReadBool();
  2283. break;
  2284. }
  2285. case 48: {
  2286. ServerStreaming = input.ReadBool();
  2287. break;
  2288. }
  2289. }
  2290. }
  2291. }
  2292. }
  2293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2294. internal sealed partial class FileOptions : pb::IMessage<FileOptions> {
  2295. private static readonly pb::MessageParser<FileOptions> _parser = new pb::MessageParser<FileOptions>(() => new FileOptions());
  2296. public static pb::MessageParser<FileOptions> Parser { get { return _parser; } }
  2297. public static pbr::MessageDescriptor Descriptor {
  2298. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[9]; }
  2299. }
  2300. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2301. get { return Descriptor; }
  2302. }
  2303. public FileOptions() {
  2304. OnConstruction();
  2305. }
  2306. partial void OnConstruction();
  2307. public FileOptions(FileOptions other) : this() {
  2308. javaPackage_ = other.javaPackage_;
  2309. javaOuterClassname_ = other.javaOuterClassname_;
  2310. javaMultipleFiles_ = other.javaMultipleFiles_;
  2311. javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_;
  2312. javaStringCheckUtf8_ = other.javaStringCheckUtf8_;
  2313. optimizeFor_ = other.optimizeFor_;
  2314. goPackage_ = other.goPackage_;
  2315. ccGenericServices_ = other.ccGenericServices_;
  2316. javaGenericServices_ = other.javaGenericServices_;
  2317. pyGenericServices_ = other.pyGenericServices_;
  2318. deprecated_ = other.deprecated_;
  2319. ccEnableArenas_ = other.ccEnableArenas_;
  2320. objcClassPrefix_ = other.objcClassPrefix_;
  2321. csharpNamespace_ = other.csharpNamespace_;
  2322. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  2323. }
  2324. public FileOptions Clone() {
  2325. return new FileOptions(this);
  2326. }
  2327. /// <summary>Field number for the "java_package" field.</summary>
  2328. public const int JavaPackageFieldNumber = 1;
  2329. private string javaPackage_ = "";
  2330. /// <summary>
  2331. /// Sets the Java package where classes generated from this .proto will be
  2332. /// placed. By default, the proto package is used, but this is often
  2333. /// inappropriate because proto packages do not normally start with backwards
  2334. /// domain names.
  2335. /// </summary>
  2336. public string JavaPackage {
  2337. get { return javaPackage_; }
  2338. set {
  2339. javaPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2340. }
  2341. }
  2342. /// <summary>Field number for the "java_outer_classname" field.</summary>
  2343. public const int JavaOuterClassnameFieldNumber = 8;
  2344. private string javaOuterClassname_ = "";
  2345. /// <summary>
  2346. /// If set, all the classes from the .proto file are wrapped in a single
  2347. /// outer class with the given name. This applies to both Proto1
  2348. /// (equivalent to the old "--one_java_file" option) and Proto2 (where
  2349. /// a .proto always translates to a single class, but you may want to
  2350. /// explicitly choose the class name).
  2351. /// </summary>
  2352. public string JavaOuterClassname {
  2353. get { return javaOuterClassname_; }
  2354. set {
  2355. javaOuterClassname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2356. }
  2357. }
  2358. /// <summary>Field number for the "java_multiple_files" field.</summary>
  2359. public const int JavaMultipleFilesFieldNumber = 10;
  2360. private bool javaMultipleFiles_;
  2361. /// <summary>
  2362. /// If set true, then the Java code generator will generate a separate .java
  2363. /// file for each top-level message, enum, and service defined in the .proto
  2364. /// file. Thus, these types will *not* be nested inside the outer class
  2365. /// named by java_outer_classname. However, the outer class will still be
  2366. /// generated to contain the file's getDescriptor() method as well as any
  2367. /// top-level extensions defined in the file.
  2368. /// </summary>
  2369. public bool JavaMultipleFiles {
  2370. get { return javaMultipleFiles_; }
  2371. set {
  2372. javaMultipleFiles_ = value;
  2373. }
  2374. }
  2375. /// <summary>Field number for the "java_generate_equals_and_hash" field.</summary>
  2376. public const int JavaGenerateEqualsAndHashFieldNumber = 20;
  2377. private bool javaGenerateEqualsAndHash_;
  2378. /// <summary>
  2379. /// If set true, then the Java code generator will generate equals() and
  2380. /// hashCode() methods for all messages defined in the .proto file.
  2381. /// This increases generated code size, potentially substantially for large
  2382. /// protos, which may harm a memory-constrained application.
  2383. /// - In the full runtime this is a speed optimization, as the
  2384. /// AbstractMessage base class includes reflection-based implementations of
  2385. /// these methods.
  2386. /// - In the lite runtime, setting this option changes the semantics of
  2387. /// equals() and hashCode() to more closely match those of the full runtime;
  2388. /// the generated methods compute their results based on field values rather
  2389. /// than object identity. (Implementations should not assume that hashcodes
  2390. /// will be consistent across runtimes or versions of the protocol compiler.)
  2391. /// </summary>
  2392. public bool JavaGenerateEqualsAndHash {
  2393. get { return javaGenerateEqualsAndHash_; }
  2394. set {
  2395. javaGenerateEqualsAndHash_ = value;
  2396. }
  2397. }
  2398. /// <summary>Field number for the "java_string_check_utf8" field.</summary>
  2399. public const int JavaStringCheckUtf8FieldNumber = 27;
  2400. private bool javaStringCheckUtf8_;
  2401. /// <summary>
  2402. /// If set true, then the Java2 code generator will generate code that
  2403. /// throws an exception whenever an attempt is made to assign a non-UTF-8
  2404. /// byte sequence to a string field.
  2405. /// Message reflection will do the same.
  2406. /// However, an extension field still accepts non-UTF-8 byte sequences.
  2407. /// This option has no effect on when used with the lite runtime.
  2408. /// </summary>
  2409. public bool JavaStringCheckUtf8 {
  2410. get { return javaStringCheckUtf8_; }
  2411. set {
  2412. javaStringCheckUtf8_ = value;
  2413. }
  2414. }
  2415. /// <summary>Field number for the "optimize_for" field.</summary>
  2416. public const int OptimizeForFieldNumber = 9;
  2417. private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_ = 0;
  2418. public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor {
  2419. get { return optimizeFor_; }
  2420. set {
  2421. optimizeFor_ = value;
  2422. }
  2423. }
  2424. /// <summary>Field number for the "go_package" field.</summary>
  2425. public const int GoPackageFieldNumber = 11;
  2426. private string goPackage_ = "";
  2427. /// <summary>
  2428. /// Sets the Go package where structs generated from this .proto will be
  2429. /// placed. If omitted, the Go package will be derived from the following:
  2430. /// - The basename of the package import path, if provided.
  2431. /// - Otherwise, the package statement in the .proto file, if present.
  2432. /// - Otherwise, the basename of the .proto file, without extension.
  2433. /// </summary>
  2434. public string GoPackage {
  2435. get { return goPackage_; }
  2436. set {
  2437. goPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2438. }
  2439. }
  2440. /// <summary>Field number for the "cc_generic_services" field.</summary>
  2441. public const int CcGenericServicesFieldNumber = 16;
  2442. private bool ccGenericServices_;
  2443. /// <summary>
  2444. /// Should generic services be generated in each language? "Generic" services
  2445. /// are not specific to any particular RPC system. They are generated by the
  2446. /// main code generators in each language (without additional plugins).
  2447. /// Generic services were the only kind of service generation supported by
  2448. /// early versions of google.protobuf.
  2449. ///
  2450. /// Generic services are now considered deprecated in favor of using plugins
  2451. /// that generate code specific to your particular RPC system. Therefore,
  2452. /// these default to false. Old code which depends on generic services should
  2453. /// explicitly set them to true.
  2454. /// </summary>
  2455. public bool CcGenericServices {
  2456. get { return ccGenericServices_; }
  2457. set {
  2458. ccGenericServices_ = value;
  2459. }
  2460. }
  2461. /// <summary>Field number for the "java_generic_services" field.</summary>
  2462. public const int JavaGenericServicesFieldNumber = 17;
  2463. private bool javaGenericServices_;
  2464. public bool JavaGenericServices {
  2465. get { return javaGenericServices_; }
  2466. set {
  2467. javaGenericServices_ = value;
  2468. }
  2469. }
  2470. /// <summary>Field number for the "py_generic_services" field.</summary>
  2471. public const int PyGenericServicesFieldNumber = 18;
  2472. private bool pyGenericServices_;
  2473. public bool PyGenericServices {
  2474. get { return pyGenericServices_; }
  2475. set {
  2476. pyGenericServices_ = value;
  2477. }
  2478. }
  2479. /// <summary>Field number for the "deprecated" field.</summary>
  2480. public const int DeprecatedFieldNumber = 23;
  2481. private bool deprecated_;
  2482. /// <summary>
  2483. /// Is this file deprecated?
  2484. /// Depending on the target platform, this can emit Deprecated annotations
  2485. /// for everything in the file, or it will be completely ignored; in the very
  2486. /// least, this is a formalization for deprecating files.
  2487. /// </summary>
  2488. public bool Deprecated {
  2489. get { return deprecated_; }
  2490. set {
  2491. deprecated_ = value;
  2492. }
  2493. }
  2494. /// <summary>Field number for the "cc_enable_arenas" field.</summary>
  2495. public const int CcEnableArenasFieldNumber = 31;
  2496. private bool ccEnableArenas_;
  2497. /// <summary>
  2498. /// Enables the use of arenas for the proto messages in this file. This applies
  2499. /// only to generated classes for C++.
  2500. /// </summary>
  2501. public bool CcEnableArenas {
  2502. get { return ccEnableArenas_; }
  2503. set {
  2504. ccEnableArenas_ = value;
  2505. }
  2506. }
  2507. /// <summary>Field number for the "objc_class_prefix" field.</summary>
  2508. public const int ObjcClassPrefixFieldNumber = 36;
  2509. private string objcClassPrefix_ = "";
  2510. /// <summary>
  2511. /// Sets the objective c class prefix which is prepended to all objective c
  2512. /// generated classes from this .proto. There is no default.
  2513. /// </summary>
  2514. public string ObjcClassPrefix {
  2515. get { return objcClassPrefix_; }
  2516. set {
  2517. objcClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2518. }
  2519. }
  2520. /// <summary>Field number for the "csharp_namespace" field.</summary>
  2521. public const int CsharpNamespaceFieldNumber = 37;
  2522. private string csharpNamespace_ = "";
  2523. /// <summary>
  2524. /// Namespace for generated classes; defaults to the package.
  2525. /// </summary>
  2526. public string CsharpNamespace {
  2527. get { return csharpNamespace_; }
  2528. set {
  2529. csharpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  2530. }
  2531. }
  2532. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  2533. public const int UninterpretedOptionFieldNumber = 999;
  2534. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  2535. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  2536. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  2537. /// <summary>
  2538. /// The parser stores options it doesn't recognize here. See above.
  2539. /// </summary>
  2540. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  2541. get { return uninterpretedOption_; }
  2542. }
  2543. public override bool Equals(object other) {
  2544. return Equals(other as FileOptions);
  2545. }
  2546. public bool Equals(FileOptions other) {
  2547. if (ReferenceEquals(other, null)) {
  2548. return false;
  2549. }
  2550. if (ReferenceEquals(other, this)) {
  2551. return true;
  2552. }
  2553. if (JavaPackage != other.JavaPackage) return false;
  2554. if (JavaOuterClassname != other.JavaOuterClassname) return false;
  2555. if (JavaMultipleFiles != other.JavaMultipleFiles) return false;
  2556. if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return false;
  2557. if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false;
  2558. if (OptimizeFor != other.OptimizeFor) return false;
  2559. if (GoPackage != other.GoPackage) return false;
  2560. if (CcGenericServices != other.CcGenericServices) return false;
  2561. if (JavaGenericServices != other.JavaGenericServices) return false;
  2562. if (PyGenericServices != other.PyGenericServices) return false;
  2563. if (Deprecated != other.Deprecated) return false;
  2564. if (CcEnableArenas != other.CcEnableArenas) return false;
  2565. if (ObjcClassPrefix != other.ObjcClassPrefix) return false;
  2566. if (CsharpNamespace != other.CsharpNamespace) return false;
  2567. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  2568. return true;
  2569. }
  2570. public override int GetHashCode() {
  2571. int hash = 1;
  2572. if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode();
  2573. if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode();
  2574. if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode();
  2575. if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash.GetHashCode();
  2576. if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode();
  2577. if (OptimizeFor != 0) hash ^= OptimizeFor.GetHashCode();
  2578. if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode();
  2579. if (CcGenericServices != false) hash ^= CcGenericServices.GetHashCode();
  2580. if (JavaGenericServices != false) hash ^= JavaGenericServices.GetHashCode();
  2581. if (PyGenericServices != false) hash ^= PyGenericServices.GetHashCode();
  2582. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  2583. if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode();
  2584. if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode();
  2585. if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode();
  2586. hash ^= uninterpretedOption_.GetHashCode();
  2587. return hash;
  2588. }
  2589. public override string ToString() {
  2590. return pb::JsonFormatter.ToDiagnosticString(this);
  2591. }
  2592. public void WriteTo(pb::CodedOutputStream output) {
  2593. if (JavaPackage.Length != 0) {
  2594. output.WriteRawTag(10);
  2595. output.WriteString(JavaPackage);
  2596. }
  2597. if (JavaOuterClassname.Length != 0) {
  2598. output.WriteRawTag(66);
  2599. output.WriteString(JavaOuterClassname);
  2600. }
  2601. if (OptimizeFor != 0) {
  2602. output.WriteRawTag(72);
  2603. output.WriteEnum((int) OptimizeFor);
  2604. }
  2605. if (JavaMultipleFiles != false) {
  2606. output.WriteRawTag(80);
  2607. output.WriteBool(JavaMultipleFiles);
  2608. }
  2609. if (GoPackage.Length != 0) {
  2610. output.WriteRawTag(90);
  2611. output.WriteString(GoPackage);
  2612. }
  2613. if (CcGenericServices != false) {
  2614. output.WriteRawTag(128, 1);
  2615. output.WriteBool(CcGenericServices);
  2616. }
  2617. if (JavaGenericServices != false) {
  2618. output.WriteRawTag(136, 1);
  2619. output.WriteBool(JavaGenericServices);
  2620. }
  2621. if (PyGenericServices != false) {
  2622. output.WriteRawTag(144, 1);
  2623. output.WriteBool(PyGenericServices);
  2624. }
  2625. if (JavaGenerateEqualsAndHash != false) {
  2626. output.WriteRawTag(160, 1);
  2627. output.WriteBool(JavaGenerateEqualsAndHash);
  2628. }
  2629. if (Deprecated != false) {
  2630. output.WriteRawTag(184, 1);
  2631. output.WriteBool(Deprecated);
  2632. }
  2633. if (JavaStringCheckUtf8 != false) {
  2634. output.WriteRawTag(216, 1);
  2635. output.WriteBool(JavaStringCheckUtf8);
  2636. }
  2637. if (CcEnableArenas != false) {
  2638. output.WriteRawTag(248, 1);
  2639. output.WriteBool(CcEnableArenas);
  2640. }
  2641. if (ObjcClassPrefix.Length != 0) {
  2642. output.WriteRawTag(162, 2);
  2643. output.WriteString(ObjcClassPrefix);
  2644. }
  2645. if (CsharpNamespace.Length != 0) {
  2646. output.WriteRawTag(170, 2);
  2647. output.WriteString(CsharpNamespace);
  2648. }
  2649. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  2650. }
  2651. public int CalculateSize() {
  2652. int size = 0;
  2653. if (JavaPackage.Length != 0) {
  2654. size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage);
  2655. }
  2656. if (JavaOuterClassname.Length != 0) {
  2657. size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname);
  2658. }
  2659. if (JavaMultipleFiles != false) {
  2660. size += 1 + 1;
  2661. }
  2662. if (JavaGenerateEqualsAndHash != false) {
  2663. size += 2 + 1;
  2664. }
  2665. if (JavaStringCheckUtf8 != false) {
  2666. size += 2 + 1;
  2667. }
  2668. if (OptimizeFor != 0) {
  2669. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor);
  2670. }
  2671. if (GoPackage.Length != 0) {
  2672. size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage);
  2673. }
  2674. if (CcGenericServices != false) {
  2675. size += 2 + 1;
  2676. }
  2677. if (JavaGenericServices != false) {
  2678. size += 2 + 1;
  2679. }
  2680. if (PyGenericServices != false) {
  2681. size += 2 + 1;
  2682. }
  2683. if (Deprecated != false) {
  2684. size += 2 + 1;
  2685. }
  2686. if (CcEnableArenas != false) {
  2687. size += 2 + 1;
  2688. }
  2689. if (ObjcClassPrefix.Length != 0) {
  2690. size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix);
  2691. }
  2692. if (CsharpNamespace.Length != 0) {
  2693. size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace);
  2694. }
  2695. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  2696. return size;
  2697. }
  2698. public void MergeFrom(FileOptions other) {
  2699. if (other == null) {
  2700. return;
  2701. }
  2702. if (other.JavaPackage.Length != 0) {
  2703. JavaPackage = other.JavaPackage;
  2704. }
  2705. if (other.JavaOuterClassname.Length != 0) {
  2706. JavaOuterClassname = other.JavaOuterClassname;
  2707. }
  2708. if (other.JavaMultipleFiles != false) {
  2709. JavaMultipleFiles = other.JavaMultipleFiles;
  2710. }
  2711. if (other.JavaGenerateEqualsAndHash != false) {
  2712. JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash;
  2713. }
  2714. if (other.JavaStringCheckUtf8 != false) {
  2715. JavaStringCheckUtf8 = other.JavaStringCheckUtf8;
  2716. }
  2717. if (other.OptimizeFor != 0) {
  2718. OptimizeFor = other.OptimizeFor;
  2719. }
  2720. if (other.GoPackage.Length != 0) {
  2721. GoPackage = other.GoPackage;
  2722. }
  2723. if (other.CcGenericServices != false) {
  2724. CcGenericServices = other.CcGenericServices;
  2725. }
  2726. if (other.JavaGenericServices != false) {
  2727. JavaGenericServices = other.JavaGenericServices;
  2728. }
  2729. if (other.PyGenericServices != false) {
  2730. PyGenericServices = other.PyGenericServices;
  2731. }
  2732. if (other.Deprecated != false) {
  2733. Deprecated = other.Deprecated;
  2734. }
  2735. if (other.CcEnableArenas != false) {
  2736. CcEnableArenas = other.CcEnableArenas;
  2737. }
  2738. if (other.ObjcClassPrefix.Length != 0) {
  2739. ObjcClassPrefix = other.ObjcClassPrefix;
  2740. }
  2741. if (other.CsharpNamespace.Length != 0) {
  2742. CsharpNamespace = other.CsharpNamespace;
  2743. }
  2744. uninterpretedOption_.Add(other.uninterpretedOption_);
  2745. }
  2746. public void MergeFrom(pb::CodedInputStream input) {
  2747. uint tag;
  2748. while ((tag = input.ReadTag()) != 0) {
  2749. switch(tag) {
  2750. default:
  2751. input.SkipLastField();
  2752. break;
  2753. case 10: {
  2754. JavaPackage = input.ReadString();
  2755. break;
  2756. }
  2757. case 66: {
  2758. JavaOuterClassname = input.ReadString();
  2759. break;
  2760. }
  2761. case 72: {
  2762. optimizeFor_ = (global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) input.ReadEnum();
  2763. break;
  2764. }
  2765. case 80: {
  2766. JavaMultipleFiles = input.ReadBool();
  2767. break;
  2768. }
  2769. case 90: {
  2770. GoPackage = input.ReadString();
  2771. break;
  2772. }
  2773. case 128: {
  2774. CcGenericServices = input.ReadBool();
  2775. break;
  2776. }
  2777. case 136: {
  2778. JavaGenericServices = input.ReadBool();
  2779. break;
  2780. }
  2781. case 144: {
  2782. PyGenericServices = input.ReadBool();
  2783. break;
  2784. }
  2785. case 160: {
  2786. JavaGenerateEqualsAndHash = input.ReadBool();
  2787. break;
  2788. }
  2789. case 184: {
  2790. Deprecated = input.ReadBool();
  2791. break;
  2792. }
  2793. case 216: {
  2794. JavaStringCheckUtf8 = input.ReadBool();
  2795. break;
  2796. }
  2797. case 248: {
  2798. CcEnableArenas = input.ReadBool();
  2799. break;
  2800. }
  2801. case 290: {
  2802. ObjcClassPrefix = input.ReadString();
  2803. break;
  2804. }
  2805. case 298: {
  2806. CsharpNamespace = input.ReadString();
  2807. break;
  2808. }
  2809. case 7994: {
  2810. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  2811. break;
  2812. }
  2813. }
  2814. }
  2815. }
  2816. #region Nested types
  2817. /// <summary>Container for nested types declared in the FileOptions message type.</summary>
  2818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2819. public static partial class Types {
  2820. /// <summary>
  2821. /// Generated classes can be optimized for speed or code size.
  2822. /// </summary>
  2823. internal enum OptimizeMode {
  2824. /// <summary>
  2825. /// Generate complete code for parsing, serialization,
  2826. /// </summary>
  2827. [pbr::OriginalName("SPEED")] Speed = 1,
  2828. /// <summary>
  2829. /// etc.
  2830. /// </summary>
  2831. [pbr::OriginalName("CODE_SIZE")] CodeSize = 2,
  2832. /// <summary>
  2833. /// Generate code using MessageLite and the lite runtime.
  2834. /// </summary>
  2835. [pbr::OriginalName("LITE_RUNTIME")] LiteRuntime = 3,
  2836. }
  2837. }
  2838. #endregion
  2839. }
  2840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2841. internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> {
  2842. private static readonly pb::MessageParser<MessageOptions> _parser = new pb::MessageParser<MessageOptions>(() => new MessageOptions());
  2843. public static pb::MessageParser<MessageOptions> Parser { get { return _parser; } }
  2844. public static pbr::MessageDescriptor Descriptor {
  2845. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[10]; }
  2846. }
  2847. pbr::MessageDescriptor pb::IMessage.Descriptor {
  2848. get { return Descriptor; }
  2849. }
  2850. public MessageOptions() {
  2851. OnConstruction();
  2852. }
  2853. partial void OnConstruction();
  2854. public MessageOptions(MessageOptions other) : this() {
  2855. messageSetWireFormat_ = other.messageSetWireFormat_;
  2856. noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
  2857. deprecated_ = other.deprecated_;
  2858. mapEntry_ = other.mapEntry_;
  2859. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  2860. }
  2861. public MessageOptions Clone() {
  2862. return new MessageOptions(this);
  2863. }
  2864. /// <summary>Field number for the "message_set_wire_format" field.</summary>
  2865. public const int MessageSetWireFormatFieldNumber = 1;
  2866. private bool messageSetWireFormat_;
  2867. /// <summary>
  2868. /// Set true to use the old proto1 MessageSet wire format for extensions.
  2869. /// This is provided for backwards-compatibility with the MessageSet wire
  2870. /// format. You should not use this for any other reason: It's less
  2871. /// efficient, has fewer features, and is more complicated.
  2872. ///
  2873. /// The message must be defined exactly as follows:
  2874. /// message Foo {
  2875. /// option message_set_wire_format = true;
  2876. /// extensions 4 to max;
  2877. /// }
  2878. /// Note that the message cannot have any defined fields; MessageSets only
  2879. /// have extensions.
  2880. ///
  2881. /// All extensions of your type must be singular messages; e.g. they cannot
  2882. /// be int32s, enums, or repeated messages.
  2883. ///
  2884. /// Because this is an option, the above two restrictions are not enforced by
  2885. /// the protocol compiler.
  2886. /// </summary>
  2887. public bool MessageSetWireFormat {
  2888. get { return messageSetWireFormat_; }
  2889. set {
  2890. messageSetWireFormat_ = value;
  2891. }
  2892. }
  2893. /// <summary>Field number for the "no_standard_descriptor_accessor" field.</summary>
  2894. public const int NoStandardDescriptorAccessorFieldNumber = 2;
  2895. private bool noStandardDescriptorAccessor_;
  2896. /// <summary>
  2897. /// Disables the generation of the standard "descriptor()" accessor, which can
  2898. /// conflict with a field of the same name. This is meant to make migration
  2899. /// from proto1 easier; new code should avoid fields named "descriptor".
  2900. /// </summary>
  2901. public bool NoStandardDescriptorAccessor {
  2902. get { return noStandardDescriptorAccessor_; }
  2903. set {
  2904. noStandardDescriptorAccessor_ = value;
  2905. }
  2906. }
  2907. /// <summary>Field number for the "deprecated" field.</summary>
  2908. public const int DeprecatedFieldNumber = 3;
  2909. private bool deprecated_;
  2910. /// <summary>
  2911. /// Is this message deprecated?
  2912. /// Depending on the target platform, this can emit Deprecated annotations
  2913. /// for the message, or it will be completely ignored; in the very least,
  2914. /// this is a formalization for deprecating messages.
  2915. /// </summary>
  2916. public bool Deprecated {
  2917. get { return deprecated_; }
  2918. set {
  2919. deprecated_ = value;
  2920. }
  2921. }
  2922. /// <summary>Field number for the "map_entry" field.</summary>
  2923. public const int MapEntryFieldNumber = 7;
  2924. private bool mapEntry_;
  2925. /// <summary>
  2926. /// Whether the message is an automatically generated map entry type for the
  2927. /// maps field.
  2928. ///
  2929. /// For maps fields:
  2930. /// map&lt;KeyType, ValueType> map_field = 1;
  2931. /// The parsed descriptor looks like:
  2932. /// message MapFieldEntry {
  2933. /// option map_entry = true;
  2934. /// optional KeyType key = 1;
  2935. /// optional ValueType value = 2;
  2936. /// }
  2937. /// repeated MapFieldEntry map_field = 1;
  2938. ///
  2939. /// Implementations may choose not to generate the map_entry=true message, but
  2940. /// use a native map in the target language to hold the keys and values.
  2941. /// The reflection APIs in such implementions still need to work as
  2942. /// if the field is a repeated message field.
  2943. ///
  2944. /// NOTE: Do not set the option in .proto files. Always use the maps syntax
  2945. /// instead. The option should only be implicitly set by the proto compiler
  2946. /// parser.
  2947. /// </summary>
  2948. public bool MapEntry {
  2949. get { return mapEntry_; }
  2950. set {
  2951. mapEntry_ = value;
  2952. }
  2953. }
  2954. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  2955. public const int UninterpretedOptionFieldNumber = 999;
  2956. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  2957. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  2958. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  2959. /// <summary>
  2960. /// The parser stores options it doesn't recognize here. See above.
  2961. /// </summary>
  2962. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  2963. get { return uninterpretedOption_; }
  2964. }
  2965. public override bool Equals(object other) {
  2966. return Equals(other as MessageOptions);
  2967. }
  2968. public bool Equals(MessageOptions other) {
  2969. if (ReferenceEquals(other, null)) {
  2970. return false;
  2971. }
  2972. if (ReferenceEquals(other, this)) {
  2973. return true;
  2974. }
  2975. if (MessageSetWireFormat != other.MessageSetWireFormat) return false;
  2976. if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) return false;
  2977. if (Deprecated != other.Deprecated) return false;
  2978. if (MapEntry != other.MapEntry) return false;
  2979. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  2980. return true;
  2981. }
  2982. public override int GetHashCode() {
  2983. int hash = 1;
  2984. if (MessageSetWireFormat != false) hash ^= MessageSetWireFormat.GetHashCode();
  2985. if (NoStandardDescriptorAccessor != false) hash ^= NoStandardDescriptorAccessor.GetHashCode();
  2986. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  2987. if (MapEntry != false) hash ^= MapEntry.GetHashCode();
  2988. hash ^= uninterpretedOption_.GetHashCode();
  2989. return hash;
  2990. }
  2991. public override string ToString() {
  2992. return pb::JsonFormatter.ToDiagnosticString(this);
  2993. }
  2994. public void WriteTo(pb::CodedOutputStream output) {
  2995. if (MessageSetWireFormat != false) {
  2996. output.WriteRawTag(8);
  2997. output.WriteBool(MessageSetWireFormat);
  2998. }
  2999. if (NoStandardDescriptorAccessor != false) {
  3000. output.WriteRawTag(16);
  3001. output.WriteBool(NoStandardDescriptorAccessor);
  3002. }
  3003. if (Deprecated != false) {
  3004. output.WriteRawTag(24);
  3005. output.WriteBool(Deprecated);
  3006. }
  3007. if (MapEntry != false) {
  3008. output.WriteRawTag(56);
  3009. output.WriteBool(MapEntry);
  3010. }
  3011. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3012. }
  3013. public int CalculateSize() {
  3014. int size = 0;
  3015. if (MessageSetWireFormat != false) {
  3016. size += 1 + 1;
  3017. }
  3018. if (NoStandardDescriptorAccessor != false) {
  3019. size += 1 + 1;
  3020. }
  3021. if (Deprecated != false) {
  3022. size += 1 + 1;
  3023. }
  3024. if (MapEntry != false) {
  3025. size += 1 + 1;
  3026. }
  3027. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3028. return size;
  3029. }
  3030. public void MergeFrom(MessageOptions other) {
  3031. if (other == null) {
  3032. return;
  3033. }
  3034. if (other.MessageSetWireFormat != false) {
  3035. MessageSetWireFormat = other.MessageSetWireFormat;
  3036. }
  3037. if (other.NoStandardDescriptorAccessor != false) {
  3038. NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
  3039. }
  3040. if (other.Deprecated != false) {
  3041. Deprecated = other.Deprecated;
  3042. }
  3043. if (other.MapEntry != false) {
  3044. MapEntry = other.MapEntry;
  3045. }
  3046. uninterpretedOption_.Add(other.uninterpretedOption_);
  3047. }
  3048. public void MergeFrom(pb::CodedInputStream input) {
  3049. uint tag;
  3050. while ((tag = input.ReadTag()) != 0) {
  3051. switch(tag) {
  3052. default:
  3053. input.SkipLastField();
  3054. break;
  3055. case 8: {
  3056. MessageSetWireFormat = input.ReadBool();
  3057. break;
  3058. }
  3059. case 16: {
  3060. NoStandardDescriptorAccessor = input.ReadBool();
  3061. break;
  3062. }
  3063. case 24: {
  3064. Deprecated = input.ReadBool();
  3065. break;
  3066. }
  3067. case 56: {
  3068. MapEntry = input.ReadBool();
  3069. break;
  3070. }
  3071. case 7994: {
  3072. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3073. break;
  3074. }
  3075. }
  3076. }
  3077. }
  3078. }
  3079. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3080. internal sealed partial class FieldOptions : pb::IMessage<FieldOptions> {
  3081. private static readonly pb::MessageParser<FieldOptions> _parser = new pb::MessageParser<FieldOptions>(() => new FieldOptions());
  3082. public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } }
  3083. public static pbr::MessageDescriptor Descriptor {
  3084. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[11]; }
  3085. }
  3086. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3087. get { return Descriptor; }
  3088. }
  3089. public FieldOptions() {
  3090. OnConstruction();
  3091. }
  3092. partial void OnConstruction();
  3093. public FieldOptions(FieldOptions other) : this() {
  3094. ctype_ = other.ctype_;
  3095. packed_ = other.packed_;
  3096. jstype_ = other.jstype_;
  3097. lazy_ = other.lazy_;
  3098. deprecated_ = other.deprecated_;
  3099. weak_ = other.weak_;
  3100. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3101. }
  3102. public FieldOptions Clone() {
  3103. return new FieldOptions(this);
  3104. }
  3105. /// <summary>Field number for the "ctype" field.</summary>
  3106. public const int CtypeFieldNumber = 1;
  3107. private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ = 0;
  3108. /// <summary>
  3109. /// The ctype option instructs the C++ code generator to use a different
  3110. /// representation of the field than it normally would. See the specific
  3111. /// options below. This option is not yet implemented in the open source
  3112. /// release -- sorry, we'll try to include it in a future version!
  3113. /// </summary>
  3114. public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype {
  3115. get { return ctype_; }
  3116. set {
  3117. ctype_ = value;
  3118. }
  3119. }
  3120. /// <summary>Field number for the "packed" field.</summary>
  3121. public const int PackedFieldNumber = 2;
  3122. private bool packed_;
  3123. /// <summary>
  3124. /// The packed option can be enabled for repeated primitive fields to enable
  3125. /// a more efficient representation on the wire. Rather than repeatedly
  3126. /// writing the tag and type for each element, the entire array is encoded as
  3127. /// a single length-delimited blob. In proto3, only explicit setting it to
  3128. /// false will avoid using packed encoding.
  3129. /// </summary>
  3130. public bool Packed {
  3131. get { return packed_; }
  3132. set {
  3133. packed_ = value;
  3134. }
  3135. }
  3136. /// <summary>Field number for the "jstype" field.</summary>
  3137. public const int JstypeFieldNumber = 6;
  3138. private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_ = 0;
  3139. /// <summary>
  3140. /// The jstype option determines the JavaScript type used for values of the
  3141. /// field. The option is permitted only for 64 bit integral and fixed types
  3142. /// (int64, uint64, sint64, fixed64, sfixed64). By default these types are
  3143. /// represented as JavaScript strings. This avoids loss of precision that can
  3144. /// happen when a large value is converted to a floating point JavaScript
  3145. /// numbers. Specifying JS_NUMBER for the jstype causes the generated
  3146. /// JavaScript code to use the JavaScript "number" type instead of strings.
  3147. /// This option is an enum to permit additional types to be added,
  3148. /// e.g. goog.math.Integer.
  3149. /// </summary>
  3150. public global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype {
  3151. get { return jstype_; }
  3152. set {
  3153. jstype_ = value;
  3154. }
  3155. }
  3156. /// <summary>Field number for the "lazy" field.</summary>
  3157. public const int LazyFieldNumber = 5;
  3158. private bool lazy_;
  3159. /// <summary>
  3160. /// Should this field be parsed lazily? Lazy applies only to message-type
  3161. /// fields. It means that when the outer message is initially parsed, the
  3162. /// inner message's contents will not be parsed but instead stored in encoded
  3163. /// form. The inner message will actually be parsed when it is first accessed.
  3164. ///
  3165. /// This is only a hint. Implementations are free to choose whether to use
  3166. /// eager or lazy parsing regardless of the value of this option. However,
  3167. /// setting this option true suggests that the protocol author believes that
  3168. /// using lazy parsing on this field is worth the additional bookkeeping
  3169. /// overhead typically needed to implement it.
  3170. ///
  3171. /// This option does not affect the public interface of any generated code;
  3172. /// all method signatures remain the same. Furthermore, thread-safety of the
  3173. /// interface is not affected by this option; const methods remain safe to
  3174. /// call from multiple threads concurrently, while non-const methods continue
  3175. /// to require exclusive access.
  3176. ///
  3177. /// Note that implementations may choose not to check required fields within
  3178. /// a lazy sub-message. That is, calling IsInitialized() on the outher message
  3179. /// may return true even if the inner message has missing required fields.
  3180. /// This is necessary because otherwise the inner message would have to be
  3181. /// parsed in order to perform the check, defeating the purpose of lazy
  3182. /// parsing. An implementation which chooses not to check required fields
  3183. /// must be consistent about it. That is, for any particular sub-message, the
  3184. /// implementation must either *always* check its required fields, or *never*
  3185. /// check its required fields, regardless of whether or not the message has
  3186. /// been parsed.
  3187. /// </summary>
  3188. public bool Lazy {
  3189. get { return lazy_; }
  3190. set {
  3191. lazy_ = value;
  3192. }
  3193. }
  3194. /// <summary>Field number for the "deprecated" field.</summary>
  3195. public const int DeprecatedFieldNumber = 3;
  3196. private bool deprecated_;
  3197. /// <summary>
  3198. /// Is this field deprecated?
  3199. /// Depending on the target platform, this can emit Deprecated annotations
  3200. /// for accessors, or it will be completely ignored; in the very least, this
  3201. /// is a formalization for deprecating fields.
  3202. /// </summary>
  3203. public bool Deprecated {
  3204. get { return deprecated_; }
  3205. set {
  3206. deprecated_ = value;
  3207. }
  3208. }
  3209. /// <summary>Field number for the "weak" field.</summary>
  3210. public const int WeakFieldNumber = 10;
  3211. private bool weak_;
  3212. /// <summary>
  3213. /// For Google-internal migration only. Do not use.
  3214. /// </summary>
  3215. public bool Weak {
  3216. get { return weak_; }
  3217. set {
  3218. weak_ = value;
  3219. }
  3220. }
  3221. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  3222. public const int UninterpretedOptionFieldNumber = 999;
  3223. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3224. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3225. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3226. /// <summary>
  3227. /// The parser stores options it doesn't recognize here. See above.
  3228. /// </summary>
  3229. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3230. get { return uninterpretedOption_; }
  3231. }
  3232. public override bool Equals(object other) {
  3233. return Equals(other as FieldOptions);
  3234. }
  3235. public bool Equals(FieldOptions other) {
  3236. if (ReferenceEquals(other, null)) {
  3237. return false;
  3238. }
  3239. if (ReferenceEquals(other, this)) {
  3240. return true;
  3241. }
  3242. if (Ctype != other.Ctype) return false;
  3243. if (Packed != other.Packed) return false;
  3244. if (Jstype != other.Jstype) return false;
  3245. if (Lazy != other.Lazy) return false;
  3246. if (Deprecated != other.Deprecated) return false;
  3247. if (Weak != other.Weak) return false;
  3248. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3249. return true;
  3250. }
  3251. public override int GetHashCode() {
  3252. int hash = 1;
  3253. if (Ctype != 0) hash ^= Ctype.GetHashCode();
  3254. if (Packed != false) hash ^= Packed.GetHashCode();
  3255. if (Jstype != 0) hash ^= Jstype.GetHashCode();
  3256. if (Lazy != false) hash ^= Lazy.GetHashCode();
  3257. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3258. if (Weak != false) hash ^= Weak.GetHashCode();
  3259. hash ^= uninterpretedOption_.GetHashCode();
  3260. return hash;
  3261. }
  3262. public override string ToString() {
  3263. return pb::JsonFormatter.ToDiagnosticString(this);
  3264. }
  3265. public void WriteTo(pb::CodedOutputStream output) {
  3266. if (Ctype != 0) {
  3267. output.WriteRawTag(8);
  3268. output.WriteEnum((int) Ctype);
  3269. }
  3270. if (Packed != false) {
  3271. output.WriteRawTag(16);
  3272. output.WriteBool(Packed);
  3273. }
  3274. if (Deprecated != false) {
  3275. output.WriteRawTag(24);
  3276. output.WriteBool(Deprecated);
  3277. }
  3278. if (Lazy != false) {
  3279. output.WriteRawTag(40);
  3280. output.WriteBool(Lazy);
  3281. }
  3282. if (Jstype != 0) {
  3283. output.WriteRawTag(48);
  3284. output.WriteEnum((int) Jstype);
  3285. }
  3286. if (Weak != false) {
  3287. output.WriteRawTag(80);
  3288. output.WriteBool(Weak);
  3289. }
  3290. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3291. }
  3292. public int CalculateSize() {
  3293. int size = 0;
  3294. if (Ctype != 0) {
  3295. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype);
  3296. }
  3297. if (Packed != false) {
  3298. size += 1 + 1;
  3299. }
  3300. if (Jstype != 0) {
  3301. size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype);
  3302. }
  3303. if (Lazy != false) {
  3304. size += 1 + 1;
  3305. }
  3306. if (Deprecated != false) {
  3307. size += 1 + 1;
  3308. }
  3309. if (Weak != false) {
  3310. size += 1 + 1;
  3311. }
  3312. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3313. return size;
  3314. }
  3315. public void MergeFrom(FieldOptions other) {
  3316. if (other == null) {
  3317. return;
  3318. }
  3319. if (other.Ctype != 0) {
  3320. Ctype = other.Ctype;
  3321. }
  3322. if (other.Packed != false) {
  3323. Packed = other.Packed;
  3324. }
  3325. if (other.Jstype != 0) {
  3326. Jstype = other.Jstype;
  3327. }
  3328. if (other.Lazy != false) {
  3329. Lazy = other.Lazy;
  3330. }
  3331. if (other.Deprecated != false) {
  3332. Deprecated = other.Deprecated;
  3333. }
  3334. if (other.Weak != false) {
  3335. Weak = other.Weak;
  3336. }
  3337. uninterpretedOption_.Add(other.uninterpretedOption_);
  3338. }
  3339. public void MergeFrom(pb::CodedInputStream input) {
  3340. uint tag;
  3341. while ((tag = input.ReadTag()) != 0) {
  3342. switch(tag) {
  3343. default:
  3344. input.SkipLastField();
  3345. break;
  3346. case 8: {
  3347. ctype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.CType) input.ReadEnum();
  3348. break;
  3349. }
  3350. case 16: {
  3351. Packed = input.ReadBool();
  3352. break;
  3353. }
  3354. case 24: {
  3355. Deprecated = input.ReadBool();
  3356. break;
  3357. }
  3358. case 40: {
  3359. Lazy = input.ReadBool();
  3360. break;
  3361. }
  3362. case 48: {
  3363. jstype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) input.ReadEnum();
  3364. break;
  3365. }
  3366. case 80: {
  3367. Weak = input.ReadBool();
  3368. break;
  3369. }
  3370. case 7994: {
  3371. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3372. break;
  3373. }
  3374. }
  3375. }
  3376. }
  3377. #region Nested types
  3378. /// <summary>Container for nested types declared in the FieldOptions message type.</summary>
  3379. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3380. public static partial class Types {
  3381. internal enum CType {
  3382. /// <summary>
  3383. /// Default mode.
  3384. /// </summary>
  3385. [pbr::OriginalName("STRING")] String = 0,
  3386. [pbr::OriginalName("CORD")] Cord = 1,
  3387. [pbr::OriginalName("STRING_PIECE")] StringPiece = 2,
  3388. }
  3389. internal enum JSType {
  3390. /// <summary>
  3391. /// Use the default type.
  3392. /// </summary>
  3393. [pbr::OriginalName("JS_NORMAL")] JsNormal = 0,
  3394. /// <summary>
  3395. /// Use JavaScript strings.
  3396. /// </summary>
  3397. [pbr::OriginalName("JS_STRING")] JsString = 1,
  3398. /// <summary>
  3399. /// Use JavaScript numbers.
  3400. /// </summary>
  3401. [pbr::OriginalName("JS_NUMBER")] JsNumber = 2,
  3402. }
  3403. }
  3404. #endregion
  3405. }
  3406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3407. internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> {
  3408. private static readonly pb::MessageParser<EnumOptions> _parser = new pb::MessageParser<EnumOptions>(() => new EnumOptions());
  3409. public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } }
  3410. public static pbr::MessageDescriptor Descriptor {
  3411. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[12]; }
  3412. }
  3413. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3414. get { return Descriptor; }
  3415. }
  3416. public EnumOptions() {
  3417. OnConstruction();
  3418. }
  3419. partial void OnConstruction();
  3420. public EnumOptions(EnumOptions other) : this() {
  3421. allowAlias_ = other.allowAlias_;
  3422. deprecated_ = other.deprecated_;
  3423. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3424. }
  3425. public EnumOptions Clone() {
  3426. return new EnumOptions(this);
  3427. }
  3428. /// <summary>Field number for the "allow_alias" field.</summary>
  3429. public const int AllowAliasFieldNumber = 2;
  3430. private bool allowAlias_;
  3431. /// <summary>
  3432. /// Set this option to true to allow mapping different tag names to the same
  3433. /// value.
  3434. /// </summary>
  3435. public bool AllowAlias {
  3436. get { return allowAlias_; }
  3437. set {
  3438. allowAlias_ = value;
  3439. }
  3440. }
  3441. /// <summary>Field number for the "deprecated" field.</summary>
  3442. public const int DeprecatedFieldNumber = 3;
  3443. private bool deprecated_;
  3444. /// <summary>
  3445. /// Is this enum deprecated?
  3446. /// Depending on the target platform, this can emit Deprecated annotations
  3447. /// for the enum, or it will be completely ignored; in the very least, this
  3448. /// is a formalization for deprecating enums.
  3449. /// </summary>
  3450. public bool Deprecated {
  3451. get { return deprecated_; }
  3452. set {
  3453. deprecated_ = value;
  3454. }
  3455. }
  3456. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  3457. public const int UninterpretedOptionFieldNumber = 999;
  3458. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3459. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3460. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3461. /// <summary>
  3462. /// The parser stores options it doesn't recognize here. See above.
  3463. /// </summary>
  3464. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3465. get { return uninterpretedOption_; }
  3466. }
  3467. public override bool Equals(object other) {
  3468. return Equals(other as EnumOptions);
  3469. }
  3470. public bool Equals(EnumOptions other) {
  3471. if (ReferenceEquals(other, null)) {
  3472. return false;
  3473. }
  3474. if (ReferenceEquals(other, this)) {
  3475. return true;
  3476. }
  3477. if (AllowAlias != other.AllowAlias) return false;
  3478. if (Deprecated != other.Deprecated) return false;
  3479. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3480. return true;
  3481. }
  3482. public override int GetHashCode() {
  3483. int hash = 1;
  3484. if (AllowAlias != false) hash ^= AllowAlias.GetHashCode();
  3485. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3486. hash ^= uninterpretedOption_.GetHashCode();
  3487. return hash;
  3488. }
  3489. public override string ToString() {
  3490. return pb::JsonFormatter.ToDiagnosticString(this);
  3491. }
  3492. public void WriteTo(pb::CodedOutputStream output) {
  3493. if (AllowAlias != false) {
  3494. output.WriteRawTag(16);
  3495. output.WriteBool(AllowAlias);
  3496. }
  3497. if (Deprecated != false) {
  3498. output.WriteRawTag(24);
  3499. output.WriteBool(Deprecated);
  3500. }
  3501. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3502. }
  3503. public int CalculateSize() {
  3504. int size = 0;
  3505. if (AllowAlias != false) {
  3506. size += 1 + 1;
  3507. }
  3508. if (Deprecated != false) {
  3509. size += 1 + 1;
  3510. }
  3511. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3512. return size;
  3513. }
  3514. public void MergeFrom(EnumOptions other) {
  3515. if (other == null) {
  3516. return;
  3517. }
  3518. if (other.AllowAlias != false) {
  3519. AllowAlias = other.AllowAlias;
  3520. }
  3521. if (other.Deprecated != false) {
  3522. Deprecated = other.Deprecated;
  3523. }
  3524. uninterpretedOption_.Add(other.uninterpretedOption_);
  3525. }
  3526. public void MergeFrom(pb::CodedInputStream input) {
  3527. uint tag;
  3528. while ((tag = input.ReadTag()) != 0) {
  3529. switch(tag) {
  3530. default:
  3531. input.SkipLastField();
  3532. break;
  3533. case 16: {
  3534. AllowAlias = input.ReadBool();
  3535. break;
  3536. }
  3537. case 24: {
  3538. Deprecated = input.ReadBool();
  3539. break;
  3540. }
  3541. case 7994: {
  3542. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3543. break;
  3544. }
  3545. }
  3546. }
  3547. }
  3548. }
  3549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3550. internal sealed partial class EnumValueOptions : pb::IMessage<EnumValueOptions> {
  3551. private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb::MessageParser<EnumValueOptions>(() => new EnumValueOptions());
  3552. public static pb::MessageParser<EnumValueOptions> Parser { get { return _parser; } }
  3553. public static pbr::MessageDescriptor Descriptor {
  3554. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[13]; }
  3555. }
  3556. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3557. get { return Descriptor; }
  3558. }
  3559. public EnumValueOptions() {
  3560. OnConstruction();
  3561. }
  3562. partial void OnConstruction();
  3563. public EnumValueOptions(EnumValueOptions other) : this() {
  3564. deprecated_ = other.deprecated_;
  3565. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3566. }
  3567. public EnumValueOptions Clone() {
  3568. return new EnumValueOptions(this);
  3569. }
  3570. /// <summary>Field number for the "deprecated" field.</summary>
  3571. public const int DeprecatedFieldNumber = 1;
  3572. private bool deprecated_;
  3573. /// <summary>
  3574. /// Is this enum value deprecated?
  3575. /// Depending on the target platform, this can emit Deprecated annotations
  3576. /// for the enum value, or it will be completely ignored; in the very least,
  3577. /// this is a formalization for deprecating enum values.
  3578. /// </summary>
  3579. public bool Deprecated {
  3580. get { return deprecated_; }
  3581. set {
  3582. deprecated_ = value;
  3583. }
  3584. }
  3585. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  3586. public const int UninterpretedOptionFieldNumber = 999;
  3587. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3588. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3589. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3590. /// <summary>
  3591. /// The parser stores options it doesn't recognize here. See above.
  3592. /// </summary>
  3593. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3594. get { return uninterpretedOption_; }
  3595. }
  3596. public override bool Equals(object other) {
  3597. return Equals(other as EnumValueOptions);
  3598. }
  3599. public bool Equals(EnumValueOptions other) {
  3600. if (ReferenceEquals(other, null)) {
  3601. return false;
  3602. }
  3603. if (ReferenceEquals(other, this)) {
  3604. return true;
  3605. }
  3606. if (Deprecated != other.Deprecated) return false;
  3607. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3608. return true;
  3609. }
  3610. public override int GetHashCode() {
  3611. int hash = 1;
  3612. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3613. hash ^= uninterpretedOption_.GetHashCode();
  3614. return hash;
  3615. }
  3616. public override string ToString() {
  3617. return pb::JsonFormatter.ToDiagnosticString(this);
  3618. }
  3619. public void WriteTo(pb::CodedOutputStream output) {
  3620. if (Deprecated != false) {
  3621. output.WriteRawTag(8);
  3622. output.WriteBool(Deprecated);
  3623. }
  3624. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3625. }
  3626. public int CalculateSize() {
  3627. int size = 0;
  3628. if (Deprecated != false) {
  3629. size += 1 + 1;
  3630. }
  3631. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3632. return size;
  3633. }
  3634. public void MergeFrom(EnumValueOptions other) {
  3635. if (other == null) {
  3636. return;
  3637. }
  3638. if (other.Deprecated != false) {
  3639. Deprecated = other.Deprecated;
  3640. }
  3641. uninterpretedOption_.Add(other.uninterpretedOption_);
  3642. }
  3643. public void MergeFrom(pb::CodedInputStream input) {
  3644. uint tag;
  3645. while ((tag = input.ReadTag()) != 0) {
  3646. switch(tag) {
  3647. default:
  3648. input.SkipLastField();
  3649. break;
  3650. case 8: {
  3651. Deprecated = input.ReadBool();
  3652. break;
  3653. }
  3654. case 7994: {
  3655. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3656. break;
  3657. }
  3658. }
  3659. }
  3660. }
  3661. }
  3662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3663. internal sealed partial class ServiceOptions : pb::IMessage<ServiceOptions> {
  3664. private static readonly pb::MessageParser<ServiceOptions> _parser = new pb::MessageParser<ServiceOptions>(() => new ServiceOptions());
  3665. public static pb::MessageParser<ServiceOptions> Parser { get { return _parser; } }
  3666. public static pbr::MessageDescriptor Descriptor {
  3667. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[14]; }
  3668. }
  3669. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3670. get { return Descriptor; }
  3671. }
  3672. public ServiceOptions() {
  3673. OnConstruction();
  3674. }
  3675. partial void OnConstruction();
  3676. public ServiceOptions(ServiceOptions other) : this() {
  3677. deprecated_ = other.deprecated_;
  3678. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3679. }
  3680. public ServiceOptions Clone() {
  3681. return new ServiceOptions(this);
  3682. }
  3683. /// <summary>Field number for the "deprecated" field.</summary>
  3684. public const int DeprecatedFieldNumber = 33;
  3685. private bool deprecated_;
  3686. /// <summary>
  3687. /// Is this service deprecated?
  3688. /// Depending on the target platform, this can emit Deprecated annotations
  3689. /// for the service, or it will be completely ignored; in the very least,
  3690. /// this is a formalization for deprecating services.
  3691. /// </summary>
  3692. public bool Deprecated {
  3693. get { return deprecated_; }
  3694. set {
  3695. deprecated_ = value;
  3696. }
  3697. }
  3698. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  3699. public const int UninterpretedOptionFieldNumber = 999;
  3700. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3701. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3702. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3703. /// <summary>
  3704. /// The parser stores options it doesn't recognize here. See above.
  3705. /// </summary>
  3706. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3707. get { return uninterpretedOption_; }
  3708. }
  3709. public override bool Equals(object other) {
  3710. return Equals(other as ServiceOptions);
  3711. }
  3712. public bool Equals(ServiceOptions other) {
  3713. if (ReferenceEquals(other, null)) {
  3714. return false;
  3715. }
  3716. if (ReferenceEquals(other, this)) {
  3717. return true;
  3718. }
  3719. if (Deprecated != other.Deprecated) return false;
  3720. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3721. return true;
  3722. }
  3723. public override int GetHashCode() {
  3724. int hash = 1;
  3725. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3726. hash ^= uninterpretedOption_.GetHashCode();
  3727. return hash;
  3728. }
  3729. public override string ToString() {
  3730. return pb::JsonFormatter.ToDiagnosticString(this);
  3731. }
  3732. public void WriteTo(pb::CodedOutputStream output) {
  3733. if (Deprecated != false) {
  3734. output.WriteRawTag(136, 2);
  3735. output.WriteBool(Deprecated);
  3736. }
  3737. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3738. }
  3739. public int CalculateSize() {
  3740. int size = 0;
  3741. if (Deprecated != false) {
  3742. size += 2 + 1;
  3743. }
  3744. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3745. return size;
  3746. }
  3747. public void MergeFrom(ServiceOptions other) {
  3748. if (other == null) {
  3749. return;
  3750. }
  3751. if (other.Deprecated != false) {
  3752. Deprecated = other.Deprecated;
  3753. }
  3754. uninterpretedOption_.Add(other.uninterpretedOption_);
  3755. }
  3756. public void MergeFrom(pb::CodedInputStream input) {
  3757. uint tag;
  3758. while ((tag = input.ReadTag()) != 0) {
  3759. switch(tag) {
  3760. default:
  3761. input.SkipLastField();
  3762. break;
  3763. case 264: {
  3764. Deprecated = input.ReadBool();
  3765. break;
  3766. }
  3767. case 7994: {
  3768. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3769. break;
  3770. }
  3771. }
  3772. }
  3773. }
  3774. }
  3775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3776. internal sealed partial class MethodOptions : pb::IMessage<MethodOptions> {
  3777. private static readonly pb::MessageParser<MethodOptions> _parser = new pb::MessageParser<MethodOptions>(() => new MethodOptions());
  3778. public static pb::MessageParser<MethodOptions> Parser { get { return _parser; } }
  3779. public static pbr::MessageDescriptor Descriptor {
  3780. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[15]; }
  3781. }
  3782. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3783. get { return Descriptor; }
  3784. }
  3785. public MethodOptions() {
  3786. OnConstruction();
  3787. }
  3788. partial void OnConstruction();
  3789. public MethodOptions(MethodOptions other) : this() {
  3790. deprecated_ = other.deprecated_;
  3791. uninterpretedOption_ = other.uninterpretedOption_.Clone();
  3792. }
  3793. public MethodOptions Clone() {
  3794. return new MethodOptions(this);
  3795. }
  3796. /// <summary>Field number for the "deprecated" field.</summary>
  3797. public const int DeprecatedFieldNumber = 33;
  3798. private bool deprecated_;
  3799. /// <summary>
  3800. /// Is this method deprecated?
  3801. /// Depending on the target platform, this can emit Deprecated annotations
  3802. /// for the method, or it will be completely ignored; in the very least,
  3803. /// this is a formalization for deprecating methods.
  3804. /// </summary>
  3805. public bool Deprecated {
  3806. get { return deprecated_; }
  3807. set {
  3808. deprecated_ = value;
  3809. }
  3810. }
  3811. /// <summary>Field number for the "uninterpreted_option" field.</summary>
  3812. public const int UninterpretedOptionFieldNumber = 999;
  3813. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
  3814. = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
  3815. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
  3816. /// <summary>
  3817. /// The parser stores options it doesn't recognize here. See above.
  3818. /// </summary>
  3819. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
  3820. get { return uninterpretedOption_; }
  3821. }
  3822. public override bool Equals(object other) {
  3823. return Equals(other as MethodOptions);
  3824. }
  3825. public bool Equals(MethodOptions other) {
  3826. if (ReferenceEquals(other, null)) {
  3827. return false;
  3828. }
  3829. if (ReferenceEquals(other, this)) {
  3830. return true;
  3831. }
  3832. if (Deprecated != other.Deprecated) return false;
  3833. if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
  3834. return true;
  3835. }
  3836. public override int GetHashCode() {
  3837. int hash = 1;
  3838. if (Deprecated != false) hash ^= Deprecated.GetHashCode();
  3839. hash ^= uninterpretedOption_.GetHashCode();
  3840. return hash;
  3841. }
  3842. public override string ToString() {
  3843. return pb::JsonFormatter.ToDiagnosticString(this);
  3844. }
  3845. public void WriteTo(pb::CodedOutputStream output) {
  3846. if (Deprecated != false) {
  3847. output.WriteRawTag(136, 2);
  3848. output.WriteBool(Deprecated);
  3849. }
  3850. uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
  3851. }
  3852. public int CalculateSize() {
  3853. int size = 0;
  3854. if (Deprecated != false) {
  3855. size += 2 + 1;
  3856. }
  3857. size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
  3858. return size;
  3859. }
  3860. public void MergeFrom(MethodOptions other) {
  3861. if (other == null) {
  3862. return;
  3863. }
  3864. if (other.Deprecated != false) {
  3865. Deprecated = other.Deprecated;
  3866. }
  3867. uninterpretedOption_.Add(other.uninterpretedOption_);
  3868. }
  3869. public void MergeFrom(pb::CodedInputStream input) {
  3870. uint tag;
  3871. while ((tag = input.ReadTag()) != 0) {
  3872. switch(tag) {
  3873. default:
  3874. input.SkipLastField();
  3875. break;
  3876. case 264: {
  3877. Deprecated = input.ReadBool();
  3878. break;
  3879. }
  3880. case 7994: {
  3881. uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
  3882. break;
  3883. }
  3884. }
  3885. }
  3886. }
  3887. }
  3888. /// <summary>
  3889. /// A message representing a option the parser does not recognize. This only
  3890. /// appears in options protos created by the compiler::Parser class.
  3891. /// DescriptorPool resolves these when building Descriptor objects. Therefore,
  3892. /// options protos in descriptor objects (e.g. returned by Descriptor::options(),
  3893. /// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
  3894. /// in them.
  3895. /// </summary>
  3896. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3897. internal sealed partial class UninterpretedOption : pb::IMessage<UninterpretedOption> {
  3898. private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption());
  3899. public static pb::MessageParser<UninterpretedOption> Parser { get { return _parser; } }
  3900. public static pbr::MessageDescriptor Descriptor {
  3901. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[16]; }
  3902. }
  3903. pbr::MessageDescriptor pb::IMessage.Descriptor {
  3904. get { return Descriptor; }
  3905. }
  3906. public UninterpretedOption() {
  3907. OnConstruction();
  3908. }
  3909. partial void OnConstruction();
  3910. public UninterpretedOption(UninterpretedOption other) : this() {
  3911. name_ = other.name_.Clone();
  3912. identifierValue_ = other.identifierValue_;
  3913. positiveIntValue_ = other.positiveIntValue_;
  3914. negativeIntValue_ = other.negativeIntValue_;
  3915. doubleValue_ = other.doubleValue_;
  3916. stringValue_ = other.stringValue_;
  3917. aggregateValue_ = other.aggregateValue_;
  3918. }
  3919. public UninterpretedOption Clone() {
  3920. return new UninterpretedOption(this);
  3921. }
  3922. /// <summary>Field number for the "name" field.</summary>
  3923. public const int NameFieldNumber = 2;
  3924. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec
  3925. = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser);
  3926. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>();
  3927. public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name {
  3928. get { return name_; }
  3929. }
  3930. /// <summary>Field number for the "identifier_value" field.</summary>
  3931. public const int IdentifierValueFieldNumber = 3;
  3932. private string identifierValue_ = "";
  3933. /// <summary>
  3934. /// The value of the uninterpreted option, in whatever type the tokenizer
  3935. /// identified it as during parsing. Exactly one of these should be set.
  3936. /// </summary>
  3937. public string IdentifierValue {
  3938. get { return identifierValue_; }
  3939. set {
  3940. identifierValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3941. }
  3942. }
  3943. /// <summary>Field number for the "positive_int_value" field.</summary>
  3944. public const int PositiveIntValueFieldNumber = 4;
  3945. private ulong positiveIntValue_;
  3946. public ulong PositiveIntValue {
  3947. get { return positiveIntValue_; }
  3948. set {
  3949. positiveIntValue_ = value;
  3950. }
  3951. }
  3952. /// <summary>Field number for the "negative_int_value" field.</summary>
  3953. public const int NegativeIntValueFieldNumber = 5;
  3954. private long negativeIntValue_;
  3955. public long NegativeIntValue {
  3956. get { return negativeIntValue_; }
  3957. set {
  3958. negativeIntValue_ = value;
  3959. }
  3960. }
  3961. /// <summary>Field number for the "double_value" field.</summary>
  3962. public const int DoubleValueFieldNumber = 6;
  3963. private double doubleValue_;
  3964. public double DoubleValue {
  3965. get { return doubleValue_; }
  3966. set {
  3967. doubleValue_ = value;
  3968. }
  3969. }
  3970. /// <summary>Field number for the "string_value" field.</summary>
  3971. public const int StringValueFieldNumber = 7;
  3972. private pb::ByteString stringValue_ = pb::ByteString.Empty;
  3973. public pb::ByteString StringValue {
  3974. get { return stringValue_; }
  3975. set {
  3976. stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3977. }
  3978. }
  3979. /// <summary>Field number for the "aggregate_value" field.</summary>
  3980. public const int AggregateValueFieldNumber = 8;
  3981. private string aggregateValue_ = "";
  3982. public string AggregateValue {
  3983. get { return aggregateValue_; }
  3984. set {
  3985. aggregateValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  3986. }
  3987. }
  3988. public override bool Equals(object other) {
  3989. return Equals(other as UninterpretedOption);
  3990. }
  3991. public bool Equals(UninterpretedOption other) {
  3992. if (ReferenceEquals(other, null)) {
  3993. return false;
  3994. }
  3995. if (ReferenceEquals(other, this)) {
  3996. return true;
  3997. }
  3998. if(!name_.Equals(other.name_)) return false;
  3999. if (IdentifierValue != other.IdentifierValue) return false;
  4000. if (PositiveIntValue != other.PositiveIntValue) return false;
  4001. if (NegativeIntValue != other.NegativeIntValue) return false;
  4002. if (DoubleValue != other.DoubleValue) return false;
  4003. if (StringValue != other.StringValue) return false;
  4004. if (AggregateValue != other.AggregateValue) return false;
  4005. return true;
  4006. }
  4007. public override int GetHashCode() {
  4008. int hash = 1;
  4009. hash ^= name_.GetHashCode();
  4010. if (IdentifierValue.Length != 0) hash ^= IdentifierValue.GetHashCode();
  4011. if (PositiveIntValue != 0UL) hash ^= PositiveIntValue.GetHashCode();
  4012. if (NegativeIntValue != 0L) hash ^= NegativeIntValue.GetHashCode();
  4013. if (DoubleValue != 0D) hash ^= DoubleValue.GetHashCode();
  4014. if (StringValue.Length != 0) hash ^= StringValue.GetHashCode();
  4015. if (AggregateValue.Length != 0) hash ^= AggregateValue.GetHashCode();
  4016. return hash;
  4017. }
  4018. public override string ToString() {
  4019. return pb::JsonFormatter.ToDiagnosticString(this);
  4020. }
  4021. public void WriteTo(pb::CodedOutputStream output) {
  4022. name_.WriteTo(output, _repeated_name_codec);
  4023. if (IdentifierValue.Length != 0) {
  4024. output.WriteRawTag(26);
  4025. output.WriteString(IdentifierValue);
  4026. }
  4027. if (PositiveIntValue != 0UL) {
  4028. output.WriteRawTag(32);
  4029. output.WriteUInt64(PositiveIntValue);
  4030. }
  4031. if (NegativeIntValue != 0L) {
  4032. output.WriteRawTag(40);
  4033. output.WriteInt64(NegativeIntValue);
  4034. }
  4035. if (DoubleValue != 0D) {
  4036. output.WriteRawTag(49);
  4037. output.WriteDouble(DoubleValue);
  4038. }
  4039. if (StringValue.Length != 0) {
  4040. output.WriteRawTag(58);
  4041. output.WriteBytes(StringValue);
  4042. }
  4043. if (AggregateValue.Length != 0) {
  4044. output.WriteRawTag(66);
  4045. output.WriteString(AggregateValue);
  4046. }
  4047. }
  4048. public int CalculateSize() {
  4049. int size = 0;
  4050. size += name_.CalculateSize(_repeated_name_codec);
  4051. if (IdentifierValue.Length != 0) {
  4052. size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue);
  4053. }
  4054. if (PositiveIntValue != 0UL) {
  4055. size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue);
  4056. }
  4057. if (NegativeIntValue != 0L) {
  4058. size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue);
  4059. }
  4060. if (DoubleValue != 0D) {
  4061. size += 1 + 8;
  4062. }
  4063. if (StringValue.Length != 0) {
  4064. size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue);
  4065. }
  4066. if (AggregateValue.Length != 0) {
  4067. size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue);
  4068. }
  4069. return size;
  4070. }
  4071. public void MergeFrom(UninterpretedOption other) {
  4072. if (other == null) {
  4073. return;
  4074. }
  4075. name_.Add(other.name_);
  4076. if (other.IdentifierValue.Length != 0) {
  4077. IdentifierValue = other.IdentifierValue;
  4078. }
  4079. if (other.PositiveIntValue != 0UL) {
  4080. PositiveIntValue = other.PositiveIntValue;
  4081. }
  4082. if (other.NegativeIntValue != 0L) {
  4083. NegativeIntValue = other.NegativeIntValue;
  4084. }
  4085. if (other.DoubleValue != 0D) {
  4086. DoubleValue = other.DoubleValue;
  4087. }
  4088. if (other.StringValue.Length != 0) {
  4089. StringValue = other.StringValue;
  4090. }
  4091. if (other.AggregateValue.Length != 0) {
  4092. AggregateValue = other.AggregateValue;
  4093. }
  4094. }
  4095. public void MergeFrom(pb::CodedInputStream input) {
  4096. uint tag;
  4097. while ((tag = input.ReadTag()) != 0) {
  4098. switch(tag) {
  4099. default:
  4100. input.SkipLastField();
  4101. break;
  4102. case 18: {
  4103. name_.AddEntriesFrom(input, _repeated_name_codec);
  4104. break;
  4105. }
  4106. case 26: {
  4107. IdentifierValue = input.ReadString();
  4108. break;
  4109. }
  4110. case 32: {
  4111. PositiveIntValue = input.ReadUInt64();
  4112. break;
  4113. }
  4114. case 40: {
  4115. NegativeIntValue = input.ReadInt64();
  4116. break;
  4117. }
  4118. case 49: {
  4119. DoubleValue = input.ReadDouble();
  4120. break;
  4121. }
  4122. case 58: {
  4123. StringValue = input.ReadBytes();
  4124. break;
  4125. }
  4126. case 66: {
  4127. AggregateValue = input.ReadString();
  4128. break;
  4129. }
  4130. }
  4131. }
  4132. }
  4133. #region Nested types
  4134. /// <summary>Container for nested types declared in the UninterpretedOption message type.</summary>
  4135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4136. public static partial class Types {
  4137. /// <summary>
  4138. /// The name of the uninterpreted option. Each string represents a segment in
  4139. /// a dot-separated name. is_extension is true iff a segment represents an
  4140. /// extension (denoted with parentheses in options specs in .proto files).
  4141. /// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
  4142. /// "foo.(bar.baz).qux".
  4143. /// </summary>
  4144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4145. internal sealed partial class NamePart : pb::IMessage<NamePart> {
  4146. private static readonly pb::MessageParser<NamePart> _parser = new pb::MessageParser<NamePart>(() => new NamePart());
  4147. public static pb::MessageParser<NamePart> Parser { get { return _parser; } }
  4148. public static pbr::MessageDescriptor Descriptor {
  4149. get { return global::Google.Protobuf.Reflection.UninterpretedOption.Descriptor.NestedTypes[0]; }
  4150. }
  4151. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4152. get { return Descriptor; }
  4153. }
  4154. public NamePart() {
  4155. OnConstruction();
  4156. }
  4157. partial void OnConstruction();
  4158. public NamePart(NamePart other) : this() {
  4159. namePart_ = other.namePart_;
  4160. isExtension_ = other.isExtension_;
  4161. }
  4162. public NamePart Clone() {
  4163. return new NamePart(this);
  4164. }
  4165. /// <summary>Field number for the "name_part" field.</summary>
  4166. public const int NamePart_FieldNumber = 1;
  4167. private string namePart_ = "";
  4168. public string NamePart_ {
  4169. get { return namePart_; }
  4170. set {
  4171. namePart_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4172. }
  4173. }
  4174. /// <summary>Field number for the "is_extension" field.</summary>
  4175. public const int IsExtensionFieldNumber = 2;
  4176. private bool isExtension_;
  4177. public bool IsExtension {
  4178. get { return isExtension_; }
  4179. set {
  4180. isExtension_ = value;
  4181. }
  4182. }
  4183. public override bool Equals(object other) {
  4184. return Equals(other as NamePart);
  4185. }
  4186. public bool Equals(NamePart other) {
  4187. if (ReferenceEquals(other, null)) {
  4188. return false;
  4189. }
  4190. if (ReferenceEquals(other, this)) {
  4191. return true;
  4192. }
  4193. if (NamePart_ != other.NamePart_) return false;
  4194. if (IsExtension != other.IsExtension) return false;
  4195. return true;
  4196. }
  4197. public override int GetHashCode() {
  4198. int hash = 1;
  4199. if (NamePart_.Length != 0) hash ^= NamePart_.GetHashCode();
  4200. if (IsExtension != false) hash ^= IsExtension.GetHashCode();
  4201. return hash;
  4202. }
  4203. public override string ToString() {
  4204. return pb::JsonFormatter.ToDiagnosticString(this);
  4205. }
  4206. public void WriteTo(pb::CodedOutputStream output) {
  4207. if (NamePart_.Length != 0) {
  4208. output.WriteRawTag(10);
  4209. output.WriteString(NamePart_);
  4210. }
  4211. if (IsExtension != false) {
  4212. output.WriteRawTag(16);
  4213. output.WriteBool(IsExtension);
  4214. }
  4215. }
  4216. public int CalculateSize() {
  4217. int size = 0;
  4218. if (NamePart_.Length != 0) {
  4219. size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_);
  4220. }
  4221. if (IsExtension != false) {
  4222. size += 1 + 1;
  4223. }
  4224. return size;
  4225. }
  4226. public void MergeFrom(NamePart other) {
  4227. if (other == null) {
  4228. return;
  4229. }
  4230. if (other.NamePart_.Length != 0) {
  4231. NamePart_ = other.NamePart_;
  4232. }
  4233. if (other.IsExtension != false) {
  4234. IsExtension = other.IsExtension;
  4235. }
  4236. }
  4237. public void MergeFrom(pb::CodedInputStream input) {
  4238. uint tag;
  4239. while ((tag = input.ReadTag()) != 0) {
  4240. switch(tag) {
  4241. default:
  4242. input.SkipLastField();
  4243. break;
  4244. case 10: {
  4245. NamePart_ = input.ReadString();
  4246. break;
  4247. }
  4248. case 16: {
  4249. IsExtension = input.ReadBool();
  4250. break;
  4251. }
  4252. }
  4253. }
  4254. }
  4255. }
  4256. }
  4257. #endregion
  4258. }
  4259. /// <summary>
  4260. /// Encapsulates information about the original source file from which a
  4261. /// FileDescriptorProto was generated.
  4262. /// </summary>
  4263. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4264. internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> {
  4265. private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb::MessageParser<SourceCodeInfo>(() => new SourceCodeInfo());
  4266. public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parser; } }
  4267. public static pbr::MessageDescriptor Descriptor {
  4268. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[17]; }
  4269. }
  4270. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4271. get { return Descriptor; }
  4272. }
  4273. public SourceCodeInfo() {
  4274. OnConstruction();
  4275. }
  4276. partial void OnConstruction();
  4277. public SourceCodeInfo(SourceCodeInfo other) : this() {
  4278. location_ = other.location_.Clone();
  4279. }
  4280. public SourceCodeInfo Clone() {
  4281. return new SourceCodeInfo(this);
  4282. }
  4283. /// <summary>Field number for the "location" field.</summary>
  4284. public const int LocationFieldNumber = 1;
  4285. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec
  4286. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser);
  4287. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>();
  4288. /// <summary>
  4289. /// A Location identifies a piece of source code in a .proto file which
  4290. /// corresponds to a particular definition. This information is intended
  4291. /// to be useful to IDEs, code indexers, documentation generators, and similar
  4292. /// tools.
  4293. ///
  4294. /// For example, say we have a file like:
  4295. /// message Foo {
  4296. /// optional string foo = 1;
  4297. /// }
  4298. /// Let's look at just the field definition:
  4299. /// optional string foo = 1;
  4300. /// ^ ^^ ^^ ^ ^^^
  4301. /// a bc de f ghi
  4302. /// We have the following locations:
  4303. /// span path represents
  4304. /// [a,i) [ 4, 0, 2, 0 ] The whole field definition.
  4305. /// [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
  4306. /// [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
  4307. /// [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
  4308. /// [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
  4309. ///
  4310. /// Notes:
  4311. /// - A location may refer to a repeated field itself (i.e. not to any
  4312. /// particular index within it). This is used whenever a set of elements are
  4313. /// logically enclosed in a single code segment. For example, an entire
  4314. /// extend block (possibly containing multiple extension definitions) will
  4315. /// have an outer location whose path refers to the "extensions" repeated
  4316. /// field without an index.
  4317. /// - Multiple locations may have the same path. This happens when a single
  4318. /// logical declaration is spread out across multiple places. The most
  4319. /// obvious example is the "extend" block again -- there may be multiple
  4320. /// extend blocks in the same scope, each of which will have the same path.
  4321. /// - A location's span is not always a subset of its parent's span. For
  4322. /// example, the "extendee" of an extension declaration appears at the
  4323. /// beginning of the "extend" block and is shared by all extensions within
  4324. /// the block.
  4325. /// - Just because a location's span is a subset of some other location's span
  4326. /// does not mean that it is a descendent. For example, a "group" defines
  4327. /// both a type and a field in a single declaration. Thus, the locations
  4328. /// corresponding to the type and field and their components will overlap.
  4329. /// - Code which tries to interpret locations should probably be designed to
  4330. /// ignore those that it doesn't understand, as more types of locations could
  4331. /// be recorded in the future.
  4332. /// </summary>
  4333. public pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location {
  4334. get { return location_; }
  4335. }
  4336. public override bool Equals(object other) {
  4337. return Equals(other as SourceCodeInfo);
  4338. }
  4339. public bool Equals(SourceCodeInfo other) {
  4340. if (ReferenceEquals(other, null)) {
  4341. return false;
  4342. }
  4343. if (ReferenceEquals(other, this)) {
  4344. return true;
  4345. }
  4346. if(!location_.Equals(other.location_)) return false;
  4347. return true;
  4348. }
  4349. public override int GetHashCode() {
  4350. int hash = 1;
  4351. hash ^= location_.GetHashCode();
  4352. return hash;
  4353. }
  4354. public override string ToString() {
  4355. return pb::JsonFormatter.ToDiagnosticString(this);
  4356. }
  4357. public void WriteTo(pb::CodedOutputStream output) {
  4358. location_.WriteTo(output, _repeated_location_codec);
  4359. }
  4360. public int CalculateSize() {
  4361. int size = 0;
  4362. size += location_.CalculateSize(_repeated_location_codec);
  4363. return size;
  4364. }
  4365. public void MergeFrom(SourceCodeInfo other) {
  4366. if (other == null) {
  4367. return;
  4368. }
  4369. location_.Add(other.location_);
  4370. }
  4371. public void MergeFrom(pb::CodedInputStream input) {
  4372. uint tag;
  4373. while ((tag = input.ReadTag()) != 0) {
  4374. switch(tag) {
  4375. default:
  4376. input.SkipLastField();
  4377. break;
  4378. case 10: {
  4379. location_.AddEntriesFrom(input, _repeated_location_codec);
  4380. break;
  4381. }
  4382. }
  4383. }
  4384. }
  4385. #region Nested types
  4386. /// <summary>Container for nested types declared in the SourceCodeInfo message type.</summary>
  4387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4388. public static partial class Types {
  4389. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4390. internal sealed partial class Location : pb::IMessage<Location> {
  4391. private static readonly pb::MessageParser<Location> _parser = new pb::MessageParser<Location>(() => new Location());
  4392. public static pb::MessageParser<Location> Parser { get { return _parser; } }
  4393. public static pbr::MessageDescriptor Descriptor {
  4394. get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descriptor.NestedTypes[0]; }
  4395. }
  4396. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4397. get { return Descriptor; }
  4398. }
  4399. public Location() {
  4400. OnConstruction();
  4401. }
  4402. partial void OnConstruction();
  4403. public Location(Location other) : this() {
  4404. path_ = other.path_.Clone();
  4405. span_ = other.span_.Clone();
  4406. leadingComments_ = other.leadingComments_;
  4407. trailingComments_ = other.trailingComments_;
  4408. leadingDetachedComments_ = other.leadingDetachedComments_.Clone();
  4409. }
  4410. public Location Clone() {
  4411. return new Location(this);
  4412. }
  4413. /// <summary>Field number for the "path" field.</summary>
  4414. public const int PathFieldNumber = 1;
  4415. private static readonly pb::FieldCodec<int> _repeated_path_codec
  4416. = pb::FieldCodec.ForInt32(10);
  4417. private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
  4418. /// <summary>
  4419. /// Identifies which part of the FileDescriptorProto was defined at this
  4420. /// location.
  4421. ///
  4422. /// Each element is a field number or an index. They form a path from
  4423. /// the root FileDescriptorProto to the place where the definition. For
  4424. /// example, this path:
  4425. /// [ 4, 3, 2, 7, 1 ]
  4426. /// refers to:
  4427. /// file.message_type(3) // 4, 3
  4428. /// .field(7) // 2, 7
  4429. /// .name() // 1
  4430. /// This is because FileDescriptorProto.message_type has field number 4:
  4431. /// repeated DescriptorProto message_type = 4;
  4432. /// and DescriptorProto.field has field number 2:
  4433. /// repeated FieldDescriptorProto field = 2;
  4434. /// and FieldDescriptorProto.name has field number 1:
  4435. /// optional string name = 1;
  4436. ///
  4437. /// Thus, the above path gives the location of a field name. If we removed
  4438. /// the last element:
  4439. /// [ 4, 3, 2, 7 ]
  4440. /// this path refers to the whole field declaration (from the beginning
  4441. /// of the label to the terminating semicolon).
  4442. /// </summary>
  4443. public pbc::RepeatedField<int> Path {
  4444. get { return path_; }
  4445. }
  4446. /// <summary>Field number for the "span" field.</summary>
  4447. public const int SpanFieldNumber = 2;
  4448. private static readonly pb::FieldCodec<int> _repeated_span_codec
  4449. = pb::FieldCodec.ForInt32(18);
  4450. private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>();
  4451. /// <summary>
  4452. /// Always has exactly three or four elements: start line, start column,
  4453. /// end line (optional, otherwise assumed same as start line), end column.
  4454. /// These are packed into a single field for efficiency. Note that line
  4455. /// and column numbers are zero-based -- typically you will want to add
  4456. /// 1 to each before displaying to a user.
  4457. /// </summary>
  4458. public pbc::RepeatedField<int> Span {
  4459. get { return span_; }
  4460. }
  4461. /// <summary>Field number for the "leading_comments" field.</summary>
  4462. public const int LeadingCommentsFieldNumber = 3;
  4463. private string leadingComments_ = "";
  4464. /// <summary>
  4465. /// If this SourceCodeInfo represents a complete declaration, these are any
  4466. /// comments appearing before and after the declaration which appear to be
  4467. /// attached to the declaration.
  4468. ///
  4469. /// A series of line comments appearing on consecutive lines, with no other
  4470. /// tokens appearing on those lines, will be treated as a single comment.
  4471. ///
  4472. /// leading_detached_comments will keep paragraphs of comments that appear
  4473. /// before (but not connected to) the current element. Each paragraph,
  4474. /// separated by empty lines, will be one comment element in the repeated
  4475. /// field.
  4476. ///
  4477. /// Only the comment content is provided; comment markers (e.g. //) are
  4478. /// stripped out. For block comments, leading whitespace and an asterisk
  4479. /// will be stripped from the beginning of each line other than the first.
  4480. /// Newlines are included in the output.
  4481. ///
  4482. /// Examples:
  4483. ///
  4484. /// optional int32 foo = 1; // Comment attached to foo.
  4485. /// // Comment attached to bar.
  4486. /// optional int32 bar = 2;
  4487. ///
  4488. /// optional string baz = 3;
  4489. /// // Comment attached to baz.
  4490. /// // Another line attached to baz.
  4491. ///
  4492. /// // Comment attached to qux.
  4493. /// //
  4494. /// // Another line attached to qux.
  4495. /// optional double qux = 4;
  4496. ///
  4497. /// // Detached comment for corge. This is not leading or trailing comments
  4498. /// // to qux or corge because there are blank lines separating it from
  4499. /// // both.
  4500. ///
  4501. /// // Detached comment for corge paragraph 2.
  4502. ///
  4503. /// optional string corge = 5;
  4504. /// /* Block comment attached
  4505. /// * to corge. Leading asterisks
  4506. /// * will be removed. */
  4507. /// /* Block comment attached to
  4508. /// * grault. */
  4509. /// optional int32 grault = 6;
  4510. ///
  4511. /// // ignored detached comments.
  4512. /// </summary>
  4513. public string LeadingComments {
  4514. get { return leadingComments_; }
  4515. set {
  4516. leadingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4517. }
  4518. }
  4519. /// <summary>Field number for the "trailing_comments" field.</summary>
  4520. public const int TrailingCommentsFieldNumber = 4;
  4521. private string trailingComments_ = "";
  4522. public string TrailingComments {
  4523. get { return trailingComments_; }
  4524. set {
  4525. trailingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4526. }
  4527. }
  4528. /// <summary>Field number for the "leading_detached_comments" field.</summary>
  4529. public const int LeadingDetachedCommentsFieldNumber = 6;
  4530. private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec
  4531. = pb::FieldCodec.ForString(50);
  4532. private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>();
  4533. public pbc::RepeatedField<string> LeadingDetachedComments {
  4534. get { return leadingDetachedComments_; }
  4535. }
  4536. public override bool Equals(object other) {
  4537. return Equals(other as Location);
  4538. }
  4539. public bool Equals(Location other) {
  4540. if (ReferenceEquals(other, null)) {
  4541. return false;
  4542. }
  4543. if (ReferenceEquals(other, this)) {
  4544. return true;
  4545. }
  4546. if(!path_.Equals(other.path_)) return false;
  4547. if(!span_.Equals(other.span_)) return false;
  4548. if (LeadingComments != other.LeadingComments) return false;
  4549. if (TrailingComments != other.TrailingComments) return false;
  4550. if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) return false;
  4551. return true;
  4552. }
  4553. public override int GetHashCode() {
  4554. int hash = 1;
  4555. hash ^= path_.GetHashCode();
  4556. hash ^= span_.GetHashCode();
  4557. if (LeadingComments.Length != 0) hash ^= LeadingComments.GetHashCode();
  4558. if (TrailingComments.Length != 0) hash ^= TrailingComments.GetHashCode();
  4559. hash ^= leadingDetachedComments_.GetHashCode();
  4560. return hash;
  4561. }
  4562. public override string ToString() {
  4563. return pb::JsonFormatter.ToDiagnosticString(this);
  4564. }
  4565. public void WriteTo(pb::CodedOutputStream output) {
  4566. path_.WriteTo(output, _repeated_path_codec);
  4567. span_.WriteTo(output, _repeated_span_codec);
  4568. if (LeadingComments.Length != 0) {
  4569. output.WriteRawTag(26);
  4570. output.WriteString(LeadingComments);
  4571. }
  4572. if (TrailingComments.Length != 0) {
  4573. output.WriteRawTag(34);
  4574. output.WriteString(TrailingComments);
  4575. }
  4576. leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComments_codec);
  4577. }
  4578. public int CalculateSize() {
  4579. int size = 0;
  4580. size += path_.CalculateSize(_repeated_path_codec);
  4581. size += span_.CalculateSize(_repeated_span_codec);
  4582. if (LeadingComments.Length != 0) {
  4583. size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments);
  4584. }
  4585. if (TrailingComments.Length != 0) {
  4586. size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments);
  4587. }
  4588. size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetachedComments_codec);
  4589. return size;
  4590. }
  4591. public void MergeFrom(Location other) {
  4592. if (other == null) {
  4593. return;
  4594. }
  4595. path_.Add(other.path_);
  4596. span_.Add(other.span_);
  4597. if (other.LeadingComments.Length != 0) {
  4598. LeadingComments = other.LeadingComments;
  4599. }
  4600. if (other.TrailingComments.Length != 0) {
  4601. TrailingComments = other.TrailingComments;
  4602. }
  4603. leadingDetachedComments_.Add(other.leadingDetachedComments_);
  4604. }
  4605. public void MergeFrom(pb::CodedInputStream input) {
  4606. uint tag;
  4607. while ((tag = input.ReadTag()) != 0) {
  4608. switch(tag) {
  4609. default:
  4610. input.SkipLastField();
  4611. break;
  4612. case 10:
  4613. case 8: {
  4614. path_.AddEntriesFrom(input, _repeated_path_codec);
  4615. break;
  4616. }
  4617. case 18:
  4618. case 16: {
  4619. span_.AddEntriesFrom(input, _repeated_span_codec);
  4620. break;
  4621. }
  4622. case 26: {
  4623. LeadingComments = input.ReadString();
  4624. break;
  4625. }
  4626. case 34: {
  4627. TrailingComments = input.ReadString();
  4628. break;
  4629. }
  4630. case 50: {
  4631. leadingDetachedComments_.AddEntriesFrom(input, _repeated_leadingDetachedComments_codec);
  4632. break;
  4633. }
  4634. }
  4635. }
  4636. }
  4637. }
  4638. }
  4639. #endregion
  4640. }
  4641. /// <summary>
  4642. /// Describes the relationship between generated code and its original source
  4643. /// file. A GeneratedCodeInfo message is associated with only one generated
  4644. /// source file, but may contain references to different source .proto files.
  4645. /// </summary>
  4646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4647. internal sealed partial class GeneratedCodeInfo : pb::IMessage<GeneratedCodeInfo> {
  4648. private static readonly pb::MessageParser<GeneratedCodeInfo> _parser = new pb::MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo());
  4649. public static pb::MessageParser<GeneratedCodeInfo> Parser { get { return _parser; } }
  4650. public static pbr::MessageDescriptor Descriptor {
  4651. get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[18]; }
  4652. }
  4653. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4654. get { return Descriptor; }
  4655. }
  4656. public GeneratedCodeInfo() {
  4657. OnConstruction();
  4658. }
  4659. partial void OnConstruction();
  4660. public GeneratedCodeInfo(GeneratedCodeInfo other) : this() {
  4661. annotation_ = other.annotation_.Clone();
  4662. }
  4663. public GeneratedCodeInfo Clone() {
  4664. return new GeneratedCodeInfo(this);
  4665. }
  4666. /// <summary>Field number for the "annotation" field.</summary>
  4667. public const int AnnotationFieldNumber = 1;
  4668. private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> _repeated_annotation_codec
  4669. = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser);
  4670. private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> annotation_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation>();
  4671. /// <summary>
  4672. /// An Annotation connects some span of text in generated code to an element
  4673. /// of its generating .proto file.
  4674. /// </summary>
  4675. public pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> Annotation {
  4676. get { return annotation_; }
  4677. }
  4678. public override bool Equals(object other) {
  4679. return Equals(other as GeneratedCodeInfo);
  4680. }
  4681. public bool Equals(GeneratedCodeInfo other) {
  4682. if (ReferenceEquals(other, null)) {
  4683. return false;
  4684. }
  4685. if (ReferenceEquals(other, this)) {
  4686. return true;
  4687. }
  4688. if(!annotation_.Equals(other.annotation_)) return false;
  4689. return true;
  4690. }
  4691. public override int GetHashCode() {
  4692. int hash = 1;
  4693. hash ^= annotation_.GetHashCode();
  4694. return hash;
  4695. }
  4696. public override string ToString() {
  4697. return pb::JsonFormatter.ToDiagnosticString(this);
  4698. }
  4699. public void WriteTo(pb::CodedOutputStream output) {
  4700. annotation_.WriteTo(output, _repeated_annotation_codec);
  4701. }
  4702. public int CalculateSize() {
  4703. int size = 0;
  4704. size += annotation_.CalculateSize(_repeated_annotation_codec);
  4705. return size;
  4706. }
  4707. public void MergeFrom(GeneratedCodeInfo other) {
  4708. if (other == null) {
  4709. return;
  4710. }
  4711. annotation_.Add(other.annotation_);
  4712. }
  4713. public void MergeFrom(pb::CodedInputStream input) {
  4714. uint tag;
  4715. while ((tag = input.ReadTag()) != 0) {
  4716. switch(tag) {
  4717. default:
  4718. input.SkipLastField();
  4719. break;
  4720. case 10: {
  4721. annotation_.AddEntriesFrom(input, _repeated_annotation_codec);
  4722. break;
  4723. }
  4724. }
  4725. }
  4726. }
  4727. #region Nested types
  4728. /// <summary>Container for nested types declared in the GeneratedCodeInfo message type.</summary>
  4729. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4730. public static partial class Types {
  4731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4732. internal sealed partial class Annotation : pb::IMessage<Annotation> {
  4733. private static readonly pb::MessageParser<Annotation> _parser = new pb::MessageParser<Annotation>(() => new Annotation());
  4734. public static pb::MessageParser<Annotation> Parser { get { return _parser; } }
  4735. public static pbr::MessageDescriptor Descriptor {
  4736. get { return global::Google.Protobuf.Reflection.GeneratedCodeInfo.Descriptor.NestedTypes[0]; }
  4737. }
  4738. pbr::MessageDescriptor pb::IMessage.Descriptor {
  4739. get { return Descriptor; }
  4740. }
  4741. public Annotation() {
  4742. OnConstruction();
  4743. }
  4744. partial void OnConstruction();
  4745. public Annotation(Annotation other) : this() {
  4746. path_ = other.path_.Clone();
  4747. sourceFile_ = other.sourceFile_;
  4748. begin_ = other.begin_;
  4749. end_ = other.end_;
  4750. }
  4751. public Annotation Clone() {
  4752. return new Annotation(this);
  4753. }
  4754. /// <summary>Field number for the "path" field.</summary>
  4755. public const int PathFieldNumber = 1;
  4756. private static readonly pb::FieldCodec<int> _repeated_path_codec
  4757. = pb::FieldCodec.ForInt32(10);
  4758. private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
  4759. /// <summary>
  4760. /// Identifies the element in the original source .proto file. This field
  4761. /// is formatted the same as SourceCodeInfo.Location.path.
  4762. /// </summary>
  4763. public pbc::RepeatedField<int> Path {
  4764. get { return path_; }
  4765. }
  4766. /// <summary>Field number for the "source_file" field.</summary>
  4767. public const int SourceFileFieldNumber = 2;
  4768. private string sourceFile_ = "";
  4769. /// <summary>
  4770. /// Identifies the filesystem path to the original source .proto.
  4771. /// </summary>
  4772. public string SourceFile {
  4773. get { return sourceFile_; }
  4774. set {
  4775. sourceFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  4776. }
  4777. }
  4778. /// <summary>Field number for the "begin" field.</summary>
  4779. public const int BeginFieldNumber = 3;
  4780. private int begin_;
  4781. /// <summary>
  4782. /// Identifies the starting offset in bytes in the generated code
  4783. /// that relates to the identified object.
  4784. /// </summary>
  4785. public int Begin {
  4786. get { return begin_; }
  4787. set {
  4788. begin_ = value;
  4789. }
  4790. }
  4791. /// <summary>Field number for the "end" field.</summary>
  4792. public const int EndFieldNumber = 4;
  4793. private int end_;
  4794. /// <summary>
  4795. /// Identifies the ending offset in bytes in the generated code that
  4796. /// relates to the identified offset. The end offset should be one past
  4797. /// the last relevant byte (so the length of the text = end - begin).
  4798. /// </summary>
  4799. public int End {
  4800. get { return end_; }
  4801. set {
  4802. end_ = value;
  4803. }
  4804. }
  4805. public override bool Equals(object other) {
  4806. return Equals(other as Annotation);
  4807. }
  4808. public bool Equals(Annotation other) {
  4809. if (ReferenceEquals(other, null)) {
  4810. return false;
  4811. }
  4812. if (ReferenceEquals(other, this)) {
  4813. return true;
  4814. }
  4815. if(!path_.Equals(other.path_)) return false;
  4816. if (SourceFile != other.SourceFile) return false;
  4817. if (Begin != other.Begin) return false;
  4818. if (End != other.End) return false;
  4819. return true;
  4820. }
  4821. public override int GetHashCode() {
  4822. int hash = 1;
  4823. hash ^= path_.GetHashCode();
  4824. if (SourceFile.Length != 0) hash ^= SourceFile.GetHashCode();
  4825. if (Begin != 0) hash ^= Begin.GetHashCode();
  4826. if (End != 0) hash ^= End.GetHashCode();
  4827. return hash;
  4828. }
  4829. public override string ToString() {
  4830. return pb::JsonFormatter.ToDiagnosticString(this);
  4831. }
  4832. public void WriteTo(pb::CodedOutputStream output) {
  4833. path_.WriteTo(output, _repeated_path_codec);
  4834. if (SourceFile.Length != 0) {
  4835. output.WriteRawTag(18);
  4836. output.WriteString(SourceFile);
  4837. }
  4838. if (Begin != 0) {
  4839. output.WriteRawTag(24);
  4840. output.WriteInt32(Begin);
  4841. }
  4842. if (End != 0) {
  4843. output.WriteRawTag(32);
  4844. output.WriteInt32(End);
  4845. }
  4846. }
  4847. public int CalculateSize() {
  4848. int size = 0;
  4849. size += path_.CalculateSize(_repeated_path_codec);
  4850. if (SourceFile.Length != 0) {
  4851. size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceFile);
  4852. }
  4853. if (Begin != 0) {
  4854. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Begin);
  4855. }
  4856. if (End != 0) {
  4857. size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
  4858. }
  4859. return size;
  4860. }
  4861. public void MergeFrom(Annotation other) {
  4862. if (other == null) {
  4863. return;
  4864. }
  4865. path_.Add(other.path_);
  4866. if (other.SourceFile.Length != 0) {
  4867. SourceFile = other.SourceFile;
  4868. }
  4869. if (other.Begin != 0) {
  4870. Begin = other.Begin;
  4871. }
  4872. if (other.End != 0) {
  4873. End = other.End;
  4874. }
  4875. }
  4876. public void MergeFrom(pb::CodedInputStream input) {
  4877. uint tag;
  4878. while ((tag = input.ReadTag()) != 0) {
  4879. switch(tag) {
  4880. default:
  4881. input.SkipLastField();
  4882. break;
  4883. case 10:
  4884. case 8: {
  4885. path_.AddEntriesFrom(input, _repeated_path_codec);
  4886. break;
  4887. }
  4888. case 18: {
  4889. SourceFile = input.ReadString();
  4890. break;
  4891. }
  4892. case 24: {
  4893. Begin = input.ReadInt32();
  4894. break;
  4895. }
  4896. case 32: {
  4897. End = input.ReadInt32();
  4898. break;
  4899. }
  4900. }
  4901. }
  4902. }
  4903. }
  4904. }
  4905. #endregion
  4906. }
  4907. #endregion
  4908. }
  4909. #endregion Designer generated code