123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/descriptor.proto
- #pragma warning disable 1591, 0612, 3021
- #region Designer generated code
- using pb = global::Google.Protobuf;
- using pbc = global::Google.Protobuf.Collections;
- using pbr = global::Google.Protobuf.Reflection;
- using scg = global::System.Collections.Generic;
- namespace Google.Protobuf.Reflection {
- /// <summary>Holder for reflection information generated from google/protobuf/descriptor.proto</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal static partial class DescriptorReflection {
- #region Descriptor
- /// <summary>File descriptor for google/protobuf/descriptor.proto</summary>
- public static pbr::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbr::FileDescriptor descriptor;
- static DescriptorReflection() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- string.Concat(
- "CiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxIPZ29vZ2xlLnBy",
- "b3RvYnVmIkcKEUZpbGVEZXNjcmlwdG9yU2V0EjIKBGZpbGUYASADKAsyJC5n",
- "b29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90byLbAwoTRmlsZURl",
- "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg8KB3BhY2thZ2UYAiABKAkS",
- "EgoKZGVwZW5kZW5jeRgDIAMoCRIZChFwdWJsaWNfZGVwZW5kZW5jeRgKIAMo",
- "BRIXCg93ZWFrX2RlcGVuZGVuY3kYCyADKAUSNgoMbWVzc2FnZV90eXBlGAQg",
- "AygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQcm90bxI3CgllbnVt",
- "X3R5cGUYBSADKAsyJC5nb29nbGUucHJvdG9idWYuRW51bURlc2NyaXB0b3JQ",
- "cm90bxI4CgdzZXJ2aWNlGAYgAygLMicuZ29vZ2xlLnByb3RvYnVmLlNlcnZp",
- "Y2VEZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAcgAygLMiUuZ29vZ2xl",
- "LnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMYCCAB",
- "KAsyHC5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMSOQoQc291cmNlX2Nv",
- "ZGVfaW5mbxgJIAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5m",
- "bxIOCgZzeW50YXgYDCABKAki8AQKD0Rlc2NyaXB0b3JQcm90bxIMCgRuYW1l",
- "GAEgASgJEjQKBWZpZWxkGAIgAygLMiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxk",
- "RGVzY3JpcHRvclByb3RvEjgKCWV4dGVuc2lvbhgGIAMoCzIlLmdvb2dsZS5w",
- "cm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90bxI1CgtuZXN0ZWRfdHlwZRgD",
- "IAMoCzIgLmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8SNwoJZW51",
- "bV90eXBlGAQgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9y",
- "UHJvdG8SSAoPZXh0ZW5zaW9uX3JhbmdlGAUgAygLMi8uZ29vZ2xlLnByb3Rv",
- "YnVmLkRlc2NyaXB0b3JQcm90by5FeHRlbnNpb25SYW5nZRI5CgpvbmVvZl9k",
- "ZWNsGAggAygLMiUuZ29vZ2xlLnByb3RvYnVmLk9uZW9mRGVzY3JpcHRvclBy",
- "b3RvEjAKB29wdGlvbnMYByABKAsyHy5nb29nbGUucHJvdG9idWYuTWVzc2Fn",
- "ZU9wdGlvbnMSRgoOcmVzZXJ2ZWRfcmFuZ2UYCSADKAsyLi5nb29nbGUucHJv",
- "dG9idWYuRGVzY3JpcHRvclByb3RvLlJlc2VydmVkUmFuZ2USFQoNcmVzZXJ2",
- "ZWRfbmFtZRgKIAMoCRosCg5FeHRlbnNpb25SYW5nZRINCgVzdGFydBgBIAEo",
- "BRILCgNlbmQYAiABKAUaKwoNUmVzZXJ2ZWRSYW5nZRINCgVzdGFydBgBIAEo",
- "BRILCgNlbmQYAiABKAUivAUKFEZpZWxkRGVzY3JpcHRvclByb3RvEgwKBG5h",
- "bWUYASABKAkSDgoGbnVtYmVyGAMgASgFEjoKBWxhYmVsGAQgASgOMisuZ29v",
- "Z2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvLkxhYmVsEjgKBHR5",
- "cGUYBSABKA4yKi5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJv",
- "dG8uVHlwZRIRCgl0eXBlX25hbWUYBiABKAkSEAoIZXh0ZW5kZWUYAiABKAkS",
- "FQoNZGVmYXVsdF92YWx1ZRgHIAEoCRITCgtvbmVvZl9pbmRleBgJIAEoBRIR",
- "Cglqc29uX25hbWUYCiABKAkSLgoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5w",
- "cm90b2J1Zi5GaWVsZE9wdGlvbnMitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQ",
- "ARIOCgpUWVBFX0ZMT0FUEAISDgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlO",
- "VDY0EAQSDgoKVFlQRV9JTlQzMhAFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZ",
- "UEVfRklYRUQzMhAHEg0KCVRZUEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkS",
- "DgoKVFlQRV9HUk9VUBAKEhAKDFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllU",
- "RVMQDBIPCgtUWVBFX1VJTlQzMhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVf",
- "U0ZJWEVEMzIQDxIRCg1UWVBFX1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQ",
- "ERIPCgtUWVBFX1NJTlQ2NBASIkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFM",
- "EAESEgoOTEFCRUxfUkVRVUlSRUQQAhISCg5MQUJFTF9SRVBFQVRFRBADIiQK",
- "FE9uZW9mRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkijAEKE0VudW1E",
- "ZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI4CgV2YWx1ZRgCIAMoCzIp",
- "Lmdvb2dsZS5wcm90b2J1Zi5FbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SLQoH",
- "b3B0aW9ucxgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9ucyJs",
- "ChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRIOCgZu",
- "dW1iZXIYAiABKAUSMgoHb3B0aW9ucxgDIAEoCzIhLmdvb2dsZS5wcm90b2J1",
- "Zi5FbnVtVmFsdWVPcHRpb25zIpABChZTZXJ2aWNlRGVzY3JpcHRvclByb3Rv",
- "EgwKBG5hbWUYASABKAkSNgoGbWV0aG9kGAIgAygLMiYuZ29vZ2xlLnByb3Rv",
- "YnVmLk1ldGhvZERlc2NyaXB0b3JQcm90bxIwCgdvcHRpb25zGAMgASgLMh8u",
- "Z29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zIsEBChVNZXRob2REZXNj",
- "cmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRISCgppbnB1dF90eXBlGAIgASgJ",
- "EhMKC291dHB1dF90eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5nb29n",
- "bGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxIfChBjbGllbnRfc3RyZWFtaW5n",
- "GAUgASgIOgVmYWxzZRIfChBzZXJ2ZXJfc3RyZWFtaW5nGAYgASgIOgVmYWxz",
- "ZSKHBQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwKFGph",
- "dmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFfbXVsdGlwbGVfZmls",
- "ZXMYCiABKAg6BWZhbHNlEiwKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2FuZF9o",
- "YXNoGBQgASgIOgVmYWxzZRIlChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsg",
- "ASgIOgVmYWxzZRJGCgxvcHRpbWl6ZV9mb3IYCSABKA4yKS5nb29nbGUucHJv",
- "dG9idWYuRmlsZU9wdGlvbnMuT3B0aW1pemVNb2RlOgVTUEVFRBISCgpnb19w",
- "YWNrYWdlGAsgASgJEiIKE2NjX2dlbmVyaWNfc2VydmljZXMYECABKAg6BWZh",
- "bHNlEiQKFWphdmFfZ2VuZXJpY19zZXJ2aWNlcxgRIAEoCDoFZmFsc2USIgoT",
- "cHlfZ2VuZXJpY19zZXJ2aWNlcxgSIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRl",
- "ZBgXIAEoCDoFZmFsc2USHwoQY2NfZW5hYmxlX2FyZW5hcxgfIAEoCDoFZmFs",
- "c2USGQoRb2JqY19jbGFzc19wcmVmaXgYJCABKAkSGAoQY3NoYXJwX25hbWVz",
- "cGFjZRglIAEoCRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5n",
- "b29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbiI6CgxPcHRpbWl6",
- "ZU1vZGUSCQoFU1BFRUQQARINCglDT0RFX1NJWkUQAhIQCgxMSVRFX1JVTlRJ",
- "TUUQAyoJCOgHEICAgIACSgQIJhAnIuYBCg5NZXNzYWdlT3B0aW9ucxImChdt",
- "ZXNzYWdlX3NldF93aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2USLgofbm9fc3Rh",
- "bmRhcmRfZGVzY3JpcHRvcl9hY2Nlc3NvchgCIAEoCDoFZmFsc2USGQoKZGVw",
- "cmVjYXRlZBgDIAEoCDoFZmFsc2USEQoJbWFwX2VudHJ5GAcgASgIEkMKFHVu",
- "aW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5V",
- "bmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIimAMKDEZpZWxkT3B0aW9u",
- "cxI6CgVjdHlwZRgBIAEoDjIjLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlv",
- "bnMuQ1R5cGU6BlNUUklORxIOCgZwYWNrZWQYAiABKAgSPwoGanN0eXBlGAYg",
- "ASgOMiQuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5KU1R5cGU6CUpT",
- "X05PUk1BTBITCgRsYXp5GAUgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVkGAMg",
- "ASgIOgVmYWxzZRITCgR3ZWFrGAogASgIOgVmYWxzZRJDChR1bmludGVycHJl",
- "dGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnBy",
- "ZXRlZE9wdGlvbiIvCgVDVHlwZRIKCgZTVFJJTkcQABIICgRDT1JEEAESEAoM",
- "U1RSSU5HX1BJRUNFEAIiNQoGSlNUeXBlEg0KCUpTX05PUk1BTBAAEg0KCUpT",
- "X1NUUklORxABEg0KCUpTX05VTUJFUhACKgkI6AcQgICAgAIijQEKC0VudW1P",
- "cHRpb25zEhMKC2FsbG93X2FsaWFzGAIgASgIEhkKCmRlcHJlY2F0ZWQYAyAB",
- "KAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdv",
- "b2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIi",
- "fQoQRW51bVZhbHVlT3B0aW9ucxIZCgpkZXByZWNhdGVkGAEgASgIOgVmYWxz",
- "ZRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJv",
- "dG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACInsKDlNlcnZp",
- "Y2VPcHRpb25zEhkKCmRlcHJlY2F0ZWQYISABKAg6BWZhbHNlEkMKFHVuaW50",
- "ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu",
- "dGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIiegoNTWV0aG9kT3B0aW9ucxIZ",
- "CgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29w",
- "dGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9w",
- "dGlvbioJCOgHEICAgIACIp4CChNVbmludGVycHJldGVkT3B0aW9uEjsKBG5h",
- "bWUYAiADKAsyLS5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlv",
- "bi5OYW1lUGFydBIYChBpZGVudGlmaWVyX3ZhbHVlGAMgASgJEhoKEnBvc2l0",
- "aXZlX2ludF92YWx1ZRgEIAEoBBIaChJuZWdhdGl2ZV9pbnRfdmFsdWUYBSAB",
- "KAMSFAoMZG91YmxlX3ZhbHVlGAYgASgBEhQKDHN0cmluZ192YWx1ZRgHIAEo",
- "DBIXCg9hZ2dyZWdhdGVfdmFsdWUYCCABKAkaMwoITmFtZVBhcnQSEQoJbmFt",
- "ZV9wYXJ0GAEgAigJEhQKDGlzX2V4dGVuc2lvbhgCIAIoCCLVAQoOU291cmNl",
- "Q29kZUluZm8SOgoIbG9jYXRpb24YASADKAsyKC5nb29nbGUucHJvdG9idWYu",
- "U291cmNlQ29kZUluZm8uTG9jYXRpb24ahgEKCExvY2F0aW9uEhAKBHBhdGgY",
- "ASADKAVCAhABEhAKBHNwYW4YAiADKAVCAhABEhgKEGxlYWRpbmdfY29tbWVu",
- "dHMYAyABKAkSGQoRdHJhaWxpbmdfY29tbWVudHMYBCABKAkSIQoZbGVhZGlu",
- "Z19kZXRhY2hlZF9jb21tZW50cxgGIAMoCSKnAQoRR2VuZXJhdGVkQ29kZUlu",
- "Zm8SQQoKYW5ub3RhdGlvbhgBIAMoCzItLmdvb2dsZS5wcm90b2J1Zi5HZW5l",
- "cmF0ZWRDb2RlSW5mby5Bbm5vdGF0aW9uGk8KCkFubm90YXRpb24SEAoEcGF0",
- "aBgBIAMoBUICEAESEwoLc291cmNlX2ZpbGUYAiABKAkSDQoFYmVnaW4YAyAB",
- "KAUSCwoDZW5kGAQgASgFQlgKE2NvbS5nb29nbGUucHJvdG9idWZCEERlc2Ny",
- "aXB0b3JQcm90b3NIAVoKZGVzY3JpcHRvcqICA0dQQqoCGkdvb2dsZS5Qcm90",
- "b2J1Zi5SZWZsZWN0aW9u"));
- descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
- new pbr::FileDescriptor[] { },
- new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.FileDescriptorSet), global::Google.Protobuf.Reflection.FileDescriptorSet.Parser, new[]{ "File" }, null, null, null),
- 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),
- 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),
- 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)}),
- 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),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.OneofDescriptorProto), global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser, new[]{ "Name" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumDescriptorProto), global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser, new[]{ "Name", "Value", "Options" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null),
- 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),
- 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),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, new[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption" }, null, null, null),
- 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),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumOptions), global::Google.Protobuf.Reflection.EnumOptions.Parser, new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.EnumValueOptions), global::Google.Protobuf.Reflection.EnumValueOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.ServiceOptions), global::Google.Protobuf.Reflection.ServiceOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.MethodOptions), global::Google.Protobuf.Reflection.MethodOptions.Parser, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
- 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)}),
- 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)}),
- 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)})
- }));
- }
- #endregion
- }
- #region Messages
- /// <summary>
- /// The protocol compiler can output a FileDescriptorSet containing the .proto
- /// files it parses.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorSet> {
- private static readonly pb::MessageParser<FileDescriptorSet> _parser = new pb::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet());
- public static pb::MessageParser<FileDescriptorSet> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[0]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public FileDescriptorSet() {
- OnConstruction();
- }
- partial void OnConstruction();
- public FileDescriptorSet(FileDescriptorSet other) : this() {
- file_ = other.file_.Clone();
- }
- public FileDescriptorSet Clone() {
- return new FileDescriptorSet(this);
- }
- /// <summary>Field number for the "file" field.</summary>
- public const int FileFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_file_codec
- = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> File {
- get { return file_; }
- }
- public override bool Equals(object other) {
- return Equals(other as FileDescriptorSet);
- }
- public bool Equals(FileDescriptorSet other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!file_.Equals(other.file_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- hash ^= file_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- file_.WriteTo(output, _repeated_file_codec);
- }
- public int CalculateSize() {
- int size = 0;
- size += file_.CalculateSize(_repeated_file_codec);
- return size;
- }
- public void MergeFrom(FileDescriptorSet other) {
- if (other == null) {
- return;
- }
- file_.Add(other.file_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- file_.AddEntriesFrom(input, _repeated_file_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Describes a complete .proto file.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescriptorProto> {
- private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto());
- public static pb::MessageParser<FileDescriptorProto> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[1]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public FileDescriptorProto() {
- OnConstruction();
- }
- partial void OnConstruction();
- public FileDescriptorProto(FileDescriptorProto other) : this() {
- name_ = other.name_;
- package_ = other.package_;
- dependency_ = other.dependency_.Clone();
- publicDependency_ = other.publicDependency_.Clone();
- weakDependency_ = other.weakDependency_.Clone();
- messageType_ = other.messageType_.Clone();
- enumType_ = other.enumType_.Clone();
- service_ = other.service_.Clone();
- extension_ = other.extension_.Clone();
- Options = other.options_ != null ? other.Options.Clone() : null;
- SourceCodeInfo = other.sourceCodeInfo_ != null ? other.SourceCodeInfo.Clone() : null;
- syntax_ = other.syntax_;
- }
- public FileDescriptorProto Clone() {
- return new FileDescriptorProto(this);
- }
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- /// <summary>
- /// file name, relative to root of source tree
- /// </summary>
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "package" field.</summary>
- public const int PackageFieldNumber = 2;
- private string package_ = "";
- /// <summary>
- /// e.g. "foo", "foo.bar", etc.
- /// </summary>
- public string Package {
- get { return package_; }
- set {
- package_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "dependency" field.</summary>
- public const int DependencyFieldNumber = 3;
- private static readonly pb::FieldCodec<string> _repeated_dependency_codec
- = pb::FieldCodec.ForString(26);
- private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedField<string>();
- /// <summary>
- /// Names of files imported by this file.
- /// </summary>
- public pbc::RepeatedField<string> Dependency {
- get { return dependency_; }
- }
- /// <summary>Field number for the "public_dependency" field.</summary>
- public const int PublicDependencyFieldNumber = 10;
- private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec
- = pb::FieldCodec.ForInt32(80);
- private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Indexes of the public imported files in the dependency list above.
- /// </summary>
- public pbc::RepeatedField<int> PublicDependency {
- get { return publicDependency_; }
- }
- /// <summary>Field number for the "weak_dependency" field.</summary>
- public const int WeakDependencyFieldNumber = 11;
- private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec
- = pb::FieldCodec.ForInt32(88);
- private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Indexes of the weak imported files in the dependency list.
- /// For Google-internal migration only. Do not use.
- /// </summary>
- public pbc::RepeatedField<int> WeakDependency {
- get { return weakDependency_; }
- }
- /// <summary>Field number for the "message_type" field.</summary>
- public const int MessageTypeFieldNumber = 4;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_messageType_codec
- = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
- /// <summary>
- /// All top-level definitions in this file.
- /// </summary>
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> MessageType {
- get { return messageType_; }
- }
- /// <summary>Field number for the "enum_type" field.</summary>
- public const int EnumTypeFieldNumber = 5;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
- = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
- get { return enumType_; }
- }
- /// <summary>Field number for the "service" field.</summary>
- public const int ServiceFieldNumber = 6;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.ServiceDescriptorProto> _repeated_service_codec
- = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.ServiceDescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescriptorProto> Service {
- get { return service_; }
- }
- /// <summary>Field number for the "extension" field.</summary>
- public const int ExtensionFieldNumber = 7;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
- = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
- get { return extension_; }
- }
- /// <summary>Field number for the "options" field.</summary>
- public const int OptionsFieldNumber = 8;
- private global::Google.Protobuf.Reflection.FileOptions options_;
- public global::Google.Protobuf.Reflection.FileOptions Options {
- get { return options_; }
- set {
- options_ = value;
- }
- }
- /// <summary>Field number for the "source_code_info" field.</summary>
- public const int SourceCodeInfoFieldNumber = 9;
- private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_;
- /// <summary>
- /// This field contains optional information about the original source code.
- /// You may safely remove this entire field without harming runtime
- /// functionality of the descriptors -- the information is needed only by
- /// development tools.
- /// </summary>
- public global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo {
- get { return sourceCodeInfo_; }
- set {
- sourceCodeInfo_ = value;
- }
- }
- /// <summary>Field number for the "syntax" field.</summary>
- public const int SyntaxFieldNumber = 12;
- private string syntax_ = "";
- /// <summary>
- /// The syntax of the proto file.
- /// The supported values are "proto2" and "proto3".
- /// </summary>
- public string Syntax {
- get { return syntax_; }
- set {
- syntax_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- public override bool Equals(object other) {
- return Equals(other as FileDescriptorProto);
- }
- public bool Equals(FileDescriptorProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if (Package != other.Package) return false;
- if(!dependency_.Equals(other.dependency_)) return false;
- if(!publicDependency_.Equals(other.publicDependency_)) return false;
- if(!weakDependency_.Equals(other.weakDependency_)) return false;
- if(!messageType_.Equals(other.messageType_)) return false;
- if(!enumType_.Equals(other.enumType_)) return false;
- if(!service_.Equals(other.service_)) return false;
- if(!extension_.Equals(other.extension_)) return false;
- if (!object.Equals(Options, other.Options)) return false;
- if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false;
- if (Syntax != other.Syntax) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (Package.Length != 0) hash ^= Package.GetHashCode();
- hash ^= dependency_.GetHashCode();
- hash ^= publicDependency_.GetHashCode();
- hash ^= weakDependency_.GetHashCode();
- hash ^= messageType_.GetHashCode();
- hash ^= enumType_.GetHashCode();
- hash ^= service_.GetHashCode();
- hash ^= extension_.GetHashCode();
- if (options_ != null) hash ^= Options.GetHashCode();
- if (sourceCodeInfo_ != null) hash ^= SourceCodeInfo.GetHashCode();
- if (Syntax.Length != 0) hash ^= Syntax.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (Package.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Package);
- }
- dependency_.WriteTo(output, _repeated_dependency_codec);
- messageType_.WriteTo(output, _repeated_messageType_codec);
- enumType_.WriteTo(output, _repeated_enumType_codec);
- service_.WriteTo(output, _repeated_service_codec);
- extension_.WriteTo(output, _repeated_extension_codec);
- if (options_ != null) {
- output.WriteRawTag(66);
- output.WriteMessage(Options);
- }
- if (sourceCodeInfo_ != null) {
- output.WriteRawTag(74);
- output.WriteMessage(SourceCodeInfo);
- }
- publicDependency_.WriteTo(output, _repeated_publicDependency_codec);
- weakDependency_.WriteTo(output, _repeated_weakDependency_codec);
- if (Syntax.Length != 0) {
- output.WriteRawTag(98);
- output.WriteString(Syntax);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (Package.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Package);
- }
- size += dependency_.CalculateSize(_repeated_dependency_codec);
- size += publicDependency_.CalculateSize(_repeated_publicDependency_codec);
- size += weakDependency_.CalculateSize(_repeated_weakDependency_codec);
- size += messageType_.CalculateSize(_repeated_messageType_codec);
- size += enumType_.CalculateSize(_repeated_enumType_codec);
- size += service_.CalculateSize(_repeated_service_codec);
- size += extension_.CalculateSize(_repeated_extension_codec);
- if (options_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
- }
- if (sourceCodeInfo_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
- }
- if (Syntax.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax);
- }
- return size;
- }
- public void MergeFrom(FileDescriptorProto other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- if (other.Package.Length != 0) {
- Package = other.Package;
- }
- dependency_.Add(other.dependency_);
- publicDependency_.Add(other.publicDependency_);
- weakDependency_.Add(other.weakDependency_);
- messageType_.Add(other.messageType_);
- enumType_.Add(other.enumType_);
- service_.Add(other.service_);
- extension_.Add(other.extension_);
- if (other.options_ != null) {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.FileOptions();
- }
- Options.MergeFrom(other.Options);
- }
- if (other.sourceCodeInfo_ != null) {
- if (sourceCodeInfo_ == null) {
- sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
- }
- SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
- }
- if (other.Syntax.Length != 0) {
- Syntax = other.Syntax;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- Package = input.ReadString();
- break;
- }
- case 26: {
- dependency_.AddEntriesFrom(input, _repeated_dependency_codec);
- break;
- }
- case 34: {
- messageType_.AddEntriesFrom(input, _repeated_messageType_codec);
- break;
- }
- case 42: {
- enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
- break;
- }
- case 50: {
- service_.AddEntriesFrom(input, _repeated_service_codec);
- break;
- }
- case 58: {
- extension_.AddEntriesFrom(input, _repeated_extension_codec);
- break;
- }
- case 66: {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.FileOptions();
- }
- input.ReadMessage(options_);
- break;
- }
- case 74: {
- if (sourceCodeInfo_ == null) {
- sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInfo();
- }
- input.ReadMessage(sourceCodeInfo_);
- break;
- }
- case 82:
- case 80: {
- publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec);
- break;
- }
- case 90:
- case 88: {
- weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec);
- break;
- }
- case 98: {
- Syntax = input.ReadString();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Describes a message type.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> {
- private static readonly pb::MessageParser<DescriptorProto> _parser = new pb::MessageParser<DescriptorProto>(() => new DescriptorProto());
- public static pb::MessageParser<DescriptorProto> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[2]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public DescriptorProto() {
- OnConstruction();
- }
- partial void OnConstruction();
- public DescriptorProto(DescriptorProto other) : this() {
- name_ = other.name_;
- field_ = other.field_.Clone();
- extension_ = other.extension_.Clone();
- nestedType_ = other.nestedType_.Clone();
- enumType_ = other.enumType_.Clone();
- extensionRange_ = other.extensionRange_.Clone();
- oneofDecl_ = other.oneofDecl_.Clone();
- Options = other.options_ != null ? other.Options.Clone() : null;
- reservedRange_ = other.reservedRange_.Clone();
- reservedName_ = other.reservedName_.Clone();
- }
- public DescriptorProto Clone() {
- return new DescriptorProto(this);
- }
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "field" field.</summary>
- public const int FieldFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_field_codec
- = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Field {
- get { return field_; }
- }
- /// <summary>Field number for the "extension" field.</summary>
- public const int ExtensionFieldNumber = 6;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FieldDescriptorProto> _repeated_extension_codec
- = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.FieldDescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptorProto> Extension {
- get { return extension_; }
- }
- /// <summary>Field number for the "nested_type" field.</summary>
- public const int NestedTypeFieldNumber = 3;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto> _repeated_nestedType_codec
- = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.DescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto> NestedType {
- get { return nestedType_; }
- }
- /// <summary>Field number for the "enum_type" field.</summary>
- public const int EnumTypeFieldNumber = 4;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumDescriptorProto> _repeated_enumType_codec
- = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumDescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorProto> EnumType {
- get { return enumType_; }
- }
- /// <summary>Field number for the "extension_range" field.</summary>
- public const int ExtensionRangeFieldNumber = 5;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec
- = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange> ExtensionRange {
- get { return extensionRange_; }
- }
- /// <summary>Field number for the "oneof_decl" field.</summary>
- public const int OneofDeclFieldNumber = 8;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.OneofDescriptorProto> _repeated_oneofDecl_codec
- = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.OneofDescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptorProto> OneofDecl {
- get { return oneofDecl_; }
- }
- /// <summary>Field number for the "options" field.</summary>
- public const int OptionsFieldNumber = 7;
- private global::Google.Protobuf.Reflection.MessageOptions options_;
- public global::Google.Protobuf.Reflection.MessageOptions Options {
- get { return options_; }
- set {
- options_ = value;
- }
- }
- /// <summary>Field number for the "reserved_range" field.</summary>
- public const int ReservedRangeFieldNumber = 9;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> _repeated_reservedRange_codec
- = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange> ReservedRange {
- get { return reservedRange_; }
- }
- /// <summary>Field number for the "reserved_name" field.</summary>
- public const int ReservedNameFieldNumber = 10;
- private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
- = pb::FieldCodec.ForString(82);
- private readonly pbc::RepeatedField<string> reservedName_ = new pbc::RepeatedField<string>();
- /// <summary>
- /// Reserved field names, which may not be used by fields in the same message.
- /// A given name may only be reserved once.
- /// </summary>
- public pbc::RepeatedField<string> ReservedName {
- get { return reservedName_; }
- }
- public override bool Equals(object other) {
- return Equals(other as DescriptorProto);
- }
- public bool Equals(DescriptorProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if(!field_.Equals(other.field_)) return false;
- if(!extension_.Equals(other.extension_)) return false;
- if(!nestedType_.Equals(other.nestedType_)) return false;
- if(!enumType_.Equals(other.enumType_)) return false;
- if(!extensionRange_.Equals(other.extensionRange_)) return false;
- if(!oneofDecl_.Equals(other.oneofDecl_)) return false;
- if (!object.Equals(Options, other.Options)) return false;
- if(!reservedRange_.Equals(other.reservedRange_)) return false;
- if(!reservedName_.Equals(other.reservedName_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- hash ^= field_.GetHashCode();
- hash ^= extension_.GetHashCode();
- hash ^= nestedType_.GetHashCode();
- hash ^= enumType_.GetHashCode();
- hash ^= extensionRange_.GetHashCode();
- hash ^= oneofDecl_.GetHashCode();
- if (options_ != null) hash ^= Options.GetHashCode();
- hash ^= reservedRange_.GetHashCode();
- hash ^= reservedName_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- field_.WriteTo(output, _repeated_field_codec);
- nestedType_.WriteTo(output, _repeated_nestedType_codec);
- enumType_.WriteTo(output, _repeated_enumType_codec);
- extensionRange_.WriteTo(output, _repeated_extensionRange_codec);
- extension_.WriteTo(output, _repeated_extension_codec);
- if (options_ != null) {
- output.WriteRawTag(58);
- output.WriteMessage(Options);
- }
- oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec);
- reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
- reservedName_.WriteTo(output, _repeated_reservedName_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- size += field_.CalculateSize(_repeated_field_codec);
- size += extension_.CalculateSize(_repeated_extension_codec);
- size += nestedType_.CalculateSize(_repeated_nestedType_codec);
- size += enumType_.CalculateSize(_repeated_enumType_codec);
- size += extensionRange_.CalculateSize(_repeated_extensionRange_codec);
- size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec);
- if (options_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
- }
- size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
- size += reservedName_.CalculateSize(_repeated_reservedName_codec);
- return size;
- }
- public void MergeFrom(DescriptorProto other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- field_.Add(other.field_);
- extension_.Add(other.extension_);
- nestedType_.Add(other.nestedType_);
- enumType_.Add(other.enumType_);
- extensionRange_.Add(other.extensionRange_);
- oneofDecl_.Add(other.oneofDecl_);
- if (other.options_ != null) {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.MessageOptions();
- }
- Options.MergeFrom(other.Options);
- }
- reservedRange_.Add(other.reservedRange_);
- reservedName_.Add(other.reservedName_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- field_.AddEntriesFrom(input, _repeated_field_codec);
- break;
- }
- case 26: {
- nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec);
- break;
- }
- case 34: {
- enumType_.AddEntriesFrom(input, _repeated_enumType_codec);
- break;
- }
- case 42: {
- extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec);
- break;
- }
- case 50: {
- extension_.AddEntriesFrom(input, _repeated_extension_codec);
- break;
- }
- case 58: {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.MessageOptions();
- }
- input.ReadMessage(options_);
- break;
- }
- case 66: {
- oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec);
- break;
- }
- case 74: {
- reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec);
- break;
- }
- case 82: {
- reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the DescriptorProto message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange> {
- private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange());
- public static pb::MessageParser<ExtensionRange> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[0]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public ExtensionRange() {
- OnConstruction();
- }
- partial void OnConstruction();
- public ExtensionRange(ExtensionRange other) : this() {
- start_ = other.start_;
- end_ = other.end_;
- }
- public ExtensionRange Clone() {
- return new ExtensionRange(this);
- }
- /// <summary>Field number for the "start" field.</summary>
- public const int StartFieldNumber = 1;
- private int start_;
- public int Start {
- get { return start_; }
- set {
- start_ = value;
- }
- }
- /// <summary>Field number for the "end" field.</summary>
- public const int EndFieldNumber = 2;
- private int end_;
- public int End {
- get { return end_; }
- set {
- end_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as ExtensionRange);
- }
- public bool Equals(ExtensionRange other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Start != other.Start) return false;
- if (End != other.End) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Start != 0) hash ^= Start.GetHashCode();
- if (End != 0) hash ^= End.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Start != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Start);
- }
- if (End != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(End);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Start != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
- }
- if (End != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
- }
- return size;
- }
- public void MergeFrom(ExtensionRange other) {
- if (other == null) {
- return;
- }
- if (other.Start != 0) {
- Start = other.Start;
- }
- if (other.End != 0) {
- End = other.End;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Start = input.ReadInt32();
- break;
- }
- case 16: {
- End = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Range of reserved tag numbers. Reserved tag numbers may not be used by
- /// fields or extension ranges in the same message. Reserved ranges may
- /// not overlap.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> {
- private static readonly pb::MessageParser<ReservedRange> _parser = new pb::MessageParser<ReservedRange>(() => new ReservedRange());
- public static pb::MessageParser<ReservedRange> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorProto.Descriptor.NestedTypes[1]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public ReservedRange() {
- OnConstruction();
- }
- partial void OnConstruction();
- public ReservedRange(ReservedRange other) : this() {
- start_ = other.start_;
- end_ = other.end_;
- }
- public ReservedRange Clone() {
- return new ReservedRange(this);
- }
- /// <summary>Field number for the "start" field.</summary>
- public const int StartFieldNumber = 1;
- private int start_;
- /// <summary>
- /// Inclusive.
- /// </summary>
- public int Start {
- get { return start_; }
- set {
- start_ = value;
- }
- }
- /// <summary>Field number for the "end" field.</summary>
- public const int EndFieldNumber = 2;
- private int end_;
- /// <summary>
- /// Exclusive.
- /// </summary>
- public int End {
- get { return end_; }
- set {
- end_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as ReservedRange);
- }
- public bool Equals(ReservedRange other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Start != other.Start) return false;
- if (End != other.End) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Start != 0) hash ^= Start.GetHashCode();
- if (End != 0) hash ^= End.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Start != 0) {
- output.WriteRawTag(8);
- output.WriteInt32(Start);
- }
- if (End != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(End);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Start != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
- }
- if (End != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
- }
- return size;
- }
- public void MergeFrom(ReservedRange other) {
- if (other == null) {
- return;
- }
- if (other.Start != 0) {
- Start = other.Start;
- }
- if (other.End != 0) {
- End = other.End;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Start = input.ReadInt32();
- break;
- }
- case 16: {
- End = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- /// <summary>
- /// Describes a field within a message.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescriptorProto> {
- private static readonly pb::MessageParser<FieldDescriptorProto> _parser = new pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto());
- public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[3]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public FieldDescriptorProto() {
- OnConstruction();
- }
- partial void OnConstruction();
- public FieldDescriptorProto(FieldDescriptorProto other) : this() {
- name_ = other.name_;
- number_ = other.number_;
- label_ = other.label_;
- type_ = other.type_;
- typeName_ = other.typeName_;
- extendee_ = other.extendee_;
- defaultValue_ = other.defaultValue_;
- oneofIndex_ = other.oneofIndex_;
- jsonName_ = other.jsonName_;
- Options = other.options_ != null ? other.Options.Clone() : null;
- }
- public FieldDescriptorProto Clone() {
- return new FieldDescriptorProto(this);
- }
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "number" field.</summary>
- public const int NumberFieldNumber = 3;
- private int number_;
- public int Number {
- get { return number_; }
- set {
- number_ = value;
- }
- }
- /// <summary>Field number for the "label" field.</summary>
- public const int LabelFieldNumber = 4;
- private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_ = 0;
- public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label Label {
- get { return label_; }
- set {
- label_ = value;
- }
- }
- /// <summary>Field number for the "type" field.</summary>
- public const int TypeFieldNumber = 5;
- private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type type_ = 0;
- /// <summary>
- /// If type_name is set, this need not be set. If both this and type_name
- /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
- /// </summary>
- public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Type {
- get { return type_; }
- set {
- type_ = value;
- }
- }
- /// <summary>Field number for the "type_name" field.</summary>
- public const int TypeNameFieldNumber = 6;
- private string typeName_ = "";
- /// <summary>
- /// For message and enum types, this is the name of the type. If the name
- /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
- /// rules are used to find the type (i.e. first the nested types within this
- /// message are searched, then within the parent, on up to the root
- /// namespace).
- /// </summary>
- public string TypeName {
- get { return typeName_; }
- set {
- typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "extendee" field.</summary>
- public const int ExtendeeFieldNumber = 2;
- private string extendee_ = "";
- /// <summary>
- /// For extensions, this is the name of the type being extended. It is
- /// resolved in the same manner as type_name.
- /// </summary>
- public string Extendee {
- get { return extendee_; }
- set {
- extendee_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "default_value" field.</summary>
- public const int DefaultValueFieldNumber = 7;
- private string defaultValue_ = "";
- /// <summary>
- /// For numeric types, contains the original text representation of the value.
- /// For booleans, "true" or "false".
- /// For strings, contains the default text contents (not escaped in any way).
- /// For bytes, contains the C escaped value. All bytes >= 128 are escaped.
- /// TODO(kenton): Base-64 encode?
- /// </summary>
- public string DefaultValue {
- get { return defaultValue_; }
- set {
- defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "oneof_index" field.</summary>
- public const int OneofIndexFieldNumber = 9;
- private int oneofIndex_;
- /// <summary>
- /// If set, gives the index of a oneof in the containing type's oneof_decl
- /// list. This field is a member of that oneof.
- /// </summary>
- public int OneofIndex {
- get { return oneofIndex_; }
- set {
- oneofIndex_ = value;
- }
- }
- /// <summary>Field number for the "json_name" field.</summary>
- public const int JsonNameFieldNumber = 10;
- private string jsonName_ = "";
- /// <summary>
- /// JSON name of this field. The value is set by protocol compiler. If the
- /// user has set a "json_name" option on this field, that option's value
- /// will be used. Otherwise, it's deduced from the field's name by converting
- /// it to camelCase.
- /// </summary>
- public string JsonName {
- get { return jsonName_; }
- set {
- jsonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "options" field.</summary>
- public const int OptionsFieldNumber = 8;
- private global::Google.Protobuf.Reflection.FieldOptions options_;
- public global::Google.Protobuf.Reflection.FieldOptions Options {
- get { return options_; }
- set {
- options_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as FieldDescriptorProto);
- }
- public bool Equals(FieldDescriptorProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if (Number != other.Number) return false;
- if (Label != other.Label) return false;
- if (Type != other.Type) return false;
- if (TypeName != other.TypeName) return false;
- if (Extendee != other.Extendee) return false;
- if (DefaultValue != other.DefaultValue) return false;
- if (OneofIndex != other.OneofIndex) return false;
- if (JsonName != other.JsonName) return false;
- if (!object.Equals(Options, other.Options)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (Number != 0) hash ^= Number.GetHashCode();
- if (Label != 0) hash ^= Label.GetHashCode();
- if (Type != 0) hash ^= Type.GetHashCode();
- if (TypeName.Length != 0) hash ^= TypeName.GetHashCode();
- if (Extendee.Length != 0) hash ^= Extendee.GetHashCode();
- if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode();
- if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode();
- if (JsonName.Length != 0) hash ^= JsonName.GetHashCode();
- if (options_ != null) hash ^= Options.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (Extendee.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(Extendee);
- }
- if (Number != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(Number);
- }
- if (Label != 0) {
- output.WriteRawTag(32);
- output.WriteEnum((int) Label);
- }
- if (Type != 0) {
- output.WriteRawTag(40);
- output.WriteEnum((int) Type);
- }
- if (TypeName.Length != 0) {
- output.WriteRawTag(50);
- output.WriteString(TypeName);
- }
- if (DefaultValue.Length != 0) {
- output.WriteRawTag(58);
- output.WriteString(DefaultValue);
- }
- if (options_ != null) {
- output.WriteRawTag(66);
- output.WriteMessage(Options);
- }
- if (OneofIndex != 0) {
- output.WriteRawTag(72);
- output.WriteInt32(OneofIndex);
- }
- if (JsonName.Length != 0) {
- output.WriteRawTag(82);
- output.WriteString(JsonName);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (Number != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
- }
- if (Label != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label);
- }
- if (Type != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
- }
- if (TypeName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName);
- }
- if (Extendee.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee);
- }
- if (DefaultValue.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue);
- }
- if (OneofIndex != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(OneofIndex);
- }
- if (JsonName.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonName);
- }
- if (options_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
- }
- return size;
- }
- public void MergeFrom(FieldDescriptorProto other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- if (other.Number != 0) {
- Number = other.Number;
- }
- if (other.Label != 0) {
- Label = other.Label;
- }
- if (other.Type != 0) {
- Type = other.Type;
- }
- if (other.TypeName.Length != 0) {
- TypeName = other.TypeName;
- }
- if (other.Extendee.Length != 0) {
- Extendee = other.Extendee;
- }
- if (other.DefaultValue.Length != 0) {
- DefaultValue = other.DefaultValue;
- }
- if (other.OneofIndex != 0) {
- OneofIndex = other.OneofIndex;
- }
- if (other.JsonName.Length != 0) {
- JsonName = other.JsonName;
- }
- if (other.options_ != null) {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.FieldOptions();
- }
- Options.MergeFrom(other.Options);
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- Extendee = input.ReadString();
- break;
- }
- case 24: {
- Number = input.ReadInt32();
- break;
- }
- case 32: {
- label_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label) input.ReadEnum();
- break;
- }
- case 40: {
- type_ = (global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type) input.ReadEnum();
- break;
- }
- case 50: {
- TypeName = input.ReadString();
- break;
- }
- case 58: {
- DefaultValue = input.ReadString();
- break;
- }
- case 66: {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.FieldOptions();
- }
- input.ReadMessage(options_);
- break;
- }
- case 72: {
- OneofIndex = input.ReadInt32();
- break;
- }
- case 82: {
- JsonName = input.ReadString();
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the FieldDescriptorProto message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- internal enum Type {
- /// <summary>
- /// 0 is reserved for errors.
- /// Order is weird for historical reasons.
- /// </summary>
- [pbr::OriginalName("TYPE_DOUBLE")] Double = 1,
- [pbr::OriginalName("TYPE_FLOAT")] Float = 2,
- /// <summary>
- /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
- /// negative values are likely.
- /// </summary>
- [pbr::OriginalName("TYPE_INT64")] Int64 = 3,
- [pbr::OriginalName("TYPE_UINT64")] Uint64 = 4,
- /// <summary>
- /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
- /// negative values are likely.
- /// </summary>
- [pbr::OriginalName("TYPE_INT32")] Int32 = 5,
- [pbr::OriginalName("TYPE_FIXED64")] Fixed64 = 6,
- [pbr::OriginalName("TYPE_FIXED32")] Fixed32 = 7,
- [pbr::OriginalName("TYPE_BOOL")] Bool = 8,
- [pbr::OriginalName("TYPE_STRING")] String = 9,
- /// <summary>
- /// Tag-delimited aggregate.
- /// </summary>
- [pbr::OriginalName("TYPE_GROUP")] Group = 10,
- /// <summary>
- /// Length-delimited aggregate.
- /// </summary>
- [pbr::OriginalName("TYPE_MESSAGE")] Message = 11,
- /// <summary>
- /// New in version 2.
- /// </summary>
- [pbr::OriginalName("TYPE_BYTES")] Bytes = 12,
- [pbr::OriginalName("TYPE_UINT32")] Uint32 = 13,
- [pbr::OriginalName("TYPE_ENUM")] Enum = 14,
- [pbr::OriginalName("TYPE_SFIXED32")] Sfixed32 = 15,
- [pbr::OriginalName("TYPE_SFIXED64")] Sfixed64 = 16,
- /// <summary>
- /// Uses ZigZag encoding.
- /// </summary>
- [pbr::OriginalName("TYPE_SINT32")] Sint32 = 17,
- /// <summary>
- /// Uses ZigZag encoding.
- /// </summary>
- [pbr::OriginalName("TYPE_SINT64")] Sint64 = 18,
- }
- internal enum Label {
- /// <summary>
- /// 0 is reserved for errors
- /// </summary>
- [pbr::OriginalName("LABEL_OPTIONAL")] Optional = 1,
- [pbr::OriginalName("LABEL_REQUIRED")] Required = 2,
- /// <summary>
- /// TODO(sanjay): Should we add LABEL_MAP?
- /// </summary>
- [pbr::OriginalName("LABEL_REPEATED")] Repeated = 3,
- }
- }
- #endregion
- }
- /// <summary>
- /// Describes a oneof.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescriptorProto> {
- private static readonly pb::MessageParser<OneofDescriptorProto> _parser = new pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
- public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[4]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public OneofDescriptorProto() {
- OnConstruction();
- }
- partial void OnConstruction();
- public OneofDescriptorProto(OneofDescriptorProto other) : this() {
- name_ = other.name_;
- }
- public OneofDescriptorProto Clone() {
- return new OneofDescriptorProto(this);
- }
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- public override bool Equals(object other) {
- return Equals(other as OneofDescriptorProto);
- }
- public bool Equals(OneofDescriptorProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- return size;
- }
- public void MergeFrom(OneofDescriptorProto other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Describes an enum type.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescriptorProto> {
- private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto());
- public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[5]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public EnumDescriptorProto() {
- OnConstruction();
- }
- partial void OnConstruction();
- public EnumDescriptorProto(EnumDescriptorProto other) : this() {
- name_ = other.name_;
- value_ = other.value_.Clone();
- Options = other.options_ != null ? other.Options.Clone() : null;
- }
- public EnumDescriptorProto Clone() {
- return new EnumDescriptorProto(this);
- }
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "value" field.</summary>
- public const int ValueFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> _repeated_value_codec
- = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescriptorProto> Value {
- get { return value_; }
- }
- /// <summary>Field number for the "options" field.</summary>
- public const int OptionsFieldNumber = 3;
- private global::Google.Protobuf.Reflection.EnumOptions options_;
- public global::Google.Protobuf.Reflection.EnumOptions Options {
- get { return options_; }
- set {
- options_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as EnumDescriptorProto);
- }
- public bool Equals(EnumDescriptorProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if(!value_.Equals(other.value_)) return false;
- if (!object.Equals(Options, other.Options)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- hash ^= value_.GetHashCode();
- if (options_ != null) hash ^= Options.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- value_.WriteTo(output, _repeated_value_codec);
- if (options_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Options);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- size += value_.CalculateSize(_repeated_value_codec);
- if (options_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
- }
- return size;
- }
- public void MergeFrom(EnumDescriptorProto other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- value_.Add(other.value_);
- if (other.options_ != null) {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.EnumOptions();
- }
- Options.MergeFrom(other.Options);
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- value_.AddEntriesFrom(input, _repeated_value_codec);
- break;
- }
- case 26: {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.EnumOptions();
- }
- input.ReadMessage(options_);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Describes a value within an enum.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValueDescriptorProto> {
- private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorProto());
- public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[6]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public EnumValueDescriptorProto() {
- OnConstruction();
- }
- partial void OnConstruction();
- public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() {
- name_ = other.name_;
- number_ = other.number_;
- Options = other.options_ != null ? other.Options.Clone() : null;
- }
- public EnumValueDescriptorProto Clone() {
- return new EnumValueDescriptorProto(this);
- }
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "number" field.</summary>
- public const int NumberFieldNumber = 2;
- private int number_;
- public int Number {
- get { return number_; }
- set {
- number_ = value;
- }
- }
- /// <summary>Field number for the "options" field.</summary>
- public const int OptionsFieldNumber = 3;
- private global::Google.Protobuf.Reflection.EnumValueOptions options_;
- public global::Google.Protobuf.Reflection.EnumValueOptions Options {
- get { return options_; }
- set {
- options_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as EnumValueDescriptorProto);
- }
- public bool Equals(EnumValueDescriptorProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if (Number != other.Number) return false;
- if (!object.Equals(Options, other.Options)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (Number != 0) hash ^= Number.GetHashCode();
- if (options_ != null) hash ^= Options.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (Number != 0) {
- output.WriteRawTag(16);
- output.WriteInt32(Number);
- }
- if (options_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Options);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (Number != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
- }
- if (options_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
- }
- return size;
- }
- public void MergeFrom(EnumValueDescriptorProto other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- if (other.Number != 0) {
- Number = other.Number;
- }
- if (other.options_ != null) {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
- }
- Options.MergeFrom(other.Options);
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 16: {
- Number = input.ReadInt32();
- break;
- }
- case 26: {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
- }
- input.ReadMessage(options_);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Describes a service.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDescriptorProto> {
- private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto());
- public static pb::MessageParser<ServiceDescriptorProto> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[7]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public ServiceDescriptorProto() {
- OnConstruction();
- }
- partial void OnConstruction();
- public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
- name_ = other.name_;
- method_ = other.method_.Clone();
- Options = other.options_ != null ? other.Options.Clone() : null;
- }
- public ServiceDescriptorProto Clone() {
- return new ServiceDescriptorProto(this);
- }
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "method" field.</summary>
- public const int MethodFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.MethodDescriptorProto> _repeated_method_codec
- = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.MethodDescriptorProto.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescriptorProto> Method {
- get { return method_; }
- }
- /// <summary>Field number for the "options" field.</summary>
- public const int OptionsFieldNumber = 3;
- private global::Google.Protobuf.Reflection.ServiceOptions options_;
- public global::Google.Protobuf.Reflection.ServiceOptions Options {
- get { return options_; }
- set {
- options_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as ServiceDescriptorProto);
- }
- public bool Equals(ServiceDescriptorProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if(!method_.Equals(other.method_)) return false;
- if (!object.Equals(Options, other.Options)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- hash ^= method_.GetHashCode();
- if (options_ != null) hash ^= Options.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- method_.WriteTo(output, _repeated_method_codec);
- if (options_ != null) {
- output.WriteRawTag(26);
- output.WriteMessage(Options);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- size += method_.CalculateSize(_repeated_method_codec);
- if (options_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
- }
- return size;
- }
- public void MergeFrom(ServiceDescriptorProto other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- method_.Add(other.method_);
- if (other.options_ != null) {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
- }
- Options.MergeFrom(other.Options);
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- method_.AddEntriesFrom(input, _repeated_method_codec);
- break;
- }
- case 26: {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
- }
- input.ReadMessage(options_);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// Describes a method of a service.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescriptorProto> {
- private static readonly pb::MessageParser<MethodDescriptorProto> _parser = new pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto());
- public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[8]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public MethodDescriptorProto() {
- OnConstruction();
- }
- partial void OnConstruction();
- public MethodDescriptorProto(MethodDescriptorProto other) : this() {
- name_ = other.name_;
- inputType_ = other.inputType_;
- outputType_ = other.outputType_;
- Options = other.options_ != null ? other.Options.Clone() : null;
- clientStreaming_ = other.clientStreaming_;
- serverStreaming_ = other.serverStreaming_;
- }
- public MethodDescriptorProto Clone() {
- return new MethodDescriptorProto(this);
- }
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 1;
- private string name_ = "";
- public string Name {
- get { return name_; }
- set {
- name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "input_type" field.</summary>
- public const int InputTypeFieldNumber = 2;
- private string inputType_ = "";
- /// <summary>
- /// Input and output type names. These are resolved in the same way as
- /// FieldDescriptorProto.type_name, but must refer to a message type.
- /// </summary>
- public string InputType {
- get { return inputType_; }
- set {
- inputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "output_type" field.</summary>
- public const int OutputTypeFieldNumber = 3;
- private string outputType_ = "";
- public string OutputType {
- get { return outputType_; }
- set {
- outputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "options" field.</summary>
- public const int OptionsFieldNumber = 4;
- private global::Google.Protobuf.Reflection.MethodOptions options_;
- public global::Google.Protobuf.Reflection.MethodOptions Options {
- get { return options_; }
- set {
- options_ = value;
- }
- }
- /// <summary>Field number for the "client_streaming" field.</summary>
- public const int ClientStreamingFieldNumber = 5;
- private bool clientStreaming_;
- /// <summary>
- /// Identifies if client streams multiple client messages
- /// </summary>
- public bool ClientStreaming {
- get { return clientStreaming_; }
- set {
- clientStreaming_ = value;
- }
- }
- /// <summary>Field number for the "server_streaming" field.</summary>
- public const int ServerStreamingFieldNumber = 6;
- private bool serverStreaming_;
- /// <summary>
- /// Identifies if server streams multiple server messages
- /// </summary>
- public bool ServerStreaming {
- get { return serverStreaming_; }
- set {
- serverStreaming_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as MethodDescriptorProto);
- }
- public bool Equals(MethodDescriptorProto other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Name != other.Name) return false;
- if (InputType != other.InputType) return false;
- if (OutputType != other.OutputType) return false;
- if (!object.Equals(Options, other.Options)) return false;
- if (ClientStreaming != other.ClientStreaming) return false;
- if (ServerStreaming != other.ServerStreaming) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Name.Length != 0) hash ^= Name.GetHashCode();
- if (InputType.Length != 0) hash ^= InputType.GetHashCode();
- if (OutputType.Length != 0) hash ^= OutputType.GetHashCode();
- if (options_ != null) hash ^= Options.GetHashCode();
- if (ClientStreaming != false) hash ^= ClientStreaming.GetHashCode();
- if (ServerStreaming != false) hash ^= ServerStreaming.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Name.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(Name);
- }
- if (InputType.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(InputType);
- }
- if (OutputType.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(OutputType);
- }
- if (options_ != null) {
- output.WriteRawTag(34);
- output.WriteMessage(Options);
- }
- if (ClientStreaming != false) {
- output.WriteRawTag(40);
- output.WriteBool(ClientStreaming);
- }
- if (ServerStreaming != false) {
- output.WriteRawTag(48);
- output.WriteBool(ServerStreaming);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (Name.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
- }
- if (InputType.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType);
- }
- if (OutputType.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
- }
- if (options_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
- }
- if (ClientStreaming != false) {
- size += 1 + 1;
- }
- if (ServerStreaming != false) {
- size += 1 + 1;
- }
- return size;
- }
- public void MergeFrom(MethodDescriptorProto other) {
- if (other == null) {
- return;
- }
- if (other.Name.Length != 0) {
- Name = other.Name;
- }
- if (other.InputType.Length != 0) {
- InputType = other.InputType;
- }
- if (other.OutputType.Length != 0) {
- OutputType = other.OutputType;
- }
- if (other.options_ != null) {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.MethodOptions();
- }
- Options.MergeFrom(other.Options);
- }
- if (other.ClientStreaming != false) {
- ClientStreaming = other.ClientStreaming;
- }
- if (other.ServerStreaming != false) {
- ServerStreaming = other.ServerStreaming;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- Name = input.ReadString();
- break;
- }
- case 18: {
- InputType = input.ReadString();
- break;
- }
- case 26: {
- OutputType = input.ReadString();
- break;
- }
- case 34: {
- if (options_ == null) {
- options_ = new global::Google.Protobuf.Reflection.MethodOptions();
- }
- input.ReadMessage(options_);
- break;
- }
- case 40: {
- ClientStreaming = input.ReadBool();
- break;
- }
- case 48: {
- ServerStreaming = input.ReadBool();
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class FileOptions : pb::IMessage<FileOptions> {
- private static readonly pb::MessageParser<FileOptions> _parser = new pb::MessageParser<FileOptions>(() => new FileOptions());
- public static pb::MessageParser<FileOptions> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[9]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public FileOptions() {
- OnConstruction();
- }
- partial void OnConstruction();
- public FileOptions(FileOptions other) : this() {
- javaPackage_ = other.javaPackage_;
- javaOuterClassname_ = other.javaOuterClassname_;
- javaMultipleFiles_ = other.javaMultipleFiles_;
- javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_;
- javaStringCheckUtf8_ = other.javaStringCheckUtf8_;
- optimizeFor_ = other.optimizeFor_;
- goPackage_ = other.goPackage_;
- ccGenericServices_ = other.ccGenericServices_;
- javaGenericServices_ = other.javaGenericServices_;
- pyGenericServices_ = other.pyGenericServices_;
- deprecated_ = other.deprecated_;
- ccEnableArenas_ = other.ccEnableArenas_;
- objcClassPrefix_ = other.objcClassPrefix_;
- csharpNamespace_ = other.csharpNamespace_;
- uninterpretedOption_ = other.uninterpretedOption_.Clone();
- }
- public FileOptions Clone() {
- return new FileOptions(this);
- }
- /// <summary>Field number for the "java_package" field.</summary>
- public const int JavaPackageFieldNumber = 1;
- private string javaPackage_ = "";
- /// <summary>
- /// Sets the Java package where classes generated from this .proto will be
- /// placed. By default, the proto package is used, but this is often
- /// inappropriate because proto packages do not normally start with backwards
- /// domain names.
- /// </summary>
- public string JavaPackage {
- get { return javaPackage_; }
- set {
- javaPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "java_outer_classname" field.</summary>
- public const int JavaOuterClassnameFieldNumber = 8;
- private string javaOuterClassname_ = "";
- /// <summary>
- /// If set, all the classes from the .proto file are wrapped in a single
- /// outer class with the given name. This applies to both Proto1
- /// (equivalent to the old "--one_java_file" option) and Proto2 (where
- /// a .proto always translates to a single class, but you may want to
- /// explicitly choose the class name).
- /// </summary>
- public string JavaOuterClassname {
- get { return javaOuterClassname_; }
- set {
- javaOuterClassname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "java_multiple_files" field.</summary>
- public const int JavaMultipleFilesFieldNumber = 10;
- private bool javaMultipleFiles_;
- /// <summary>
- /// If set true, then the Java code generator will generate a separate .java
- /// file for each top-level message, enum, and service defined in the .proto
- /// file. Thus, these types will *not* be nested inside the outer class
- /// named by java_outer_classname. However, the outer class will still be
- /// generated to contain the file's getDescriptor() method as well as any
- /// top-level extensions defined in the file.
- /// </summary>
- public bool JavaMultipleFiles {
- get { return javaMultipleFiles_; }
- set {
- javaMultipleFiles_ = value;
- }
- }
- /// <summary>Field number for the "java_generate_equals_and_hash" field.</summary>
- public const int JavaGenerateEqualsAndHashFieldNumber = 20;
- private bool javaGenerateEqualsAndHash_;
- /// <summary>
- /// If set true, then the Java code generator will generate equals() and
- /// hashCode() methods for all messages defined in the .proto file.
- /// This increases generated code size, potentially substantially for large
- /// protos, which may harm a memory-constrained application.
- /// - In the full runtime this is a speed optimization, as the
- /// AbstractMessage base class includes reflection-based implementations of
- /// these methods.
- /// - In the lite runtime, setting this option changes the semantics of
- /// equals() and hashCode() to more closely match those of the full runtime;
- /// the generated methods compute their results based on field values rather
- /// than object identity. (Implementations should not assume that hashcodes
- /// will be consistent across runtimes or versions of the protocol compiler.)
- /// </summary>
- public bool JavaGenerateEqualsAndHash {
- get { return javaGenerateEqualsAndHash_; }
- set {
- javaGenerateEqualsAndHash_ = value;
- }
- }
- /// <summary>Field number for the "java_string_check_utf8" field.</summary>
- public const int JavaStringCheckUtf8FieldNumber = 27;
- private bool javaStringCheckUtf8_;
- /// <summary>
- /// If set true, then the Java2 code generator will generate code that
- /// throws an exception whenever an attempt is made to assign a non-UTF-8
- /// byte sequence to a string field.
- /// Message reflection will do the same.
- /// However, an extension field still accepts non-UTF-8 byte sequences.
- /// This option has no effect on when used with the lite runtime.
- /// </summary>
- public bool JavaStringCheckUtf8 {
- get { return javaStringCheckUtf8_; }
- set {
- javaStringCheckUtf8_ = value;
- }
- }
- /// <summary>Field number for the "optimize_for" field.</summary>
- public const int OptimizeForFieldNumber = 9;
- private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode optimizeFor_ = 0;
- public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode OptimizeFor {
- get { return optimizeFor_; }
- set {
- optimizeFor_ = value;
- }
- }
- /// <summary>Field number for the "go_package" field.</summary>
- public const int GoPackageFieldNumber = 11;
- private string goPackage_ = "";
- /// <summary>
- /// Sets the Go package where structs generated from this .proto will be
- /// placed. If omitted, the Go package will be derived from the following:
- /// - The basename of the package import path, if provided.
- /// - Otherwise, the package statement in the .proto file, if present.
- /// - Otherwise, the basename of the .proto file, without extension.
- /// </summary>
- public string GoPackage {
- get { return goPackage_; }
- set {
- goPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "cc_generic_services" field.</summary>
- public const int CcGenericServicesFieldNumber = 16;
- private bool ccGenericServices_;
- /// <summary>
- /// Should generic services be generated in each language? "Generic" services
- /// are not specific to any particular RPC system. They are generated by the
- /// main code generators in each language (without additional plugins).
- /// Generic services were the only kind of service generation supported by
- /// early versions of google.protobuf.
- ///
- /// Generic services are now considered deprecated in favor of using plugins
- /// that generate code specific to your particular RPC system. Therefore,
- /// these default to false. Old code which depends on generic services should
- /// explicitly set them to true.
- /// </summary>
- public bool CcGenericServices {
- get { return ccGenericServices_; }
- set {
- ccGenericServices_ = value;
- }
- }
- /// <summary>Field number for the "java_generic_services" field.</summary>
- public const int JavaGenericServicesFieldNumber = 17;
- private bool javaGenericServices_;
- public bool JavaGenericServices {
- get { return javaGenericServices_; }
- set {
- javaGenericServices_ = value;
- }
- }
- /// <summary>Field number for the "py_generic_services" field.</summary>
- public const int PyGenericServicesFieldNumber = 18;
- private bool pyGenericServices_;
- public bool PyGenericServices {
- get { return pyGenericServices_; }
- set {
- pyGenericServices_ = value;
- }
- }
- /// <summary>Field number for the "deprecated" field.</summary>
- public const int DeprecatedFieldNumber = 23;
- private bool deprecated_;
- /// <summary>
- /// Is this file deprecated?
- /// Depending on the target platform, this can emit Deprecated annotations
- /// for everything in the file, or it will be completely ignored; in the very
- /// least, this is a formalization for deprecating files.
- /// </summary>
- public bool Deprecated {
- get { return deprecated_; }
- set {
- deprecated_ = value;
- }
- }
- /// <summary>Field number for the "cc_enable_arenas" field.</summary>
- public const int CcEnableArenasFieldNumber = 31;
- private bool ccEnableArenas_;
- /// <summary>
- /// Enables the use of arenas for the proto messages in this file. This applies
- /// only to generated classes for C++.
- /// </summary>
- public bool CcEnableArenas {
- get { return ccEnableArenas_; }
- set {
- ccEnableArenas_ = value;
- }
- }
- /// <summary>Field number for the "objc_class_prefix" field.</summary>
- public const int ObjcClassPrefixFieldNumber = 36;
- private string objcClassPrefix_ = "";
- /// <summary>
- /// Sets the objective c class prefix which is prepended to all objective c
- /// generated classes from this .proto. There is no default.
- /// </summary>
- public string ObjcClassPrefix {
- get { return objcClassPrefix_; }
- set {
- objcClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "csharp_namespace" field.</summary>
- public const int CsharpNamespaceFieldNumber = 37;
- private string csharpNamespace_ = "";
- /// <summary>
- /// Namespace for generated classes; defaults to the package.
- /// </summary>
- public string CsharpNamespace {
- get { return csharpNamespace_; }
- set {
- csharpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "uninterpreted_option" field.</summary>
- public const int UninterpretedOptionFieldNumber = 999;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
- = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
- /// <summary>
- /// The parser stores options it doesn't recognize here. See above.
- /// </summary>
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
- get { return uninterpretedOption_; }
- }
- public override bool Equals(object other) {
- return Equals(other as FileOptions);
- }
- public bool Equals(FileOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (JavaPackage != other.JavaPackage) return false;
- if (JavaOuterClassname != other.JavaOuterClassname) return false;
- if (JavaMultipleFiles != other.JavaMultipleFiles) return false;
- if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return false;
- if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false;
- if (OptimizeFor != other.OptimizeFor) return false;
- if (GoPackage != other.GoPackage) return false;
- if (CcGenericServices != other.CcGenericServices) return false;
- if (JavaGenericServices != other.JavaGenericServices) return false;
- if (PyGenericServices != other.PyGenericServices) return false;
- if (Deprecated != other.Deprecated) return false;
- if (CcEnableArenas != other.CcEnableArenas) return false;
- if (ObjcClassPrefix != other.ObjcClassPrefix) return false;
- if (CsharpNamespace != other.CsharpNamespace) return false;
- if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode();
- if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode();
- if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode();
- if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash.GetHashCode();
- if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode();
- if (OptimizeFor != 0) hash ^= OptimizeFor.GetHashCode();
- if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode();
- if (CcGenericServices != false) hash ^= CcGenericServices.GetHashCode();
- if (JavaGenericServices != false) hash ^= JavaGenericServices.GetHashCode();
- if (PyGenericServices != false) hash ^= PyGenericServices.GetHashCode();
- if (Deprecated != false) hash ^= Deprecated.GetHashCode();
- if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode();
- if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode();
- if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode();
- hash ^= uninterpretedOption_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (JavaPackage.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(JavaPackage);
- }
- if (JavaOuterClassname.Length != 0) {
- output.WriteRawTag(66);
- output.WriteString(JavaOuterClassname);
- }
- if (OptimizeFor != 0) {
- output.WriteRawTag(72);
- output.WriteEnum((int) OptimizeFor);
- }
- if (JavaMultipleFiles != false) {
- output.WriteRawTag(80);
- output.WriteBool(JavaMultipleFiles);
- }
- if (GoPackage.Length != 0) {
- output.WriteRawTag(90);
- output.WriteString(GoPackage);
- }
- if (CcGenericServices != false) {
- output.WriteRawTag(128, 1);
- output.WriteBool(CcGenericServices);
- }
- if (JavaGenericServices != false) {
- output.WriteRawTag(136, 1);
- output.WriteBool(JavaGenericServices);
- }
- if (PyGenericServices != false) {
- output.WriteRawTag(144, 1);
- output.WriteBool(PyGenericServices);
- }
- if (JavaGenerateEqualsAndHash != false) {
- output.WriteRawTag(160, 1);
- output.WriteBool(JavaGenerateEqualsAndHash);
- }
- if (Deprecated != false) {
- output.WriteRawTag(184, 1);
- output.WriteBool(Deprecated);
- }
- if (JavaStringCheckUtf8 != false) {
- output.WriteRawTag(216, 1);
- output.WriteBool(JavaStringCheckUtf8);
- }
- if (CcEnableArenas != false) {
- output.WriteRawTag(248, 1);
- output.WriteBool(CcEnableArenas);
- }
- if (ObjcClassPrefix.Length != 0) {
- output.WriteRawTag(162, 2);
- output.WriteString(ObjcClassPrefix);
- }
- if (CsharpNamespace.Length != 0) {
- output.WriteRawTag(170, 2);
- output.WriteString(CsharpNamespace);
- }
- uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (JavaPackage.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage);
- }
- if (JavaOuterClassname.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname);
- }
- if (JavaMultipleFiles != false) {
- size += 1 + 1;
- }
- if (JavaGenerateEqualsAndHash != false) {
- size += 2 + 1;
- }
- if (JavaStringCheckUtf8 != false) {
- size += 2 + 1;
- }
- if (OptimizeFor != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor);
- }
- if (GoPackage.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage);
- }
- if (CcGenericServices != false) {
- size += 2 + 1;
- }
- if (JavaGenericServices != false) {
- size += 2 + 1;
- }
- if (PyGenericServices != false) {
- size += 2 + 1;
- }
- if (Deprecated != false) {
- size += 2 + 1;
- }
- if (CcEnableArenas != false) {
- size += 2 + 1;
- }
- if (ObjcClassPrefix.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix);
- }
- if (CsharpNamespace.Length != 0) {
- size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace);
- }
- size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
- return size;
- }
- public void MergeFrom(FileOptions other) {
- if (other == null) {
- return;
- }
- if (other.JavaPackage.Length != 0) {
- JavaPackage = other.JavaPackage;
- }
- if (other.JavaOuterClassname.Length != 0) {
- JavaOuterClassname = other.JavaOuterClassname;
- }
- if (other.JavaMultipleFiles != false) {
- JavaMultipleFiles = other.JavaMultipleFiles;
- }
- if (other.JavaGenerateEqualsAndHash != false) {
- JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash;
- }
- if (other.JavaStringCheckUtf8 != false) {
- JavaStringCheckUtf8 = other.JavaStringCheckUtf8;
- }
- if (other.OptimizeFor != 0) {
- OptimizeFor = other.OptimizeFor;
- }
- if (other.GoPackage.Length != 0) {
- GoPackage = other.GoPackage;
- }
- if (other.CcGenericServices != false) {
- CcGenericServices = other.CcGenericServices;
- }
- if (other.JavaGenericServices != false) {
- JavaGenericServices = other.JavaGenericServices;
- }
- if (other.PyGenericServices != false) {
- PyGenericServices = other.PyGenericServices;
- }
- if (other.Deprecated != false) {
- Deprecated = other.Deprecated;
- }
- if (other.CcEnableArenas != false) {
- CcEnableArenas = other.CcEnableArenas;
- }
- if (other.ObjcClassPrefix.Length != 0) {
- ObjcClassPrefix = other.ObjcClassPrefix;
- }
- if (other.CsharpNamespace.Length != 0) {
- CsharpNamespace = other.CsharpNamespace;
- }
- uninterpretedOption_.Add(other.uninterpretedOption_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- JavaPackage = input.ReadString();
- break;
- }
- case 66: {
- JavaOuterClassname = input.ReadString();
- break;
- }
- case 72: {
- optimizeFor_ = (global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) input.ReadEnum();
- break;
- }
- case 80: {
- JavaMultipleFiles = input.ReadBool();
- break;
- }
- case 90: {
- GoPackage = input.ReadString();
- break;
- }
- case 128: {
- CcGenericServices = input.ReadBool();
- break;
- }
- case 136: {
- JavaGenericServices = input.ReadBool();
- break;
- }
- case 144: {
- PyGenericServices = input.ReadBool();
- break;
- }
- case 160: {
- JavaGenerateEqualsAndHash = input.ReadBool();
- break;
- }
- case 184: {
- Deprecated = input.ReadBool();
- break;
- }
- case 216: {
- JavaStringCheckUtf8 = input.ReadBool();
- break;
- }
- case 248: {
- CcEnableArenas = input.ReadBool();
- break;
- }
- case 290: {
- ObjcClassPrefix = input.ReadString();
- break;
- }
- case 298: {
- CsharpNamespace = input.ReadString();
- break;
- }
- case 7994: {
- uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the FileOptions message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- /// <summary>
- /// Generated classes can be optimized for speed or code size.
- /// </summary>
- internal enum OptimizeMode {
- /// <summary>
- /// Generate complete code for parsing, serialization,
- /// </summary>
- [pbr::OriginalName("SPEED")] Speed = 1,
- /// <summary>
- /// etc.
- /// </summary>
- [pbr::OriginalName("CODE_SIZE")] CodeSize = 2,
- /// <summary>
- /// Generate code using MessageLite and the lite runtime.
- /// </summary>
- [pbr::OriginalName("LITE_RUNTIME")] LiteRuntime = 3,
- }
- }
- #endregion
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> {
- private static readonly pb::MessageParser<MessageOptions> _parser = new pb::MessageParser<MessageOptions>(() => new MessageOptions());
- public static pb::MessageParser<MessageOptions> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[10]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public MessageOptions() {
- OnConstruction();
- }
- partial void OnConstruction();
- public MessageOptions(MessageOptions other) : this() {
- messageSetWireFormat_ = other.messageSetWireFormat_;
- noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
- deprecated_ = other.deprecated_;
- mapEntry_ = other.mapEntry_;
- uninterpretedOption_ = other.uninterpretedOption_.Clone();
- }
- public MessageOptions Clone() {
- return new MessageOptions(this);
- }
- /// <summary>Field number for the "message_set_wire_format" field.</summary>
- public const int MessageSetWireFormatFieldNumber = 1;
- private bool messageSetWireFormat_;
- /// <summary>
- /// Set true to use the old proto1 MessageSet wire format for extensions.
- /// This is provided for backwards-compatibility with the MessageSet wire
- /// format. You should not use this for any other reason: It's less
- /// efficient, has fewer features, and is more complicated.
- ///
- /// The message must be defined exactly as follows:
- /// message Foo {
- /// option message_set_wire_format = true;
- /// extensions 4 to max;
- /// }
- /// Note that the message cannot have any defined fields; MessageSets only
- /// have extensions.
- ///
- /// All extensions of your type must be singular messages; e.g. they cannot
- /// be int32s, enums, or repeated messages.
- ///
- /// Because this is an option, the above two restrictions are not enforced by
- /// the protocol compiler.
- /// </summary>
- public bool MessageSetWireFormat {
- get { return messageSetWireFormat_; }
- set {
- messageSetWireFormat_ = value;
- }
- }
- /// <summary>Field number for the "no_standard_descriptor_accessor" field.</summary>
- public const int NoStandardDescriptorAccessorFieldNumber = 2;
- private bool noStandardDescriptorAccessor_;
- /// <summary>
- /// Disables the generation of the standard "descriptor()" accessor, which can
- /// conflict with a field of the same name. This is meant to make migration
- /// from proto1 easier; new code should avoid fields named "descriptor".
- /// </summary>
- public bool NoStandardDescriptorAccessor {
- get { return noStandardDescriptorAccessor_; }
- set {
- noStandardDescriptorAccessor_ = value;
- }
- }
- /// <summary>Field number for the "deprecated" field.</summary>
- public const int DeprecatedFieldNumber = 3;
- private bool deprecated_;
- /// <summary>
- /// Is this message deprecated?
- /// Depending on the target platform, this can emit Deprecated annotations
- /// for the message, or it will be completely ignored; in the very least,
- /// this is a formalization for deprecating messages.
- /// </summary>
- public bool Deprecated {
- get { return deprecated_; }
- set {
- deprecated_ = value;
- }
- }
- /// <summary>Field number for the "map_entry" field.</summary>
- public const int MapEntryFieldNumber = 7;
- private bool mapEntry_;
- /// <summary>
- /// Whether the message is an automatically generated map entry type for the
- /// maps field.
- ///
- /// For maps fields:
- /// map<KeyType, ValueType> map_field = 1;
- /// The parsed descriptor looks like:
- /// message MapFieldEntry {
- /// option map_entry = true;
- /// optional KeyType key = 1;
- /// optional ValueType value = 2;
- /// }
- /// repeated MapFieldEntry map_field = 1;
- ///
- /// Implementations may choose not to generate the map_entry=true message, but
- /// use a native map in the target language to hold the keys and values.
- /// The reflection APIs in such implementions still need to work as
- /// if the field is a repeated message field.
- ///
- /// NOTE: Do not set the option in .proto files. Always use the maps syntax
- /// instead. The option should only be implicitly set by the proto compiler
- /// parser.
- /// </summary>
- public bool MapEntry {
- get { return mapEntry_; }
- set {
- mapEntry_ = value;
- }
- }
- /// <summary>Field number for the "uninterpreted_option" field.</summary>
- public const int UninterpretedOptionFieldNumber = 999;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
- = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
- /// <summary>
- /// The parser stores options it doesn't recognize here. See above.
- /// </summary>
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
- get { return uninterpretedOption_; }
- }
- public override bool Equals(object other) {
- return Equals(other as MessageOptions);
- }
- public bool Equals(MessageOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (MessageSetWireFormat != other.MessageSetWireFormat) return false;
- if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) return false;
- if (Deprecated != other.Deprecated) return false;
- if (MapEntry != other.MapEntry) return false;
- if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (MessageSetWireFormat != false) hash ^= MessageSetWireFormat.GetHashCode();
- if (NoStandardDescriptorAccessor != false) hash ^= NoStandardDescriptorAccessor.GetHashCode();
- if (Deprecated != false) hash ^= Deprecated.GetHashCode();
- if (MapEntry != false) hash ^= MapEntry.GetHashCode();
- hash ^= uninterpretedOption_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (MessageSetWireFormat != false) {
- output.WriteRawTag(8);
- output.WriteBool(MessageSetWireFormat);
- }
- if (NoStandardDescriptorAccessor != false) {
- output.WriteRawTag(16);
- output.WriteBool(NoStandardDescriptorAccessor);
- }
- if (Deprecated != false) {
- output.WriteRawTag(24);
- output.WriteBool(Deprecated);
- }
- if (MapEntry != false) {
- output.WriteRawTag(56);
- output.WriteBool(MapEntry);
- }
- uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (MessageSetWireFormat != false) {
- size += 1 + 1;
- }
- if (NoStandardDescriptorAccessor != false) {
- size += 1 + 1;
- }
- if (Deprecated != false) {
- size += 1 + 1;
- }
- if (MapEntry != false) {
- size += 1 + 1;
- }
- size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
- return size;
- }
- public void MergeFrom(MessageOptions other) {
- if (other == null) {
- return;
- }
- if (other.MessageSetWireFormat != false) {
- MessageSetWireFormat = other.MessageSetWireFormat;
- }
- if (other.NoStandardDescriptorAccessor != false) {
- NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
- }
- if (other.Deprecated != false) {
- Deprecated = other.Deprecated;
- }
- if (other.MapEntry != false) {
- MapEntry = other.MapEntry;
- }
- uninterpretedOption_.Add(other.uninterpretedOption_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- MessageSetWireFormat = input.ReadBool();
- break;
- }
- case 16: {
- NoStandardDescriptorAccessor = input.ReadBool();
- break;
- }
- case 24: {
- Deprecated = input.ReadBool();
- break;
- }
- case 56: {
- MapEntry = input.ReadBool();
- break;
- }
- case 7994: {
- uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class FieldOptions : pb::IMessage<FieldOptions> {
- private static readonly pb::MessageParser<FieldOptions> _parser = new pb::MessageParser<FieldOptions>(() => new FieldOptions());
- public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[11]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public FieldOptions() {
- OnConstruction();
- }
- partial void OnConstruction();
- public FieldOptions(FieldOptions other) : this() {
- ctype_ = other.ctype_;
- packed_ = other.packed_;
- jstype_ = other.jstype_;
- lazy_ = other.lazy_;
- deprecated_ = other.deprecated_;
- weak_ = other.weak_;
- uninterpretedOption_ = other.uninterpretedOption_.Clone();
- }
- public FieldOptions Clone() {
- return new FieldOptions(this);
- }
- /// <summary>Field number for the "ctype" field.</summary>
- public const int CtypeFieldNumber = 1;
- private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ = 0;
- /// <summary>
- /// The ctype option instructs the C++ code generator to use a different
- /// representation of the field than it normally would. See the specific
- /// options below. This option is not yet implemented in the open source
- /// release -- sorry, we'll try to include it in a future version!
- /// </summary>
- public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype {
- get { return ctype_; }
- set {
- ctype_ = value;
- }
- }
- /// <summary>Field number for the "packed" field.</summary>
- public const int PackedFieldNumber = 2;
- private bool packed_;
- /// <summary>
- /// The packed option can be enabled for repeated primitive fields to enable
- /// a more efficient representation on the wire. Rather than repeatedly
- /// writing the tag and type for each element, the entire array is encoded as
- /// a single length-delimited blob. In proto3, only explicit setting it to
- /// false will avoid using packed encoding.
- /// </summary>
- public bool Packed {
- get { return packed_; }
- set {
- packed_ = value;
- }
- }
- /// <summary>Field number for the "jstype" field.</summary>
- public const int JstypeFieldNumber = 6;
- private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_ = 0;
- /// <summary>
- /// The jstype option determines the JavaScript type used for values of the
- /// field. The option is permitted only for 64 bit integral and fixed types
- /// (int64, uint64, sint64, fixed64, sfixed64). By default these types are
- /// represented as JavaScript strings. This avoids loss of precision that can
- /// happen when a large value is converted to a floating point JavaScript
- /// numbers. Specifying JS_NUMBER for the jstype causes the generated
- /// JavaScript code to use the JavaScript "number" type instead of strings.
- /// This option is an enum to permit additional types to be added,
- /// e.g. goog.math.Integer.
- /// </summary>
- public global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype {
- get { return jstype_; }
- set {
- jstype_ = value;
- }
- }
- /// <summary>Field number for the "lazy" field.</summary>
- public const int LazyFieldNumber = 5;
- private bool lazy_;
- /// <summary>
- /// Should this field be parsed lazily? Lazy applies only to message-type
- /// fields. It means that when the outer message is initially parsed, the
- /// inner message's contents will not be parsed but instead stored in encoded
- /// form. The inner message will actually be parsed when it is first accessed.
- ///
- /// This is only a hint. Implementations are free to choose whether to use
- /// eager or lazy parsing regardless of the value of this option. However,
- /// setting this option true suggests that the protocol author believes that
- /// using lazy parsing on this field is worth the additional bookkeeping
- /// overhead typically needed to implement it.
- ///
- /// This option does not affect the public interface of any generated code;
- /// all method signatures remain the same. Furthermore, thread-safety of the
- /// interface is not affected by this option; const methods remain safe to
- /// call from multiple threads concurrently, while non-const methods continue
- /// to require exclusive access.
- ///
- /// Note that implementations may choose not to check required fields within
- /// a lazy sub-message. That is, calling IsInitialized() on the outher message
- /// may return true even if the inner message has missing required fields.
- /// This is necessary because otherwise the inner message would have to be
- /// parsed in order to perform the check, defeating the purpose of lazy
- /// parsing. An implementation which chooses not to check required fields
- /// must be consistent about it. That is, for any particular sub-message, the
- /// implementation must either *always* check its required fields, or *never*
- /// check its required fields, regardless of whether or not the message has
- /// been parsed.
- /// </summary>
- public bool Lazy {
- get { return lazy_; }
- set {
- lazy_ = value;
- }
- }
- /// <summary>Field number for the "deprecated" field.</summary>
- public const int DeprecatedFieldNumber = 3;
- private bool deprecated_;
- /// <summary>
- /// Is this field deprecated?
- /// Depending on the target platform, this can emit Deprecated annotations
- /// for accessors, or it will be completely ignored; in the very least, this
- /// is a formalization for deprecating fields.
- /// </summary>
- public bool Deprecated {
- get { return deprecated_; }
- set {
- deprecated_ = value;
- }
- }
- /// <summary>Field number for the "weak" field.</summary>
- public const int WeakFieldNumber = 10;
- private bool weak_;
- /// <summary>
- /// For Google-internal migration only. Do not use.
- /// </summary>
- public bool Weak {
- get { return weak_; }
- set {
- weak_ = value;
- }
- }
- /// <summary>Field number for the "uninterpreted_option" field.</summary>
- public const int UninterpretedOptionFieldNumber = 999;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
- = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
- /// <summary>
- /// The parser stores options it doesn't recognize here. See above.
- /// </summary>
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
- get { return uninterpretedOption_; }
- }
- public override bool Equals(object other) {
- return Equals(other as FieldOptions);
- }
- public bool Equals(FieldOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Ctype != other.Ctype) return false;
- if (Packed != other.Packed) return false;
- if (Jstype != other.Jstype) return false;
- if (Lazy != other.Lazy) return false;
- if (Deprecated != other.Deprecated) return false;
- if (Weak != other.Weak) return false;
- if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Ctype != 0) hash ^= Ctype.GetHashCode();
- if (Packed != false) hash ^= Packed.GetHashCode();
- if (Jstype != 0) hash ^= Jstype.GetHashCode();
- if (Lazy != false) hash ^= Lazy.GetHashCode();
- if (Deprecated != false) hash ^= Deprecated.GetHashCode();
- if (Weak != false) hash ^= Weak.GetHashCode();
- hash ^= uninterpretedOption_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Ctype != 0) {
- output.WriteRawTag(8);
- output.WriteEnum((int) Ctype);
- }
- if (Packed != false) {
- output.WriteRawTag(16);
- output.WriteBool(Packed);
- }
- if (Deprecated != false) {
- output.WriteRawTag(24);
- output.WriteBool(Deprecated);
- }
- if (Lazy != false) {
- output.WriteRawTag(40);
- output.WriteBool(Lazy);
- }
- if (Jstype != 0) {
- output.WriteRawTag(48);
- output.WriteEnum((int) Jstype);
- }
- if (Weak != false) {
- output.WriteRawTag(80);
- output.WriteBool(Weak);
- }
- uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (Ctype != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype);
- }
- if (Packed != false) {
- size += 1 + 1;
- }
- if (Jstype != 0) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype);
- }
- if (Lazy != false) {
- size += 1 + 1;
- }
- if (Deprecated != false) {
- size += 1 + 1;
- }
- if (Weak != false) {
- size += 1 + 1;
- }
- size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
- return size;
- }
- public void MergeFrom(FieldOptions other) {
- if (other == null) {
- return;
- }
- if (other.Ctype != 0) {
- Ctype = other.Ctype;
- }
- if (other.Packed != false) {
- Packed = other.Packed;
- }
- if (other.Jstype != 0) {
- Jstype = other.Jstype;
- }
- if (other.Lazy != false) {
- Lazy = other.Lazy;
- }
- if (other.Deprecated != false) {
- Deprecated = other.Deprecated;
- }
- if (other.Weak != false) {
- Weak = other.Weak;
- }
- uninterpretedOption_.Add(other.uninterpretedOption_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- ctype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.CType) input.ReadEnum();
- break;
- }
- case 16: {
- Packed = input.ReadBool();
- break;
- }
- case 24: {
- Deprecated = input.ReadBool();
- break;
- }
- case 40: {
- Lazy = input.ReadBool();
- break;
- }
- case 48: {
- jstype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) input.ReadEnum();
- break;
- }
- case 80: {
- Weak = input.ReadBool();
- break;
- }
- case 7994: {
- uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the FieldOptions message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- internal enum CType {
- /// <summary>
- /// Default mode.
- /// </summary>
- [pbr::OriginalName("STRING")] String = 0,
- [pbr::OriginalName("CORD")] Cord = 1,
- [pbr::OriginalName("STRING_PIECE")] StringPiece = 2,
- }
- internal enum JSType {
- /// <summary>
- /// Use the default type.
- /// </summary>
- [pbr::OriginalName("JS_NORMAL")] JsNormal = 0,
- /// <summary>
- /// Use JavaScript strings.
- /// </summary>
- [pbr::OriginalName("JS_STRING")] JsString = 1,
- /// <summary>
- /// Use JavaScript numbers.
- /// </summary>
- [pbr::OriginalName("JS_NUMBER")] JsNumber = 2,
- }
- }
- #endregion
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> {
- private static readonly pb::MessageParser<EnumOptions> _parser = new pb::MessageParser<EnumOptions>(() => new EnumOptions());
- public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[12]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public EnumOptions() {
- OnConstruction();
- }
- partial void OnConstruction();
- public EnumOptions(EnumOptions other) : this() {
- allowAlias_ = other.allowAlias_;
- deprecated_ = other.deprecated_;
- uninterpretedOption_ = other.uninterpretedOption_.Clone();
- }
- public EnumOptions Clone() {
- return new EnumOptions(this);
- }
- /// <summary>Field number for the "allow_alias" field.</summary>
- public const int AllowAliasFieldNumber = 2;
- private bool allowAlias_;
- /// <summary>
- /// Set this option to true to allow mapping different tag names to the same
- /// value.
- /// </summary>
- public bool AllowAlias {
- get { return allowAlias_; }
- set {
- allowAlias_ = value;
- }
- }
- /// <summary>Field number for the "deprecated" field.</summary>
- public const int DeprecatedFieldNumber = 3;
- private bool deprecated_;
- /// <summary>
- /// Is this enum deprecated?
- /// Depending on the target platform, this can emit Deprecated annotations
- /// for the enum, or it will be completely ignored; in the very least, this
- /// is a formalization for deprecating enums.
- /// </summary>
- public bool Deprecated {
- get { return deprecated_; }
- set {
- deprecated_ = value;
- }
- }
- /// <summary>Field number for the "uninterpreted_option" field.</summary>
- public const int UninterpretedOptionFieldNumber = 999;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
- = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
- /// <summary>
- /// The parser stores options it doesn't recognize here. See above.
- /// </summary>
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
- get { return uninterpretedOption_; }
- }
- public override bool Equals(object other) {
- return Equals(other as EnumOptions);
- }
- public bool Equals(EnumOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (AllowAlias != other.AllowAlias) return false;
- if (Deprecated != other.Deprecated) return false;
- if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (AllowAlias != false) hash ^= AllowAlias.GetHashCode();
- if (Deprecated != false) hash ^= Deprecated.GetHashCode();
- hash ^= uninterpretedOption_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (AllowAlias != false) {
- output.WriteRawTag(16);
- output.WriteBool(AllowAlias);
- }
- if (Deprecated != false) {
- output.WriteRawTag(24);
- output.WriteBool(Deprecated);
- }
- uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (AllowAlias != false) {
- size += 1 + 1;
- }
- if (Deprecated != false) {
- size += 1 + 1;
- }
- size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
- return size;
- }
- public void MergeFrom(EnumOptions other) {
- if (other == null) {
- return;
- }
- if (other.AllowAlias != false) {
- AllowAlias = other.AllowAlias;
- }
- if (other.Deprecated != false) {
- Deprecated = other.Deprecated;
- }
- uninterpretedOption_.Add(other.uninterpretedOption_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 16: {
- AllowAlias = input.ReadBool();
- break;
- }
- case 24: {
- Deprecated = input.ReadBool();
- break;
- }
- case 7994: {
- uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class EnumValueOptions : pb::IMessage<EnumValueOptions> {
- private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb::MessageParser<EnumValueOptions>(() => new EnumValueOptions());
- public static pb::MessageParser<EnumValueOptions> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[13]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public EnumValueOptions() {
- OnConstruction();
- }
- partial void OnConstruction();
- public EnumValueOptions(EnumValueOptions other) : this() {
- deprecated_ = other.deprecated_;
- uninterpretedOption_ = other.uninterpretedOption_.Clone();
- }
- public EnumValueOptions Clone() {
- return new EnumValueOptions(this);
- }
- /// <summary>Field number for the "deprecated" field.</summary>
- public const int DeprecatedFieldNumber = 1;
- private bool deprecated_;
- /// <summary>
- /// Is this enum value deprecated?
- /// Depending on the target platform, this can emit Deprecated annotations
- /// for the enum value, or it will be completely ignored; in the very least,
- /// this is a formalization for deprecating enum values.
- /// </summary>
- public bool Deprecated {
- get { return deprecated_; }
- set {
- deprecated_ = value;
- }
- }
- /// <summary>Field number for the "uninterpreted_option" field.</summary>
- public const int UninterpretedOptionFieldNumber = 999;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
- = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
- /// <summary>
- /// The parser stores options it doesn't recognize here. See above.
- /// </summary>
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
- get { return uninterpretedOption_; }
- }
- public override bool Equals(object other) {
- return Equals(other as EnumValueOptions);
- }
- public bool Equals(EnumValueOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Deprecated != other.Deprecated) return false;
- if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Deprecated != false) hash ^= Deprecated.GetHashCode();
- hash ^= uninterpretedOption_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Deprecated != false) {
- output.WriteRawTag(8);
- output.WriteBool(Deprecated);
- }
- uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (Deprecated != false) {
- size += 1 + 1;
- }
- size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
- return size;
- }
- public void MergeFrom(EnumValueOptions other) {
- if (other == null) {
- return;
- }
- if (other.Deprecated != false) {
- Deprecated = other.Deprecated;
- }
- uninterpretedOption_.Add(other.uninterpretedOption_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 8: {
- Deprecated = input.ReadBool();
- break;
- }
- case 7994: {
- uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class ServiceOptions : pb::IMessage<ServiceOptions> {
- private static readonly pb::MessageParser<ServiceOptions> _parser = new pb::MessageParser<ServiceOptions>(() => new ServiceOptions());
- public static pb::MessageParser<ServiceOptions> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[14]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public ServiceOptions() {
- OnConstruction();
- }
- partial void OnConstruction();
- public ServiceOptions(ServiceOptions other) : this() {
- deprecated_ = other.deprecated_;
- uninterpretedOption_ = other.uninterpretedOption_.Clone();
- }
- public ServiceOptions Clone() {
- return new ServiceOptions(this);
- }
- /// <summary>Field number for the "deprecated" field.</summary>
- public const int DeprecatedFieldNumber = 33;
- private bool deprecated_;
- /// <summary>
- /// Is this service deprecated?
- /// Depending on the target platform, this can emit Deprecated annotations
- /// for the service, or it will be completely ignored; in the very least,
- /// this is a formalization for deprecating services.
- /// </summary>
- public bool Deprecated {
- get { return deprecated_; }
- set {
- deprecated_ = value;
- }
- }
- /// <summary>Field number for the "uninterpreted_option" field.</summary>
- public const int UninterpretedOptionFieldNumber = 999;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
- = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
- /// <summary>
- /// The parser stores options it doesn't recognize here. See above.
- /// </summary>
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
- get { return uninterpretedOption_; }
- }
- public override bool Equals(object other) {
- return Equals(other as ServiceOptions);
- }
- public bool Equals(ServiceOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Deprecated != other.Deprecated) return false;
- if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Deprecated != false) hash ^= Deprecated.GetHashCode();
- hash ^= uninterpretedOption_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Deprecated != false) {
- output.WriteRawTag(136, 2);
- output.WriteBool(Deprecated);
- }
- uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (Deprecated != false) {
- size += 2 + 1;
- }
- size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
- return size;
- }
- public void MergeFrom(ServiceOptions other) {
- if (other == null) {
- return;
- }
- if (other.Deprecated != false) {
- Deprecated = other.Deprecated;
- }
- uninterpretedOption_.Add(other.uninterpretedOption_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 264: {
- Deprecated = input.ReadBool();
- break;
- }
- case 7994: {
- uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
- break;
- }
- }
- }
- }
- }
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class MethodOptions : pb::IMessage<MethodOptions> {
- private static readonly pb::MessageParser<MethodOptions> _parser = new pb::MessageParser<MethodOptions>(() => new MethodOptions());
- public static pb::MessageParser<MethodOptions> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[15]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public MethodOptions() {
- OnConstruction();
- }
- partial void OnConstruction();
- public MethodOptions(MethodOptions other) : this() {
- deprecated_ = other.deprecated_;
- uninterpretedOption_ = other.uninterpretedOption_.Clone();
- }
- public MethodOptions Clone() {
- return new MethodOptions(this);
- }
- /// <summary>Field number for the "deprecated" field.</summary>
- public const int DeprecatedFieldNumber = 33;
- private bool deprecated_;
- /// <summary>
- /// Is this method deprecated?
- /// Depending on the target platform, this can emit Deprecated annotations
- /// for the method, or it will be completely ignored; in the very least,
- /// this is a formalization for deprecating methods.
- /// </summary>
- public bool Deprecated {
- get { return deprecated_; }
- set {
- deprecated_ = value;
- }
- }
- /// <summary>Field number for the "uninterpreted_option" field.</summary>
- public const int UninterpretedOptionFieldNumber = 999;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption> _repeated_uninterpretedOption_codec
- = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.UninterpretedOption.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption>();
- /// <summary>
- /// The parser stores options it doesn't recognize here. See above.
- /// </summary>
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption> UninterpretedOption {
- get { return uninterpretedOption_; }
- }
- public override bool Equals(object other) {
- return Equals(other as MethodOptions);
- }
- public bool Equals(MethodOptions other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (Deprecated != other.Deprecated) return false;
- if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (Deprecated != false) hash ^= Deprecated.GetHashCode();
- hash ^= uninterpretedOption_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (Deprecated != false) {
- output.WriteRawTag(136, 2);
- output.WriteBool(Deprecated);
- }
- uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
- }
- public int CalculateSize() {
- int size = 0;
- if (Deprecated != false) {
- size += 2 + 1;
- }
- size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_codec);
- return size;
- }
- public void MergeFrom(MethodOptions other) {
- if (other == null) {
- return;
- }
- if (other.Deprecated != false) {
- Deprecated = other.Deprecated;
- }
- uninterpretedOption_.Add(other.uninterpretedOption_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 264: {
- Deprecated = input.ReadBool();
- break;
- }
- case 7994: {
- uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOption_codec);
- break;
- }
- }
- }
- }
- }
- /// <summary>
- /// A message representing a option the parser does not recognize. This only
- /// appears in options protos created by the compiler::Parser class.
- /// DescriptorPool resolves these when building Descriptor objects. Therefore,
- /// options protos in descriptor objects (e.g. returned by Descriptor::options(),
- /// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
- /// in them.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class UninterpretedOption : pb::IMessage<UninterpretedOption> {
- private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption());
- public static pb::MessageParser<UninterpretedOption> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[16]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public UninterpretedOption() {
- OnConstruction();
- }
- partial void OnConstruction();
- public UninterpretedOption(UninterpretedOption other) : this() {
- name_ = other.name_.Clone();
- identifierValue_ = other.identifierValue_;
- positiveIntValue_ = other.positiveIntValue_;
- negativeIntValue_ = other.negativeIntValue_;
- doubleValue_ = other.doubleValue_;
- stringValue_ = other.stringValue_;
- aggregateValue_ = other.aggregateValue_;
- }
- public UninterpretedOption Clone() {
- return new UninterpretedOption(this);
- }
- /// <summary>Field number for the "name" field.</summary>
- public const int NameFieldNumber = 2;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> _repeated_name_codec
- = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart>();
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart> Name {
- get { return name_; }
- }
- /// <summary>Field number for the "identifier_value" field.</summary>
- public const int IdentifierValueFieldNumber = 3;
- private string identifierValue_ = "";
- /// <summary>
- /// The value of the uninterpreted option, in whatever type the tokenizer
- /// identified it as during parsing. Exactly one of these should be set.
- /// </summary>
- public string IdentifierValue {
- get { return identifierValue_; }
- set {
- identifierValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "positive_int_value" field.</summary>
- public const int PositiveIntValueFieldNumber = 4;
- private ulong positiveIntValue_;
- public ulong PositiveIntValue {
- get { return positiveIntValue_; }
- set {
- positiveIntValue_ = value;
- }
- }
- /// <summary>Field number for the "negative_int_value" field.</summary>
- public const int NegativeIntValueFieldNumber = 5;
- private long negativeIntValue_;
- public long NegativeIntValue {
- get { return negativeIntValue_; }
- set {
- negativeIntValue_ = value;
- }
- }
- /// <summary>Field number for the "double_value" field.</summary>
- public const int DoubleValueFieldNumber = 6;
- private double doubleValue_;
- public double DoubleValue {
- get { return doubleValue_; }
- set {
- doubleValue_ = value;
- }
- }
- /// <summary>Field number for the "string_value" field.</summary>
- public const int StringValueFieldNumber = 7;
- private pb::ByteString stringValue_ = pb::ByteString.Empty;
- public pb::ByteString StringValue {
- get { return stringValue_; }
- set {
- stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "aggregate_value" field.</summary>
- public const int AggregateValueFieldNumber = 8;
- private string aggregateValue_ = "";
- public string AggregateValue {
- get { return aggregateValue_; }
- set {
- aggregateValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- public override bool Equals(object other) {
- return Equals(other as UninterpretedOption);
- }
- public bool Equals(UninterpretedOption other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!name_.Equals(other.name_)) return false;
- if (IdentifierValue != other.IdentifierValue) return false;
- if (PositiveIntValue != other.PositiveIntValue) return false;
- if (NegativeIntValue != other.NegativeIntValue) return false;
- if (DoubleValue != other.DoubleValue) return false;
- if (StringValue != other.StringValue) return false;
- if (AggregateValue != other.AggregateValue) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- hash ^= name_.GetHashCode();
- if (IdentifierValue.Length != 0) hash ^= IdentifierValue.GetHashCode();
- if (PositiveIntValue != 0UL) hash ^= PositiveIntValue.GetHashCode();
- if (NegativeIntValue != 0L) hash ^= NegativeIntValue.GetHashCode();
- if (DoubleValue != 0D) hash ^= DoubleValue.GetHashCode();
- if (StringValue.Length != 0) hash ^= StringValue.GetHashCode();
- if (AggregateValue.Length != 0) hash ^= AggregateValue.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- name_.WriteTo(output, _repeated_name_codec);
- if (IdentifierValue.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(IdentifierValue);
- }
- if (PositiveIntValue != 0UL) {
- output.WriteRawTag(32);
- output.WriteUInt64(PositiveIntValue);
- }
- if (NegativeIntValue != 0L) {
- output.WriteRawTag(40);
- output.WriteInt64(NegativeIntValue);
- }
- if (DoubleValue != 0D) {
- output.WriteRawTag(49);
- output.WriteDouble(DoubleValue);
- }
- if (StringValue.Length != 0) {
- output.WriteRawTag(58);
- output.WriteBytes(StringValue);
- }
- if (AggregateValue.Length != 0) {
- output.WriteRawTag(66);
- output.WriteString(AggregateValue);
- }
- }
- public int CalculateSize() {
- int size = 0;
- size += name_.CalculateSize(_repeated_name_codec);
- if (IdentifierValue.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue);
- }
- if (PositiveIntValue != 0UL) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue);
- }
- if (NegativeIntValue != 0L) {
- size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue);
- }
- if (DoubleValue != 0D) {
- size += 1 + 8;
- }
- if (StringValue.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue);
- }
- if (AggregateValue.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue);
- }
- return size;
- }
- public void MergeFrom(UninterpretedOption other) {
- if (other == null) {
- return;
- }
- name_.Add(other.name_);
- if (other.IdentifierValue.Length != 0) {
- IdentifierValue = other.IdentifierValue;
- }
- if (other.PositiveIntValue != 0UL) {
- PositiveIntValue = other.PositiveIntValue;
- }
- if (other.NegativeIntValue != 0L) {
- NegativeIntValue = other.NegativeIntValue;
- }
- if (other.DoubleValue != 0D) {
- DoubleValue = other.DoubleValue;
- }
- if (other.StringValue.Length != 0) {
- StringValue = other.StringValue;
- }
- if (other.AggregateValue.Length != 0) {
- AggregateValue = other.AggregateValue;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 18: {
- name_.AddEntriesFrom(input, _repeated_name_codec);
- break;
- }
- case 26: {
- IdentifierValue = input.ReadString();
- break;
- }
- case 32: {
- PositiveIntValue = input.ReadUInt64();
- break;
- }
- case 40: {
- NegativeIntValue = input.ReadInt64();
- break;
- }
- case 49: {
- DoubleValue = input.ReadDouble();
- break;
- }
- case 58: {
- StringValue = input.ReadBytes();
- break;
- }
- case 66: {
- AggregateValue = input.ReadString();
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the UninterpretedOption message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- /// <summary>
- /// The name of the uninterpreted option. Each string represents a segment in
- /// a dot-separated name. is_extension is true iff a segment represents an
- /// extension (denoted with parentheses in options specs in .proto files).
- /// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
- /// "foo.(bar.baz).qux".
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class NamePart : pb::IMessage<NamePart> {
- private static readonly pb::MessageParser<NamePart> _parser = new pb::MessageParser<NamePart>(() => new NamePart());
- public static pb::MessageParser<NamePart> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.UninterpretedOption.Descriptor.NestedTypes[0]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public NamePart() {
- OnConstruction();
- }
- partial void OnConstruction();
- public NamePart(NamePart other) : this() {
- namePart_ = other.namePart_;
- isExtension_ = other.isExtension_;
- }
- public NamePart Clone() {
- return new NamePart(this);
- }
- /// <summary>Field number for the "name_part" field.</summary>
- public const int NamePart_FieldNumber = 1;
- private string namePart_ = "";
- public string NamePart_ {
- get { return namePart_; }
- set {
- namePart_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "is_extension" field.</summary>
- public const int IsExtensionFieldNumber = 2;
- private bool isExtension_;
- public bool IsExtension {
- get { return isExtension_; }
- set {
- isExtension_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as NamePart);
- }
- public bool Equals(NamePart other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if (NamePart_ != other.NamePart_) return false;
- if (IsExtension != other.IsExtension) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- if (NamePart_.Length != 0) hash ^= NamePart_.GetHashCode();
- if (IsExtension != false) hash ^= IsExtension.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- if (NamePart_.Length != 0) {
- output.WriteRawTag(10);
- output.WriteString(NamePart_);
- }
- if (IsExtension != false) {
- output.WriteRawTag(16);
- output.WriteBool(IsExtension);
- }
- }
- public int CalculateSize() {
- int size = 0;
- if (NamePart_.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_);
- }
- if (IsExtension != false) {
- size += 1 + 1;
- }
- return size;
- }
- public void MergeFrom(NamePart other) {
- if (other == null) {
- return;
- }
- if (other.NamePart_.Length != 0) {
- NamePart_ = other.NamePart_;
- }
- if (other.IsExtension != false) {
- IsExtension = other.IsExtension;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- NamePart_ = input.ReadString();
- break;
- }
- case 16: {
- IsExtension = input.ReadBool();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- /// <summary>
- /// Encapsulates information about the original source file from which a
- /// FileDescriptorProto was generated.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> {
- private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb::MessageParser<SourceCodeInfo>(() => new SourceCodeInfo());
- public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[17]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public SourceCodeInfo() {
- OnConstruction();
- }
- partial void OnConstruction();
- public SourceCodeInfo(SourceCodeInfo other) : this() {
- location_ = other.location_.Clone();
- }
- public SourceCodeInfo Clone() {
- return new SourceCodeInfo(this);
- }
- /// <summary>Field number for the "location" field.</summary>
- public const int LocationFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> _repeated_location_codec
- = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location>();
- /// <summary>
- /// A Location identifies a piece of source code in a .proto file which
- /// corresponds to a particular definition. This information is intended
- /// to be useful to IDEs, code indexers, documentation generators, and similar
- /// tools.
- ///
- /// For example, say we have a file like:
- /// message Foo {
- /// optional string foo = 1;
- /// }
- /// Let's look at just the field definition:
- /// optional string foo = 1;
- /// ^ ^^ ^^ ^ ^^^
- /// a bc de f ghi
- /// We have the following locations:
- /// span path represents
- /// [a,i) [ 4, 0, 2, 0 ] The whole field definition.
- /// [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
- /// [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
- /// [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
- /// [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
- ///
- /// Notes:
- /// - A location may refer to a repeated field itself (i.e. not to any
- /// particular index within it). This is used whenever a set of elements are
- /// logically enclosed in a single code segment. For example, an entire
- /// extend block (possibly containing multiple extension definitions) will
- /// have an outer location whose path refers to the "extensions" repeated
- /// field without an index.
- /// - Multiple locations may have the same path. This happens when a single
- /// logical declaration is spread out across multiple places. The most
- /// obvious example is the "extend" block again -- there may be multiple
- /// extend blocks in the same scope, each of which will have the same path.
- /// - A location's span is not always a subset of its parent's span. For
- /// example, the "extendee" of an extension declaration appears at the
- /// beginning of the "extend" block and is shared by all extensions within
- /// the block.
- /// - Just because a location's span is a subset of some other location's span
- /// does not mean that it is a descendent. For example, a "group" defines
- /// both a type and a field in a single declaration. Thus, the locations
- /// corresponding to the type and field and their components will overlap.
- /// - Code which tries to interpret locations should probably be designed to
- /// ignore those that it doesn't understand, as more types of locations could
- /// be recorded in the future.
- /// </summary>
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location> Location {
- get { return location_; }
- }
- public override bool Equals(object other) {
- return Equals(other as SourceCodeInfo);
- }
- public bool Equals(SourceCodeInfo other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!location_.Equals(other.location_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- hash ^= location_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- location_.WriteTo(output, _repeated_location_codec);
- }
- public int CalculateSize() {
- int size = 0;
- size += location_.CalculateSize(_repeated_location_codec);
- return size;
- }
- public void MergeFrom(SourceCodeInfo other) {
- if (other == null) {
- return;
- }
- location_.Add(other.location_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- location_.AddEntriesFrom(input, _repeated_location_codec);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the SourceCodeInfo message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class Location : pb::IMessage<Location> {
- private static readonly pb::MessageParser<Location> _parser = new pb::MessageParser<Location>(() => new Location());
- public static pb::MessageParser<Location> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descriptor.NestedTypes[0]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public Location() {
- OnConstruction();
- }
- partial void OnConstruction();
- public Location(Location other) : this() {
- path_ = other.path_.Clone();
- span_ = other.span_.Clone();
- leadingComments_ = other.leadingComments_;
- trailingComments_ = other.trailingComments_;
- leadingDetachedComments_ = other.leadingDetachedComments_.Clone();
- }
- public Location Clone() {
- return new Location(this);
- }
- /// <summary>Field number for the "path" field.</summary>
- public const int PathFieldNumber = 1;
- private static readonly pb::FieldCodec<int> _repeated_path_codec
- = pb::FieldCodec.ForInt32(10);
- private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Identifies which part of the FileDescriptorProto was defined at this
- /// location.
- ///
- /// Each element is a field number or an index. They form a path from
- /// the root FileDescriptorProto to the place where the definition. For
- /// example, this path:
- /// [ 4, 3, 2, 7, 1 ]
- /// refers to:
- /// file.message_type(3) // 4, 3
- /// .field(7) // 2, 7
- /// .name() // 1
- /// This is because FileDescriptorProto.message_type has field number 4:
- /// repeated DescriptorProto message_type = 4;
- /// and DescriptorProto.field has field number 2:
- /// repeated FieldDescriptorProto field = 2;
- /// and FieldDescriptorProto.name has field number 1:
- /// optional string name = 1;
- ///
- /// Thus, the above path gives the location of a field name. If we removed
- /// the last element:
- /// [ 4, 3, 2, 7 ]
- /// this path refers to the whole field declaration (from the beginning
- /// of the label to the terminating semicolon).
- /// </summary>
- public pbc::RepeatedField<int> Path {
- get { return path_; }
- }
- /// <summary>Field number for the "span" field.</summary>
- public const int SpanFieldNumber = 2;
- private static readonly pb::FieldCodec<int> _repeated_span_codec
- = pb::FieldCodec.ForInt32(18);
- private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Always has exactly three or four elements: start line, start column,
- /// end line (optional, otherwise assumed same as start line), end column.
- /// These are packed into a single field for efficiency. Note that line
- /// and column numbers are zero-based -- typically you will want to add
- /// 1 to each before displaying to a user.
- /// </summary>
- public pbc::RepeatedField<int> Span {
- get { return span_; }
- }
- /// <summary>Field number for the "leading_comments" field.</summary>
- public const int LeadingCommentsFieldNumber = 3;
- private string leadingComments_ = "";
- /// <summary>
- /// If this SourceCodeInfo represents a complete declaration, these are any
- /// comments appearing before and after the declaration which appear to be
- /// attached to the declaration.
- ///
- /// A series of line comments appearing on consecutive lines, with no other
- /// tokens appearing on those lines, will be treated as a single comment.
- ///
- /// leading_detached_comments will keep paragraphs of comments that appear
- /// before (but not connected to) the current element. Each paragraph,
- /// separated by empty lines, will be one comment element in the repeated
- /// field.
- ///
- /// Only the comment content is provided; comment markers (e.g. //) are
- /// stripped out. For block comments, leading whitespace and an asterisk
- /// will be stripped from the beginning of each line other than the first.
- /// Newlines are included in the output.
- ///
- /// Examples:
- ///
- /// optional int32 foo = 1; // Comment attached to foo.
- /// // Comment attached to bar.
- /// optional int32 bar = 2;
- ///
- /// optional string baz = 3;
- /// // Comment attached to baz.
- /// // Another line attached to baz.
- ///
- /// // Comment attached to qux.
- /// //
- /// // Another line attached to qux.
- /// optional double qux = 4;
- ///
- /// // Detached comment for corge. This is not leading or trailing comments
- /// // to qux or corge because there are blank lines separating it from
- /// // both.
- ///
- /// // Detached comment for corge paragraph 2.
- ///
- /// optional string corge = 5;
- /// /* Block comment attached
- /// * to corge. Leading asterisks
- /// * will be removed. */
- /// /* Block comment attached to
- /// * grault. */
- /// optional int32 grault = 6;
- ///
- /// // ignored detached comments.
- /// </summary>
- public string LeadingComments {
- get { return leadingComments_; }
- set {
- leadingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "trailing_comments" field.</summary>
- public const int TrailingCommentsFieldNumber = 4;
- private string trailingComments_ = "";
- public string TrailingComments {
- get { return trailingComments_; }
- set {
- trailingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "leading_detached_comments" field.</summary>
- public const int LeadingDetachedCommentsFieldNumber = 6;
- private static readonly pb::FieldCodec<string> _repeated_leadingDetachedComments_codec
- = pb::FieldCodec.ForString(50);
- private readonly pbc::RepeatedField<string> leadingDetachedComments_ = new pbc::RepeatedField<string>();
- public pbc::RepeatedField<string> LeadingDetachedComments {
- get { return leadingDetachedComments_; }
- }
- public override bool Equals(object other) {
- return Equals(other as Location);
- }
- public bool Equals(Location other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!path_.Equals(other.path_)) return false;
- if(!span_.Equals(other.span_)) return false;
- if (LeadingComments != other.LeadingComments) return false;
- if (TrailingComments != other.TrailingComments) return false;
- if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- hash ^= path_.GetHashCode();
- hash ^= span_.GetHashCode();
- if (LeadingComments.Length != 0) hash ^= LeadingComments.GetHashCode();
- if (TrailingComments.Length != 0) hash ^= TrailingComments.GetHashCode();
- hash ^= leadingDetachedComments_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- path_.WriteTo(output, _repeated_path_codec);
- span_.WriteTo(output, _repeated_span_codec);
- if (LeadingComments.Length != 0) {
- output.WriteRawTag(26);
- output.WriteString(LeadingComments);
- }
- if (TrailingComments.Length != 0) {
- output.WriteRawTag(34);
- output.WriteString(TrailingComments);
- }
- leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComments_codec);
- }
- public int CalculateSize() {
- int size = 0;
- size += path_.CalculateSize(_repeated_path_codec);
- size += span_.CalculateSize(_repeated_span_codec);
- if (LeadingComments.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments);
- }
- if (TrailingComments.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments);
- }
- size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetachedComments_codec);
- return size;
- }
- public void MergeFrom(Location other) {
- if (other == null) {
- return;
- }
- path_.Add(other.path_);
- span_.Add(other.span_);
- if (other.LeadingComments.Length != 0) {
- LeadingComments = other.LeadingComments;
- }
- if (other.TrailingComments.Length != 0) {
- TrailingComments = other.TrailingComments;
- }
- leadingDetachedComments_.Add(other.leadingDetachedComments_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10:
- case 8: {
- path_.AddEntriesFrom(input, _repeated_path_codec);
- break;
- }
- case 18:
- case 16: {
- span_.AddEntriesFrom(input, _repeated_span_codec);
- break;
- }
- case 26: {
- LeadingComments = input.ReadString();
- break;
- }
- case 34: {
- TrailingComments = input.ReadString();
- break;
- }
- case 50: {
- leadingDetachedComments_.AddEntriesFrom(input, _repeated_leadingDetachedComments_codec);
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- /// <summary>
- /// Describes the relationship between generated code and its original source
- /// file. A GeneratedCodeInfo message is associated with only one generated
- /// source file, but may contain references to different source .proto files.
- /// </summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class GeneratedCodeInfo : pb::IMessage<GeneratedCodeInfo> {
- private static readonly pb::MessageParser<GeneratedCodeInfo> _parser = new pb::MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo());
- public static pb::MessageParser<GeneratedCodeInfo> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes[18]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public GeneratedCodeInfo() {
- OnConstruction();
- }
- partial void OnConstruction();
- public GeneratedCodeInfo(GeneratedCodeInfo other) : this() {
- annotation_ = other.annotation_.Clone();
- }
- public GeneratedCodeInfo Clone() {
- return new GeneratedCodeInfo(this);
- }
- /// <summary>Field number for the "annotation" field.</summary>
- public const int AnnotationFieldNumber = 1;
- private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> _repeated_annotation_codec
- = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser);
- private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> annotation_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation>();
- /// <summary>
- /// An Annotation connects some span of text in generated code to an element
- /// of its generating .proto file.
- /// </summary>
- public pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation> Annotation {
- get { return annotation_; }
- }
- public override bool Equals(object other) {
- return Equals(other as GeneratedCodeInfo);
- }
- public bool Equals(GeneratedCodeInfo other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!annotation_.Equals(other.annotation_)) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- hash ^= annotation_.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- annotation_.WriteTo(output, _repeated_annotation_codec);
- }
- public int CalculateSize() {
- int size = 0;
- size += annotation_.CalculateSize(_repeated_annotation_codec);
- return size;
- }
- public void MergeFrom(GeneratedCodeInfo other) {
- if (other == null) {
- return;
- }
- annotation_.Add(other.annotation_);
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10: {
- annotation_.AddEntriesFrom(input, _repeated_annotation_codec);
- break;
- }
- }
- }
- }
- #region Nested types
- /// <summary>Container for nested types declared in the GeneratedCodeInfo message type.</summary>
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- public static partial class Types {
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- internal sealed partial class Annotation : pb::IMessage<Annotation> {
- private static readonly pb::MessageParser<Annotation> _parser = new pb::MessageParser<Annotation>(() => new Annotation());
- public static pb::MessageParser<Annotation> Parser { get { return _parser; } }
- public static pbr::MessageDescriptor Descriptor {
- get { return global::Google.Protobuf.Reflection.GeneratedCodeInfo.Descriptor.NestedTypes[0]; }
- }
- pbr::MessageDescriptor pb::IMessage.Descriptor {
- get { return Descriptor; }
- }
- public Annotation() {
- OnConstruction();
- }
- partial void OnConstruction();
- public Annotation(Annotation other) : this() {
- path_ = other.path_.Clone();
- sourceFile_ = other.sourceFile_;
- begin_ = other.begin_;
- end_ = other.end_;
- }
- public Annotation Clone() {
- return new Annotation(this);
- }
- /// <summary>Field number for the "path" field.</summary>
- public const int PathFieldNumber = 1;
- private static readonly pb::FieldCodec<int> _repeated_path_codec
- = pb::FieldCodec.ForInt32(10);
- private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<int>();
- /// <summary>
- /// Identifies the element in the original source .proto file. This field
- /// is formatted the same as SourceCodeInfo.Location.path.
- /// </summary>
- public pbc::RepeatedField<int> Path {
- get { return path_; }
- }
- /// <summary>Field number for the "source_file" field.</summary>
- public const int SourceFileFieldNumber = 2;
- private string sourceFile_ = "";
- /// <summary>
- /// Identifies the filesystem path to the original source .proto.
- /// </summary>
- public string SourceFile {
- get { return sourceFile_; }
- set {
- sourceFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// <summary>Field number for the "begin" field.</summary>
- public const int BeginFieldNumber = 3;
- private int begin_;
- /// <summary>
- /// Identifies the starting offset in bytes in the generated code
- /// that relates to the identified object.
- /// </summary>
- public int Begin {
- get { return begin_; }
- set {
- begin_ = value;
- }
- }
- /// <summary>Field number for the "end" field.</summary>
- public const int EndFieldNumber = 4;
- private int end_;
- /// <summary>
- /// Identifies the ending offset in bytes in the generated code that
- /// relates to the identified offset. The end offset should be one past
- /// the last relevant byte (so the length of the text = end - begin).
- /// </summary>
- public int End {
- get { return end_; }
- set {
- end_ = value;
- }
- }
- public override bool Equals(object other) {
- return Equals(other as Annotation);
- }
- public bool Equals(Annotation other) {
- if (ReferenceEquals(other, null)) {
- return false;
- }
- if (ReferenceEquals(other, this)) {
- return true;
- }
- if(!path_.Equals(other.path_)) return false;
- if (SourceFile != other.SourceFile) return false;
- if (Begin != other.Begin) return false;
- if (End != other.End) return false;
- return true;
- }
- public override int GetHashCode() {
- int hash = 1;
- hash ^= path_.GetHashCode();
- if (SourceFile.Length != 0) hash ^= SourceFile.GetHashCode();
- if (Begin != 0) hash ^= Begin.GetHashCode();
- if (End != 0) hash ^= End.GetHashCode();
- return hash;
- }
- public override string ToString() {
- return pb::JsonFormatter.ToDiagnosticString(this);
- }
- public void WriteTo(pb::CodedOutputStream output) {
- path_.WriteTo(output, _repeated_path_codec);
- if (SourceFile.Length != 0) {
- output.WriteRawTag(18);
- output.WriteString(SourceFile);
- }
- if (Begin != 0) {
- output.WriteRawTag(24);
- output.WriteInt32(Begin);
- }
- if (End != 0) {
- output.WriteRawTag(32);
- output.WriteInt32(End);
- }
- }
- public int CalculateSize() {
- int size = 0;
- size += path_.CalculateSize(_repeated_path_codec);
- if (SourceFile.Length != 0) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceFile);
- }
- if (Begin != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(Begin);
- }
- if (End != 0) {
- size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
- }
- return size;
- }
- public void MergeFrom(Annotation other) {
- if (other == null) {
- return;
- }
- path_.Add(other.path_);
- if (other.SourceFile.Length != 0) {
- SourceFile = other.SourceFile;
- }
- if (other.Begin != 0) {
- Begin = other.Begin;
- }
- if (other.End != 0) {
- End = other.End;
- }
- }
- public void MergeFrom(pb::CodedInputStream input) {
- uint tag;
- while ((tag = input.ReadTag()) != 0) {
- switch(tag) {
- default:
- input.SkipLastField();
- break;
- case 10:
- case 8: {
- path_.AddEntriesFrom(input, _repeated_path_codec);
- break;
- }
- case 18: {
- SourceFile = input.ReadString();
- break;
- }
- case 24: {
- Begin = input.ReadInt32();
- break;
- }
- case 32: {
- End = input.ReadInt32();
- break;
- }
- }
- }
- }
- }
- }
- #endregion
- }
- #endregion
- }
- #endregion Designer generated code
|