Descriptor.cs 234 KB

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