Descriptor.cs 240 KB

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