descriptor_pb.py 297 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608
  1. # Copyright (c) 2025-2026 Buf Technologies, Inc.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # Generated from google/protobuf/descriptor.proto. DO NOT EDIT.
  15. # Generated by protoc-gen-py v0.1.1 with parameter "no_fmt_off".
  16. # ruff: noqa: PGH004
  17. # ruff: noqa
  18. from __future__ import annotations
  19. from typing import Literal, NoReturn, TYPE_CHECKING, TypeAlias
  20. from protobuf import Enum
  21. from protobuf._codegen import Message, boot, unset
  22. from protobuf.wkt._mixin import FileDescriptorSetMixin
  23. if TYPE_CHECKING:
  24. from protobuf import DescFile
  25. _FileDescriptorSetFields: TypeAlias = Literal["file"]
  26. class FileDescriptorSet(Message[_FileDescriptorSetFields], FileDescriptorSetMixin):
  27. """
  28. The protocol compiler can output a FileDescriptorSet containing the .proto
  29. files it parses.
  30. ```proto
  31. message google.protobuf.FileDescriptorSet
  32. ```
  33. Attributes:
  34. file:
  35. ```proto
  36. repeated google.protobuf.FileDescriptorProto file = 1;
  37. ```
  38. """
  39. __slots__ = ("file",)
  40. if TYPE_CHECKING:
  41. def __init__(self, *, file: list[FileDescriptorProto] | None = None) -> None:
  42. pass
  43. file: list[FileDescriptorProto]
  44. _FileDescriptorProtoFields: TypeAlias = Literal[
  45. "name",
  46. "package",
  47. "dependency",
  48. "public_dependency",
  49. "weak_dependency",
  50. "option_dependency",
  51. "message_type",
  52. "enum_type",
  53. "service",
  54. "extension",
  55. "options",
  56. "source_code_info",
  57. "syntax",
  58. "edition",
  59. ]
  60. class FileDescriptorProto(Message[_FileDescriptorProtoFields]):
  61. """
  62. Describes a complete .proto file.
  63. ```proto
  64. message google.protobuf.FileDescriptorProto
  65. ```
  66. Attributes:
  67. name:
  68. file name, relative to root of source tree
  69. ```proto
  70. optional string name = 1;
  71. ```
  72. package:
  73. e.g. "foo", "foo.bar", etc.
  74. ```proto
  75. optional string package = 2;
  76. ```
  77. dependency:
  78. Names of files imported by this file.
  79. ```proto
  80. repeated string dependency = 3;
  81. ```
  82. public_dependency:
  83. Indexes of the public imported files in the dependency list above.
  84. ```proto
  85. repeated int32 public_dependency = 10 [packed = false];
  86. ```
  87. weak_dependency:
  88. Indexes of the weak imported files in the dependency list.
  89. For Google-internal migration only. Do not use.
  90. ```proto
  91. repeated int32 weak_dependency = 11 [packed = false];
  92. ```
  93. option_dependency:
  94. Names of files imported by this file purely for the purpose of providing
  95. option extensions. These are excluded from the dependency list above.
  96. ```proto
  97. repeated string option_dependency = 15;
  98. ```
  99. message_type:
  100. All top-level definitions in this file.
  101. ```proto
  102. repeated google.protobuf.DescriptorProto message_type = 4;
  103. ```
  104. enum_type:
  105. ```proto
  106. repeated google.protobuf.EnumDescriptorProto enum_type = 5;
  107. ```
  108. service:
  109. ```proto
  110. repeated google.protobuf.ServiceDescriptorProto service = 6;
  111. ```
  112. extension:
  113. ```proto
  114. repeated google.protobuf.FieldDescriptorProto extension = 7;
  115. ```
  116. options:
  117. ```proto
  118. optional google.protobuf.FileOptions options = 8;
  119. ```
  120. source_code_info:
  121. This field contains optional information about the original source code.
  122. You may safely remove this entire field without harming runtime
  123. functionality of the descriptors -- the information is needed only by
  124. development tools.
  125. ```proto
  126. optional google.protobuf.SourceCodeInfo source_code_info = 9;
  127. ```
  128. syntax:
  129. The syntax of the proto file.
  130. The supported values are "proto2", "proto3", and "editions".
  131. If `edition` is present, this value must be "editions".
  132. WARNING: This field should only be used by protobuf plugins or special
  133. cases like the proto compiler. Other uses are discouraged and
  134. developers should rely on the protoreflect APIs for their client language.
  135. ```proto
  136. optional string syntax = 12;
  137. ```
  138. edition:
  139. The edition of the proto file.
  140. WARNING: This field should only be used by protobuf plugins or special
  141. cases like the proto compiler. Other uses are discouraged and
  142. developers should rely on the protoreflect APIs for their client language.
  143. ```proto
  144. optional google.protobuf.Edition edition = 14;
  145. ```
  146. """
  147. __slots__ = (
  148. "name",
  149. "package",
  150. "dependency",
  151. "public_dependency",
  152. "weak_dependency",
  153. "option_dependency",
  154. "message_type",
  155. "enum_type",
  156. "service",
  157. "extension",
  158. "options",
  159. "source_code_info",
  160. "syntax",
  161. "edition",
  162. )
  163. if TYPE_CHECKING:
  164. def __init__(
  165. self,
  166. *,
  167. name: str | None = None,
  168. package: str | None = None,
  169. dependency: list[str] | None = None,
  170. public_dependency: list[int] | None = None,
  171. weak_dependency: list[int] | None = None,
  172. option_dependency: list[str] | None = None,
  173. message_type: list[DescriptorProto] | None = None,
  174. enum_type: list[EnumDescriptorProto] | None = None,
  175. service: list[ServiceDescriptorProto] | None = None,
  176. extension: list[FieldDescriptorProto] | None = None,
  177. options: FileOptions | None = None,
  178. source_code_info: SourceCodeInfo | None = None,
  179. syntax: str | None = None,
  180. edition: Edition | None = None,
  181. ) -> None:
  182. pass
  183. name: str
  184. package: str
  185. dependency: list[str]
  186. public_dependency: list[int]
  187. weak_dependency: list[int]
  188. option_dependency: list[str]
  189. message_type: list[DescriptorProto]
  190. enum_type: list[EnumDescriptorProto]
  191. service: list[ServiceDescriptorProto]
  192. extension: list[FieldDescriptorProto]
  193. options: FileOptions | None
  194. source_code_info: SourceCodeInfo | None
  195. syntax: str
  196. edition: Edition
  197. _DescriptorProtoFields: TypeAlias = Literal[
  198. "name",
  199. "field",
  200. "extension",
  201. "nested_type",
  202. "enum_type",
  203. "extension_range",
  204. "oneof_decl",
  205. "options",
  206. "reserved_range",
  207. "reserved_name",
  208. "visibility",
  209. ]
  210. class DescriptorProto(Message[_DescriptorProtoFields]):
  211. """
  212. Describes a message type.
  213. ```proto
  214. message google.protobuf.DescriptorProto
  215. ```
  216. Attributes:
  217. name:
  218. ```proto
  219. optional string name = 1;
  220. ```
  221. field:
  222. ```proto
  223. repeated google.protobuf.FieldDescriptorProto field = 2;
  224. ```
  225. extension:
  226. ```proto
  227. repeated google.protobuf.FieldDescriptorProto extension = 6;
  228. ```
  229. nested_type:
  230. ```proto
  231. repeated google.protobuf.DescriptorProto nested_type = 3;
  232. ```
  233. enum_type:
  234. ```proto
  235. repeated google.protobuf.EnumDescriptorProto enum_type = 4;
  236. ```
  237. extension_range:
  238. ```proto
  239. repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  240. ```
  241. oneof_decl:
  242. ```proto
  243. repeated google.protobuf.OneofDescriptorProto oneof_decl = 8;
  244. ```
  245. options:
  246. ```proto
  247. optional google.protobuf.MessageOptions options = 7;
  248. ```
  249. reserved_range:
  250. ```proto
  251. repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  252. ```
  253. reserved_name:
  254. Reserved field names, which may not be used by fields in the same message.
  255. A given name may only be reserved once.
  256. ```proto
  257. repeated string reserved_name = 10;
  258. ```
  259. visibility:
  260. Support for `export` and `local` keywords on enums.
  261. ```proto
  262. optional google.protobuf.SymbolVisibility visibility = 11;
  263. ```
  264. """
  265. __slots__ = (
  266. "name",
  267. "field",
  268. "extension",
  269. "nested_type",
  270. "enum_type",
  271. "extension_range",
  272. "oneof_decl",
  273. "options",
  274. "reserved_range",
  275. "reserved_name",
  276. "visibility",
  277. )
  278. if TYPE_CHECKING:
  279. def __init__(
  280. self,
  281. *,
  282. name: str | None = None,
  283. field: list[FieldDescriptorProto] | None = None,
  284. extension: list[FieldDescriptorProto] | None = None,
  285. nested_type: list[DescriptorProto] | None = None,
  286. enum_type: list[EnumDescriptorProto] | None = None,
  287. extension_range: list[DescriptorProto.ExtensionRange] | None = None,
  288. oneof_decl: list[OneofDescriptorProto] | None = None,
  289. options: MessageOptions | None = None,
  290. reserved_range: list[DescriptorProto.ReservedRange] | None = None,
  291. reserved_name: list[str] | None = None,
  292. visibility: SymbolVisibility | None = None,
  293. ) -> None:
  294. pass
  295. name: str
  296. field: list[FieldDescriptorProto]
  297. extension: list[FieldDescriptorProto]
  298. nested_type: list[DescriptorProto]
  299. enum_type: list[EnumDescriptorProto]
  300. extension_range: list[DescriptorProto.ExtensionRange]
  301. oneof_decl: list[OneofDescriptorProto]
  302. options: MessageOptions | None
  303. reserved_range: list[DescriptorProto.ReservedRange]
  304. reserved_name: list[str]
  305. visibility: SymbolVisibility
  306. _ExtensionRangeFields: TypeAlias = Literal["start", "end", "options"]
  307. class ExtensionRange(Message[_ExtensionRangeFields]):
  308. """
  309. ```proto
  310. message google.protobuf.DescriptorProto.ExtensionRange
  311. ```
  312. Attributes:
  313. start:
  314. Inclusive.
  315. ```proto
  316. optional int32 start = 1;
  317. ```
  318. end:
  319. Exclusive.
  320. ```proto
  321. optional int32 end = 2;
  322. ```
  323. options:
  324. ```proto
  325. optional google.protobuf.ExtensionRangeOptions options = 3;
  326. ```
  327. """
  328. __slots__ = ("start", "end", "options")
  329. if TYPE_CHECKING:
  330. def __init__(
  331. self,
  332. *,
  333. start: int | None = None,
  334. end: int | None = None,
  335. options: ExtensionRangeOptions | None = None,
  336. ) -> None:
  337. pass
  338. start: int
  339. end: int
  340. options: ExtensionRangeOptions | None
  341. _ReservedRangeFields: TypeAlias = Literal["start", "end"]
  342. class ReservedRange(Message[_ReservedRangeFields]):
  343. """
  344. Range of reserved tag numbers. Reserved tag numbers may not be used by
  345. fields or extension ranges in the same message. Reserved ranges may
  346. not overlap.
  347. ```proto
  348. message google.protobuf.DescriptorProto.ReservedRange
  349. ```
  350. Attributes:
  351. start:
  352. Inclusive.
  353. ```proto
  354. optional int32 start = 1;
  355. ```
  356. end:
  357. Exclusive.
  358. ```proto
  359. optional int32 end = 2;
  360. ```
  361. """
  362. __slots__ = ("start", "end")
  363. if TYPE_CHECKING:
  364. def __init__(
  365. self, *, start: int | None = None, end: int | None = None
  366. ) -> None:
  367. pass
  368. start: int
  369. end: int
  370. _ExtensionRangeOptionsFields: TypeAlias = Literal[
  371. "uninterpreted_option", "declaration", "features", "verification"
  372. ]
  373. class ExtensionRangeOptions(Message[_ExtensionRangeOptionsFields]):
  374. """
  375. ```proto
  376. message google.protobuf.ExtensionRangeOptions
  377. ```
  378. Attributes:
  379. uninterpreted_option:
  380. The parser stores options it doesn't recognize here. See above.
  381. ```proto
  382. repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
  383. ```
  384. declaration:
  385. For external users: DO NOT USE. We are in the process of open sourcing
  386. extension declaration and executing internal cleanups before it can be
  387. used externally.
  388. ```proto
  389. repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2;
  390. ```
  391. features:
  392. Any features defined in the specific edition.
  393. ```proto
  394. optional google.protobuf.FeatureSet features = 50;
  395. ```
  396. verification:
  397. The verification state of the range.
  398. TODO: flip the default to DECLARATION once all empty ranges
  399. are marked as UNVERIFIED.
  400. ```proto
  401. optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED];
  402. ```
  403. """
  404. __slots__ = ("uninterpreted_option", "declaration", "features", "verification")
  405. if TYPE_CHECKING:
  406. def __init__(
  407. self,
  408. *,
  409. uninterpreted_option: list[UninterpretedOption] | None = None,
  410. declaration: list[ExtensionRangeOptions.Declaration] | None = None,
  411. features: FeatureSet | None = None,
  412. verification: ExtensionRangeOptions.VerificationState | None = None,
  413. ) -> None:
  414. pass
  415. uninterpreted_option: list[UninterpretedOption]
  416. declaration: list[ExtensionRangeOptions.Declaration]
  417. features: FeatureSet | None
  418. verification: ExtensionRangeOptions.VerificationState
  419. _DeclarationFields: TypeAlias = Literal[
  420. "number", "full_name", "type", "reserved", "repeated"
  421. ]
  422. class Declaration(Message[_DeclarationFields]):
  423. """
  424. ```proto
  425. message google.protobuf.ExtensionRangeOptions.Declaration
  426. ```
  427. Attributes:
  428. number:
  429. The extension number declared within the extension range.
  430. ```proto
  431. optional int32 number = 1;
  432. ```
  433. full_name:
  434. The fully-qualified name of the extension field. There must be a leading
  435. dot in front of the full name.
  436. ```proto
  437. optional string full_name = 2;
  438. ```
  439. type:
  440. The fully-qualified type name of the extension field. Unlike
  441. Metadata.type, Declaration.type must have a leading dot for messages
  442. and enums.
  443. ```proto
  444. optional string type = 3;
  445. ```
  446. reserved:
  447. If true, indicates that the number is reserved in the extension range,
  448. and any extension field with the number will fail to compile. Set this
  449. when a declared extension field is deleted.
  450. ```proto
  451. optional bool reserved = 5;
  452. ```
  453. repeated:
  454. If true, indicates that the extension must be defined as repeated.
  455. Otherwise the extension must be defined as optional.
  456. ```proto
  457. optional bool repeated = 6;
  458. ```
  459. """
  460. __slots__ = ("number", "full_name", "type", "reserved", "repeated")
  461. if TYPE_CHECKING:
  462. def __init__(
  463. self,
  464. *,
  465. number: int | None = None,
  466. full_name: str | None = None,
  467. type: str | None = None,
  468. reserved: bool | None = None,
  469. repeated: bool | None = None,
  470. ) -> None:
  471. pass
  472. number: int
  473. full_name: str
  474. type: str
  475. reserved: bool
  476. repeated: bool
  477. class VerificationState(Enum):
  478. """
  479. The verification state of the extension range.
  480. ```proto
  481. enum google.protobuf.ExtensionRangeOptions.VerificationState
  482. ```
  483. Attributes:
  484. DECLARATION:
  485. All the extensions of the range must be declared.
  486. ```proto
  487. DECLARATION = 0
  488. ```
  489. UNVERIFIED:
  490. ```proto
  491. UNVERIFIED = 1
  492. ```
  493. """
  494. DECLARATION = 0
  495. UNVERIFIED = 1
  496. _FieldDescriptorProtoFields: TypeAlias = Literal[
  497. "name",
  498. "number",
  499. "label",
  500. "type",
  501. "type_name",
  502. "extendee",
  503. "default_value",
  504. "oneof_index",
  505. "json_name",
  506. "options",
  507. "proto3_optional",
  508. ]
  509. class FieldDescriptorProto(Message[_FieldDescriptorProtoFields]):
  510. """
  511. Describes a field within a message.
  512. ```proto
  513. message google.protobuf.FieldDescriptorProto
  514. ```
  515. Attributes:
  516. name:
  517. ```proto
  518. optional string name = 1;
  519. ```
  520. number:
  521. ```proto
  522. optional int32 number = 3;
  523. ```
  524. label:
  525. ```proto
  526. optional google.protobuf.FieldDescriptorProto.Label label = 4;
  527. ```
  528. type:
  529. If type_name is set, this need not be set. If both this and type_name
  530. are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
  531. ```proto
  532. optional google.protobuf.FieldDescriptorProto.Type type = 5;
  533. ```
  534. type_name:
  535. For message and enum types, this is the name of the type. If the name
  536. starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
  537. rules are used to find the type (i.e. first the nested types within this
  538. message are searched, then within the parent, on up to the root
  539. namespace).
  540. ```proto
  541. optional string type_name = 6;
  542. ```
  543. extendee:
  544. For extensions, this is the name of the type being extended. It is
  545. resolved in the same manner as type_name.
  546. ```proto
  547. optional string extendee = 2;
  548. ```
  549. default_value:
  550. For numeric types, contains the original text representation of the value.
  551. For booleans, "true" or "false".
  552. For strings, contains the default text contents (not escaped in any way).
  553. For bytes, contains the C escaped value. All bytes >= 128 are escaped.
  554. ```proto
  555. optional string default_value = 7;
  556. ```
  557. oneof_index:
  558. If set, gives the index of a oneof in the containing type's oneof_decl
  559. list. This field is a member of that oneof.
  560. ```proto
  561. optional int32 oneof_index = 9;
  562. ```
  563. json_name:
  564. JSON name of this field. The value is set by protocol compiler. If the
  565. user has set a "json_name" option on this field, that option's value
  566. will be used. Otherwise, it's deduced from the field's name by converting
  567. it to camelCase.
  568. ```proto
  569. optional string json_name = 10;
  570. ```
  571. options:
  572. ```proto
  573. optional google.protobuf.FieldOptions options = 8;
  574. ```
  575. proto3_optional:
  576. If true, this is a proto3 "optional". When a proto3 field is optional, it
  577. tracks presence regardless of field type.
  578. When proto3_optional is true, this field must belong to a oneof to signal
  579. to old proto3 clients that presence is tracked for this field. This oneof
  580. is known as a "synthetic" oneof, and this field must be its sole member
  581. (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs
  582. exist in the descriptor only, and do not generate any API. Synthetic oneofs
  583. must be ordered after all "real" oneofs.
  584. For message fields, proto3_optional doesn't create any semantic change,
  585. since non-repeated message fields always track presence. However it still
  586. indicates the semantic detail of whether the user wrote "optional" or not.
  587. This can be useful for round-tripping the .proto file. For consistency we
  588. give message fields a synthetic oneof also, even though it is not required
  589. to track presence. This is especially important because the parser can't
  590. tell if a field is a message or an enum, so it must always create a
  591. synthetic oneof.
  592. Proto2 optional fields do not set this flag, because they already indicate
  593. optional with `LABEL_OPTIONAL`.
  594. ```proto
  595. optional bool proto3_optional = 17;
  596. ```
  597. """
  598. __slots__ = (
  599. "name",
  600. "number",
  601. "label",
  602. "type",
  603. "type_name",
  604. "extendee",
  605. "default_value",
  606. "oneof_index",
  607. "json_name",
  608. "options",
  609. "proto3_optional",
  610. )
  611. if TYPE_CHECKING:
  612. def __init__(
  613. self,
  614. *,
  615. name: str | None = None,
  616. number: int | None = None,
  617. label: FieldDescriptorProto.Label | None = None,
  618. type: FieldDescriptorProto.Type | None = None,
  619. type_name: str | None = None,
  620. extendee: str | None = None,
  621. default_value: str | None = None,
  622. oneof_index: int | None = None,
  623. json_name: str | None = None,
  624. options: FieldOptions | None = None,
  625. proto3_optional: bool | None = None,
  626. ) -> None:
  627. pass
  628. name: str
  629. number: int
  630. label: FieldDescriptorProto.Label
  631. type: FieldDescriptorProto.Type
  632. type_name: str
  633. extendee: str
  634. default_value: str
  635. oneof_index: int
  636. json_name: str
  637. options: FieldOptions | None
  638. proto3_optional: bool
  639. class Type(Enum):
  640. """
  641. ```proto
  642. enum google.protobuf.FieldDescriptorProto.Type
  643. ```
  644. Attributes:
  645. DOUBLE:
  646. 0 is reserved for errors.
  647. Order is weird for historical reasons.
  648. ```proto
  649. TYPE_DOUBLE = 1
  650. ```
  651. FLOAT:
  652. ```proto
  653. TYPE_FLOAT = 2
  654. ```
  655. INT64:
  656. Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
  657. negative values are likely.
  658. ```proto
  659. TYPE_INT64 = 3
  660. ```
  661. UINT64:
  662. ```proto
  663. TYPE_UINT64 = 4
  664. ```
  665. INT32:
  666. Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
  667. negative values are likely.
  668. ```proto
  669. TYPE_INT32 = 5
  670. ```
  671. FIXED64:
  672. ```proto
  673. TYPE_FIXED64 = 6
  674. ```
  675. FIXED32:
  676. ```proto
  677. TYPE_FIXED32 = 7
  678. ```
  679. BOOL:
  680. ```proto
  681. TYPE_BOOL = 8
  682. ```
  683. STRING:
  684. ```proto
  685. TYPE_STRING = 9
  686. ```
  687. GROUP:
  688. Tag-delimited aggregate.
  689. Group type is deprecated and not supported after google.protobuf. However, Proto3
  690. implementations should still be able to parse the group wire format and
  691. treat group fields as unknown fields. In Editions, the group wire format
  692. can be enabled via the `message_encoding` feature.
  693. ```proto
  694. TYPE_GROUP = 10
  695. ```
  696. MESSAGE:
  697. Length-delimited aggregate.
  698. ```proto
  699. TYPE_MESSAGE = 11
  700. ```
  701. BYTES:
  702. New in version 2.
  703. ```proto
  704. TYPE_BYTES = 12
  705. ```
  706. UINT32:
  707. ```proto
  708. TYPE_UINT32 = 13
  709. ```
  710. ENUM:
  711. ```proto
  712. TYPE_ENUM = 14
  713. ```
  714. SFIXED32:
  715. ```proto
  716. TYPE_SFIXED32 = 15
  717. ```
  718. SFIXED64:
  719. ```proto
  720. TYPE_SFIXED64 = 16
  721. ```
  722. SINT32:
  723. Uses ZigZag encoding.
  724. ```proto
  725. TYPE_SINT32 = 17
  726. ```
  727. SINT64:
  728. Uses ZigZag encoding.
  729. ```proto
  730. TYPE_SINT64 = 18
  731. ```
  732. """
  733. DOUBLE = 1
  734. FLOAT = 2
  735. INT64 = 3
  736. UINT64 = 4
  737. INT32 = 5
  738. FIXED64 = 6
  739. FIXED32 = 7
  740. BOOL = 8
  741. STRING = 9
  742. GROUP = 10
  743. MESSAGE = 11
  744. BYTES = 12
  745. UINT32 = 13
  746. ENUM = 14
  747. SFIXED32 = 15
  748. SFIXED64 = 16
  749. SINT32 = 17
  750. SINT64 = 18
  751. class Label(Enum):
  752. """
  753. ```proto
  754. enum google.protobuf.FieldDescriptorProto.Label
  755. ```
  756. Attributes:
  757. OPTIONAL:
  758. 0 is reserved for errors
  759. ```proto
  760. LABEL_OPTIONAL = 1
  761. ```
  762. REPEATED:
  763. ```proto
  764. LABEL_REPEATED = 3
  765. ```
  766. REQUIRED:
  767. The required label is only allowed in google.protobuf. In proto3 and Editions
  768. it's explicitly prohibited. In Editions, the `field_presence` feature
  769. can be used to get this behavior.
  770. ```proto
  771. LABEL_REQUIRED = 2
  772. ```
  773. """
  774. OPTIONAL = 1
  775. REPEATED = 3
  776. REQUIRED = 2
  777. _OneofDescriptorProtoFields: TypeAlias = Literal["name", "options"]
  778. class OneofDescriptorProto(Message[_OneofDescriptorProtoFields]):
  779. """
  780. Describes a oneof.
  781. ```proto
  782. message google.protobuf.OneofDescriptorProto
  783. ```
  784. Attributes:
  785. name:
  786. ```proto
  787. optional string name = 1;
  788. ```
  789. options:
  790. ```proto
  791. optional google.protobuf.OneofOptions options = 2;
  792. ```
  793. """
  794. __slots__ = ("name", "options")
  795. if TYPE_CHECKING:
  796. def __init__(
  797. self, *, name: str | None = None, options: OneofOptions | None = None
  798. ) -> None:
  799. pass
  800. name: str
  801. options: OneofOptions | None
  802. _EnumDescriptorProtoFields: TypeAlias = Literal[
  803. "name", "value", "options", "reserved_range", "reserved_name", "visibility"
  804. ]
  805. class EnumDescriptorProto(Message[_EnumDescriptorProtoFields]):
  806. """
  807. Describes an enum type.
  808. ```proto
  809. message google.protobuf.EnumDescriptorProto
  810. ```
  811. Attributes:
  812. name:
  813. ```proto
  814. optional string name = 1;
  815. ```
  816. value:
  817. ```proto
  818. repeated google.protobuf.EnumValueDescriptorProto value = 2;
  819. ```
  820. options:
  821. ```proto
  822. optional google.protobuf.EnumOptions options = 3;
  823. ```
  824. reserved_range:
  825. Range of reserved numeric values. Reserved numeric values may not be used
  826. by enum values in the same enum declaration. Reserved ranges may not
  827. overlap.
  828. ```proto
  829. repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  830. ```
  831. reserved_name:
  832. Reserved enum value names, which may not be reused. A given name may only
  833. be reserved once.
  834. ```proto
  835. repeated string reserved_name = 5;
  836. ```
  837. visibility:
  838. Support for `export` and `local` keywords on enums.
  839. ```proto
  840. optional google.protobuf.SymbolVisibility visibility = 6;
  841. ```
  842. """
  843. __slots__ = (
  844. "name",
  845. "value",
  846. "options",
  847. "reserved_range",
  848. "reserved_name",
  849. "visibility",
  850. )
  851. if TYPE_CHECKING:
  852. def __init__(
  853. self,
  854. *,
  855. name: str | None = None,
  856. value: list[EnumValueDescriptorProto] | None = None,
  857. options: EnumOptions | None = None,
  858. reserved_range: list[EnumDescriptorProto.EnumReservedRange] | None = None,
  859. reserved_name: list[str] | None = None,
  860. visibility: SymbolVisibility | None = None,
  861. ) -> None:
  862. pass
  863. name: str
  864. value: list[EnumValueDescriptorProto]
  865. options: EnumOptions | None
  866. reserved_range: list[EnumDescriptorProto.EnumReservedRange]
  867. reserved_name: list[str]
  868. visibility: SymbolVisibility
  869. _EnumReservedRangeFields: TypeAlias = Literal["start", "end"]
  870. class EnumReservedRange(Message[_EnumReservedRangeFields]):
  871. """
  872. Range of reserved numeric values. Reserved values may not be used by
  873. entries in the same enum. Reserved ranges may not overlap.
  874. Note that this is distinct from DescriptorProto.ReservedRange in that it
  875. is inclusive such that it can appropriately represent the entire int32
  876. domain.
  877. ```proto
  878. message google.protobuf.EnumDescriptorProto.EnumReservedRange
  879. ```
  880. Attributes:
  881. start:
  882. Inclusive.
  883. ```proto
  884. optional int32 start = 1;
  885. ```
  886. end:
  887. Inclusive.
  888. ```proto
  889. optional int32 end = 2;
  890. ```
  891. """
  892. __slots__ = ("start", "end")
  893. if TYPE_CHECKING:
  894. def __init__(
  895. self, *, start: int | None = None, end: int | None = None
  896. ) -> None:
  897. pass
  898. start: int
  899. end: int
  900. _EnumValueDescriptorProtoFields: TypeAlias = Literal["name", "number", "options"]
  901. class EnumValueDescriptorProto(Message[_EnumValueDescriptorProtoFields]):
  902. """
  903. Describes a value within an enum.
  904. ```proto
  905. message google.protobuf.EnumValueDescriptorProto
  906. ```
  907. Attributes:
  908. name:
  909. ```proto
  910. optional string name = 1;
  911. ```
  912. number:
  913. ```proto
  914. optional int32 number = 2;
  915. ```
  916. options:
  917. ```proto
  918. optional google.protobuf.EnumValueOptions options = 3;
  919. ```
  920. """
  921. __slots__ = ("name", "number", "options")
  922. if TYPE_CHECKING:
  923. def __init__(
  924. self,
  925. *,
  926. name: str | None = None,
  927. number: int | None = None,
  928. options: EnumValueOptions | None = None,
  929. ) -> None:
  930. pass
  931. name: str
  932. number: int
  933. options: EnumValueOptions | None
  934. _ServiceDescriptorProtoFields: TypeAlias = Literal["name", "method", "options"]
  935. class ServiceDescriptorProto(Message[_ServiceDescriptorProtoFields]):
  936. """
  937. Describes a service.
  938. ```proto
  939. message google.protobuf.ServiceDescriptorProto
  940. ```
  941. Attributes:
  942. name:
  943. ```proto
  944. optional string name = 1;
  945. ```
  946. method:
  947. ```proto
  948. repeated google.protobuf.MethodDescriptorProto method = 2;
  949. ```
  950. options:
  951. ```proto
  952. optional google.protobuf.ServiceOptions options = 3;
  953. ```
  954. """
  955. __slots__ = ("name", "method", "options")
  956. if TYPE_CHECKING:
  957. def __init__(
  958. self,
  959. *,
  960. name: str | None = None,
  961. method: list[MethodDescriptorProto] | None = None,
  962. options: ServiceOptions | None = None,
  963. ) -> None:
  964. pass
  965. name: str
  966. method: list[MethodDescriptorProto]
  967. options: ServiceOptions | None
  968. _MethodDescriptorProtoFields: TypeAlias = Literal[
  969. "name",
  970. "input_type",
  971. "output_type",
  972. "options",
  973. "client_streaming",
  974. "server_streaming",
  975. ]
  976. class MethodDescriptorProto(Message[_MethodDescriptorProtoFields]):
  977. """
  978. Describes a method of a service.
  979. ```proto
  980. message google.protobuf.MethodDescriptorProto
  981. ```
  982. Attributes:
  983. name:
  984. ```proto
  985. optional string name = 1;
  986. ```
  987. input_type:
  988. Input and output type names. These are resolved in the same way as
  989. FieldDescriptorProto.type_name, but must refer to a message type.
  990. ```proto
  991. optional string input_type = 2;
  992. ```
  993. output_type:
  994. ```proto
  995. optional string output_type = 3;
  996. ```
  997. options:
  998. ```proto
  999. optional google.protobuf.MethodOptions options = 4;
  1000. ```
  1001. client_streaming:
  1002. Identifies if client streams multiple client messages
  1003. ```proto
  1004. optional bool client_streaming = 5 [default = false];
  1005. ```
  1006. server_streaming:
  1007. Identifies if server streams multiple server messages
  1008. ```proto
  1009. optional bool server_streaming = 6 [default = false];
  1010. ```
  1011. """
  1012. __slots__ = (
  1013. "name",
  1014. "input_type",
  1015. "output_type",
  1016. "options",
  1017. "client_streaming",
  1018. "server_streaming",
  1019. )
  1020. if TYPE_CHECKING:
  1021. def __init__(
  1022. self,
  1023. *,
  1024. name: str | None = None,
  1025. input_type: str | None = None,
  1026. output_type: str | None = None,
  1027. options: MethodOptions | None = None,
  1028. client_streaming: bool | None = None,
  1029. server_streaming: bool | None = None,
  1030. ) -> None:
  1031. pass
  1032. name: str
  1033. input_type: str
  1034. output_type: str
  1035. options: MethodOptions | None
  1036. client_streaming: bool
  1037. server_streaming: bool
  1038. _FileOptionsFields: TypeAlias = Literal[
  1039. "java_package",
  1040. "java_outer_classname",
  1041. "java_multiple_files",
  1042. "java_generate_equals_and_hash",
  1043. "java_string_check_utf8",
  1044. "optimize_for",
  1045. "go_package",
  1046. "cc_generic_services",
  1047. "java_generic_services",
  1048. "py_generic_services",
  1049. "deprecated",
  1050. "cc_enable_arenas",
  1051. "objc_class_prefix",
  1052. "csharp_namespace",
  1053. "swift_prefix",
  1054. "php_class_prefix",
  1055. "php_namespace",
  1056. "php_metadata_namespace",
  1057. "ruby_package",
  1058. "features",
  1059. "uninterpreted_option",
  1060. ]
  1061. class FileOptions(Message[_FileOptionsFields]):
  1062. """
  1063. ```proto
  1064. message google.protobuf.FileOptions
  1065. ```
  1066. Attributes:
  1067. java_package:
  1068. Sets the Java package where classes generated from this .proto will be
  1069. placed. By default, the proto package is used, but this is often
  1070. inappropriate because proto packages do not normally start with backwards
  1071. domain names.
  1072. ```proto
  1073. optional string java_package = 1;
  1074. ```
  1075. java_outer_classname:
  1076. Controls the name of the wrapper Java class generated for the .proto file.
  1077. That class will always contain the .proto file's getDescriptor() method as
  1078. well as any top-level extensions defined in the .proto file.
  1079. If java_multiple_files is disabled, then all the other classes from the
  1080. .proto file will be nested inside the single wrapper outer class.
  1081. ```proto
  1082. optional string java_outer_classname = 8;
  1083. ```
  1084. java_multiple_files:
  1085. If enabled, then the Java code generator will generate a separate .java
  1086. file for each top-level message, enum, and service defined in the .proto
  1087. file. Thus, these types will *not* be nested inside the wrapper class
  1088. named by java_outer_classname. However, the wrapper class will still be
  1089. generated to contain the file's getDescriptor() method as well as any
  1090. top-level extensions defined in the file.
  1091. ```proto
  1092. optional bool java_multiple_files = 10 [default = false];
  1093. ```
  1094. java_generate_equals_and_hash:
  1095. This option does nothing.
  1096. ```proto
  1097. optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  1098. ```
  1099. java_string_check_utf8:
  1100. A proto2 file can set this to true to opt in to UTF-8 checking for Java,
  1101. which will throw an exception if invalid UTF-8 is parsed from the wire or
  1102. assigned to a string field.
  1103. TODO: clarify exactly what kinds of field types this option
  1104. applies to, and update these docs accordingly.
  1105. Proto3 files already perform these checks. Setting the option explicitly to
  1106. false has no effect: it cannot be used to opt proto3 files out of UTF-8
  1107. checks.
  1108. ```proto
  1109. optional bool java_string_check_utf8 = 27 [default = false];
  1110. ```
  1111. optimize_for:
  1112. ```proto
  1113. optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  1114. ```
  1115. go_package:
  1116. Sets the Go package where structs generated from this .proto will be
  1117. placed. If omitted, the Go package will be derived from the following:
  1118. - The basename of the package import path, if provided.
  1119. - Otherwise, the package statement in the .proto file, if present.
  1120. - Otherwise, the basename of the .proto file, without extension.
  1121. ```proto
  1122. optional string go_package = 11;
  1123. ```
  1124. cc_generic_services:
  1125. Should generic services be generated in each language? "Generic" services
  1126. are not specific to any particular RPC system. They are generated by the
  1127. main code generators in each language (without additional plugins).
  1128. Generic services were the only kind of service generation supported by
  1129. early versions of google.protobuf.
  1130. Generic services are now considered deprecated in favor of using plugins
  1131. that generate code specific to your particular RPC system. Therefore,
  1132. these default to false. Old code which depends on generic services should
  1133. explicitly set them to true.
  1134. ```proto
  1135. optional bool cc_generic_services = 16 [default = false];
  1136. ```
  1137. java_generic_services:
  1138. ```proto
  1139. optional bool java_generic_services = 17 [default = false];
  1140. ```
  1141. py_generic_services:
  1142. ```proto
  1143. optional bool py_generic_services = 18 [default = false];
  1144. ```
  1145. deprecated:
  1146. Is this file deprecated?
  1147. Depending on the target platform, this can emit Deprecated annotations
  1148. for everything in the file, or it will be completely ignored; in the very
  1149. least, this is a formalization for deprecating files.
  1150. ```proto
  1151. optional bool deprecated = 23 [default = false];
  1152. ```
  1153. cc_enable_arenas:
  1154. Enables the use of arenas for the proto messages in this file. This applies
  1155. only to generated classes for C++.
  1156. ```proto
  1157. optional bool cc_enable_arenas = 31 [default = true];
  1158. ```
  1159. objc_class_prefix:
  1160. Sets the objective c class prefix which is prepended to all objective c
  1161. generated classes from this .proto. There is no default.
  1162. ```proto
  1163. optional string objc_class_prefix = 36;
  1164. ```
  1165. csharp_namespace:
  1166. Namespace for generated classes; defaults to the package.
  1167. ```proto
  1168. optional string csharp_namespace = 37;
  1169. ```
  1170. swift_prefix:
  1171. By default Swift generators will take the proto package and CamelCase it
  1172. replacing '.' with underscore and use that to prefix the types/symbols
  1173. defined. When this options is provided, they will use this value instead
  1174. to prefix the types/symbols defined.
  1175. ```proto
  1176. optional string swift_prefix = 39;
  1177. ```
  1178. php_class_prefix:
  1179. Sets the php class prefix which is prepended to all php generated classes
  1180. from this .proto. Default is empty.
  1181. ```proto
  1182. optional string php_class_prefix = 40;
  1183. ```
  1184. php_namespace:
  1185. Use this option to change the namespace of php generated classes. Default
  1186. is empty. When this option is empty, the package name will be used for
  1187. determining the namespace.
  1188. ```proto
  1189. optional string php_namespace = 41;
  1190. ```
  1191. php_metadata_namespace:
  1192. Use this option to change the namespace of php generated metadata classes.
  1193. Default is empty. When this option is empty, the proto file name will be
  1194. used for determining the namespace.
  1195. ```proto
  1196. optional string php_metadata_namespace = 44;
  1197. ```
  1198. ruby_package:
  1199. Use this option to change the package of ruby generated classes. Default
  1200. is empty. When this option is not set, the package name will be used for
  1201. determining the ruby package.
  1202. ```proto
  1203. optional string ruby_package = 45;
  1204. ```
  1205. features:
  1206. Any features defined in the specific edition.
  1207. WARNING: This field should only be used by protobuf plugins or special
  1208. cases like the proto compiler. Other uses are discouraged and
  1209. developers should rely on the protoreflect APIs for their client language.
  1210. ```proto
  1211. optional google.protobuf.FeatureSet features = 50;
  1212. ```
  1213. uninterpreted_option:
  1214. The parser stores options it doesn't recognize here.
  1215. See the documentation for the "Options" section above.
  1216. ```proto
  1217. repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1218. ```
  1219. """
  1220. __slots__ = (
  1221. "java_package",
  1222. "java_outer_classname",
  1223. "java_multiple_files",
  1224. "java_generate_equals_and_hash",
  1225. "java_string_check_utf8",
  1226. "optimize_for",
  1227. "go_package",
  1228. "cc_generic_services",
  1229. "java_generic_services",
  1230. "py_generic_services",
  1231. "deprecated",
  1232. "cc_enable_arenas",
  1233. "objc_class_prefix",
  1234. "csharp_namespace",
  1235. "swift_prefix",
  1236. "php_class_prefix",
  1237. "php_namespace",
  1238. "php_metadata_namespace",
  1239. "ruby_package",
  1240. "features",
  1241. "uninterpreted_option",
  1242. )
  1243. if TYPE_CHECKING:
  1244. def __init__(
  1245. self,
  1246. *,
  1247. java_package: str | None = None,
  1248. java_outer_classname: str | None = None,
  1249. java_multiple_files: bool | None = None,
  1250. java_generate_equals_and_hash: bool | None = None,
  1251. java_string_check_utf8: bool | None = None,
  1252. optimize_for: FileOptions.OptimizeMode | None = None,
  1253. go_package: str | None = None,
  1254. cc_generic_services: bool | None = None,
  1255. java_generic_services: bool | None = None,
  1256. py_generic_services: bool | None = None,
  1257. deprecated: bool | None = None,
  1258. cc_enable_arenas: bool | None = None,
  1259. objc_class_prefix: str | None = None,
  1260. csharp_namespace: str | None = None,
  1261. swift_prefix: str | None = None,
  1262. php_class_prefix: str | None = None,
  1263. php_namespace: str | None = None,
  1264. php_metadata_namespace: str | None = None,
  1265. ruby_package: str | None = None,
  1266. features: FeatureSet | None = None,
  1267. uninterpreted_option: list[UninterpretedOption] | None = None,
  1268. ) -> None:
  1269. pass
  1270. java_package: str
  1271. java_outer_classname: str
  1272. java_multiple_files: bool
  1273. java_generate_equals_and_hash: bool
  1274. java_string_check_utf8: bool
  1275. optimize_for: FileOptions.OptimizeMode
  1276. go_package: str
  1277. cc_generic_services: bool
  1278. java_generic_services: bool
  1279. py_generic_services: bool
  1280. deprecated: bool
  1281. cc_enable_arenas: bool
  1282. objc_class_prefix: str
  1283. csharp_namespace: str
  1284. swift_prefix: str
  1285. php_class_prefix: str
  1286. php_namespace: str
  1287. php_metadata_namespace: str
  1288. ruby_package: str
  1289. features: FeatureSet | None
  1290. uninterpreted_option: list[UninterpretedOption]
  1291. class OptimizeMode(Enum):
  1292. """
  1293. Generated classes can be optimized for speed or code size.
  1294. ```proto
  1295. enum google.protobuf.FileOptions.OptimizeMode
  1296. ```
  1297. Attributes:
  1298. SPEED:
  1299. Generate complete code for parsing, serialization,
  1300. ```proto
  1301. SPEED = 1
  1302. ```
  1303. CODE_SIZE:
  1304. etc.
  1305. Use ReflectionOps to implement these methods.
  1306. ```proto
  1307. CODE_SIZE = 2
  1308. ```
  1309. LITE_RUNTIME:
  1310. Generate code using MessageLite and the lite runtime.
  1311. ```proto
  1312. LITE_RUNTIME = 3
  1313. ```
  1314. """
  1315. SPEED = 1
  1316. CODE_SIZE = 2
  1317. LITE_RUNTIME = 3
  1318. _MessageOptionsFields: TypeAlias = Literal[
  1319. "message_set_wire_format",
  1320. "no_standard_descriptor_accessor",
  1321. "deprecated",
  1322. "map_entry",
  1323. "deprecated_legacy_json_field_conflicts",
  1324. "features",
  1325. "uninterpreted_option",
  1326. ]
  1327. class MessageOptions(Message[_MessageOptionsFields]):
  1328. """
  1329. ```proto
  1330. message google.protobuf.MessageOptions
  1331. ```
  1332. Attributes:
  1333. message_set_wire_format:
  1334. Set true to use the old proto1 MessageSet wire format for extensions.
  1335. This is provided for backwards-compatibility with the MessageSet wire
  1336. format. You should not use this for any other reason: It's less
  1337. efficient, has fewer features, and is more complicated.
  1338. The message must be defined exactly as follows:
  1339. message Foo {
  1340. option message_set_wire_format = true;
  1341. extensions 4 to max;
  1342. }
  1343. Note that the message cannot have any defined fields; MessageSets only
  1344. have extensions.
  1345. All extensions of your type must be singular messages; e.g. they cannot
  1346. be int32s, enums, or repeated messages.
  1347. Because this is an option, the above two restrictions are not enforced by
  1348. the protocol compiler.
  1349. ```proto
  1350. optional bool message_set_wire_format = 1 [default = false];
  1351. ```
  1352. no_standard_descriptor_accessor:
  1353. Disables the generation of the standard "descriptor()" accessor, which can
  1354. conflict with a field of the same name. This is meant to make migration
  1355. from proto1 easier; new code should avoid fields named "descriptor".
  1356. ```proto
  1357. optional bool no_standard_descriptor_accessor = 2 [default = false];
  1358. ```
  1359. deprecated:
  1360. Is this message deprecated?
  1361. Depending on the target platform, this can emit Deprecated annotations
  1362. for the message, or it will be completely ignored; in the very least,
  1363. this is a formalization for deprecating messages.
  1364. ```proto
  1365. optional bool deprecated = 3 [default = false];
  1366. ```
  1367. map_entry:
  1368. Whether the message is an automatically generated map entry type for the
  1369. maps field.
  1370. For maps fields:
  1371. map<KeyType, ValueType> map_field = 1;
  1372. The parsed descriptor looks like:
  1373. message MapFieldEntry {
  1374. option map_entry = true;
  1375. optional KeyType key = 1;
  1376. optional ValueType value = 2;
  1377. }
  1378. repeated MapFieldEntry map_field = 1;
  1379. Implementations may choose not to generate the map_entry=true message, but
  1380. use a native map in the target language to hold the keys and values.
  1381. The reflection APIs in such implementations still need to work as
  1382. if the field is a repeated message field.
  1383. NOTE: Do not set the option in .proto files. Always use the maps syntax
  1384. instead. The option should only be implicitly set by the proto compiler
  1385. parser.
  1386. ```proto
  1387. optional bool map_entry = 7;
  1388. ```
  1389. deprecated_legacy_json_field_conflicts:
  1390. Enable the legacy handling of JSON field name conflicts. This lowercases
  1391. and strips underscored from the fields before comparison in proto3 only.
  1392. The new behavior takes `json_name` into account and applies to proto2 as
  1393. well.
  1394. This should only be used as a temporary measure against broken builds due
  1395. to the change in behavior for JSON field name conflicts.
  1396. TODO This is legacy behavior we plan to remove once downstream
  1397. teams have had time to migrate.
  1398. ```proto
  1399. optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
  1400. ```
  1401. features:
  1402. Any features defined in the specific edition.
  1403. WARNING: This field should only be used by protobuf plugins or special
  1404. cases like the proto compiler. Other uses are discouraged and
  1405. developers should rely on the protoreflect APIs for their client language.
  1406. ```proto
  1407. optional google.protobuf.FeatureSet features = 12;
  1408. ```
  1409. uninterpreted_option:
  1410. The parser stores options it doesn't recognize here. See above.
  1411. ```proto
  1412. repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1413. ```
  1414. """
  1415. __slots__ = (
  1416. "message_set_wire_format",
  1417. "no_standard_descriptor_accessor",
  1418. "deprecated",
  1419. "map_entry",
  1420. "deprecated_legacy_json_field_conflicts",
  1421. "features",
  1422. "uninterpreted_option",
  1423. )
  1424. if TYPE_CHECKING:
  1425. def __init__(
  1426. self,
  1427. *,
  1428. message_set_wire_format: bool | None = None,
  1429. no_standard_descriptor_accessor: bool | None = None,
  1430. deprecated: bool | None = None,
  1431. map_entry: bool | None = None,
  1432. deprecated_legacy_json_field_conflicts: bool | None = None,
  1433. features: FeatureSet | None = None,
  1434. uninterpreted_option: list[UninterpretedOption] | None = None,
  1435. ) -> None:
  1436. pass
  1437. message_set_wire_format: bool
  1438. no_standard_descriptor_accessor: bool
  1439. deprecated: bool
  1440. map_entry: bool
  1441. deprecated_legacy_json_field_conflicts: bool
  1442. features: FeatureSet | None
  1443. uninterpreted_option: list[UninterpretedOption]
  1444. _FieldOptionsFields: TypeAlias = Literal[
  1445. "ctype",
  1446. "packed",
  1447. "jstype",
  1448. "lazy",
  1449. "unverified_lazy",
  1450. "deprecated",
  1451. "weak",
  1452. "debug_redact",
  1453. "retention",
  1454. "targets",
  1455. "edition_defaults",
  1456. "features",
  1457. "feature_support",
  1458. "uninterpreted_option",
  1459. ]
  1460. class FieldOptions(Message[_FieldOptionsFields]):
  1461. """
  1462. ```proto
  1463. message google.protobuf.FieldOptions
  1464. ```
  1465. Attributes:
  1466. ctype:
  1467. NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
  1468. The ctype option instructs the C++ code generator to use a different
  1469. representation of the field than it normally would. See the specific
  1470. options below. This option is only implemented to support use of
  1471. [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
  1472. type "bytes" in the open source release.
  1473. TODO: make ctype actually deprecated.
  1474. ```proto
  1475. optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  1476. ```
  1477. packed:
  1478. The packed option can be enabled for repeated primitive fields to enable
  1479. a more efficient representation on the wire. Rather than repeatedly
  1480. writing the tag and type for each element, the entire array is encoded as
  1481. a single length-delimited blob. In proto3, only explicit setting it to
  1482. false will avoid using packed encoding. This option is prohibited in
  1483. Editions, but the `repeated_field_encoding` feature can be used to control
  1484. the behavior.
  1485. ```proto
  1486. optional bool packed = 2;
  1487. ```
  1488. jstype:
  1489. The jstype option determines the JavaScript type used for values of the
  1490. field. The option is permitted only for 64 bit integral and fixed types
  1491. (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
  1492. is represented as JavaScript string, which avoids loss of precision that
  1493. can happen when a large value is converted to a floating point JavaScript.
  1494. Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
  1495. use the JavaScript "number" type. The behavior of the default option
  1496. JS_NORMAL is implementation dependent.
  1497. This option is an enum to permit additional types to be added, e.g.
  1498. goog.math.Integer.
  1499. ```proto
  1500. optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  1501. ```
  1502. lazy:
  1503. Should this field be parsed lazily? Lazy applies only to message-type
  1504. fields. It means that when the outer message is initially parsed, the
  1505. inner message's contents will not be parsed but instead stored in encoded
  1506. form. The inner message will actually be parsed when it is first accessed.
  1507. This is only a hint. Implementations are free to choose whether to use
  1508. eager or lazy parsing regardless of the value of this option. However,
  1509. setting this option true suggests that the protocol author believes that
  1510. using lazy parsing on this field is worth the additional bookkeeping
  1511. overhead typically needed to implement it.
  1512. This option does not affect the public interface of any generated code;
  1513. all method signatures remain the same. Furthermore, thread-safety of the
  1514. interface is not affected by this option; const methods remain safe to
  1515. call from multiple threads concurrently, while non-const methods continue
  1516. to require exclusive access.
  1517. Note that lazy message fields are still eagerly verified to check
  1518. ill-formed wireformat or missing required fields. Calling IsInitialized()
  1519. on the outer message would fail if the inner message has missing required
  1520. fields. Failed verification would result in parsing failure (except when
  1521. uninitialized messages are acceptable).
  1522. ```proto
  1523. optional bool lazy = 5 [default = false];
  1524. ```
  1525. unverified_lazy:
  1526. unverified_lazy does no correctness checks on the byte stream. This should
  1527. only be used where lazy with verification is prohibitive for performance
  1528. reasons.
  1529. ```proto
  1530. optional bool unverified_lazy = 15 [default = false];
  1531. ```
  1532. deprecated:
  1533. Is this field deprecated?
  1534. Depending on the target platform, this can emit Deprecated annotations
  1535. for accessors, or it will be completely ignored; in the very least, this
  1536. is a formalization for deprecating fields.
  1537. ```proto
  1538. optional bool deprecated = 3 [default = false];
  1539. ```
  1540. weak:
  1541. DEPRECATED. DO NOT USE!
  1542. For Google-internal migration only. Do not use.
  1543. ```proto
  1544. optional bool weak = 10 [default = false, deprecated = true];
  1545. ```
  1546. debug_redact:
  1547. Indicate that the field value should not be printed out when using debug
  1548. formats, e.g. when the field contains sensitive credentials.
  1549. ```proto
  1550. optional bool debug_redact = 16 [default = false];
  1551. ```
  1552. retention:
  1553. ```proto
  1554. optional google.protobuf.FieldOptions.OptionRetention retention = 17;
  1555. ```
  1556. targets:
  1557. ```proto
  1558. repeated google.protobuf.FieldOptions.OptionTargetType targets = 19 [packed = false];
  1559. ```
  1560. edition_defaults:
  1561. ```proto
  1562. repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
  1563. ```
  1564. features:
  1565. Any features defined in the specific edition.
  1566. WARNING: This field should only be used by protobuf plugins or special
  1567. cases like the proto compiler. Other uses are discouraged and
  1568. developers should rely on the protoreflect APIs for their client language.
  1569. ```proto
  1570. optional google.protobuf.FeatureSet features = 21;
  1571. ```
  1572. feature_support:
  1573. ```proto
  1574. optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
  1575. ```
  1576. uninterpreted_option:
  1577. The parser stores options it doesn't recognize here. See above.
  1578. ```proto
  1579. repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1580. ```
  1581. """
  1582. __slots__ = (
  1583. "ctype",
  1584. "packed",
  1585. "jstype",
  1586. "lazy",
  1587. "unverified_lazy",
  1588. "deprecated",
  1589. "weak",
  1590. "debug_redact",
  1591. "retention",
  1592. "targets",
  1593. "edition_defaults",
  1594. "features",
  1595. "feature_support",
  1596. "uninterpreted_option",
  1597. )
  1598. if TYPE_CHECKING:
  1599. def __init__(
  1600. self,
  1601. *,
  1602. ctype: FieldOptions.CType | None = None,
  1603. packed: bool | None = None,
  1604. jstype: FieldOptions.JSType | None = None,
  1605. lazy: bool | None = None,
  1606. unverified_lazy: bool | None = None,
  1607. deprecated: bool | None = None,
  1608. weak: bool | None = None,
  1609. debug_redact: bool | None = None,
  1610. retention: FieldOptions.OptionRetention | None = None,
  1611. targets: list[FieldOptions.OptionTargetType] | None = None,
  1612. edition_defaults: list[FieldOptions.EditionDefault] | None = None,
  1613. features: FeatureSet | None = None,
  1614. feature_support: FieldOptions.FeatureSupport | None = None,
  1615. uninterpreted_option: list[UninterpretedOption] | None = None,
  1616. ) -> None:
  1617. pass
  1618. ctype: FieldOptions.CType
  1619. packed: bool
  1620. jstype: FieldOptions.JSType
  1621. lazy: bool
  1622. unverified_lazy: bool
  1623. deprecated: bool
  1624. weak: bool
  1625. debug_redact: bool
  1626. retention: FieldOptions.OptionRetention
  1627. targets: list[FieldOptions.OptionTargetType]
  1628. edition_defaults: list[FieldOptions.EditionDefault]
  1629. features: FeatureSet | None
  1630. feature_support: FieldOptions.FeatureSupport | None
  1631. uninterpreted_option: list[UninterpretedOption]
  1632. _EditionDefaultFields: TypeAlias = Literal["edition", "value"]
  1633. class EditionDefault(Message[_EditionDefaultFields]):
  1634. """
  1635. ```proto
  1636. message google.protobuf.FieldOptions.EditionDefault
  1637. ```
  1638. Attributes:
  1639. edition:
  1640. ```proto
  1641. optional google.protobuf.Edition edition = 3;
  1642. ```
  1643. value:
  1644. Textproto value.
  1645. ```proto
  1646. optional string value = 2;
  1647. ```
  1648. """
  1649. __slots__ = ("edition", "value")
  1650. if TYPE_CHECKING:
  1651. def __init__(
  1652. self, *, edition: Edition | None = None, value: str | None = None
  1653. ) -> None:
  1654. pass
  1655. edition: Edition
  1656. value: str
  1657. _FeatureSupportFields: TypeAlias = Literal[
  1658. "edition_introduced",
  1659. "edition_deprecated",
  1660. "deprecation_warning",
  1661. "edition_removed",
  1662. "removal_error",
  1663. ]
  1664. class FeatureSupport(Message[_FeatureSupportFields]):
  1665. """
  1666. Information about the support window of a feature.
  1667. ```proto
  1668. message google.protobuf.FieldOptions.FeatureSupport
  1669. ```
  1670. Attributes:
  1671. edition_introduced:
  1672. The edition that this feature was first available in. In editions
  1673. earlier than this one, the default assigned to EDITION_LEGACY will be
  1674. used, and proto files will not be able to override it.
  1675. ```proto
  1676. optional google.protobuf.Edition edition_introduced = 1;
  1677. ```
  1678. edition_deprecated:
  1679. The edition this feature becomes deprecated in. Using this after this
  1680. edition may trigger warnings.
  1681. ```proto
  1682. optional google.protobuf.Edition edition_deprecated = 2;
  1683. ```
  1684. deprecation_warning:
  1685. The deprecation warning text if this feature is used after the edition it
  1686. was marked deprecated in.
  1687. ```proto
  1688. optional string deprecation_warning = 3;
  1689. ```
  1690. edition_removed:
  1691. The edition this feature is no longer available in. In editions after
  1692. this one, the last default assigned will be used, and proto files will
  1693. not be able to override it.
  1694. ```proto
  1695. optional google.protobuf.Edition edition_removed = 4;
  1696. ```
  1697. removal_error:
  1698. The removal error text if this feature is used after the edition it was
  1699. removed in.
  1700. ```proto
  1701. optional string removal_error = 5;
  1702. ```
  1703. """
  1704. __slots__ = (
  1705. "edition_introduced",
  1706. "edition_deprecated",
  1707. "deprecation_warning",
  1708. "edition_removed",
  1709. "removal_error",
  1710. )
  1711. if TYPE_CHECKING:
  1712. def __init__(
  1713. self,
  1714. *,
  1715. edition_introduced: Edition | None = None,
  1716. edition_deprecated: Edition | None = None,
  1717. deprecation_warning: str | None = None,
  1718. edition_removed: Edition | None = None,
  1719. removal_error: str | None = None,
  1720. ) -> None:
  1721. pass
  1722. edition_introduced: Edition
  1723. edition_deprecated: Edition
  1724. deprecation_warning: str
  1725. edition_removed: Edition
  1726. removal_error: str
  1727. class CType(Enum):
  1728. """
  1729. ```proto
  1730. enum google.protobuf.FieldOptions.CType
  1731. ```
  1732. Attributes:
  1733. STRING:
  1734. Default mode.
  1735. ```proto
  1736. STRING = 0
  1737. ```
  1738. CORD:
  1739. The option [ctype=CORD] may be applied to a non-repeated field of type
  1740. "bytes". It indicates that in C++, the data should be stored in a Cord
  1741. instead of a string. For very large strings, this may reduce memory
  1742. fragmentation. It may also allow better performance when parsing from a
  1743. Cord, or when parsing with aliasing enabled, as the parsed Cord may then
  1744. alias the original buffer.
  1745. ```proto
  1746. CORD = 1
  1747. ```
  1748. STRING_PIECE:
  1749. ```proto
  1750. STRING_PIECE = 2
  1751. ```
  1752. """
  1753. STRING = 0
  1754. CORD = 1
  1755. STRING_PIECE = 2
  1756. class JSType(Enum):
  1757. """
  1758. ```proto
  1759. enum google.protobuf.FieldOptions.JSType
  1760. ```
  1761. Attributes:
  1762. JS_NORMAL:
  1763. Use the default type.
  1764. ```proto
  1765. JS_NORMAL = 0
  1766. ```
  1767. JS_STRING:
  1768. Use JavaScript strings.
  1769. ```proto
  1770. JS_STRING = 1
  1771. ```
  1772. JS_NUMBER:
  1773. Use JavaScript numbers.
  1774. ```proto
  1775. JS_NUMBER = 2
  1776. ```
  1777. """
  1778. JS_NORMAL = 0
  1779. JS_STRING = 1
  1780. JS_NUMBER = 2
  1781. class OptionRetention(Enum):
  1782. """
  1783. If set to RETENTION_SOURCE, the option will be omitted from the binary.
  1784. ```proto
  1785. enum google.protobuf.FieldOptions.OptionRetention
  1786. ```
  1787. Attributes:
  1788. RETENTION_UNKNOWN:
  1789. ```proto
  1790. RETENTION_UNKNOWN = 0
  1791. ```
  1792. RETENTION_RUNTIME:
  1793. ```proto
  1794. RETENTION_RUNTIME = 1
  1795. ```
  1796. RETENTION_SOURCE:
  1797. ```proto
  1798. RETENTION_SOURCE = 2
  1799. ```
  1800. """
  1801. RETENTION_UNKNOWN = 0
  1802. RETENTION_RUNTIME = 1
  1803. RETENTION_SOURCE = 2
  1804. class OptionTargetType(Enum):
  1805. """
  1806. This indicates the types of entities that the field may apply to when used
  1807. as an option. If it is unset, then the field may be freely used as an
  1808. option on any kind of entity.
  1809. ```proto
  1810. enum google.protobuf.FieldOptions.OptionTargetType
  1811. ```
  1812. Attributes:
  1813. TARGET_TYPE_UNKNOWN:
  1814. ```proto
  1815. TARGET_TYPE_UNKNOWN = 0
  1816. ```
  1817. TARGET_TYPE_FILE:
  1818. ```proto
  1819. TARGET_TYPE_FILE = 1
  1820. ```
  1821. TARGET_TYPE_EXTENSION_RANGE:
  1822. ```proto
  1823. TARGET_TYPE_EXTENSION_RANGE = 2
  1824. ```
  1825. TARGET_TYPE_MESSAGE:
  1826. ```proto
  1827. TARGET_TYPE_MESSAGE = 3
  1828. ```
  1829. TARGET_TYPE_FIELD:
  1830. ```proto
  1831. TARGET_TYPE_FIELD = 4
  1832. ```
  1833. TARGET_TYPE_ONEOF:
  1834. ```proto
  1835. TARGET_TYPE_ONEOF = 5
  1836. ```
  1837. TARGET_TYPE_ENUM:
  1838. ```proto
  1839. TARGET_TYPE_ENUM = 6
  1840. ```
  1841. TARGET_TYPE_ENUM_ENTRY:
  1842. ```proto
  1843. TARGET_TYPE_ENUM_ENTRY = 7
  1844. ```
  1845. TARGET_TYPE_SERVICE:
  1846. ```proto
  1847. TARGET_TYPE_SERVICE = 8
  1848. ```
  1849. TARGET_TYPE_METHOD:
  1850. ```proto
  1851. TARGET_TYPE_METHOD = 9
  1852. ```
  1853. """
  1854. TARGET_TYPE_UNKNOWN = 0
  1855. TARGET_TYPE_FILE = 1
  1856. TARGET_TYPE_EXTENSION_RANGE = 2
  1857. TARGET_TYPE_MESSAGE = 3
  1858. TARGET_TYPE_FIELD = 4
  1859. TARGET_TYPE_ONEOF = 5
  1860. TARGET_TYPE_ENUM = 6
  1861. TARGET_TYPE_ENUM_ENTRY = 7
  1862. TARGET_TYPE_SERVICE = 8
  1863. TARGET_TYPE_METHOD = 9
  1864. _OneofOptionsFields: TypeAlias = Literal["features", "uninterpreted_option"]
  1865. class OneofOptions(Message[_OneofOptionsFields]):
  1866. """
  1867. ```proto
  1868. message google.protobuf.OneofOptions
  1869. ```
  1870. Attributes:
  1871. features:
  1872. Any features defined in the specific edition.
  1873. WARNING: This field should only be used by protobuf plugins or special
  1874. cases like the proto compiler. Other uses are discouraged and
  1875. developers should rely on the protoreflect APIs for their client language.
  1876. ```proto
  1877. optional google.protobuf.FeatureSet features = 1;
  1878. ```
  1879. uninterpreted_option:
  1880. The parser stores options it doesn't recognize here. See above.
  1881. ```proto
  1882. repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1883. ```
  1884. """
  1885. __slots__ = ("features", "uninterpreted_option")
  1886. if TYPE_CHECKING:
  1887. def __init__(
  1888. self,
  1889. *,
  1890. features: FeatureSet | None = None,
  1891. uninterpreted_option: list[UninterpretedOption] | None = None,
  1892. ) -> None:
  1893. pass
  1894. features: FeatureSet | None
  1895. uninterpreted_option: list[UninterpretedOption]
  1896. _EnumOptionsFields: TypeAlias = Literal[
  1897. "allow_alias",
  1898. "deprecated",
  1899. "deprecated_legacy_json_field_conflicts",
  1900. "features",
  1901. "uninterpreted_option",
  1902. ]
  1903. class EnumOptions(Message[_EnumOptionsFields]):
  1904. """
  1905. ```proto
  1906. message google.protobuf.EnumOptions
  1907. ```
  1908. Attributes:
  1909. allow_alias:
  1910. Set this option to true to allow mapping different tag names to the same
  1911. value.
  1912. ```proto
  1913. optional bool allow_alias = 2;
  1914. ```
  1915. deprecated:
  1916. Is this enum deprecated?
  1917. Depending on the target platform, this can emit Deprecated annotations
  1918. for the enum, or it will be completely ignored; in the very least, this
  1919. is a formalization for deprecating enums.
  1920. ```proto
  1921. optional bool deprecated = 3 [default = false];
  1922. ```
  1923. deprecated_legacy_json_field_conflicts:
  1924. Enable the legacy handling of JSON field name conflicts. This lowercases
  1925. and strips underscored from the fields before comparison in proto3 only.
  1926. The new behavior takes `json_name` into account and applies to proto2 as
  1927. well.
  1928. TODO Remove this legacy behavior once downstream teams have
  1929. had time to migrate.
  1930. ```proto
  1931. optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
  1932. ```
  1933. features:
  1934. Any features defined in the specific edition.
  1935. WARNING: This field should only be used by protobuf plugins or special
  1936. cases like the proto compiler. Other uses are discouraged and
  1937. developers should rely on the protoreflect APIs for their client language.
  1938. ```proto
  1939. optional google.protobuf.FeatureSet features = 7;
  1940. ```
  1941. uninterpreted_option:
  1942. The parser stores options it doesn't recognize here. See above.
  1943. ```proto
  1944. repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1945. ```
  1946. """
  1947. __slots__ = (
  1948. "allow_alias",
  1949. "deprecated",
  1950. "deprecated_legacy_json_field_conflicts",
  1951. "features",
  1952. "uninterpreted_option",
  1953. )
  1954. if TYPE_CHECKING:
  1955. def __init__(
  1956. self,
  1957. *,
  1958. allow_alias: bool | None = None,
  1959. deprecated: bool | None = None,
  1960. deprecated_legacy_json_field_conflicts: bool | None = None,
  1961. features: FeatureSet | None = None,
  1962. uninterpreted_option: list[UninterpretedOption] | None = None,
  1963. ) -> None:
  1964. pass
  1965. allow_alias: bool
  1966. deprecated: bool
  1967. deprecated_legacy_json_field_conflicts: bool
  1968. features: FeatureSet | None
  1969. uninterpreted_option: list[UninterpretedOption]
  1970. _EnumValueOptionsFields: TypeAlias = Literal[
  1971. "deprecated", "features", "debug_redact", "feature_support", "uninterpreted_option"
  1972. ]
  1973. class EnumValueOptions(Message[_EnumValueOptionsFields]):
  1974. """
  1975. ```proto
  1976. message google.protobuf.EnumValueOptions
  1977. ```
  1978. Attributes:
  1979. deprecated:
  1980. Is this enum value deprecated?
  1981. Depending on the target platform, this can emit Deprecated annotations
  1982. for the enum value, or it will be completely ignored; in the very least,
  1983. this is a formalization for deprecating enum values.
  1984. ```proto
  1985. optional bool deprecated = 1 [default = false];
  1986. ```
  1987. features:
  1988. Any features defined in the specific edition.
  1989. WARNING: This field should only be used by protobuf plugins or special
  1990. cases like the proto compiler. Other uses are discouraged and
  1991. developers should rely on the protoreflect APIs for their client language.
  1992. ```proto
  1993. optional google.protobuf.FeatureSet features = 2;
  1994. ```
  1995. debug_redact:
  1996. Indicate that fields annotated with this enum value should not be printed
  1997. out when using debug formats, e.g. when the field contains sensitive
  1998. credentials.
  1999. ```proto
  2000. optional bool debug_redact = 3 [default = false];
  2001. ```
  2002. feature_support:
  2003. Information about the support window of a feature value.
  2004. ```proto
  2005. optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4;
  2006. ```
  2007. uninterpreted_option:
  2008. The parser stores options it doesn't recognize here. See above.
  2009. ```proto
  2010. repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
  2011. ```
  2012. """
  2013. __slots__ = (
  2014. "deprecated",
  2015. "features",
  2016. "debug_redact",
  2017. "feature_support",
  2018. "uninterpreted_option",
  2019. )
  2020. if TYPE_CHECKING:
  2021. def __init__(
  2022. self,
  2023. *,
  2024. deprecated: bool | None = None,
  2025. features: FeatureSet | None = None,
  2026. debug_redact: bool | None = None,
  2027. feature_support: FieldOptions.FeatureSupport | None = None,
  2028. uninterpreted_option: list[UninterpretedOption] | None = None,
  2029. ) -> None:
  2030. pass
  2031. deprecated: bool
  2032. features: FeatureSet | None
  2033. debug_redact: bool
  2034. feature_support: FieldOptions.FeatureSupport | None
  2035. uninterpreted_option: list[UninterpretedOption]
  2036. _ServiceOptionsFields: TypeAlias = Literal[
  2037. "features", "deprecated", "uninterpreted_option"
  2038. ]
  2039. class ServiceOptions(Message[_ServiceOptionsFields]):
  2040. """
  2041. ```proto
  2042. message google.protobuf.ServiceOptions
  2043. ```
  2044. Attributes:
  2045. features:
  2046. Any features defined in the specific edition.
  2047. WARNING: This field should only be used by protobuf plugins or special
  2048. cases like the proto compiler. Other uses are discouraged and
  2049. developers should rely on the protoreflect APIs for their client language.
  2050. ```proto
  2051. optional google.protobuf.FeatureSet features = 34;
  2052. ```
  2053. deprecated:
  2054. Is this service deprecated?
  2055. Depending on the target platform, this can emit Deprecated annotations
  2056. for the service, or it will be completely ignored; in the very least,
  2057. this is a formalization for deprecating services.
  2058. ```proto
  2059. optional bool deprecated = 33 [default = false];
  2060. ```
  2061. uninterpreted_option:
  2062. The parser stores options it doesn't recognize here. See above.
  2063. ```proto
  2064. repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
  2065. ```
  2066. """
  2067. __slots__ = ("features", "deprecated", "uninterpreted_option")
  2068. if TYPE_CHECKING:
  2069. def __init__(
  2070. self,
  2071. *,
  2072. features: FeatureSet | None = None,
  2073. deprecated: bool | None = None,
  2074. uninterpreted_option: list[UninterpretedOption] | None = None,
  2075. ) -> None:
  2076. pass
  2077. features: FeatureSet | None
  2078. deprecated: bool
  2079. uninterpreted_option: list[UninterpretedOption]
  2080. _MethodOptionsFields: TypeAlias = Literal[
  2081. "deprecated", "idempotency_level", "features", "uninterpreted_option"
  2082. ]
  2083. class MethodOptions(Message[_MethodOptionsFields]):
  2084. """
  2085. ```proto
  2086. message google.protobuf.MethodOptions
  2087. ```
  2088. Attributes:
  2089. deprecated:
  2090. Is this method deprecated?
  2091. Depending on the target platform, this can emit Deprecated annotations
  2092. for the method, or it will be completely ignored; in the very least,
  2093. this is a formalization for deprecating methods.
  2094. ```proto
  2095. optional bool deprecated = 33 [default = false];
  2096. ```
  2097. idempotency_level:
  2098. ```proto
  2099. optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  2100. ```
  2101. features:
  2102. Any features defined in the specific edition.
  2103. WARNING: This field should only be used by protobuf plugins or special
  2104. cases like the proto compiler. Other uses are discouraged and
  2105. developers should rely on the protoreflect APIs for their client language.
  2106. ```proto
  2107. optional google.protobuf.FeatureSet features = 35;
  2108. ```
  2109. uninterpreted_option:
  2110. The parser stores options it doesn't recognize here. See above.
  2111. ```proto
  2112. repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
  2113. ```
  2114. """
  2115. __slots__ = ("deprecated", "idempotency_level", "features", "uninterpreted_option")
  2116. if TYPE_CHECKING:
  2117. def __init__(
  2118. self,
  2119. *,
  2120. deprecated: bool | None = None,
  2121. idempotency_level: MethodOptions.IdempotencyLevel | None = None,
  2122. features: FeatureSet | None = None,
  2123. uninterpreted_option: list[UninterpretedOption] | None = None,
  2124. ) -> None:
  2125. pass
  2126. deprecated: bool
  2127. idempotency_level: MethodOptions.IdempotencyLevel
  2128. features: FeatureSet | None
  2129. uninterpreted_option: list[UninterpretedOption]
  2130. class IdempotencyLevel(Enum):
  2131. """
  2132. Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
  2133. or neither? HTTP based RPC implementation may choose GET verb for safe
  2134. methods, and PUT verb for idempotent methods instead of the default POST.
  2135. ```proto
  2136. enum google.protobuf.MethodOptions.IdempotencyLevel
  2137. ```
  2138. Attributes:
  2139. IDEMPOTENCY_UNKNOWN:
  2140. ```proto
  2141. IDEMPOTENCY_UNKNOWN = 0
  2142. ```
  2143. NO_SIDE_EFFECTS:
  2144. implies idempotent
  2145. ```proto
  2146. NO_SIDE_EFFECTS = 1
  2147. ```
  2148. IDEMPOTENT:
  2149. idempotent, but may have side effects
  2150. ```proto
  2151. IDEMPOTENT = 2
  2152. ```
  2153. """
  2154. IDEMPOTENCY_UNKNOWN = 0
  2155. NO_SIDE_EFFECTS = 1
  2156. IDEMPOTENT = 2
  2157. _UninterpretedOptionFields: TypeAlias = Literal[
  2158. "name",
  2159. "identifier_value",
  2160. "positive_int_value",
  2161. "negative_int_value",
  2162. "double_value",
  2163. "string_value",
  2164. "aggregate_value",
  2165. ]
  2166. class UninterpretedOption(Message[_UninterpretedOptionFields]):
  2167. """
  2168. A message representing a option the parser does not recognize. This only
  2169. appears in options protos created by the compiler::Parser class.
  2170. DescriptorPool resolves these when building Descriptor objects. Therefore,
  2171. options protos in descriptor objects (e.g. returned by Descriptor::options(),
  2172. or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
  2173. in them.
  2174. ```proto
  2175. message google.protobuf.UninterpretedOption
  2176. ```
  2177. Attributes:
  2178. name:
  2179. ```proto
  2180. repeated google.protobuf.UninterpretedOption.NamePart name = 2;
  2181. ```
  2182. identifier_value:
  2183. The value of the uninterpreted option, in whatever type the tokenizer
  2184. identified it as during parsing. Exactly one of these should be set.
  2185. ```proto
  2186. optional string identifier_value = 3;
  2187. ```
  2188. positive_int_value:
  2189. ```proto
  2190. optional uint64 positive_int_value = 4;
  2191. ```
  2192. negative_int_value:
  2193. ```proto
  2194. optional int64 negative_int_value = 5;
  2195. ```
  2196. double_value:
  2197. ```proto
  2198. optional double double_value = 6;
  2199. ```
  2200. string_value:
  2201. ```proto
  2202. optional bytes string_value = 7;
  2203. ```
  2204. aggregate_value:
  2205. ```proto
  2206. optional string aggregate_value = 8;
  2207. ```
  2208. """
  2209. __slots__ = (
  2210. "name",
  2211. "identifier_value",
  2212. "positive_int_value",
  2213. "negative_int_value",
  2214. "double_value",
  2215. "string_value",
  2216. "aggregate_value",
  2217. )
  2218. if TYPE_CHECKING:
  2219. def __init__(
  2220. self,
  2221. *,
  2222. name: list[UninterpretedOption.NamePart] | None = None,
  2223. identifier_value: str | None = None,
  2224. positive_int_value: int | None = None,
  2225. negative_int_value: int | None = None,
  2226. double_value: float | None = None,
  2227. string_value: bytes | None = None,
  2228. aggregate_value: str | None = None,
  2229. ) -> None:
  2230. pass
  2231. name: list[UninterpretedOption.NamePart]
  2232. identifier_value: str
  2233. positive_int_value: int
  2234. negative_int_value: int
  2235. double_value: float
  2236. string_value: bytes
  2237. aggregate_value: str
  2238. _NamePartFields: TypeAlias = Literal["name_part", "is_extension"]
  2239. class NamePart(Message[_NamePartFields]):
  2240. """
  2241. The name of the uninterpreted option. Each string represents a segment in
  2242. a dot-separated name. is_extension is true iff a segment represents an
  2243. extension (denoted with parentheses in options specs in .proto files).
  2244. E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
  2245. "foo.(bar.baz).moo".
  2246. ```proto
  2247. message google.protobuf.UninterpretedOption.NamePart
  2248. ```
  2249. Attributes:
  2250. name_part:
  2251. ```proto
  2252. required string name_part = 1;
  2253. ```
  2254. is_extension:
  2255. ```proto
  2256. required bool is_extension = 2;
  2257. ```
  2258. """
  2259. __slots__ = ("name_part", "is_extension")
  2260. if TYPE_CHECKING:
  2261. def __init__(
  2262. self, *, name_part: str | None = None, is_extension: bool | None = None
  2263. ) -> None:
  2264. pass
  2265. name_part: str
  2266. is_extension: bool
  2267. _FeatureSetFields: TypeAlias = Literal[
  2268. "field_presence",
  2269. "enum_type",
  2270. "repeated_field_encoding",
  2271. "utf8_validation",
  2272. "message_encoding",
  2273. "json_format",
  2274. "enforce_naming_style",
  2275. "default_symbol_visibility",
  2276. ]
  2277. class FeatureSet(Message[_FeatureSetFields]):
  2278. """
  2279. TODO Enums in C++ gencode (and potentially other languages) are
  2280. not well scoped. This means that each of the feature enums below can clash
  2281. with each other. The short names we've chosen maximize call-site
  2282. readability, but leave us very open to this scenario. A future feature will
  2283. be designed and implemented to handle this, hopefully before we ever hit a
  2284. conflict here.
  2285. ```proto
  2286. message google.protobuf.FeatureSet
  2287. ```
  2288. Attributes:
  2289. field_presence:
  2290. ```proto
  2291. optional google.protobuf.FeatureSet.FieldPresence field_presence = 1;
  2292. ```
  2293. enum_type:
  2294. ```proto
  2295. optional google.protobuf.FeatureSet.EnumType enum_type = 2;
  2296. ```
  2297. repeated_field_encoding:
  2298. ```proto
  2299. optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3;
  2300. ```
  2301. utf8_validation:
  2302. ```proto
  2303. optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4;
  2304. ```
  2305. message_encoding:
  2306. ```proto
  2307. optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5;
  2308. ```
  2309. json_format:
  2310. ```proto
  2311. optional google.protobuf.FeatureSet.JsonFormat json_format = 6;
  2312. ```
  2313. enforce_naming_style:
  2314. ```proto
  2315. optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7;
  2316. ```
  2317. default_symbol_visibility:
  2318. ```proto
  2319. optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8;
  2320. ```
  2321. """
  2322. __slots__ = (
  2323. "field_presence",
  2324. "enum_type",
  2325. "repeated_field_encoding",
  2326. "utf8_validation",
  2327. "message_encoding",
  2328. "json_format",
  2329. "enforce_naming_style",
  2330. "default_symbol_visibility",
  2331. )
  2332. if TYPE_CHECKING:
  2333. def __init__(
  2334. self,
  2335. *,
  2336. field_presence: FeatureSet.FieldPresence | None = None,
  2337. enum_type: FeatureSet.EnumType | None = None,
  2338. repeated_field_encoding: FeatureSet.RepeatedFieldEncoding | None = None,
  2339. utf8_validation: FeatureSet.Utf8Validation | None = None,
  2340. message_encoding: FeatureSet.MessageEncoding | None = None,
  2341. json_format: FeatureSet.JsonFormat | None = None,
  2342. enforce_naming_style: FeatureSet.EnforceNamingStyle | None = None,
  2343. default_symbol_visibility: FeatureSet.VisibilityFeature.DefaultSymbolVisibility
  2344. | None = None,
  2345. ) -> None:
  2346. pass
  2347. field_presence: FeatureSet.FieldPresence
  2348. enum_type: FeatureSet.EnumType
  2349. repeated_field_encoding: FeatureSet.RepeatedFieldEncoding
  2350. utf8_validation: FeatureSet.Utf8Validation
  2351. message_encoding: FeatureSet.MessageEncoding
  2352. json_format: FeatureSet.JsonFormat
  2353. enforce_naming_style: FeatureSet.EnforceNamingStyle
  2354. default_symbol_visibility: FeatureSet.VisibilityFeature.DefaultSymbolVisibility
  2355. _VisibilityFeatureFields: TypeAlias = NoReturn
  2356. class VisibilityFeature(Message[_VisibilityFeatureFields]):
  2357. """
  2358. ```proto
  2359. message google.protobuf.FeatureSet.VisibilityFeature
  2360. ```
  2361. """
  2362. __slots__ = ()
  2363. if TYPE_CHECKING:
  2364. def __init__(self) -> None:
  2365. pass
  2366. class DefaultSymbolVisibility(Enum):
  2367. """
  2368. ```proto
  2369. enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
  2370. ```
  2371. Attributes:
  2372. UNKNOWN:
  2373. ```proto
  2374. DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0
  2375. ```
  2376. EXPORT_ALL:
  2377. Default pre-EDITION_2024, all UNSET visibility are export.
  2378. ```proto
  2379. EXPORT_ALL = 1
  2380. ```
  2381. EXPORT_TOP_LEVEL:
  2382. All top-level symbols default to export, nested default to local.
  2383. ```proto
  2384. EXPORT_TOP_LEVEL = 2
  2385. ```
  2386. LOCAL_ALL:
  2387. All symbols default to local.
  2388. ```proto
  2389. LOCAL_ALL = 3
  2390. ```
  2391. STRICT:
  2392. All symbols local by default. Nested types cannot be exported.
  2393. With special case caveat for message { enum {} reserved 1 to max; }
  2394. This is the recommended setting for new protos.
  2395. ```proto
  2396. STRICT = 4
  2397. ```
  2398. """
  2399. UNKNOWN = 0
  2400. EXPORT_ALL = 1
  2401. EXPORT_TOP_LEVEL = 2
  2402. LOCAL_ALL = 3
  2403. STRICT = 4
  2404. class FieldPresence(Enum):
  2405. """
  2406. ```proto
  2407. enum google.protobuf.FeatureSet.FieldPresence
  2408. ```
  2409. Attributes:
  2410. UNKNOWN:
  2411. ```proto
  2412. FIELD_PRESENCE_UNKNOWN = 0
  2413. ```
  2414. EXPLICIT:
  2415. ```proto
  2416. EXPLICIT = 1
  2417. ```
  2418. IMPLICIT:
  2419. ```proto
  2420. IMPLICIT = 2
  2421. ```
  2422. LEGACY_REQUIRED:
  2423. ```proto
  2424. LEGACY_REQUIRED = 3
  2425. ```
  2426. """
  2427. UNKNOWN = 0
  2428. EXPLICIT = 1
  2429. IMPLICIT = 2
  2430. LEGACY_REQUIRED = 3
  2431. class EnumType(Enum):
  2432. """
  2433. ```proto
  2434. enum google.protobuf.FeatureSet.EnumType
  2435. ```
  2436. Attributes:
  2437. UNKNOWN:
  2438. ```proto
  2439. ENUM_TYPE_UNKNOWN = 0
  2440. ```
  2441. OPEN:
  2442. ```proto
  2443. OPEN = 1
  2444. ```
  2445. CLOSED:
  2446. ```proto
  2447. CLOSED = 2
  2448. ```
  2449. """
  2450. UNKNOWN = 0
  2451. OPEN = 1
  2452. CLOSED = 2
  2453. class RepeatedFieldEncoding(Enum):
  2454. """
  2455. ```proto
  2456. enum google.protobuf.FeatureSet.RepeatedFieldEncoding
  2457. ```
  2458. Attributes:
  2459. UNKNOWN:
  2460. ```proto
  2461. REPEATED_FIELD_ENCODING_UNKNOWN = 0
  2462. ```
  2463. PACKED:
  2464. ```proto
  2465. PACKED = 1
  2466. ```
  2467. EXPANDED:
  2468. ```proto
  2469. EXPANDED = 2
  2470. ```
  2471. """
  2472. UNKNOWN = 0
  2473. PACKED = 1
  2474. EXPANDED = 2
  2475. class Utf8Validation(Enum):
  2476. """
  2477. ```proto
  2478. enum google.protobuf.FeatureSet.Utf8Validation
  2479. ```
  2480. Attributes:
  2481. UNKNOWN:
  2482. ```proto
  2483. UTF8_VALIDATION_UNKNOWN = 0
  2484. ```
  2485. VERIFY:
  2486. ```proto
  2487. VERIFY = 2
  2488. ```
  2489. NONE:
  2490. ```proto
  2491. NONE = 3
  2492. ```
  2493. """
  2494. UNKNOWN = 0
  2495. VERIFY = 2
  2496. NONE = 3
  2497. class MessageEncoding(Enum):
  2498. """
  2499. ```proto
  2500. enum google.protobuf.FeatureSet.MessageEncoding
  2501. ```
  2502. Attributes:
  2503. UNKNOWN:
  2504. ```proto
  2505. MESSAGE_ENCODING_UNKNOWN = 0
  2506. ```
  2507. LENGTH_PREFIXED:
  2508. ```proto
  2509. LENGTH_PREFIXED = 1
  2510. ```
  2511. DELIMITED:
  2512. ```proto
  2513. DELIMITED = 2
  2514. ```
  2515. """
  2516. UNKNOWN = 0
  2517. LENGTH_PREFIXED = 1
  2518. DELIMITED = 2
  2519. class JsonFormat(Enum):
  2520. """
  2521. ```proto
  2522. enum google.protobuf.FeatureSet.JsonFormat
  2523. ```
  2524. Attributes:
  2525. UNKNOWN:
  2526. ```proto
  2527. JSON_FORMAT_UNKNOWN = 0
  2528. ```
  2529. ALLOW:
  2530. ```proto
  2531. ALLOW = 1
  2532. ```
  2533. LEGACY_BEST_EFFORT:
  2534. ```proto
  2535. LEGACY_BEST_EFFORT = 2
  2536. ```
  2537. """
  2538. UNKNOWN = 0
  2539. ALLOW = 1
  2540. LEGACY_BEST_EFFORT = 2
  2541. class EnforceNamingStyle(Enum):
  2542. """
  2543. ```proto
  2544. enum google.protobuf.FeatureSet.EnforceNamingStyle
  2545. ```
  2546. Attributes:
  2547. UNKNOWN:
  2548. ```proto
  2549. ENFORCE_NAMING_STYLE_UNKNOWN = 0
  2550. ```
  2551. STYLE2024:
  2552. ```proto
  2553. STYLE2024 = 1
  2554. ```
  2555. STYLE_LEGACY:
  2556. ```proto
  2557. STYLE_LEGACY = 2
  2558. ```
  2559. STYLE2026:
  2560. ```proto
  2561. STYLE2026 = 3
  2562. ```
  2563. """
  2564. UNKNOWN = 0
  2565. STYLE2024 = 1
  2566. STYLE_LEGACY = 2
  2567. STYLE2026 = 3
  2568. _FeatureSetDefaultsFields: TypeAlias = Literal[
  2569. "defaults", "minimum_edition", "maximum_edition"
  2570. ]
  2571. class FeatureSetDefaults(Message[_FeatureSetDefaultsFields]):
  2572. """
  2573. A compiled specification for the defaults of a set of features. These
  2574. messages are generated from FeatureSet extensions and can be used to seed
  2575. feature resolution. The resolution with this object becomes a simple search
  2576. for the closest matching edition, followed by proto merges.
  2577. ```proto
  2578. message google.protobuf.FeatureSetDefaults
  2579. ```
  2580. Attributes:
  2581. defaults:
  2582. ```proto
  2583. repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
  2584. ```
  2585. minimum_edition:
  2586. The minimum supported edition (inclusive) when this was constructed.
  2587. Editions before this will not have defaults.
  2588. ```proto
  2589. optional google.protobuf.Edition minimum_edition = 4;
  2590. ```
  2591. maximum_edition:
  2592. The maximum known edition (inclusive) when this was constructed. Editions
  2593. after this will not have reliable defaults.
  2594. ```proto
  2595. optional google.protobuf.Edition maximum_edition = 5;
  2596. ```
  2597. """
  2598. __slots__ = ("defaults", "minimum_edition", "maximum_edition")
  2599. if TYPE_CHECKING:
  2600. def __init__(
  2601. self,
  2602. *,
  2603. defaults: list[FeatureSetDefaults.FeatureSetEditionDefault] | None = None,
  2604. minimum_edition: Edition | None = None,
  2605. maximum_edition: Edition | None = None,
  2606. ) -> None:
  2607. pass
  2608. defaults: list[FeatureSetDefaults.FeatureSetEditionDefault]
  2609. minimum_edition: Edition
  2610. maximum_edition: Edition
  2611. _FeatureSetEditionDefaultFields: TypeAlias = Literal[
  2612. "edition", "overridable_features", "fixed_features"
  2613. ]
  2614. class FeatureSetEditionDefault(Message[_FeatureSetEditionDefaultFields]):
  2615. """
  2616. A map from every known edition with a unique set of defaults to its
  2617. defaults. Not all editions may be contained here. For a given edition,
  2618. the defaults at the closest matching edition ordered at or before it should
  2619. be used. This field must be in strict ascending order by edition.
  2620. ```proto
  2621. message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
  2622. ```
  2623. Attributes:
  2624. edition:
  2625. ```proto
  2626. optional google.protobuf.Edition edition = 3;
  2627. ```
  2628. overridable_features:
  2629. Defaults of features that can be overridden in this edition.
  2630. ```proto
  2631. optional google.protobuf.FeatureSet overridable_features = 4;
  2632. ```
  2633. fixed_features:
  2634. Defaults of features that can't be overridden in this edition.
  2635. ```proto
  2636. optional google.protobuf.FeatureSet fixed_features = 5;
  2637. ```
  2638. """
  2639. __slots__ = ("edition", "overridable_features", "fixed_features")
  2640. if TYPE_CHECKING:
  2641. def __init__(
  2642. self,
  2643. *,
  2644. edition: Edition | None = None,
  2645. overridable_features: FeatureSet | None = None,
  2646. fixed_features: FeatureSet | None = None,
  2647. ) -> None:
  2648. pass
  2649. edition: Edition
  2650. overridable_features: FeatureSet | None
  2651. fixed_features: FeatureSet | None
  2652. _SourceCodeInfoFields: TypeAlias = Literal["location"]
  2653. class SourceCodeInfo(Message[_SourceCodeInfoFields]):
  2654. """
  2655. Encapsulates information about the original source file from which a
  2656. FileDescriptorProto was generated.
  2657. ```proto
  2658. message google.protobuf.SourceCodeInfo
  2659. ```
  2660. Attributes:
  2661. location:
  2662. A Location identifies a piece of source code in a .proto file which
  2663. corresponds to a particular definition. This information is intended
  2664. to be useful to IDEs, code indexers, documentation generators, and similar
  2665. tools.
  2666. For example, say we have a file like:
  2667. message Foo {
  2668. optional string foo = 1;
  2669. }
  2670. Let's look at just the field definition:
  2671. optional string foo = 1;
  2672. ^ ^^ ^^ ^ ^^^
  2673. a bc de f ghi
  2674. We have the following locations:
  2675. span path represents
  2676. [a,i) [ 4, 0, 2, 0 ] The whole field definition.
  2677. [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
  2678. [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
  2679. [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
  2680. [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
  2681. Notes:
  2682. - A location may refer to a repeated field itself (i.e. not to any
  2683. particular index within it). This is used whenever a set of elements are
  2684. logically enclosed in a single code segment. For example, an entire
  2685. extend block (possibly containing multiple extension definitions) will
  2686. have an outer location whose path refers to the "extensions" repeated
  2687. field without an index.
  2688. - Multiple locations may have the same path. This happens when a single
  2689. logical declaration is spread out across multiple places. The most
  2690. obvious example is the "extend" block again -- there may be multiple
  2691. extend blocks in the same scope, each of which will have the same path.
  2692. - A location's span is not always a subset of its parent's span. For
  2693. example, the "extendee" of an extension declaration appears at the
  2694. beginning of the "extend" block and is shared by all extensions within
  2695. the block.
  2696. - Just because a location's span is a subset of some other location's span
  2697. does not mean that it is a descendant. For example, a "group" defines
  2698. both a type and a field in a single declaration. Thus, the locations
  2699. corresponding to the type and field and their components will overlap.
  2700. - Code which tries to interpret locations should probably be designed to
  2701. ignore those that it doesn't understand, as more types of locations could
  2702. be recorded in the future.
  2703. ```proto
  2704. repeated google.protobuf.SourceCodeInfo.Location location = 1;
  2705. ```
  2706. """
  2707. __slots__ = ("location",)
  2708. if TYPE_CHECKING:
  2709. def __init__(
  2710. self, *, location: list[SourceCodeInfo.Location] | None = None
  2711. ) -> None:
  2712. pass
  2713. location: list[SourceCodeInfo.Location]
  2714. _LocationFields: TypeAlias = Literal[
  2715. "path",
  2716. "span",
  2717. "leading_comments",
  2718. "trailing_comments",
  2719. "leading_detached_comments",
  2720. ]
  2721. class Location(Message[_LocationFields]):
  2722. """
  2723. ```proto
  2724. message google.protobuf.SourceCodeInfo.Location
  2725. ```
  2726. Attributes:
  2727. path:
  2728. Identifies which part of the FileDescriptorProto was defined at this
  2729. location.
  2730. Each element is a field number or an index. They form a path from
  2731. the root FileDescriptorProto to the place where the definition appears.
  2732. For example, this path:
  2733. [ 4, 3, 2, 7, 1 ]
  2734. refers to:
  2735. file.message_type(3) // 4, 3
  2736. .field(7) // 2, 7
  2737. .name() // 1
  2738. This is because FileDescriptorProto.message_type has field number 4:
  2739. repeated DescriptorProto message_type = 4;
  2740. and DescriptorProto.field has field number 2:
  2741. repeated FieldDescriptorProto field = 2;
  2742. and FieldDescriptorProto.name has field number 1:
  2743. optional string name = 1;
  2744. Thus, the above path gives the location of a field name. If we removed
  2745. the last element:
  2746. [ 4, 3, 2, 7 ]
  2747. this path refers to the whole field declaration (from the beginning
  2748. of the label to the terminating semicolon).
  2749. ```proto
  2750. repeated int32 path = 1 [packed = true];
  2751. ```
  2752. span:
  2753. Always has exactly three or four elements: start line, start column,
  2754. end line (optional, otherwise assumed same as start line), end column.
  2755. These are packed into a single field for efficiency. Note that line
  2756. and column numbers are zero-based -- typically you will want to add
  2757. 1 to each before displaying to a user.
  2758. ```proto
  2759. repeated int32 span = 2 [packed = true];
  2760. ```
  2761. leading_comments:
  2762. If this SourceCodeInfo represents a complete declaration, these are any
  2763. comments appearing before and after the declaration which appear to be
  2764. attached to the declaration.
  2765. A series of line comments appearing on consecutive lines, with no other
  2766. tokens appearing on those lines, will be treated as a single comment.
  2767. leading_detached_comments will keep paragraphs of comments that appear
  2768. before (but not connected to) the current element. Each paragraph,
  2769. separated by empty lines, will be one comment element in the repeated
  2770. field.
  2771. Only the comment content is provided; comment markers (e.g. //) are
  2772. stripped out. For block comments, leading whitespace and an asterisk
  2773. will be stripped from the beginning of each line other than the first.
  2774. Newlines are included in the output.
  2775. Examples:
  2776. optional int32 foo = 1; // Comment attached to foo.
  2777. // Comment attached to bar.
  2778. optional int32 bar = 2;
  2779. optional string baz = 3;
  2780. // Comment attached to baz.
  2781. // Another line attached to baz.
  2782. // Comment attached to moo.
  2783. //
  2784. // Another line attached to moo.
  2785. optional double moo = 4;
  2786. // Detached comment for corge. This is not leading or trailing comments
  2787. // to moo or corge because there are blank lines separating it from
  2788. // both.
  2789. // Detached comment for corge paragraph 2.
  2790. optional string corge = 5;
  2791. /* Block comment attached
  2792. * to corge. Leading asterisks
  2793. * will be removed. */
  2794. /* Block comment attached to
  2795. * grault. */
  2796. optional int32 grault = 6;
  2797. // ignored detached comments.
  2798. ```proto
  2799. optional string leading_comments = 3;
  2800. ```
  2801. trailing_comments:
  2802. ```proto
  2803. optional string trailing_comments = 4;
  2804. ```
  2805. leading_detached_comments:
  2806. ```proto
  2807. repeated string leading_detached_comments = 6;
  2808. ```
  2809. """
  2810. __slots__ = (
  2811. "path",
  2812. "span",
  2813. "leading_comments",
  2814. "trailing_comments",
  2815. "leading_detached_comments",
  2816. )
  2817. if TYPE_CHECKING:
  2818. def __init__(
  2819. self,
  2820. *,
  2821. path: list[int] | None = None,
  2822. span: list[int] | None = None,
  2823. leading_comments: str | None = None,
  2824. trailing_comments: str | None = None,
  2825. leading_detached_comments: list[str] | None = None,
  2826. ) -> None:
  2827. pass
  2828. path: list[int]
  2829. span: list[int]
  2830. leading_comments: str
  2831. trailing_comments: str
  2832. leading_detached_comments: list[str]
  2833. _GeneratedCodeInfoFields: TypeAlias = Literal["annotation"]
  2834. class GeneratedCodeInfo(Message[_GeneratedCodeInfoFields]):
  2835. """
  2836. Describes the relationship between generated code and its original source
  2837. file. A GeneratedCodeInfo message is associated with only one generated
  2838. source file, but may contain references to different source .proto files.
  2839. ```proto
  2840. message google.protobuf.GeneratedCodeInfo
  2841. ```
  2842. Attributes:
  2843. annotation:
  2844. An Annotation connects some span of text in generated code to an element
  2845. of its generating .proto file.
  2846. ```proto
  2847. repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  2848. ```
  2849. """
  2850. __slots__ = ("annotation",)
  2851. if TYPE_CHECKING:
  2852. def __init__(
  2853. self, *, annotation: list[GeneratedCodeInfo.Annotation] | None = None
  2854. ) -> None:
  2855. pass
  2856. annotation: list[GeneratedCodeInfo.Annotation]
  2857. _AnnotationFields: TypeAlias = Literal[
  2858. "path", "source_file", "begin", "end", "semantic"
  2859. ]
  2860. class Annotation(Message[_AnnotationFields]):
  2861. """
  2862. ```proto
  2863. message google.protobuf.GeneratedCodeInfo.Annotation
  2864. ```
  2865. Attributes:
  2866. path:
  2867. Identifies the element in the original source .proto file. This field
  2868. is formatted the same as SourceCodeInfo.Location.path.
  2869. ```proto
  2870. repeated int32 path = 1 [packed = true];
  2871. ```
  2872. source_file:
  2873. Identifies the filesystem path to the original source .proto.
  2874. ```proto
  2875. optional string source_file = 2;
  2876. ```
  2877. begin:
  2878. Identifies the starting offset in bytes in the generated code
  2879. that relates to the identified object.
  2880. ```proto
  2881. optional int32 begin = 3;
  2882. ```
  2883. end:
  2884. Identifies the ending offset in bytes in the generated code that
  2885. relates to the identified object. The end offset should be one past
  2886. the last relevant byte (so the length of the text = end - begin).
  2887. ```proto
  2888. optional int32 end = 4;
  2889. ```
  2890. semantic:
  2891. ```proto
  2892. optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
  2893. ```
  2894. """
  2895. __slots__ = ("path", "source_file", "begin", "end", "semantic")
  2896. if TYPE_CHECKING:
  2897. def __init__(
  2898. self,
  2899. *,
  2900. path: list[int] | None = None,
  2901. source_file: str | None = None,
  2902. begin: int | None = None,
  2903. end: int | None = None,
  2904. semantic: GeneratedCodeInfo.Annotation.Semantic | None = None,
  2905. ) -> None:
  2906. pass
  2907. path: list[int]
  2908. source_file: str
  2909. begin: int
  2910. end: int
  2911. semantic: GeneratedCodeInfo.Annotation.Semantic
  2912. class Semantic(Enum):
  2913. """
  2914. Represents the identified object's effect on the element in the original
  2915. .proto file.
  2916. ```proto
  2917. enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic
  2918. ```
  2919. Attributes:
  2920. NONE:
  2921. There is no effect or the effect is indescribable.
  2922. ```proto
  2923. NONE = 0
  2924. ```
  2925. SET:
  2926. The element is set or otherwise mutated.
  2927. ```proto
  2928. SET = 1
  2929. ```
  2930. ALIAS:
  2931. An alias to the element is returned.
  2932. ```proto
  2933. ALIAS = 2
  2934. ```
  2935. """
  2936. NONE = 0
  2937. SET = 1
  2938. ALIAS = 2
  2939. class Edition(Enum):
  2940. """
  2941. The full set of known editions.
  2942. ```proto
  2943. enum google.protobuf.Edition
  2944. ```
  2945. Attributes:
  2946. UNKNOWN:
  2947. A placeholder for an unknown edition value.
  2948. ```proto
  2949. EDITION_UNKNOWN = 0
  2950. ```
  2951. LEGACY:
  2952. A placeholder edition for specifying default behaviors *before* a feature
  2953. was first introduced. This is effectively an "infinite past".
  2954. ```proto
  2955. EDITION_LEGACY = 900
  2956. ```
  2957. PROTO2:
  2958. Legacy syntax "editions". These pre-date editions, but behave much like
  2959. distinct editions. These can't be used to specify the edition of proto
  2960. files, but feature definitions must supply proto2/proto3 defaults for
  2961. backwards compatibility.
  2962. ```proto
  2963. EDITION_PROTO2 = 998
  2964. ```
  2965. PROTO3:
  2966. ```proto
  2967. EDITION_PROTO3 = 999
  2968. ```
  2969. EDITION_2023:
  2970. Editions that have been released. The specific values are arbitrary and
  2971. should not be depended on, but they will always be time-ordered for easy
  2972. comparison.
  2973. ```proto
  2974. EDITION_2023 = 1000
  2975. ```
  2976. EDITION_2024:
  2977. ```proto
  2978. EDITION_2024 = 1001
  2979. ```
  2980. EDITION_2026:
  2981. ```proto
  2982. EDITION_2026 = 1002
  2983. ```
  2984. UNSTABLE:
  2985. A placeholder edition for developing and testing unscheduled features.
  2986. ```proto
  2987. EDITION_UNSTABLE = 9999
  2988. ```
  2989. EDITION_1_TEST_ONLY:
  2990. Placeholder editions for testing feature resolution. These should not be
  2991. used or relied on outside of tests.
  2992. ```proto
  2993. EDITION_1_TEST_ONLY = 1
  2994. ```
  2995. EDITION_2_TEST_ONLY:
  2996. ```proto
  2997. EDITION_2_TEST_ONLY = 2
  2998. ```
  2999. EDITION_99997_TEST_ONLY:
  3000. ```proto
  3001. EDITION_99997_TEST_ONLY = 99997
  3002. ```
  3003. EDITION_99998_TEST_ONLY:
  3004. ```proto
  3005. EDITION_99998_TEST_ONLY = 99998
  3006. ```
  3007. EDITION_99999_TEST_ONLY:
  3008. ```proto
  3009. EDITION_99999_TEST_ONLY = 99999
  3010. ```
  3011. MAX:
  3012. Placeholder for specifying unbounded edition support. This should only
  3013. ever be used by plugins that can expect to never require any changes to
  3014. support a new edition.
  3015. ```proto
  3016. EDITION_MAX = 2147483647
  3017. ```
  3018. """
  3019. UNKNOWN = 0
  3020. LEGACY = 900
  3021. PROTO2 = 998
  3022. PROTO3 = 999
  3023. EDITION_2023 = 1000
  3024. EDITION_2024 = 1001
  3025. EDITION_2026 = 1002
  3026. UNSTABLE = 9999
  3027. EDITION_1_TEST_ONLY = 1
  3028. EDITION_2_TEST_ONLY = 2
  3029. EDITION_99997_TEST_ONLY = 99997
  3030. EDITION_99998_TEST_ONLY = 99998
  3031. EDITION_99999_TEST_ONLY = 99999
  3032. MAX = 2147483647
  3033. class SymbolVisibility(Enum):
  3034. """
  3035. Describes the 'visibility' of a symbol with respect to the proto import
  3036. system. Symbols can only be imported when the visibility rules do not prevent
  3037. it (ex: local symbols cannot be imported). Visibility modifiers can only set
  3038. on `message` and `enum` as they are the only types available to be referenced
  3039. from other files.
  3040. ```proto
  3041. enum google.protobuf.SymbolVisibility
  3042. ```
  3043. Attributes:
  3044. VISIBILITY_UNSET:
  3045. ```proto
  3046. VISIBILITY_UNSET = 0
  3047. ```
  3048. VISIBILITY_LOCAL:
  3049. ```proto
  3050. VISIBILITY_LOCAL = 1
  3051. ```
  3052. VISIBILITY_EXPORT:
  3053. ```proto
  3054. VISIBILITY_EXPORT = 2
  3055. ```
  3056. """
  3057. VISIBILITY_UNSET = 0
  3058. VISIBILITY_LOCAL = 1
  3059. VISIBILITY_EXPORT = 2
  3060. _DESC = boot(
  3061. FileDescriptorProto(
  3062. name="google/protobuf/descriptor.proto",
  3063. package="google.protobuf",
  3064. dependency=[],
  3065. public_dependency=[],
  3066. weak_dependency=[],
  3067. option_dependency=[],
  3068. message_type=[
  3069. DescriptorProto(
  3070. name="FileDescriptorSet",
  3071. field=[
  3072. FieldDescriptorProto(
  3073. name="file",
  3074. number=1,
  3075. label=FieldDescriptorProto.Label.REPEATED,
  3076. type=FieldDescriptorProto.Type.MESSAGE,
  3077. type_name=".google.protobuf.FileDescriptorProto",
  3078. extendee=unset(""),
  3079. default_value=unset(""),
  3080. oneof_index=unset(0),
  3081. json_name="file",
  3082. options=None,
  3083. proto3_optional=unset(False),
  3084. )
  3085. ],
  3086. extension=[],
  3087. nested_type=[],
  3088. enum_type=[],
  3089. extension_range=[
  3090. DescriptorProto.ExtensionRange(
  3091. start=536000000,
  3092. end=536000001,
  3093. options=ExtensionRangeOptions(
  3094. uninterpreted_option=[],
  3095. declaration=[
  3096. ExtensionRangeOptions.Declaration(
  3097. number=536000000,
  3098. full_name=".buf.descriptor.v1.buf_file_descriptor_set_extension",
  3099. type=".buf.descriptor.v1.FileDescriptorSetExtension",
  3100. reserved=unset(False),
  3101. repeated=unset(False),
  3102. )
  3103. ],
  3104. features=None,
  3105. verification=unset(
  3106. ExtensionRangeOptions.VerificationState.UNVERIFIED
  3107. ),
  3108. ),
  3109. )
  3110. ],
  3111. oneof_decl=[],
  3112. options=None,
  3113. reserved_range=[],
  3114. reserved_name=[],
  3115. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  3116. ),
  3117. DescriptorProto(
  3118. name="FileDescriptorProto",
  3119. field=[
  3120. FieldDescriptorProto(
  3121. name="name",
  3122. number=1,
  3123. label=FieldDescriptorProto.Label.OPTIONAL,
  3124. type=FieldDescriptorProto.Type.STRING,
  3125. type_name=unset(""),
  3126. extendee=unset(""),
  3127. default_value=unset(""),
  3128. oneof_index=unset(0),
  3129. json_name="name",
  3130. options=None,
  3131. proto3_optional=unset(False),
  3132. ),
  3133. FieldDescriptorProto(
  3134. name="package",
  3135. number=2,
  3136. label=FieldDescriptorProto.Label.OPTIONAL,
  3137. type=FieldDescriptorProto.Type.STRING,
  3138. type_name=unset(""),
  3139. extendee=unset(""),
  3140. default_value=unset(""),
  3141. oneof_index=unset(0),
  3142. json_name="package",
  3143. options=None,
  3144. proto3_optional=unset(False),
  3145. ),
  3146. FieldDescriptorProto(
  3147. name="dependency",
  3148. number=3,
  3149. label=FieldDescriptorProto.Label.REPEATED,
  3150. type=FieldDescriptorProto.Type.STRING,
  3151. type_name=unset(""),
  3152. extendee=unset(""),
  3153. default_value=unset(""),
  3154. oneof_index=unset(0),
  3155. json_name="dependency",
  3156. options=None,
  3157. proto3_optional=unset(False),
  3158. ),
  3159. FieldDescriptorProto(
  3160. name="public_dependency",
  3161. number=10,
  3162. label=FieldDescriptorProto.Label.REPEATED,
  3163. type=FieldDescriptorProto.Type.INT32,
  3164. type_name=unset(""),
  3165. extendee=unset(""),
  3166. default_value=unset(""),
  3167. oneof_index=unset(0),
  3168. json_name="publicDependency",
  3169. options=None,
  3170. proto3_optional=unset(False),
  3171. ),
  3172. FieldDescriptorProto(
  3173. name="weak_dependency",
  3174. number=11,
  3175. label=FieldDescriptorProto.Label.REPEATED,
  3176. type=FieldDescriptorProto.Type.INT32,
  3177. type_name=unset(""),
  3178. extendee=unset(""),
  3179. default_value=unset(""),
  3180. oneof_index=unset(0),
  3181. json_name="weakDependency",
  3182. options=None,
  3183. proto3_optional=unset(False),
  3184. ),
  3185. FieldDescriptorProto(
  3186. name="option_dependency",
  3187. number=15,
  3188. label=FieldDescriptorProto.Label.REPEATED,
  3189. type=FieldDescriptorProto.Type.STRING,
  3190. type_name=unset(""),
  3191. extendee=unset(""),
  3192. default_value=unset(""),
  3193. oneof_index=unset(0),
  3194. json_name="optionDependency",
  3195. options=None,
  3196. proto3_optional=unset(False),
  3197. ),
  3198. FieldDescriptorProto(
  3199. name="message_type",
  3200. number=4,
  3201. label=FieldDescriptorProto.Label.REPEATED,
  3202. type=FieldDescriptorProto.Type.MESSAGE,
  3203. type_name=".google.protobuf.DescriptorProto",
  3204. extendee=unset(""),
  3205. default_value=unset(""),
  3206. oneof_index=unset(0),
  3207. json_name="messageType",
  3208. options=None,
  3209. proto3_optional=unset(False),
  3210. ),
  3211. FieldDescriptorProto(
  3212. name="enum_type",
  3213. number=5,
  3214. label=FieldDescriptorProto.Label.REPEATED,
  3215. type=FieldDescriptorProto.Type.MESSAGE,
  3216. type_name=".google.protobuf.EnumDescriptorProto",
  3217. extendee=unset(""),
  3218. default_value=unset(""),
  3219. oneof_index=unset(0),
  3220. json_name="enumType",
  3221. options=None,
  3222. proto3_optional=unset(False),
  3223. ),
  3224. FieldDescriptorProto(
  3225. name="service",
  3226. number=6,
  3227. label=FieldDescriptorProto.Label.REPEATED,
  3228. type=FieldDescriptorProto.Type.MESSAGE,
  3229. type_name=".google.protobuf.ServiceDescriptorProto",
  3230. extendee=unset(""),
  3231. default_value=unset(""),
  3232. oneof_index=unset(0),
  3233. json_name="service",
  3234. options=None,
  3235. proto3_optional=unset(False),
  3236. ),
  3237. FieldDescriptorProto(
  3238. name="extension",
  3239. number=7,
  3240. label=FieldDescriptorProto.Label.REPEATED,
  3241. type=FieldDescriptorProto.Type.MESSAGE,
  3242. type_name=".google.protobuf.FieldDescriptorProto",
  3243. extendee=unset(""),
  3244. default_value=unset(""),
  3245. oneof_index=unset(0),
  3246. json_name="extension",
  3247. options=None,
  3248. proto3_optional=unset(False),
  3249. ),
  3250. FieldDescriptorProto(
  3251. name="options",
  3252. number=8,
  3253. label=FieldDescriptorProto.Label.OPTIONAL,
  3254. type=FieldDescriptorProto.Type.MESSAGE,
  3255. type_name=".google.protobuf.FileOptions",
  3256. extendee=unset(""),
  3257. default_value=unset(""),
  3258. oneof_index=unset(0),
  3259. json_name="options",
  3260. options=None,
  3261. proto3_optional=unset(False),
  3262. ),
  3263. FieldDescriptorProto(
  3264. name="source_code_info",
  3265. number=9,
  3266. label=FieldDescriptorProto.Label.OPTIONAL,
  3267. type=FieldDescriptorProto.Type.MESSAGE,
  3268. type_name=".google.protobuf.SourceCodeInfo",
  3269. extendee=unset(""),
  3270. default_value=unset(""),
  3271. oneof_index=unset(0),
  3272. json_name="sourceCodeInfo",
  3273. options=None,
  3274. proto3_optional=unset(False),
  3275. ),
  3276. FieldDescriptorProto(
  3277. name="syntax",
  3278. number=12,
  3279. label=FieldDescriptorProto.Label.OPTIONAL,
  3280. type=FieldDescriptorProto.Type.STRING,
  3281. type_name=unset(""),
  3282. extendee=unset(""),
  3283. default_value=unset(""),
  3284. oneof_index=unset(0),
  3285. json_name="syntax",
  3286. options=None,
  3287. proto3_optional=unset(False),
  3288. ),
  3289. FieldDescriptorProto(
  3290. name="edition",
  3291. number=14,
  3292. label=FieldDescriptorProto.Label.OPTIONAL,
  3293. type=FieldDescriptorProto.Type.ENUM,
  3294. type_name=".google.protobuf.Edition",
  3295. extendee=unset(""),
  3296. default_value=unset(""),
  3297. oneof_index=unset(0),
  3298. json_name="edition",
  3299. options=None,
  3300. proto3_optional=unset(False),
  3301. ),
  3302. ],
  3303. extension=[],
  3304. nested_type=[],
  3305. enum_type=[],
  3306. extension_range=[],
  3307. oneof_decl=[],
  3308. options=None,
  3309. reserved_range=[],
  3310. reserved_name=[],
  3311. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  3312. ),
  3313. DescriptorProto(
  3314. name="DescriptorProto",
  3315. field=[
  3316. FieldDescriptorProto(
  3317. name="name",
  3318. number=1,
  3319. label=FieldDescriptorProto.Label.OPTIONAL,
  3320. type=FieldDescriptorProto.Type.STRING,
  3321. type_name=unset(""),
  3322. extendee=unset(""),
  3323. default_value=unset(""),
  3324. oneof_index=unset(0),
  3325. json_name="name",
  3326. options=None,
  3327. proto3_optional=unset(False),
  3328. ),
  3329. FieldDescriptorProto(
  3330. name="field",
  3331. number=2,
  3332. label=FieldDescriptorProto.Label.REPEATED,
  3333. type=FieldDescriptorProto.Type.MESSAGE,
  3334. type_name=".google.protobuf.FieldDescriptorProto",
  3335. extendee=unset(""),
  3336. default_value=unset(""),
  3337. oneof_index=unset(0),
  3338. json_name="field",
  3339. options=None,
  3340. proto3_optional=unset(False),
  3341. ),
  3342. FieldDescriptorProto(
  3343. name="extension",
  3344. number=6,
  3345. label=FieldDescriptorProto.Label.REPEATED,
  3346. type=FieldDescriptorProto.Type.MESSAGE,
  3347. type_name=".google.protobuf.FieldDescriptorProto",
  3348. extendee=unset(""),
  3349. default_value=unset(""),
  3350. oneof_index=unset(0),
  3351. json_name="extension",
  3352. options=None,
  3353. proto3_optional=unset(False),
  3354. ),
  3355. FieldDescriptorProto(
  3356. name="nested_type",
  3357. number=3,
  3358. label=FieldDescriptorProto.Label.REPEATED,
  3359. type=FieldDescriptorProto.Type.MESSAGE,
  3360. type_name=".google.protobuf.DescriptorProto",
  3361. extendee=unset(""),
  3362. default_value=unset(""),
  3363. oneof_index=unset(0),
  3364. json_name="nestedType",
  3365. options=None,
  3366. proto3_optional=unset(False),
  3367. ),
  3368. FieldDescriptorProto(
  3369. name="enum_type",
  3370. number=4,
  3371. label=FieldDescriptorProto.Label.REPEATED,
  3372. type=FieldDescriptorProto.Type.MESSAGE,
  3373. type_name=".google.protobuf.EnumDescriptorProto",
  3374. extendee=unset(""),
  3375. default_value=unset(""),
  3376. oneof_index=unset(0),
  3377. json_name="enumType",
  3378. options=None,
  3379. proto3_optional=unset(False),
  3380. ),
  3381. FieldDescriptorProto(
  3382. name="extension_range",
  3383. number=5,
  3384. label=FieldDescriptorProto.Label.REPEATED,
  3385. type=FieldDescriptorProto.Type.MESSAGE,
  3386. type_name=".google.protobuf.DescriptorProto.ExtensionRange",
  3387. extendee=unset(""),
  3388. default_value=unset(""),
  3389. oneof_index=unset(0),
  3390. json_name="extensionRange",
  3391. options=None,
  3392. proto3_optional=unset(False),
  3393. ),
  3394. FieldDescriptorProto(
  3395. name="oneof_decl",
  3396. number=8,
  3397. label=FieldDescriptorProto.Label.REPEATED,
  3398. type=FieldDescriptorProto.Type.MESSAGE,
  3399. type_name=".google.protobuf.OneofDescriptorProto",
  3400. extendee=unset(""),
  3401. default_value=unset(""),
  3402. oneof_index=unset(0),
  3403. json_name="oneofDecl",
  3404. options=None,
  3405. proto3_optional=unset(False),
  3406. ),
  3407. FieldDescriptorProto(
  3408. name="options",
  3409. number=7,
  3410. label=FieldDescriptorProto.Label.OPTIONAL,
  3411. type=FieldDescriptorProto.Type.MESSAGE,
  3412. type_name=".google.protobuf.MessageOptions",
  3413. extendee=unset(""),
  3414. default_value=unset(""),
  3415. oneof_index=unset(0),
  3416. json_name="options",
  3417. options=None,
  3418. proto3_optional=unset(False),
  3419. ),
  3420. FieldDescriptorProto(
  3421. name="reserved_range",
  3422. number=9,
  3423. label=FieldDescriptorProto.Label.REPEATED,
  3424. type=FieldDescriptorProto.Type.MESSAGE,
  3425. type_name=".google.protobuf.DescriptorProto.ReservedRange",
  3426. extendee=unset(""),
  3427. default_value=unset(""),
  3428. oneof_index=unset(0),
  3429. json_name="reservedRange",
  3430. options=None,
  3431. proto3_optional=unset(False),
  3432. ),
  3433. FieldDescriptorProto(
  3434. name="reserved_name",
  3435. number=10,
  3436. label=FieldDescriptorProto.Label.REPEATED,
  3437. type=FieldDescriptorProto.Type.STRING,
  3438. type_name=unset(""),
  3439. extendee=unset(""),
  3440. default_value=unset(""),
  3441. oneof_index=unset(0),
  3442. json_name="reservedName",
  3443. options=None,
  3444. proto3_optional=unset(False),
  3445. ),
  3446. FieldDescriptorProto(
  3447. name="visibility",
  3448. number=11,
  3449. label=FieldDescriptorProto.Label.OPTIONAL,
  3450. type=FieldDescriptorProto.Type.ENUM,
  3451. type_name=".google.protobuf.SymbolVisibility",
  3452. extendee=unset(""),
  3453. default_value=unset(""),
  3454. oneof_index=unset(0),
  3455. json_name="visibility",
  3456. options=None,
  3457. proto3_optional=unset(False),
  3458. ),
  3459. ],
  3460. extension=[],
  3461. nested_type=[
  3462. DescriptorProto(
  3463. name="ExtensionRange",
  3464. field=[
  3465. FieldDescriptorProto(
  3466. name="start",
  3467. number=1,
  3468. label=FieldDescriptorProto.Label.OPTIONAL,
  3469. type=FieldDescriptorProto.Type.INT32,
  3470. type_name=unset(""),
  3471. extendee=unset(""),
  3472. default_value=unset(""),
  3473. oneof_index=unset(0),
  3474. json_name="start",
  3475. options=None,
  3476. proto3_optional=unset(False),
  3477. ),
  3478. FieldDescriptorProto(
  3479. name="end",
  3480. number=2,
  3481. label=FieldDescriptorProto.Label.OPTIONAL,
  3482. type=FieldDescriptorProto.Type.INT32,
  3483. type_name=unset(""),
  3484. extendee=unset(""),
  3485. default_value=unset(""),
  3486. oneof_index=unset(0),
  3487. json_name="end",
  3488. options=None,
  3489. proto3_optional=unset(False),
  3490. ),
  3491. FieldDescriptorProto(
  3492. name="options",
  3493. number=3,
  3494. label=FieldDescriptorProto.Label.OPTIONAL,
  3495. type=FieldDescriptorProto.Type.MESSAGE,
  3496. type_name=".google.protobuf.ExtensionRangeOptions",
  3497. extendee=unset(""),
  3498. default_value=unset(""),
  3499. oneof_index=unset(0),
  3500. json_name="options",
  3501. options=None,
  3502. proto3_optional=unset(False),
  3503. ),
  3504. ],
  3505. extension=[],
  3506. nested_type=[],
  3507. enum_type=[],
  3508. extension_range=[],
  3509. oneof_decl=[],
  3510. options=None,
  3511. reserved_range=[],
  3512. reserved_name=[],
  3513. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  3514. ),
  3515. DescriptorProto(
  3516. name="ReservedRange",
  3517. field=[
  3518. FieldDescriptorProto(
  3519. name="start",
  3520. number=1,
  3521. label=FieldDescriptorProto.Label.OPTIONAL,
  3522. type=FieldDescriptorProto.Type.INT32,
  3523. type_name=unset(""),
  3524. extendee=unset(""),
  3525. default_value=unset(""),
  3526. oneof_index=unset(0),
  3527. json_name="start",
  3528. options=None,
  3529. proto3_optional=unset(False),
  3530. ),
  3531. FieldDescriptorProto(
  3532. name="end",
  3533. number=2,
  3534. label=FieldDescriptorProto.Label.OPTIONAL,
  3535. type=FieldDescriptorProto.Type.INT32,
  3536. type_name=unset(""),
  3537. extendee=unset(""),
  3538. default_value=unset(""),
  3539. oneof_index=unset(0),
  3540. json_name="end",
  3541. options=None,
  3542. proto3_optional=unset(False),
  3543. ),
  3544. ],
  3545. extension=[],
  3546. nested_type=[],
  3547. enum_type=[],
  3548. extension_range=[],
  3549. oneof_decl=[],
  3550. options=None,
  3551. reserved_range=[],
  3552. reserved_name=[],
  3553. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  3554. ),
  3555. ],
  3556. enum_type=[],
  3557. extension_range=[],
  3558. oneof_decl=[],
  3559. options=None,
  3560. reserved_range=[],
  3561. reserved_name=[],
  3562. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  3563. ),
  3564. DescriptorProto(
  3565. name="ExtensionRangeOptions",
  3566. field=[
  3567. FieldDescriptorProto(
  3568. name="uninterpreted_option",
  3569. number=999,
  3570. label=FieldDescriptorProto.Label.REPEATED,
  3571. type=FieldDescriptorProto.Type.MESSAGE,
  3572. type_name=".google.protobuf.UninterpretedOption",
  3573. extendee=unset(""),
  3574. default_value=unset(""),
  3575. oneof_index=unset(0),
  3576. json_name="uninterpretedOption",
  3577. options=None,
  3578. proto3_optional=unset(False),
  3579. ),
  3580. FieldDescriptorProto(
  3581. name="declaration",
  3582. number=2,
  3583. label=FieldDescriptorProto.Label.REPEATED,
  3584. type=FieldDescriptorProto.Type.MESSAGE,
  3585. type_name=".google.protobuf.ExtensionRangeOptions.Declaration",
  3586. extendee=unset(""),
  3587. default_value=unset(""),
  3588. oneof_index=unset(0),
  3589. json_name="declaration",
  3590. options=FieldOptions(
  3591. ctype=unset(FieldOptions.CType.STRING),
  3592. packed=unset(False),
  3593. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  3594. lazy=unset(False),
  3595. unverified_lazy=unset(False),
  3596. deprecated=unset(False),
  3597. weak=unset(False),
  3598. debug_redact=unset(False),
  3599. retention=FieldOptions.OptionRetention.RETENTION_SOURCE,
  3600. targets=[],
  3601. edition_defaults=[],
  3602. features=None,
  3603. feature_support=None,
  3604. uninterpreted_option=[],
  3605. ),
  3606. proto3_optional=unset(False),
  3607. ),
  3608. FieldDescriptorProto(
  3609. name="features",
  3610. number=50,
  3611. label=FieldDescriptorProto.Label.OPTIONAL,
  3612. type=FieldDescriptorProto.Type.MESSAGE,
  3613. type_name=".google.protobuf.FeatureSet",
  3614. extendee=unset(""),
  3615. default_value=unset(""),
  3616. oneof_index=unset(0),
  3617. json_name="features",
  3618. options=None,
  3619. proto3_optional=unset(False),
  3620. ),
  3621. FieldDescriptorProto(
  3622. name="verification",
  3623. number=3,
  3624. label=FieldDescriptorProto.Label.OPTIONAL,
  3625. type=FieldDescriptorProto.Type.ENUM,
  3626. type_name=".google.protobuf.ExtensionRangeOptions.VerificationState",
  3627. extendee=unset(""),
  3628. default_value="UNVERIFIED",
  3629. oneof_index=unset(0),
  3630. json_name="verification",
  3631. options=FieldOptions(
  3632. ctype=unset(FieldOptions.CType.STRING),
  3633. packed=unset(False),
  3634. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  3635. lazy=unset(False),
  3636. unverified_lazy=unset(False),
  3637. deprecated=unset(False),
  3638. weak=unset(False),
  3639. debug_redact=unset(False),
  3640. retention=FieldOptions.OptionRetention.RETENTION_SOURCE,
  3641. targets=[],
  3642. edition_defaults=[],
  3643. features=None,
  3644. feature_support=None,
  3645. uninterpreted_option=[],
  3646. ),
  3647. proto3_optional=unset(False),
  3648. ),
  3649. ],
  3650. extension=[],
  3651. nested_type=[
  3652. DescriptorProto(
  3653. name="Declaration",
  3654. field=[
  3655. FieldDescriptorProto(
  3656. name="number",
  3657. number=1,
  3658. label=FieldDescriptorProto.Label.OPTIONAL,
  3659. type=FieldDescriptorProto.Type.INT32,
  3660. type_name=unset(""),
  3661. extendee=unset(""),
  3662. default_value=unset(""),
  3663. oneof_index=unset(0),
  3664. json_name="number",
  3665. options=None,
  3666. proto3_optional=unset(False),
  3667. ),
  3668. FieldDescriptorProto(
  3669. name="full_name",
  3670. number=2,
  3671. label=FieldDescriptorProto.Label.OPTIONAL,
  3672. type=FieldDescriptorProto.Type.STRING,
  3673. type_name=unset(""),
  3674. extendee=unset(""),
  3675. default_value=unset(""),
  3676. oneof_index=unset(0),
  3677. json_name="fullName",
  3678. options=None,
  3679. proto3_optional=unset(False),
  3680. ),
  3681. FieldDescriptorProto(
  3682. name="type",
  3683. number=3,
  3684. label=FieldDescriptorProto.Label.OPTIONAL,
  3685. type=FieldDescriptorProto.Type.STRING,
  3686. type_name=unset(""),
  3687. extendee=unset(""),
  3688. default_value=unset(""),
  3689. oneof_index=unset(0),
  3690. json_name="type",
  3691. options=None,
  3692. proto3_optional=unset(False),
  3693. ),
  3694. FieldDescriptorProto(
  3695. name="reserved",
  3696. number=5,
  3697. label=FieldDescriptorProto.Label.OPTIONAL,
  3698. type=FieldDescriptorProto.Type.BOOL,
  3699. type_name=unset(""),
  3700. extendee=unset(""),
  3701. default_value=unset(""),
  3702. oneof_index=unset(0),
  3703. json_name="reserved",
  3704. options=None,
  3705. proto3_optional=unset(False),
  3706. ),
  3707. FieldDescriptorProto(
  3708. name="repeated",
  3709. number=6,
  3710. label=FieldDescriptorProto.Label.OPTIONAL,
  3711. type=FieldDescriptorProto.Type.BOOL,
  3712. type_name=unset(""),
  3713. extendee=unset(""),
  3714. default_value=unset(""),
  3715. oneof_index=unset(0),
  3716. json_name="repeated",
  3717. options=None,
  3718. proto3_optional=unset(False),
  3719. ),
  3720. ],
  3721. extension=[],
  3722. nested_type=[],
  3723. enum_type=[],
  3724. extension_range=[],
  3725. oneof_decl=[],
  3726. options=None,
  3727. reserved_range=[DescriptorProto.ReservedRange(start=4, end=5)],
  3728. reserved_name=[],
  3729. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  3730. )
  3731. ],
  3732. enum_type=[
  3733. EnumDescriptorProto(
  3734. name="VerificationState",
  3735. value=[
  3736. EnumValueDescriptorProto(
  3737. name="DECLARATION", number=0, options=None
  3738. ),
  3739. EnumValueDescriptorProto(
  3740. name="UNVERIFIED", number=1, options=None
  3741. ),
  3742. ],
  3743. options=None,
  3744. reserved_range=[],
  3745. reserved_name=[],
  3746. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  3747. )
  3748. ],
  3749. extension_range=[
  3750. DescriptorProto.ExtensionRange(start=990, end=999, options=None),
  3751. DescriptorProto.ExtensionRange(
  3752. start=1000, end=536870912, options=None
  3753. ),
  3754. ],
  3755. oneof_decl=[],
  3756. options=None,
  3757. reserved_range=[],
  3758. reserved_name=[],
  3759. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  3760. ),
  3761. DescriptorProto(
  3762. name="FieldDescriptorProto",
  3763. field=[
  3764. FieldDescriptorProto(
  3765. name="name",
  3766. number=1,
  3767. label=FieldDescriptorProto.Label.OPTIONAL,
  3768. type=FieldDescriptorProto.Type.STRING,
  3769. type_name=unset(""),
  3770. extendee=unset(""),
  3771. default_value=unset(""),
  3772. oneof_index=unset(0),
  3773. json_name="name",
  3774. options=None,
  3775. proto3_optional=unset(False),
  3776. ),
  3777. FieldDescriptorProto(
  3778. name="number",
  3779. number=3,
  3780. label=FieldDescriptorProto.Label.OPTIONAL,
  3781. type=FieldDescriptorProto.Type.INT32,
  3782. type_name=unset(""),
  3783. extendee=unset(""),
  3784. default_value=unset(""),
  3785. oneof_index=unset(0),
  3786. json_name="number",
  3787. options=None,
  3788. proto3_optional=unset(False),
  3789. ),
  3790. FieldDescriptorProto(
  3791. name="label",
  3792. number=4,
  3793. label=FieldDescriptorProto.Label.OPTIONAL,
  3794. type=FieldDescriptorProto.Type.ENUM,
  3795. type_name=".google.protobuf.FieldDescriptorProto.Label",
  3796. extendee=unset(""),
  3797. default_value=unset(""),
  3798. oneof_index=unset(0),
  3799. json_name="label",
  3800. options=None,
  3801. proto3_optional=unset(False),
  3802. ),
  3803. FieldDescriptorProto(
  3804. name="type",
  3805. number=5,
  3806. label=FieldDescriptorProto.Label.OPTIONAL,
  3807. type=FieldDescriptorProto.Type.ENUM,
  3808. type_name=".google.protobuf.FieldDescriptorProto.Type",
  3809. extendee=unset(""),
  3810. default_value=unset(""),
  3811. oneof_index=unset(0),
  3812. json_name="type",
  3813. options=None,
  3814. proto3_optional=unset(False),
  3815. ),
  3816. FieldDescriptorProto(
  3817. name="type_name",
  3818. number=6,
  3819. label=FieldDescriptorProto.Label.OPTIONAL,
  3820. type=FieldDescriptorProto.Type.STRING,
  3821. type_name=unset(""),
  3822. extendee=unset(""),
  3823. default_value=unset(""),
  3824. oneof_index=unset(0),
  3825. json_name="typeName",
  3826. options=None,
  3827. proto3_optional=unset(False),
  3828. ),
  3829. FieldDescriptorProto(
  3830. name="extendee",
  3831. number=2,
  3832. label=FieldDescriptorProto.Label.OPTIONAL,
  3833. type=FieldDescriptorProto.Type.STRING,
  3834. type_name=unset(""),
  3835. extendee=unset(""),
  3836. default_value=unset(""),
  3837. oneof_index=unset(0),
  3838. json_name="extendee",
  3839. options=None,
  3840. proto3_optional=unset(False),
  3841. ),
  3842. FieldDescriptorProto(
  3843. name="default_value",
  3844. number=7,
  3845. label=FieldDescriptorProto.Label.OPTIONAL,
  3846. type=FieldDescriptorProto.Type.STRING,
  3847. type_name=unset(""),
  3848. extendee=unset(""),
  3849. default_value=unset(""),
  3850. oneof_index=unset(0),
  3851. json_name="defaultValue",
  3852. options=None,
  3853. proto3_optional=unset(False),
  3854. ),
  3855. FieldDescriptorProto(
  3856. name="oneof_index",
  3857. number=9,
  3858. label=FieldDescriptorProto.Label.OPTIONAL,
  3859. type=FieldDescriptorProto.Type.INT32,
  3860. type_name=unset(""),
  3861. extendee=unset(""),
  3862. default_value=unset(""),
  3863. oneof_index=unset(0),
  3864. json_name="oneofIndex",
  3865. options=None,
  3866. proto3_optional=unset(False),
  3867. ),
  3868. FieldDescriptorProto(
  3869. name="json_name",
  3870. number=10,
  3871. label=FieldDescriptorProto.Label.OPTIONAL,
  3872. type=FieldDescriptorProto.Type.STRING,
  3873. type_name=unset(""),
  3874. extendee=unset(""),
  3875. default_value=unset(""),
  3876. oneof_index=unset(0),
  3877. json_name="jsonName",
  3878. options=None,
  3879. proto3_optional=unset(False),
  3880. ),
  3881. FieldDescriptorProto(
  3882. name="options",
  3883. number=8,
  3884. label=FieldDescriptorProto.Label.OPTIONAL,
  3885. type=FieldDescriptorProto.Type.MESSAGE,
  3886. type_name=".google.protobuf.FieldOptions",
  3887. extendee=unset(""),
  3888. default_value=unset(""),
  3889. oneof_index=unset(0),
  3890. json_name="options",
  3891. options=None,
  3892. proto3_optional=unset(False),
  3893. ),
  3894. FieldDescriptorProto(
  3895. name="proto3_optional",
  3896. number=17,
  3897. label=FieldDescriptorProto.Label.OPTIONAL,
  3898. type=FieldDescriptorProto.Type.BOOL,
  3899. type_name=unset(""),
  3900. extendee=unset(""),
  3901. default_value=unset(""),
  3902. oneof_index=unset(0),
  3903. json_name="proto3Optional",
  3904. options=None,
  3905. proto3_optional=unset(False),
  3906. ),
  3907. ],
  3908. extension=[],
  3909. nested_type=[],
  3910. enum_type=[
  3911. EnumDescriptorProto(
  3912. name="Type",
  3913. value=[
  3914. EnumValueDescriptorProto(
  3915. name="TYPE_DOUBLE", number=1, options=None
  3916. ),
  3917. EnumValueDescriptorProto(
  3918. name="TYPE_FLOAT", number=2, options=None
  3919. ),
  3920. EnumValueDescriptorProto(
  3921. name="TYPE_INT64", number=3, options=None
  3922. ),
  3923. EnumValueDescriptorProto(
  3924. name="TYPE_UINT64", number=4, options=None
  3925. ),
  3926. EnumValueDescriptorProto(
  3927. name="TYPE_INT32", number=5, options=None
  3928. ),
  3929. EnumValueDescriptorProto(
  3930. name="TYPE_FIXED64", number=6, options=None
  3931. ),
  3932. EnumValueDescriptorProto(
  3933. name="TYPE_FIXED32", number=7, options=None
  3934. ),
  3935. EnumValueDescriptorProto(
  3936. name="TYPE_BOOL", number=8, options=None
  3937. ),
  3938. EnumValueDescriptorProto(
  3939. name="TYPE_STRING", number=9, options=None
  3940. ),
  3941. EnumValueDescriptorProto(
  3942. name="TYPE_GROUP", number=10, options=None
  3943. ),
  3944. EnumValueDescriptorProto(
  3945. name="TYPE_MESSAGE", number=11, options=None
  3946. ),
  3947. EnumValueDescriptorProto(
  3948. name="TYPE_BYTES", number=12, options=None
  3949. ),
  3950. EnumValueDescriptorProto(
  3951. name="TYPE_UINT32", number=13, options=None
  3952. ),
  3953. EnumValueDescriptorProto(
  3954. name="TYPE_ENUM", number=14, options=None
  3955. ),
  3956. EnumValueDescriptorProto(
  3957. name="TYPE_SFIXED32", number=15, options=None
  3958. ),
  3959. EnumValueDescriptorProto(
  3960. name="TYPE_SFIXED64", number=16, options=None
  3961. ),
  3962. EnumValueDescriptorProto(
  3963. name="TYPE_SINT32", number=17, options=None
  3964. ),
  3965. EnumValueDescriptorProto(
  3966. name="TYPE_SINT64", number=18, options=None
  3967. ),
  3968. ],
  3969. options=None,
  3970. reserved_range=[],
  3971. reserved_name=[],
  3972. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  3973. ),
  3974. EnumDescriptorProto(
  3975. name="Label",
  3976. value=[
  3977. EnumValueDescriptorProto(
  3978. name="LABEL_OPTIONAL", number=1, options=None
  3979. ),
  3980. EnumValueDescriptorProto(
  3981. name="LABEL_REPEATED", number=3, options=None
  3982. ),
  3983. EnumValueDescriptorProto(
  3984. name="LABEL_REQUIRED", number=2, options=None
  3985. ),
  3986. ],
  3987. options=None,
  3988. reserved_range=[],
  3989. reserved_name=[],
  3990. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  3991. ),
  3992. ],
  3993. extension_range=[],
  3994. oneof_decl=[],
  3995. options=None,
  3996. reserved_range=[],
  3997. reserved_name=[],
  3998. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  3999. ),
  4000. DescriptorProto(
  4001. name="OneofDescriptorProto",
  4002. field=[
  4003. FieldDescriptorProto(
  4004. name="name",
  4005. number=1,
  4006. label=FieldDescriptorProto.Label.OPTIONAL,
  4007. type=FieldDescriptorProto.Type.STRING,
  4008. type_name=unset(""),
  4009. extendee=unset(""),
  4010. default_value=unset(""),
  4011. oneof_index=unset(0),
  4012. json_name="name",
  4013. options=None,
  4014. proto3_optional=unset(False),
  4015. ),
  4016. FieldDescriptorProto(
  4017. name="options",
  4018. number=2,
  4019. label=FieldDescriptorProto.Label.OPTIONAL,
  4020. type=FieldDescriptorProto.Type.MESSAGE,
  4021. type_name=".google.protobuf.OneofOptions",
  4022. extendee=unset(""),
  4023. default_value=unset(""),
  4024. oneof_index=unset(0),
  4025. json_name="options",
  4026. options=None,
  4027. proto3_optional=unset(False),
  4028. ),
  4029. ],
  4030. extension=[],
  4031. nested_type=[],
  4032. enum_type=[],
  4033. extension_range=[],
  4034. oneof_decl=[],
  4035. options=None,
  4036. reserved_range=[],
  4037. reserved_name=[],
  4038. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  4039. ),
  4040. DescriptorProto(
  4041. name="EnumDescriptorProto",
  4042. field=[
  4043. FieldDescriptorProto(
  4044. name="name",
  4045. number=1,
  4046. label=FieldDescriptorProto.Label.OPTIONAL,
  4047. type=FieldDescriptorProto.Type.STRING,
  4048. type_name=unset(""),
  4049. extendee=unset(""),
  4050. default_value=unset(""),
  4051. oneof_index=unset(0),
  4052. json_name="name",
  4053. options=None,
  4054. proto3_optional=unset(False),
  4055. ),
  4056. FieldDescriptorProto(
  4057. name="value",
  4058. number=2,
  4059. label=FieldDescriptorProto.Label.REPEATED,
  4060. type=FieldDescriptorProto.Type.MESSAGE,
  4061. type_name=".google.protobuf.EnumValueDescriptorProto",
  4062. extendee=unset(""),
  4063. default_value=unset(""),
  4064. oneof_index=unset(0),
  4065. json_name="value",
  4066. options=None,
  4067. proto3_optional=unset(False),
  4068. ),
  4069. FieldDescriptorProto(
  4070. name="options",
  4071. number=3,
  4072. label=FieldDescriptorProto.Label.OPTIONAL,
  4073. type=FieldDescriptorProto.Type.MESSAGE,
  4074. type_name=".google.protobuf.EnumOptions",
  4075. extendee=unset(""),
  4076. default_value=unset(""),
  4077. oneof_index=unset(0),
  4078. json_name="options",
  4079. options=None,
  4080. proto3_optional=unset(False),
  4081. ),
  4082. FieldDescriptorProto(
  4083. name="reserved_range",
  4084. number=4,
  4085. label=FieldDescriptorProto.Label.REPEATED,
  4086. type=FieldDescriptorProto.Type.MESSAGE,
  4087. type_name=".google.protobuf.EnumDescriptorProto.EnumReservedRange",
  4088. extendee=unset(""),
  4089. default_value=unset(""),
  4090. oneof_index=unset(0),
  4091. json_name="reservedRange",
  4092. options=None,
  4093. proto3_optional=unset(False),
  4094. ),
  4095. FieldDescriptorProto(
  4096. name="reserved_name",
  4097. number=5,
  4098. label=FieldDescriptorProto.Label.REPEATED,
  4099. type=FieldDescriptorProto.Type.STRING,
  4100. type_name=unset(""),
  4101. extendee=unset(""),
  4102. default_value=unset(""),
  4103. oneof_index=unset(0),
  4104. json_name="reservedName",
  4105. options=None,
  4106. proto3_optional=unset(False),
  4107. ),
  4108. FieldDescriptorProto(
  4109. name="visibility",
  4110. number=6,
  4111. label=FieldDescriptorProto.Label.OPTIONAL,
  4112. type=FieldDescriptorProto.Type.ENUM,
  4113. type_name=".google.protobuf.SymbolVisibility",
  4114. extendee=unset(""),
  4115. default_value=unset(""),
  4116. oneof_index=unset(0),
  4117. json_name="visibility",
  4118. options=None,
  4119. proto3_optional=unset(False),
  4120. ),
  4121. ],
  4122. extension=[],
  4123. nested_type=[
  4124. DescriptorProto(
  4125. name="EnumReservedRange",
  4126. field=[
  4127. FieldDescriptorProto(
  4128. name="start",
  4129. number=1,
  4130. label=FieldDescriptorProto.Label.OPTIONAL,
  4131. type=FieldDescriptorProto.Type.INT32,
  4132. type_name=unset(""),
  4133. extendee=unset(""),
  4134. default_value=unset(""),
  4135. oneof_index=unset(0),
  4136. json_name="start",
  4137. options=None,
  4138. proto3_optional=unset(False),
  4139. ),
  4140. FieldDescriptorProto(
  4141. name="end",
  4142. number=2,
  4143. label=FieldDescriptorProto.Label.OPTIONAL,
  4144. type=FieldDescriptorProto.Type.INT32,
  4145. type_name=unset(""),
  4146. extendee=unset(""),
  4147. default_value=unset(""),
  4148. oneof_index=unset(0),
  4149. json_name="end",
  4150. options=None,
  4151. proto3_optional=unset(False),
  4152. ),
  4153. ],
  4154. extension=[],
  4155. nested_type=[],
  4156. enum_type=[],
  4157. extension_range=[],
  4158. oneof_decl=[],
  4159. options=None,
  4160. reserved_range=[],
  4161. reserved_name=[],
  4162. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  4163. )
  4164. ],
  4165. enum_type=[],
  4166. extension_range=[],
  4167. oneof_decl=[],
  4168. options=None,
  4169. reserved_range=[],
  4170. reserved_name=[],
  4171. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  4172. ),
  4173. DescriptorProto(
  4174. name="EnumValueDescriptorProto",
  4175. field=[
  4176. FieldDescriptorProto(
  4177. name="name",
  4178. number=1,
  4179. label=FieldDescriptorProto.Label.OPTIONAL,
  4180. type=FieldDescriptorProto.Type.STRING,
  4181. type_name=unset(""),
  4182. extendee=unset(""),
  4183. default_value=unset(""),
  4184. oneof_index=unset(0),
  4185. json_name="name",
  4186. options=None,
  4187. proto3_optional=unset(False),
  4188. ),
  4189. FieldDescriptorProto(
  4190. name="number",
  4191. number=2,
  4192. label=FieldDescriptorProto.Label.OPTIONAL,
  4193. type=FieldDescriptorProto.Type.INT32,
  4194. type_name=unset(""),
  4195. extendee=unset(""),
  4196. default_value=unset(""),
  4197. oneof_index=unset(0),
  4198. json_name="number",
  4199. options=None,
  4200. proto3_optional=unset(False),
  4201. ),
  4202. FieldDescriptorProto(
  4203. name="options",
  4204. number=3,
  4205. label=FieldDescriptorProto.Label.OPTIONAL,
  4206. type=FieldDescriptorProto.Type.MESSAGE,
  4207. type_name=".google.protobuf.EnumValueOptions",
  4208. extendee=unset(""),
  4209. default_value=unset(""),
  4210. oneof_index=unset(0),
  4211. json_name="options",
  4212. options=None,
  4213. proto3_optional=unset(False),
  4214. ),
  4215. ],
  4216. extension=[],
  4217. nested_type=[],
  4218. enum_type=[],
  4219. extension_range=[],
  4220. oneof_decl=[],
  4221. options=None,
  4222. reserved_range=[],
  4223. reserved_name=[],
  4224. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  4225. ),
  4226. DescriptorProto(
  4227. name="ServiceDescriptorProto",
  4228. field=[
  4229. FieldDescriptorProto(
  4230. name="name",
  4231. number=1,
  4232. label=FieldDescriptorProto.Label.OPTIONAL,
  4233. type=FieldDescriptorProto.Type.STRING,
  4234. type_name=unset(""),
  4235. extendee=unset(""),
  4236. default_value=unset(""),
  4237. oneof_index=unset(0),
  4238. json_name="name",
  4239. options=None,
  4240. proto3_optional=unset(False),
  4241. ),
  4242. FieldDescriptorProto(
  4243. name="method",
  4244. number=2,
  4245. label=FieldDescriptorProto.Label.REPEATED,
  4246. type=FieldDescriptorProto.Type.MESSAGE,
  4247. type_name=".google.protobuf.MethodDescriptorProto",
  4248. extendee=unset(""),
  4249. default_value=unset(""),
  4250. oneof_index=unset(0),
  4251. json_name="method",
  4252. options=None,
  4253. proto3_optional=unset(False),
  4254. ),
  4255. FieldDescriptorProto(
  4256. name="options",
  4257. number=3,
  4258. label=FieldDescriptorProto.Label.OPTIONAL,
  4259. type=FieldDescriptorProto.Type.MESSAGE,
  4260. type_name=".google.protobuf.ServiceOptions",
  4261. extendee=unset(""),
  4262. default_value=unset(""),
  4263. oneof_index=unset(0),
  4264. json_name="options",
  4265. options=None,
  4266. proto3_optional=unset(False),
  4267. ),
  4268. ],
  4269. extension=[],
  4270. nested_type=[],
  4271. enum_type=[],
  4272. extension_range=[],
  4273. oneof_decl=[],
  4274. options=None,
  4275. reserved_range=[DescriptorProto.ReservedRange(start=4, end=5)],
  4276. reserved_name=["stream"],
  4277. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  4278. ),
  4279. DescriptorProto(
  4280. name="MethodDescriptorProto",
  4281. field=[
  4282. FieldDescriptorProto(
  4283. name="name",
  4284. number=1,
  4285. label=FieldDescriptorProto.Label.OPTIONAL,
  4286. type=FieldDescriptorProto.Type.STRING,
  4287. type_name=unset(""),
  4288. extendee=unset(""),
  4289. default_value=unset(""),
  4290. oneof_index=unset(0),
  4291. json_name="name",
  4292. options=None,
  4293. proto3_optional=unset(False),
  4294. ),
  4295. FieldDescriptorProto(
  4296. name="input_type",
  4297. number=2,
  4298. label=FieldDescriptorProto.Label.OPTIONAL,
  4299. type=FieldDescriptorProto.Type.STRING,
  4300. type_name=unset(""),
  4301. extendee=unset(""),
  4302. default_value=unset(""),
  4303. oneof_index=unset(0),
  4304. json_name="inputType",
  4305. options=None,
  4306. proto3_optional=unset(False),
  4307. ),
  4308. FieldDescriptorProto(
  4309. name="output_type",
  4310. number=3,
  4311. label=FieldDescriptorProto.Label.OPTIONAL,
  4312. type=FieldDescriptorProto.Type.STRING,
  4313. type_name=unset(""),
  4314. extendee=unset(""),
  4315. default_value=unset(""),
  4316. oneof_index=unset(0),
  4317. json_name="outputType",
  4318. options=None,
  4319. proto3_optional=unset(False),
  4320. ),
  4321. FieldDescriptorProto(
  4322. name="options",
  4323. number=4,
  4324. label=FieldDescriptorProto.Label.OPTIONAL,
  4325. type=FieldDescriptorProto.Type.MESSAGE,
  4326. type_name=".google.protobuf.MethodOptions",
  4327. extendee=unset(""),
  4328. default_value=unset(""),
  4329. oneof_index=unset(0),
  4330. json_name="options",
  4331. options=None,
  4332. proto3_optional=unset(False),
  4333. ),
  4334. FieldDescriptorProto(
  4335. name="client_streaming",
  4336. number=5,
  4337. label=FieldDescriptorProto.Label.OPTIONAL,
  4338. type=FieldDescriptorProto.Type.BOOL,
  4339. type_name=unset(""),
  4340. extendee=unset(""),
  4341. default_value="false",
  4342. oneof_index=unset(0),
  4343. json_name="clientStreaming",
  4344. options=None,
  4345. proto3_optional=unset(False),
  4346. ),
  4347. FieldDescriptorProto(
  4348. name="server_streaming",
  4349. number=6,
  4350. label=FieldDescriptorProto.Label.OPTIONAL,
  4351. type=FieldDescriptorProto.Type.BOOL,
  4352. type_name=unset(""),
  4353. extendee=unset(""),
  4354. default_value="false",
  4355. oneof_index=unset(0),
  4356. json_name="serverStreaming",
  4357. options=None,
  4358. proto3_optional=unset(False),
  4359. ),
  4360. ],
  4361. extension=[],
  4362. nested_type=[],
  4363. enum_type=[],
  4364. extension_range=[],
  4365. oneof_decl=[],
  4366. options=None,
  4367. reserved_range=[],
  4368. reserved_name=[],
  4369. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  4370. ),
  4371. DescriptorProto(
  4372. name="FileOptions",
  4373. field=[
  4374. FieldDescriptorProto(
  4375. name="java_package",
  4376. number=1,
  4377. label=FieldDescriptorProto.Label.OPTIONAL,
  4378. type=FieldDescriptorProto.Type.STRING,
  4379. type_name=unset(""),
  4380. extendee=unset(""),
  4381. default_value=unset(""),
  4382. oneof_index=unset(0),
  4383. json_name="javaPackage",
  4384. options=None,
  4385. proto3_optional=unset(False),
  4386. ),
  4387. FieldDescriptorProto(
  4388. name="java_outer_classname",
  4389. number=8,
  4390. label=FieldDescriptorProto.Label.OPTIONAL,
  4391. type=FieldDescriptorProto.Type.STRING,
  4392. type_name=unset(""),
  4393. extendee=unset(""),
  4394. default_value=unset(""),
  4395. oneof_index=unset(0),
  4396. json_name="javaOuterClassname",
  4397. options=None,
  4398. proto3_optional=unset(False),
  4399. ),
  4400. FieldDescriptorProto(
  4401. name="java_multiple_files",
  4402. number=10,
  4403. label=FieldDescriptorProto.Label.OPTIONAL,
  4404. type=FieldDescriptorProto.Type.BOOL,
  4405. type_name=unset(""),
  4406. extendee=unset(""),
  4407. default_value="false",
  4408. oneof_index=unset(0),
  4409. json_name="javaMultipleFiles",
  4410. options=FieldOptions(
  4411. ctype=unset(FieldOptions.CType.STRING),
  4412. packed=unset(False),
  4413. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  4414. lazy=unset(False),
  4415. unverified_lazy=unset(False),
  4416. deprecated=unset(False),
  4417. weak=unset(False),
  4418. debug_redact=unset(False),
  4419. retention=unset(
  4420. FieldOptions.OptionRetention.RETENTION_UNKNOWN
  4421. ),
  4422. targets=[],
  4423. edition_defaults=[],
  4424. features=None,
  4425. feature_support=FieldOptions.FeatureSupport(
  4426. edition_introduced=Edition.PROTO2,
  4427. edition_deprecated=unset(Edition.UNKNOWN),
  4428. deprecation_warning=unset(""),
  4429. edition_removed=Edition.EDITION_2024,
  4430. removal_error="This behavior is enabled by default in editions 2024 and above. To disable it, you can set `features.(pb.java).nest_in_file_class = YES` on individual messages, enums, or services.",
  4431. ),
  4432. uninterpreted_option=[],
  4433. ),
  4434. proto3_optional=unset(False),
  4435. ),
  4436. FieldDescriptorProto(
  4437. name="java_generate_equals_and_hash",
  4438. number=20,
  4439. label=FieldDescriptorProto.Label.OPTIONAL,
  4440. type=FieldDescriptorProto.Type.BOOL,
  4441. type_name=unset(""),
  4442. extendee=unset(""),
  4443. default_value=unset(""),
  4444. oneof_index=unset(0),
  4445. json_name="javaGenerateEqualsAndHash",
  4446. options=FieldOptions(
  4447. ctype=unset(FieldOptions.CType.STRING),
  4448. packed=unset(False),
  4449. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  4450. lazy=unset(False),
  4451. unverified_lazy=unset(False),
  4452. deprecated=True,
  4453. weak=unset(False),
  4454. debug_redact=unset(False),
  4455. retention=unset(
  4456. FieldOptions.OptionRetention.RETENTION_UNKNOWN
  4457. ),
  4458. targets=[],
  4459. edition_defaults=[],
  4460. features=None,
  4461. feature_support=None,
  4462. uninterpreted_option=[],
  4463. ),
  4464. proto3_optional=unset(False),
  4465. ),
  4466. FieldDescriptorProto(
  4467. name="java_string_check_utf8",
  4468. number=27,
  4469. label=FieldDescriptorProto.Label.OPTIONAL,
  4470. type=FieldDescriptorProto.Type.BOOL,
  4471. type_name=unset(""),
  4472. extendee=unset(""),
  4473. default_value="false",
  4474. oneof_index=unset(0),
  4475. json_name="javaStringCheckUtf8",
  4476. options=None,
  4477. proto3_optional=unset(False),
  4478. ),
  4479. FieldDescriptorProto(
  4480. name="optimize_for",
  4481. number=9,
  4482. label=FieldDescriptorProto.Label.OPTIONAL,
  4483. type=FieldDescriptorProto.Type.ENUM,
  4484. type_name=".google.protobuf.FileOptions.OptimizeMode",
  4485. extendee=unset(""),
  4486. default_value="SPEED",
  4487. oneof_index=unset(0),
  4488. json_name="optimizeFor",
  4489. options=None,
  4490. proto3_optional=unset(False),
  4491. ),
  4492. FieldDescriptorProto(
  4493. name="go_package",
  4494. number=11,
  4495. label=FieldDescriptorProto.Label.OPTIONAL,
  4496. type=FieldDescriptorProto.Type.STRING,
  4497. type_name=unset(""),
  4498. extendee=unset(""),
  4499. default_value=unset(""),
  4500. oneof_index=unset(0),
  4501. json_name="goPackage",
  4502. options=None,
  4503. proto3_optional=unset(False),
  4504. ),
  4505. FieldDescriptorProto(
  4506. name="cc_generic_services",
  4507. number=16,
  4508. label=FieldDescriptorProto.Label.OPTIONAL,
  4509. type=FieldDescriptorProto.Type.BOOL,
  4510. type_name=unset(""),
  4511. extendee=unset(""),
  4512. default_value="false",
  4513. oneof_index=unset(0),
  4514. json_name="ccGenericServices",
  4515. options=None,
  4516. proto3_optional=unset(False),
  4517. ),
  4518. FieldDescriptorProto(
  4519. name="java_generic_services",
  4520. number=17,
  4521. label=FieldDescriptorProto.Label.OPTIONAL,
  4522. type=FieldDescriptorProto.Type.BOOL,
  4523. type_name=unset(""),
  4524. extendee=unset(""),
  4525. default_value="false",
  4526. oneof_index=unset(0),
  4527. json_name="javaGenericServices",
  4528. options=None,
  4529. proto3_optional=unset(False),
  4530. ),
  4531. FieldDescriptorProto(
  4532. name="py_generic_services",
  4533. number=18,
  4534. label=FieldDescriptorProto.Label.OPTIONAL,
  4535. type=FieldDescriptorProto.Type.BOOL,
  4536. type_name=unset(""),
  4537. extendee=unset(""),
  4538. default_value="false",
  4539. oneof_index=unset(0),
  4540. json_name="pyGenericServices",
  4541. options=None,
  4542. proto3_optional=unset(False),
  4543. ),
  4544. FieldDescriptorProto(
  4545. name="deprecated",
  4546. number=23,
  4547. label=FieldDescriptorProto.Label.OPTIONAL,
  4548. type=FieldDescriptorProto.Type.BOOL,
  4549. type_name=unset(""),
  4550. extendee=unset(""),
  4551. default_value="false",
  4552. oneof_index=unset(0),
  4553. json_name="deprecated",
  4554. options=None,
  4555. proto3_optional=unset(False),
  4556. ),
  4557. FieldDescriptorProto(
  4558. name="cc_enable_arenas",
  4559. number=31,
  4560. label=FieldDescriptorProto.Label.OPTIONAL,
  4561. type=FieldDescriptorProto.Type.BOOL,
  4562. type_name=unset(""),
  4563. extendee=unset(""),
  4564. default_value="true",
  4565. oneof_index=unset(0),
  4566. json_name="ccEnableArenas",
  4567. options=None,
  4568. proto3_optional=unset(False),
  4569. ),
  4570. FieldDescriptorProto(
  4571. name="objc_class_prefix",
  4572. number=36,
  4573. label=FieldDescriptorProto.Label.OPTIONAL,
  4574. type=FieldDescriptorProto.Type.STRING,
  4575. type_name=unset(""),
  4576. extendee=unset(""),
  4577. default_value=unset(""),
  4578. oneof_index=unset(0),
  4579. json_name="objcClassPrefix",
  4580. options=None,
  4581. proto3_optional=unset(False),
  4582. ),
  4583. FieldDescriptorProto(
  4584. name="csharp_namespace",
  4585. number=37,
  4586. label=FieldDescriptorProto.Label.OPTIONAL,
  4587. type=FieldDescriptorProto.Type.STRING,
  4588. type_name=unset(""),
  4589. extendee=unset(""),
  4590. default_value=unset(""),
  4591. oneof_index=unset(0),
  4592. json_name="csharpNamespace",
  4593. options=None,
  4594. proto3_optional=unset(False),
  4595. ),
  4596. FieldDescriptorProto(
  4597. name="swift_prefix",
  4598. number=39,
  4599. label=FieldDescriptorProto.Label.OPTIONAL,
  4600. type=FieldDescriptorProto.Type.STRING,
  4601. type_name=unset(""),
  4602. extendee=unset(""),
  4603. default_value=unset(""),
  4604. oneof_index=unset(0),
  4605. json_name="swiftPrefix",
  4606. options=None,
  4607. proto3_optional=unset(False),
  4608. ),
  4609. FieldDescriptorProto(
  4610. name="php_class_prefix",
  4611. number=40,
  4612. label=FieldDescriptorProto.Label.OPTIONAL,
  4613. type=FieldDescriptorProto.Type.STRING,
  4614. type_name=unset(""),
  4615. extendee=unset(""),
  4616. default_value=unset(""),
  4617. oneof_index=unset(0),
  4618. json_name="phpClassPrefix",
  4619. options=None,
  4620. proto3_optional=unset(False),
  4621. ),
  4622. FieldDescriptorProto(
  4623. name="php_namespace",
  4624. number=41,
  4625. label=FieldDescriptorProto.Label.OPTIONAL,
  4626. type=FieldDescriptorProto.Type.STRING,
  4627. type_name=unset(""),
  4628. extendee=unset(""),
  4629. default_value=unset(""),
  4630. oneof_index=unset(0),
  4631. json_name="phpNamespace",
  4632. options=None,
  4633. proto3_optional=unset(False),
  4634. ),
  4635. FieldDescriptorProto(
  4636. name="php_metadata_namespace",
  4637. number=44,
  4638. label=FieldDescriptorProto.Label.OPTIONAL,
  4639. type=FieldDescriptorProto.Type.STRING,
  4640. type_name=unset(""),
  4641. extendee=unset(""),
  4642. default_value=unset(""),
  4643. oneof_index=unset(0),
  4644. json_name="phpMetadataNamespace",
  4645. options=None,
  4646. proto3_optional=unset(False),
  4647. ),
  4648. FieldDescriptorProto(
  4649. name="ruby_package",
  4650. number=45,
  4651. label=FieldDescriptorProto.Label.OPTIONAL,
  4652. type=FieldDescriptorProto.Type.STRING,
  4653. type_name=unset(""),
  4654. extendee=unset(""),
  4655. default_value=unset(""),
  4656. oneof_index=unset(0),
  4657. json_name="rubyPackage",
  4658. options=None,
  4659. proto3_optional=unset(False),
  4660. ),
  4661. FieldDescriptorProto(
  4662. name="features",
  4663. number=50,
  4664. label=FieldDescriptorProto.Label.OPTIONAL,
  4665. type=FieldDescriptorProto.Type.MESSAGE,
  4666. type_name=".google.protobuf.FeatureSet",
  4667. extendee=unset(""),
  4668. default_value=unset(""),
  4669. oneof_index=unset(0),
  4670. json_name="features",
  4671. options=None,
  4672. proto3_optional=unset(False),
  4673. ),
  4674. FieldDescriptorProto(
  4675. name="uninterpreted_option",
  4676. number=999,
  4677. label=FieldDescriptorProto.Label.REPEATED,
  4678. type=FieldDescriptorProto.Type.MESSAGE,
  4679. type_name=".google.protobuf.UninterpretedOption",
  4680. extendee=unset(""),
  4681. default_value=unset(""),
  4682. oneof_index=unset(0),
  4683. json_name="uninterpretedOption",
  4684. options=None,
  4685. proto3_optional=unset(False),
  4686. ),
  4687. ],
  4688. extension=[],
  4689. nested_type=[],
  4690. enum_type=[
  4691. EnumDescriptorProto(
  4692. name="OptimizeMode",
  4693. value=[
  4694. EnumValueDescriptorProto(
  4695. name="SPEED", number=1, options=None
  4696. ),
  4697. EnumValueDescriptorProto(
  4698. name="CODE_SIZE", number=2, options=None
  4699. ),
  4700. EnumValueDescriptorProto(
  4701. name="LITE_RUNTIME", number=3, options=None
  4702. ),
  4703. ],
  4704. options=None,
  4705. reserved_range=[],
  4706. reserved_name=[],
  4707. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  4708. )
  4709. ],
  4710. extension_range=[
  4711. DescriptorProto.ExtensionRange(
  4712. start=990,
  4713. end=999,
  4714. options=ExtensionRangeOptions(
  4715. uninterpreted_option=[],
  4716. declaration=[
  4717. ExtensionRangeOptions.Declaration(
  4718. number=990,
  4719. full_name=".pb.file.cpp",
  4720. type=".pb.file.CppFileOptions",
  4721. reserved=unset(False),
  4722. repeated=unset(False),
  4723. )
  4724. ],
  4725. features=None,
  4726. verification=unset(
  4727. ExtensionRangeOptions.VerificationState.UNVERIFIED
  4728. ),
  4729. ),
  4730. ),
  4731. DescriptorProto.ExtensionRange(
  4732. start=1000, end=536870912, options=None
  4733. ),
  4734. ],
  4735. oneof_decl=[],
  4736. options=None,
  4737. reserved_range=[
  4738. DescriptorProto.ReservedRange(start=42, end=43),
  4739. DescriptorProto.ReservedRange(start=38, end=39),
  4740. ],
  4741. reserved_name=["php_generic_services"],
  4742. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  4743. ),
  4744. DescriptorProto(
  4745. name="MessageOptions",
  4746. field=[
  4747. FieldDescriptorProto(
  4748. name="message_set_wire_format",
  4749. number=1,
  4750. label=FieldDescriptorProto.Label.OPTIONAL,
  4751. type=FieldDescriptorProto.Type.BOOL,
  4752. type_name=unset(""),
  4753. extendee=unset(""),
  4754. default_value="false",
  4755. oneof_index=unset(0),
  4756. json_name="messageSetWireFormat",
  4757. options=None,
  4758. proto3_optional=unset(False),
  4759. ),
  4760. FieldDescriptorProto(
  4761. name="no_standard_descriptor_accessor",
  4762. number=2,
  4763. label=FieldDescriptorProto.Label.OPTIONAL,
  4764. type=FieldDescriptorProto.Type.BOOL,
  4765. type_name=unset(""),
  4766. extendee=unset(""),
  4767. default_value="false",
  4768. oneof_index=unset(0),
  4769. json_name="noStandardDescriptorAccessor",
  4770. options=None,
  4771. proto3_optional=unset(False),
  4772. ),
  4773. FieldDescriptorProto(
  4774. name="deprecated",
  4775. number=3,
  4776. label=FieldDescriptorProto.Label.OPTIONAL,
  4777. type=FieldDescriptorProto.Type.BOOL,
  4778. type_name=unset(""),
  4779. extendee=unset(""),
  4780. default_value="false",
  4781. oneof_index=unset(0),
  4782. json_name="deprecated",
  4783. options=None,
  4784. proto3_optional=unset(False),
  4785. ),
  4786. FieldDescriptorProto(
  4787. name="map_entry",
  4788. number=7,
  4789. label=FieldDescriptorProto.Label.OPTIONAL,
  4790. type=FieldDescriptorProto.Type.BOOL,
  4791. type_name=unset(""),
  4792. extendee=unset(""),
  4793. default_value=unset(""),
  4794. oneof_index=unset(0),
  4795. json_name="mapEntry",
  4796. options=None,
  4797. proto3_optional=unset(False),
  4798. ),
  4799. FieldDescriptorProto(
  4800. name="deprecated_legacy_json_field_conflicts",
  4801. number=11,
  4802. label=FieldDescriptorProto.Label.OPTIONAL,
  4803. type=FieldDescriptorProto.Type.BOOL,
  4804. type_name=unset(""),
  4805. extendee=unset(""),
  4806. default_value=unset(""),
  4807. oneof_index=unset(0),
  4808. json_name="deprecatedLegacyJsonFieldConflicts",
  4809. options=FieldOptions(
  4810. ctype=unset(FieldOptions.CType.STRING),
  4811. packed=unset(False),
  4812. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  4813. lazy=unset(False),
  4814. unverified_lazy=unset(False),
  4815. deprecated=True,
  4816. weak=unset(False),
  4817. debug_redact=unset(False),
  4818. retention=unset(
  4819. FieldOptions.OptionRetention.RETENTION_UNKNOWN
  4820. ),
  4821. targets=[],
  4822. edition_defaults=[],
  4823. features=None,
  4824. feature_support=None,
  4825. uninterpreted_option=[],
  4826. ),
  4827. proto3_optional=unset(False),
  4828. ),
  4829. FieldDescriptorProto(
  4830. name="features",
  4831. number=12,
  4832. label=FieldDescriptorProto.Label.OPTIONAL,
  4833. type=FieldDescriptorProto.Type.MESSAGE,
  4834. type_name=".google.protobuf.FeatureSet",
  4835. extendee=unset(""),
  4836. default_value=unset(""),
  4837. oneof_index=unset(0),
  4838. json_name="features",
  4839. options=None,
  4840. proto3_optional=unset(False),
  4841. ),
  4842. FieldDescriptorProto(
  4843. name="uninterpreted_option",
  4844. number=999,
  4845. label=FieldDescriptorProto.Label.REPEATED,
  4846. type=FieldDescriptorProto.Type.MESSAGE,
  4847. type_name=".google.protobuf.UninterpretedOption",
  4848. extendee=unset(""),
  4849. default_value=unset(""),
  4850. oneof_index=unset(0),
  4851. json_name="uninterpretedOption",
  4852. options=None,
  4853. proto3_optional=unset(False),
  4854. ),
  4855. ],
  4856. extension=[],
  4857. nested_type=[],
  4858. enum_type=[],
  4859. extension_range=[
  4860. DescriptorProto.ExtensionRange(start=990, end=999, options=None),
  4861. DescriptorProto.ExtensionRange(
  4862. start=1000, end=536870912, options=None
  4863. ),
  4864. ],
  4865. oneof_decl=[],
  4866. options=None,
  4867. reserved_range=[
  4868. DescriptorProto.ReservedRange(start=4, end=5),
  4869. DescriptorProto.ReservedRange(start=5, end=6),
  4870. DescriptorProto.ReservedRange(start=6, end=7),
  4871. DescriptorProto.ReservedRange(start=8, end=9),
  4872. DescriptorProto.ReservedRange(start=9, end=10),
  4873. ],
  4874. reserved_name=[],
  4875. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  4876. ),
  4877. DescriptorProto(
  4878. name="FieldOptions",
  4879. field=[
  4880. FieldDescriptorProto(
  4881. name="ctype",
  4882. number=1,
  4883. label=FieldDescriptorProto.Label.OPTIONAL,
  4884. type=FieldDescriptorProto.Type.ENUM,
  4885. type_name=".google.protobuf.FieldOptions.CType",
  4886. extendee=unset(""),
  4887. default_value="STRING",
  4888. oneof_index=unset(0),
  4889. json_name="ctype",
  4890. options=None,
  4891. proto3_optional=unset(False),
  4892. ),
  4893. FieldDescriptorProto(
  4894. name="packed",
  4895. number=2,
  4896. label=FieldDescriptorProto.Label.OPTIONAL,
  4897. type=FieldDescriptorProto.Type.BOOL,
  4898. type_name=unset(""),
  4899. extendee=unset(""),
  4900. default_value=unset(""),
  4901. oneof_index=unset(0),
  4902. json_name="packed",
  4903. options=None,
  4904. proto3_optional=unset(False),
  4905. ),
  4906. FieldDescriptorProto(
  4907. name="jstype",
  4908. number=6,
  4909. label=FieldDescriptorProto.Label.OPTIONAL,
  4910. type=FieldDescriptorProto.Type.ENUM,
  4911. type_name=".google.protobuf.FieldOptions.JSType",
  4912. extendee=unset(""),
  4913. default_value="JS_NORMAL",
  4914. oneof_index=unset(0),
  4915. json_name="jstype",
  4916. options=None,
  4917. proto3_optional=unset(False),
  4918. ),
  4919. FieldDescriptorProto(
  4920. name="lazy",
  4921. number=5,
  4922. label=FieldDescriptorProto.Label.OPTIONAL,
  4923. type=FieldDescriptorProto.Type.BOOL,
  4924. type_name=unset(""),
  4925. extendee=unset(""),
  4926. default_value="false",
  4927. oneof_index=unset(0),
  4928. json_name="lazy",
  4929. options=None,
  4930. proto3_optional=unset(False),
  4931. ),
  4932. FieldDescriptorProto(
  4933. name="unverified_lazy",
  4934. number=15,
  4935. label=FieldDescriptorProto.Label.OPTIONAL,
  4936. type=FieldDescriptorProto.Type.BOOL,
  4937. type_name=unset(""),
  4938. extendee=unset(""),
  4939. default_value="false",
  4940. oneof_index=unset(0),
  4941. json_name="unverifiedLazy",
  4942. options=None,
  4943. proto3_optional=unset(False),
  4944. ),
  4945. FieldDescriptorProto(
  4946. name="deprecated",
  4947. number=3,
  4948. label=FieldDescriptorProto.Label.OPTIONAL,
  4949. type=FieldDescriptorProto.Type.BOOL,
  4950. type_name=unset(""),
  4951. extendee=unset(""),
  4952. default_value="false",
  4953. oneof_index=unset(0),
  4954. json_name="deprecated",
  4955. options=None,
  4956. proto3_optional=unset(False),
  4957. ),
  4958. FieldDescriptorProto(
  4959. name="weak",
  4960. number=10,
  4961. label=FieldDescriptorProto.Label.OPTIONAL,
  4962. type=FieldDescriptorProto.Type.BOOL,
  4963. type_name=unset(""),
  4964. extendee=unset(""),
  4965. default_value="false",
  4966. oneof_index=unset(0),
  4967. json_name="weak",
  4968. options=FieldOptions(
  4969. ctype=unset(FieldOptions.CType.STRING),
  4970. packed=unset(False),
  4971. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  4972. lazy=unset(False),
  4973. unverified_lazy=unset(False),
  4974. deprecated=True,
  4975. weak=unset(False),
  4976. debug_redact=unset(False),
  4977. retention=unset(
  4978. FieldOptions.OptionRetention.RETENTION_UNKNOWN
  4979. ),
  4980. targets=[],
  4981. edition_defaults=[],
  4982. features=None,
  4983. feature_support=None,
  4984. uninterpreted_option=[],
  4985. ),
  4986. proto3_optional=unset(False),
  4987. ),
  4988. FieldDescriptorProto(
  4989. name="debug_redact",
  4990. number=16,
  4991. label=FieldDescriptorProto.Label.OPTIONAL,
  4992. type=FieldDescriptorProto.Type.BOOL,
  4993. type_name=unset(""),
  4994. extendee=unset(""),
  4995. default_value="false",
  4996. oneof_index=unset(0),
  4997. json_name="debugRedact",
  4998. options=None,
  4999. proto3_optional=unset(False),
  5000. ),
  5001. FieldDescriptorProto(
  5002. name="retention",
  5003. number=17,
  5004. label=FieldDescriptorProto.Label.OPTIONAL,
  5005. type=FieldDescriptorProto.Type.ENUM,
  5006. type_name=".google.protobuf.FieldOptions.OptionRetention",
  5007. extendee=unset(""),
  5008. default_value=unset(""),
  5009. oneof_index=unset(0),
  5010. json_name="retention",
  5011. options=None,
  5012. proto3_optional=unset(False),
  5013. ),
  5014. FieldDescriptorProto(
  5015. name="targets",
  5016. number=19,
  5017. label=FieldDescriptorProto.Label.REPEATED,
  5018. type=FieldDescriptorProto.Type.ENUM,
  5019. type_name=".google.protobuf.FieldOptions.OptionTargetType",
  5020. extendee=unset(""),
  5021. default_value=unset(""),
  5022. oneof_index=unset(0),
  5023. json_name="targets",
  5024. options=None,
  5025. proto3_optional=unset(False),
  5026. ),
  5027. FieldDescriptorProto(
  5028. name="edition_defaults",
  5029. number=20,
  5030. label=FieldDescriptorProto.Label.REPEATED,
  5031. type=FieldDescriptorProto.Type.MESSAGE,
  5032. type_name=".google.protobuf.FieldOptions.EditionDefault",
  5033. extendee=unset(""),
  5034. default_value=unset(""),
  5035. oneof_index=unset(0),
  5036. json_name="editionDefaults",
  5037. options=None,
  5038. proto3_optional=unset(False),
  5039. ),
  5040. FieldDescriptorProto(
  5041. name="features",
  5042. number=21,
  5043. label=FieldDescriptorProto.Label.OPTIONAL,
  5044. type=FieldDescriptorProto.Type.MESSAGE,
  5045. type_name=".google.protobuf.FeatureSet",
  5046. extendee=unset(""),
  5047. default_value=unset(""),
  5048. oneof_index=unset(0),
  5049. json_name="features",
  5050. options=None,
  5051. proto3_optional=unset(False),
  5052. ),
  5053. FieldDescriptorProto(
  5054. name="feature_support",
  5055. number=22,
  5056. label=FieldDescriptorProto.Label.OPTIONAL,
  5057. type=FieldDescriptorProto.Type.MESSAGE,
  5058. type_name=".google.protobuf.FieldOptions.FeatureSupport",
  5059. extendee=unset(""),
  5060. default_value=unset(""),
  5061. oneof_index=unset(0),
  5062. json_name="featureSupport",
  5063. options=None,
  5064. proto3_optional=unset(False),
  5065. ),
  5066. FieldDescriptorProto(
  5067. name="uninterpreted_option",
  5068. number=999,
  5069. label=FieldDescriptorProto.Label.REPEATED,
  5070. type=FieldDescriptorProto.Type.MESSAGE,
  5071. type_name=".google.protobuf.UninterpretedOption",
  5072. extendee=unset(""),
  5073. default_value=unset(""),
  5074. oneof_index=unset(0),
  5075. json_name="uninterpretedOption",
  5076. options=None,
  5077. proto3_optional=unset(False),
  5078. ),
  5079. ],
  5080. extension=[],
  5081. nested_type=[
  5082. DescriptorProto(
  5083. name="EditionDefault",
  5084. field=[
  5085. FieldDescriptorProto(
  5086. name="edition",
  5087. number=3,
  5088. label=FieldDescriptorProto.Label.OPTIONAL,
  5089. type=FieldDescriptorProto.Type.ENUM,
  5090. type_name=".google.protobuf.Edition",
  5091. extendee=unset(""),
  5092. default_value=unset(""),
  5093. oneof_index=unset(0),
  5094. json_name="edition",
  5095. options=None,
  5096. proto3_optional=unset(False),
  5097. ),
  5098. FieldDescriptorProto(
  5099. name="value",
  5100. number=2,
  5101. label=FieldDescriptorProto.Label.OPTIONAL,
  5102. type=FieldDescriptorProto.Type.STRING,
  5103. type_name=unset(""),
  5104. extendee=unset(""),
  5105. default_value=unset(""),
  5106. oneof_index=unset(0),
  5107. json_name="value",
  5108. options=None,
  5109. proto3_optional=unset(False),
  5110. ),
  5111. ],
  5112. extension=[],
  5113. nested_type=[],
  5114. enum_type=[],
  5115. extension_range=[],
  5116. oneof_decl=[],
  5117. options=None,
  5118. reserved_range=[],
  5119. reserved_name=[],
  5120. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5121. ),
  5122. DescriptorProto(
  5123. name="FeatureSupport",
  5124. field=[
  5125. FieldDescriptorProto(
  5126. name="edition_introduced",
  5127. number=1,
  5128. label=FieldDescriptorProto.Label.OPTIONAL,
  5129. type=FieldDescriptorProto.Type.ENUM,
  5130. type_name=".google.protobuf.Edition",
  5131. extendee=unset(""),
  5132. default_value=unset(""),
  5133. oneof_index=unset(0),
  5134. json_name="editionIntroduced",
  5135. options=None,
  5136. proto3_optional=unset(False),
  5137. ),
  5138. FieldDescriptorProto(
  5139. name="edition_deprecated",
  5140. number=2,
  5141. label=FieldDescriptorProto.Label.OPTIONAL,
  5142. type=FieldDescriptorProto.Type.ENUM,
  5143. type_name=".google.protobuf.Edition",
  5144. extendee=unset(""),
  5145. default_value=unset(""),
  5146. oneof_index=unset(0),
  5147. json_name="editionDeprecated",
  5148. options=None,
  5149. proto3_optional=unset(False),
  5150. ),
  5151. FieldDescriptorProto(
  5152. name="deprecation_warning",
  5153. number=3,
  5154. label=FieldDescriptorProto.Label.OPTIONAL,
  5155. type=FieldDescriptorProto.Type.STRING,
  5156. type_name=unset(""),
  5157. extendee=unset(""),
  5158. default_value=unset(""),
  5159. oneof_index=unset(0),
  5160. json_name="deprecationWarning",
  5161. options=None,
  5162. proto3_optional=unset(False),
  5163. ),
  5164. FieldDescriptorProto(
  5165. name="edition_removed",
  5166. number=4,
  5167. label=FieldDescriptorProto.Label.OPTIONAL,
  5168. type=FieldDescriptorProto.Type.ENUM,
  5169. type_name=".google.protobuf.Edition",
  5170. extendee=unset(""),
  5171. default_value=unset(""),
  5172. oneof_index=unset(0),
  5173. json_name="editionRemoved",
  5174. options=None,
  5175. proto3_optional=unset(False),
  5176. ),
  5177. FieldDescriptorProto(
  5178. name="removal_error",
  5179. number=5,
  5180. label=FieldDescriptorProto.Label.OPTIONAL,
  5181. type=FieldDescriptorProto.Type.STRING,
  5182. type_name=unset(""),
  5183. extendee=unset(""),
  5184. default_value=unset(""),
  5185. oneof_index=unset(0),
  5186. json_name="removalError",
  5187. options=None,
  5188. proto3_optional=unset(False),
  5189. ),
  5190. ],
  5191. extension=[],
  5192. nested_type=[],
  5193. enum_type=[],
  5194. extension_range=[],
  5195. oneof_decl=[],
  5196. options=None,
  5197. reserved_range=[],
  5198. reserved_name=[],
  5199. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5200. ),
  5201. ],
  5202. enum_type=[
  5203. EnumDescriptorProto(
  5204. name="CType",
  5205. value=[
  5206. EnumValueDescriptorProto(
  5207. name="STRING", number=0, options=None
  5208. ),
  5209. EnumValueDescriptorProto(
  5210. name="CORD", number=1, options=None
  5211. ),
  5212. EnumValueDescriptorProto(
  5213. name="STRING_PIECE", number=2, options=None
  5214. ),
  5215. ],
  5216. options=None,
  5217. reserved_range=[],
  5218. reserved_name=[],
  5219. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5220. ),
  5221. EnumDescriptorProto(
  5222. name="JSType",
  5223. value=[
  5224. EnumValueDescriptorProto(
  5225. name="JS_NORMAL", number=0, options=None
  5226. ),
  5227. EnumValueDescriptorProto(
  5228. name="JS_STRING", number=1, options=None
  5229. ),
  5230. EnumValueDescriptorProto(
  5231. name="JS_NUMBER", number=2, options=None
  5232. ),
  5233. ],
  5234. options=None,
  5235. reserved_range=[],
  5236. reserved_name=[],
  5237. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5238. ),
  5239. EnumDescriptorProto(
  5240. name="OptionRetention",
  5241. value=[
  5242. EnumValueDescriptorProto(
  5243. name="RETENTION_UNKNOWN", number=0, options=None
  5244. ),
  5245. EnumValueDescriptorProto(
  5246. name="RETENTION_RUNTIME", number=1, options=None
  5247. ),
  5248. EnumValueDescriptorProto(
  5249. name="RETENTION_SOURCE", number=2, options=None
  5250. ),
  5251. ],
  5252. options=None,
  5253. reserved_range=[],
  5254. reserved_name=[],
  5255. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5256. ),
  5257. EnumDescriptorProto(
  5258. name="OptionTargetType",
  5259. value=[
  5260. EnumValueDescriptorProto(
  5261. name="TARGET_TYPE_UNKNOWN", number=0, options=None
  5262. ),
  5263. EnumValueDescriptorProto(
  5264. name="TARGET_TYPE_FILE", number=1, options=None
  5265. ),
  5266. EnumValueDescriptorProto(
  5267. name="TARGET_TYPE_EXTENSION_RANGE",
  5268. number=2,
  5269. options=None,
  5270. ),
  5271. EnumValueDescriptorProto(
  5272. name="TARGET_TYPE_MESSAGE", number=3, options=None
  5273. ),
  5274. EnumValueDescriptorProto(
  5275. name="TARGET_TYPE_FIELD", number=4, options=None
  5276. ),
  5277. EnumValueDescriptorProto(
  5278. name="TARGET_TYPE_ONEOF", number=5, options=None
  5279. ),
  5280. EnumValueDescriptorProto(
  5281. name="TARGET_TYPE_ENUM", number=6, options=None
  5282. ),
  5283. EnumValueDescriptorProto(
  5284. name="TARGET_TYPE_ENUM_ENTRY", number=7, options=None
  5285. ),
  5286. EnumValueDescriptorProto(
  5287. name="TARGET_TYPE_SERVICE", number=8, options=None
  5288. ),
  5289. EnumValueDescriptorProto(
  5290. name="TARGET_TYPE_METHOD", number=9, options=None
  5291. ),
  5292. ],
  5293. options=None,
  5294. reserved_range=[],
  5295. reserved_name=[],
  5296. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5297. ),
  5298. ],
  5299. extension_range=[
  5300. DescriptorProto.ExtensionRange(start=990, end=999, options=None),
  5301. DescriptorProto.ExtensionRange(
  5302. start=1000, end=536870912, options=None
  5303. ),
  5304. ],
  5305. oneof_decl=[],
  5306. options=None,
  5307. reserved_range=[
  5308. DescriptorProto.ReservedRange(start=4, end=5),
  5309. DescriptorProto.ReservedRange(start=18, end=19),
  5310. ],
  5311. reserved_name=[],
  5312. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5313. ),
  5314. DescriptorProto(
  5315. name="OneofOptions",
  5316. field=[
  5317. FieldDescriptorProto(
  5318. name="features",
  5319. number=1,
  5320. label=FieldDescriptorProto.Label.OPTIONAL,
  5321. type=FieldDescriptorProto.Type.MESSAGE,
  5322. type_name=".google.protobuf.FeatureSet",
  5323. extendee=unset(""),
  5324. default_value=unset(""),
  5325. oneof_index=unset(0),
  5326. json_name="features",
  5327. options=None,
  5328. proto3_optional=unset(False),
  5329. ),
  5330. FieldDescriptorProto(
  5331. name="uninterpreted_option",
  5332. number=999,
  5333. label=FieldDescriptorProto.Label.REPEATED,
  5334. type=FieldDescriptorProto.Type.MESSAGE,
  5335. type_name=".google.protobuf.UninterpretedOption",
  5336. extendee=unset(""),
  5337. default_value=unset(""),
  5338. oneof_index=unset(0),
  5339. json_name="uninterpretedOption",
  5340. options=None,
  5341. proto3_optional=unset(False),
  5342. ),
  5343. ],
  5344. extension=[],
  5345. nested_type=[],
  5346. enum_type=[],
  5347. extension_range=[
  5348. DescriptorProto.ExtensionRange(start=990, end=999, options=None),
  5349. DescriptorProto.ExtensionRange(
  5350. start=1000, end=536870912, options=None
  5351. ),
  5352. ],
  5353. oneof_decl=[],
  5354. options=None,
  5355. reserved_range=[],
  5356. reserved_name=[],
  5357. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5358. ),
  5359. DescriptorProto(
  5360. name="EnumOptions",
  5361. field=[
  5362. FieldDescriptorProto(
  5363. name="allow_alias",
  5364. number=2,
  5365. label=FieldDescriptorProto.Label.OPTIONAL,
  5366. type=FieldDescriptorProto.Type.BOOL,
  5367. type_name=unset(""),
  5368. extendee=unset(""),
  5369. default_value=unset(""),
  5370. oneof_index=unset(0),
  5371. json_name="allowAlias",
  5372. options=None,
  5373. proto3_optional=unset(False),
  5374. ),
  5375. FieldDescriptorProto(
  5376. name="deprecated",
  5377. number=3,
  5378. label=FieldDescriptorProto.Label.OPTIONAL,
  5379. type=FieldDescriptorProto.Type.BOOL,
  5380. type_name=unset(""),
  5381. extendee=unset(""),
  5382. default_value="false",
  5383. oneof_index=unset(0),
  5384. json_name="deprecated",
  5385. options=None,
  5386. proto3_optional=unset(False),
  5387. ),
  5388. FieldDescriptorProto(
  5389. name="deprecated_legacy_json_field_conflicts",
  5390. number=6,
  5391. label=FieldDescriptorProto.Label.OPTIONAL,
  5392. type=FieldDescriptorProto.Type.BOOL,
  5393. type_name=unset(""),
  5394. extendee=unset(""),
  5395. default_value=unset(""),
  5396. oneof_index=unset(0),
  5397. json_name="deprecatedLegacyJsonFieldConflicts",
  5398. options=FieldOptions(
  5399. ctype=unset(FieldOptions.CType.STRING),
  5400. packed=unset(False),
  5401. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  5402. lazy=unset(False),
  5403. unverified_lazy=unset(False),
  5404. deprecated=True,
  5405. weak=unset(False),
  5406. debug_redact=unset(False),
  5407. retention=unset(
  5408. FieldOptions.OptionRetention.RETENTION_UNKNOWN
  5409. ),
  5410. targets=[],
  5411. edition_defaults=[],
  5412. features=None,
  5413. feature_support=None,
  5414. uninterpreted_option=[],
  5415. ),
  5416. proto3_optional=unset(False),
  5417. ),
  5418. FieldDescriptorProto(
  5419. name="features",
  5420. number=7,
  5421. label=FieldDescriptorProto.Label.OPTIONAL,
  5422. type=FieldDescriptorProto.Type.MESSAGE,
  5423. type_name=".google.protobuf.FeatureSet",
  5424. extendee=unset(""),
  5425. default_value=unset(""),
  5426. oneof_index=unset(0),
  5427. json_name="features",
  5428. options=None,
  5429. proto3_optional=unset(False),
  5430. ),
  5431. FieldDescriptorProto(
  5432. name="uninterpreted_option",
  5433. number=999,
  5434. label=FieldDescriptorProto.Label.REPEATED,
  5435. type=FieldDescriptorProto.Type.MESSAGE,
  5436. type_name=".google.protobuf.UninterpretedOption",
  5437. extendee=unset(""),
  5438. default_value=unset(""),
  5439. oneof_index=unset(0),
  5440. json_name="uninterpretedOption",
  5441. options=None,
  5442. proto3_optional=unset(False),
  5443. ),
  5444. ],
  5445. extension=[],
  5446. nested_type=[],
  5447. enum_type=[],
  5448. extension_range=[
  5449. DescriptorProto.ExtensionRange(start=990, end=999, options=None),
  5450. DescriptorProto.ExtensionRange(
  5451. start=1000, end=536870912, options=None
  5452. ),
  5453. ],
  5454. oneof_decl=[],
  5455. options=None,
  5456. reserved_range=[DescriptorProto.ReservedRange(start=5, end=6)],
  5457. reserved_name=[],
  5458. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5459. ),
  5460. DescriptorProto(
  5461. name="EnumValueOptions",
  5462. field=[
  5463. FieldDescriptorProto(
  5464. name="deprecated",
  5465. number=1,
  5466. label=FieldDescriptorProto.Label.OPTIONAL,
  5467. type=FieldDescriptorProto.Type.BOOL,
  5468. type_name=unset(""),
  5469. extendee=unset(""),
  5470. default_value="false",
  5471. oneof_index=unset(0),
  5472. json_name="deprecated",
  5473. options=None,
  5474. proto3_optional=unset(False),
  5475. ),
  5476. FieldDescriptorProto(
  5477. name="features",
  5478. number=2,
  5479. label=FieldDescriptorProto.Label.OPTIONAL,
  5480. type=FieldDescriptorProto.Type.MESSAGE,
  5481. type_name=".google.protobuf.FeatureSet",
  5482. extendee=unset(""),
  5483. default_value=unset(""),
  5484. oneof_index=unset(0),
  5485. json_name="features",
  5486. options=None,
  5487. proto3_optional=unset(False),
  5488. ),
  5489. FieldDescriptorProto(
  5490. name="debug_redact",
  5491. number=3,
  5492. label=FieldDescriptorProto.Label.OPTIONAL,
  5493. type=FieldDescriptorProto.Type.BOOL,
  5494. type_name=unset(""),
  5495. extendee=unset(""),
  5496. default_value="false",
  5497. oneof_index=unset(0),
  5498. json_name="debugRedact",
  5499. options=None,
  5500. proto3_optional=unset(False),
  5501. ),
  5502. FieldDescriptorProto(
  5503. name="feature_support",
  5504. number=4,
  5505. label=FieldDescriptorProto.Label.OPTIONAL,
  5506. type=FieldDescriptorProto.Type.MESSAGE,
  5507. type_name=".google.protobuf.FieldOptions.FeatureSupport",
  5508. extendee=unset(""),
  5509. default_value=unset(""),
  5510. oneof_index=unset(0),
  5511. json_name="featureSupport",
  5512. options=None,
  5513. proto3_optional=unset(False),
  5514. ),
  5515. FieldDescriptorProto(
  5516. name="uninterpreted_option",
  5517. number=999,
  5518. label=FieldDescriptorProto.Label.REPEATED,
  5519. type=FieldDescriptorProto.Type.MESSAGE,
  5520. type_name=".google.protobuf.UninterpretedOption",
  5521. extendee=unset(""),
  5522. default_value=unset(""),
  5523. oneof_index=unset(0),
  5524. json_name="uninterpretedOption",
  5525. options=None,
  5526. proto3_optional=unset(False),
  5527. ),
  5528. ],
  5529. extension=[],
  5530. nested_type=[],
  5531. enum_type=[],
  5532. extension_range=[
  5533. DescriptorProto.ExtensionRange(start=990, end=999, options=None),
  5534. DescriptorProto.ExtensionRange(
  5535. start=1000, end=536870912, options=None
  5536. ),
  5537. ],
  5538. oneof_decl=[],
  5539. options=None,
  5540. reserved_range=[],
  5541. reserved_name=[],
  5542. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5543. ),
  5544. DescriptorProto(
  5545. name="ServiceOptions",
  5546. field=[
  5547. FieldDescriptorProto(
  5548. name="features",
  5549. number=34,
  5550. label=FieldDescriptorProto.Label.OPTIONAL,
  5551. type=FieldDescriptorProto.Type.MESSAGE,
  5552. type_name=".google.protobuf.FeatureSet",
  5553. extendee=unset(""),
  5554. default_value=unset(""),
  5555. oneof_index=unset(0),
  5556. json_name="features",
  5557. options=None,
  5558. proto3_optional=unset(False),
  5559. ),
  5560. FieldDescriptorProto(
  5561. name="deprecated",
  5562. number=33,
  5563. label=FieldDescriptorProto.Label.OPTIONAL,
  5564. type=FieldDescriptorProto.Type.BOOL,
  5565. type_name=unset(""),
  5566. extendee=unset(""),
  5567. default_value="false",
  5568. oneof_index=unset(0),
  5569. json_name="deprecated",
  5570. options=None,
  5571. proto3_optional=unset(False),
  5572. ),
  5573. FieldDescriptorProto(
  5574. name="uninterpreted_option",
  5575. number=999,
  5576. label=FieldDescriptorProto.Label.REPEATED,
  5577. type=FieldDescriptorProto.Type.MESSAGE,
  5578. type_name=".google.protobuf.UninterpretedOption",
  5579. extendee=unset(""),
  5580. default_value=unset(""),
  5581. oneof_index=unset(0),
  5582. json_name="uninterpretedOption",
  5583. options=None,
  5584. proto3_optional=unset(False),
  5585. ),
  5586. ],
  5587. extension=[],
  5588. nested_type=[],
  5589. enum_type=[],
  5590. extension_range=[
  5591. DescriptorProto.ExtensionRange(start=990, end=999, options=None),
  5592. DescriptorProto.ExtensionRange(
  5593. start=1000, end=536870912, options=None
  5594. ),
  5595. ],
  5596. oneof_decl=[],
  5597. options=None,
  5598. reserved_range=[],
  5599. reserved_name=[],
  5600. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5601. ),
  5602. DescriptorProto(
  5603. name="MethodOptions",
  5604. field=[
  5605. FieldDescriptorProto(
  5606. name="deprecated",
  5607. number=33,
  5608. label=FieldDescriptorProto.Label.OPTIONAL,
  5609. type=FieldDescriptorProto.Type.BOOL,
  5610. type_name=unset(""),
  5611. extendee=unset(""),
  5612. default_value="false",
  5613. oneof_index=unset(0),
  5614. json_name="deprecated",
  5615. options=None,
  5616. proto3_optional=unset(False),
  5617. ),
  5618. FieldDescriptorProto(
  5619. name="idempotency_level",
  5620. number=34,
  5621. label=FieldDescriptorProto.Label.OPTIONAL,
  5622. type=FieldDescriptorProto.Type.ENUM,
  5623. type_name=".google.protobuf.MethodOptions.IdempotencyLevel",
  5624. extendee=unset(""),
  5625. default_value="IDEMPOTENCY_UNKNOWN",
  5626. oneof_index=unset(0),
  5627. json_name="idempotencyLevel",
  5628. options=None,
  5629. proto3_optional=unset(False),
  5630. ),
  5631. FieldDescriptorProto(
  5632. name="features",
  5633. number=35,
  5634. label=FieldDescriptorProto.Label.OPTIONAL,
  5635. type=FieldDescriptorProto.Type.MESSAGE,
  5636. type_name=".google.protobuf.FeatureSet",
  5637. extendee=unset(""),
  5638. default_value=unset(""),
  5639. oneof_index=unset(0),
  5640. json_name="features",
  5641. options=None,
  5642. proto3_optional=unset(False),
  5643. ),
  5644. FieldDescriptorProto(
  5645. name="uninterpreted_option",
  5646. number=999,
  5647. label=FieldDescriptorProto.Label.REPEATED,
  5648. type=FieldDescriptorProto.Type.MESSAGE,
  5649. type_name=".google.protobuf.UninterpretedOption",
  5650. extendee=unset(""),
  5651. default_value=unset(""),
  5652. oneof_index=unset(0),
  5653. json_name="uninterpretedOption",
  5654. options=None,
  5655. proto3_optional=unset(False),
  5656. ),
  5657. ],
  5658. extension=[],
  5659. nested_type=[],
  5660. enum_type=[
  5661. EnumDescriptorProto(
  5662. name="IdempotencyLevel",
  5663. value=[
  5664. EnumValueDescriptorProto(
  5665. name="IDEMPOTENCY_UNKNOWN", number=0, options=None
  5666. ),
  5667. EnumValueDescriptorProto(
  5668. name="NO_SIDE_EFFECTS", number=1, options=None
  5669. ),
  5670. EnumValueDescriptorProto(
  5671. name="IDEMPOTENT", number=2, options=None
  5672. ),
  5673. ],
  5674. options=None,
  5675. reserved_range=[],
  5676. reserved_name=[],
  5677. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5678. )
  5679. ],
  5680. extension_range=[
  5681. DescriptorProto.ExtensionRange(start=990, end=999, options=None),
  5682. DescriptorProto.ExtensionRange(
  5683. start=1000, end=536870912, options=None
  5684. ),
  5685. ],
  5686. oneof_decl=[],
  5687. options=None,
  5688. reserved_range=[],
  5689. reserved_name=[],
  5690. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5691. ),
  5692. DescriptorProto(
  5693. name="UninterpretedOption",
  5694. field=[
  5695. FieldDescriptorProto(
  5696. name="name",
  5697. number=2,
  5698. label=FieldDescriptorProto.Label.REPEATED,
  5699. type=FieldDescriptorProto.Type.MESSAGE,
  5700. type_name=".google.protobuf.UninterpretedOption.NamePart",
  5701. extendee=unset(""),
  5702. default_value=unset(""),
  5703. oneof_index=unset(0),
  5704. json_name="name",
  5705. options=None,
  5706. proto3_optional=unset(False),
  5707. ),
  5708. FieldDescriptorProto(
  5709. name="identifier_value",
  5710. number=3,
  5711. label=FieldDescriptorProto.Label.OPTIONAL,
  5712. type=FieldDescriptorProto.Type.STRING,
  5713. type_name=unset(""),
  5714. extendee=unset(""),
  5715. default_value=unset(""),
  5716. oneof_index=unset(0),
  5717. json_name="identifierValue",
  5718. options=None,
  5719. proto3_optional=unset(False),
  5720. ),
  5721. FieldDescriptorProto(
  5722. name="positive_int_value",
  5723. number=4,
  5724. label=FieldDescriptorProto.Label.OPTIONAL,
  5725. type=FieldDescriptorProto.Type.UINT64,
  5726. type_name=unset(""),
  5727. extendee=unset(""),
  5728. default_value=unset(""),
  5729. oneof_index=unset(0),
  5730. json_name="positiveIntValue",
  5731. options=None,
  5732. proto3_optional=unset(False),
  5733. ),
  5734. FieldDescriptorProto(
  5735. name="negative_int_value",
  5736. number=5,
  5737. label=FieldDescriptorProto.Label.OPTIONAL,
  5738. type=FieldDescriptorProto.Type.INT64,
  5739. type_name=unset(""),
  5740. extendee=unset(""),
  5741. default_value=unset(""),
  5742. oneof_index=unset(0),
  5743. json_name="negativeIntValue",
  5744. options=None,
  5745. proto3_optional=unset(False),
  5746. ),
  5747. FieldDescriptorProto(
  5748. name="double_value",
  5749. number=6,
  5750. label=FieldDescriptorProto.Label.OPTIONAL,
  5751. type=FieldDescriptorProto.Type.DOUBLE,
  5752. type_name=unset(""),
  5753. extendee=unset(""),
  5754. default_value=unset(""),
  5755. oneof_index=unset(0),
  5756. json_name="doubleValue",
  5757. options=None,
  5758. proto3_optional=unset(False),
  5759. ),
  5760. FieldDescriptorProto(
  5761. name="string_value",
  5762. number=7,
  5763. label=FieldDescriptorProto.Label.OPTIONAL,
  5764. type=FieldDescriptorProto.Type.BYTES,
  5765. type_name=unset(""),
  5766. extendee=unset(""),
  5767. default_value=unset(""),
  5768. oneof_index=unset(0),
  5769. json_name="stringValue",
  5770. options=None,
  5771. proto3_optional=unset(False),
  5772. ),
  5773. FieldDescriptorProto(
  5774. name="aggregate_value",
  5775. number=8,
  5776. label=FieldDescriptorProto.Label.OPTIONAL,
  5777. type=FieldDescriptorProto.Type.STRING,
  5778. type_name=unset(""),
  5779. extendee=unset(""),
  5780. default_value=unset(""),
  5781. oneof_index=unset(0),
  5782. json_name="aggregateValue",
  5783. options=None,
  5784. proto3_optional=unset(False),
  5785. ),
  5786. ],
  5787. extension=[],
  5788. nested_type=[
  5789. DescriptorProto(
  5790. name="NamePart",
  5791. field=[
  5792. FieldDescriptorProto(
  5793. name="name_part",
  5794. number=1,
  5795. label=FieldDescriptorProto.Label.REQUIRED,
  5796. type=FieldDescriptorProto.Type.STRING,
  5797. type_name=unset(""),
  5798. extendee=unset(""),
  5799. default_value=unset(""),
  5800. oneof_index=unset(0),
  5801. json_name="namePart",
  5802. options=None,
  5803. proto3_optional=unset(False),
  5804. ),
  5805. FieldDescriptorProto(
  5806. name="is_extension",
  5807. number=2,
  5808. label=FieldDescriptorProto.Label.REQUIRED,
  5809. type=FieldDescriptorProto.Type.BOOL,
  5810. type_name=unset(""),
  5811. extendee=unset(""),
  5812. default_value=unset(""),
  5813. oneof_index=unset(0),
  5814. json_name="isExtension",
  5815. options=None,
  5816. proto3_optional=unset(False),
  5817. ),
  5818. ],
  5819. extension=[],
  5820. nested_type=[],
  5821. enum_type=[],
  5822. extension_range=[],
  5823. oneof_decl=[],
  5824. options=None,
  5825. reserved_range=[],
  5826. reserved_name=[],
  5827. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5828. )
  5829. ],
  5830. enum_type=[],
  5831. extension_range=[],
  5832. oneof_decl=[],
  5833. options=None,
  5834. reserved_range=[],
  5835. reserved_name=[],
  5836. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  5837. ),
  5838. DescriptorProto(
  5839. name="FeatureSet",
  5840. field=[
  5841. FieldDescriptorProto(
  5842. name="field_presence",
  5843. number=1,
  5844. label=FieldDescriptorProto.Label.OPTIONAL,
  5845. type=FieldDescriptorProto.Type.ENUM,
  5846. type_name=".google.protobuf.FeatureSet.FieldPresence",
  5847. extendee=unset(""),
  5848. default_value=unset(""),
  5849. oneof_index=unset(0),
  5850. json_name="fieldPresence",
  5851. options=FieldOptions(
  5852. ctype=unset(FieldOptions.CType.STRING),
  5853. packed=unset(False),
  5854. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  5855. lazy=unset(False),
  5856. unverified_lazy=unset(False),
  5857. deprecated=unset(False),
  5858. weak=unset(False),
  5859. debug_redact=unset(False),
  5860. retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
  5861. targets=[
  5862. FieldOptions.OptionTargetType.TARGET_TYPE_FIELD,
  5863. FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
  5864. ],
  5865. edition_defaults=[
  5866. FieldOptions.EditionDefault(
  5867. edition=Edition.LEGACY, value="EXPLICIT"
  5868. ),
  5869. FieldOptions.EditionDefault(
  5870. edition=Edition.PROTO3, value="IMPLICIT"
  5871. ),
  5872. FieldOptions.EditionDefault(
  5873. edition=Edition.EDITION_2023, value="EXPLICIT"
  5874. ),
  5875. ],
  5876. features=None,
  5877. feature_support=FieldOptions.FeatureSupport(
  5878. edition_introduced=Edition.EDITION_2023,
  5879. edition_deprecated=unset(Edition.UNKNOWN),
  5880. deprecation_warning=unset(""),
  5881. edition_removed=unset(Edition.UNKNOWN),
  5882. removal_error=unset(""),
  5883. ),
  5884. uninterpreted_option=[],
  5885. ),
  5886. proto3_optional=unset(False),
  5887. ),
  5888. FieldDescriptorProto(
  5889. name="enum_type",
  5890. number=2,
  5891. label=FieldDescriptorProto.Label.OPTIONAL,
  5892. type=FieldDescriptorProto.Type.ENUM,
  5893. type_name=".google.protobuf.FeatureSet.EnumType",
  5894. extendee=unset(""),
  5895. default_value=unset(""),
  5896. oneof_index=unset(0),
  5897. json_name="enumType",
  5898. options=FieldOptions(
  5899. ctype=unset(FieldOptions.CType.STRING),
  5900. packed=unset(False),
  5901. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  5902. lazy=unset(False),
  5903. unverified_lazy=unset(False),
  5904. deprecated=unset(False),
  5905. weak=unset(False),
  5906. debug_redact=unset(False),
  5907. retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
  5908. targets=[
  5909. FieldOptions.OptionTargetType.TARGET_TYPE_ENUM,
  5910. FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
  5911. ],
  5912. edition_defaults=[
  5913. FieldOptions.EditionDefault(
  5914. edition=Edition.LEGACY, value="CLOSED"
  5915. ),
  5916. FieldOptions.EditionDefault(
  5917. edition=Edition.PROTO3, value="OPEN"
  5918. ),
  5919. ],
  5920. features=None,
  5921. feature_support=FieldOptions.FeatureSupport(
  5922. edition_introduced=Edition.EDITION_2023,
  5923. edition_deprecated=unset(Edition.UNKNOWN),
  5924. deprecation_warning=unset(""),
  5925. edition_removed=unset(Edition.UNKNOWN),
  5926. removal_error=unset(""),
  5927. ),
  5928. uninterpreted_option=[],
  5929. ),
  5930. proto3_optional=unset(False),
  5931. ),
  5932. FieldDescriptorProto(
  5933. name="repeated_field_encoding",
  5934. number=3,
  5935. label=FieldDescriptorProto.Label.OPTIONAL,
  5936. type=FieldDescriptorProto.Type.ENUM,
  5937. type_name=".google.protobuf.FeatureSet.RepeatedFieldEncoding",
  5938. extendee=unset(""),
  5939. default_value=unset(""),
  5940. oneof_index=unset(0),
  5941. json_name="repeatedFieldEncoding",
  5942. options=FieldOptions(
  5943. ctype=unset(FieldOptions.CType.STRING),
  5944. packed=unset(False),
  5945. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  5946. lazy=unset(False),
  5947. unverified_lazy=unset(False),
  5948. deprecated=unset(False),
  5949. weak=unset(False),
  5950. debug_redact=unset(False),
  5951. retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
  5952. targets=[
  5953. FieldOptions.OptionTargetType.TARGET_TYPE_FIELD,
  5954. FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
  5955. ],
  5956. edition_defaults=[
  5957. FieldOptions.EditionDefault(
  5958. edition=Edition.LEGACY, value="EXPANDED"
  5959. ),
  5960. FieldOptions.EditionDefault(
  5961. edition=Edition.PROTO3, value="PACKED"
  5962. ),
  5963. ],
  5964. features=None,
  5965. feature_support=FieldOptions.FeatureSupport(
  5966. edition_introduced=Edition.EDITION_2023,
  5967. edition_deprecated=unset(Edition.UNKNOWN),
  5968. deprecation_warning=unset(""),
  5969. edition_removed=unset(Edition.UNKNOWN),
  5970. removal_error=unset(""),
  5971. ),
  5972. uninterpreted_option=[],
  5973. ),
  5974. proto3_optional=unset(False),
  5975. ),
  5976. FieldDescriptorProto(
  5977. name="utf8_validation",
  5978. number=4,
  5979. label=FieldDescriptorProto.Label.OPTIONAL,
  5980. type=FieldDescriptorProto.Type.ENUM,
  5981. type_name=".google.protobuf.FeatureSet.Utf8Validation",
  5982. extendee=unset(""),
  5983. default_value=unset(""),
  5984. oneof_index=unset(0),
  5985. json_name="utf8Validation",
  5986. options=FieldOptions(
  5987. ctype=unset(FieldOptions.CType.STRING),
  5988. packed=unset(False),
  5989. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  5990. lazy=unset(False),
  5991. unverified_lazy=unset(False),
  5992. deprecated=unset(False),
  5993. weak=unset(False),
  5994. debug_redact=unset(False),
  5995. retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
  5996. targets=[
  5997. FieldOptions.OptionTargetType.TARGET_TYPE_FIELD,
  5998. FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
  5999. ],
  6000. edition_defaults=[
  6001. FieldOptions.EditionDefault(
  6002. edition=Edition.LEGACY, value="NONE"
  6003. ),
  6004. FieldOptions.EditionDefault(
  6005. edition=Edition.PROTO3, value="VERIFY"
  6006. ),
  6007. ],
  6008. features=None,
  6009. feature_support=FieldOptions.FeatureSupport(
  6010. edition_introduced=Edition.EDITION_2023,
  6011. edition_deprecated=unset(Edition.UNKNOWN),
  6012. deprecation_warning=unset(""),
  6013. edition_removed=unset(Edition.UNKNOWN),
  6014. removal_error=unset(""),
  6015. ),
  6016. uninterpreted_option=[],
  6017. ),
  6018. proto3_optional=unset(False),
  6019. ),
  6020. FieldDescriptorProto(
  6021. name="message_encoding",
  6022. number=5,
  6023. label=FieldDescriptorProto.Label.OPTIONAL,
  6024. type=FieldDescriptorProto.Type.ENUM,
  6025. type_name=".google.protobuf.FeatureSet.MessageEncoding",
  6026. extendee=unset(""),
  6027. default_value=unset(""),
  6028. oneof_index=unset(0),
  6029. json_name="messageEncoding",
  6030. options=FieldOptions(
  6031. ctype=unset(FieldOptions.CType.STRING),
  6032. packed=unset(False),
  6033. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  6034. lazy=unset(False),
  6035. unverified_lazy=unset(False),
  6036. deprecated=unset(False),
  6037. weak=unset(False),
  6038. debug_redact=unset(False),
  6039. retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
  6040. targets=[
  6041. FieldOptions.OptionTargetType.TARGET_TYPE_FIELD,
  6042. FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
  6043. ],
  6044. edition_defaults=[
  6045. FieldOptions.EditionDefault(
  6046. edition=Edition.LEGACY, value="LENGTH_PREFIXED"
  6047. )
  6048. ],
  6049. features=None,
  6050. feature_support=FieldOptions.FeatureSupport(
  6051. edition_introduced=Edition.EDITION_2023,
  6052. edition_deprecated=unset(Edition.UNKNOWN),
  6053. deprecation_warning=unset(""),
  6054. edition_removed=unset(Edition.UNKNOWN),
  6055. removal_error=unset(""),
  6056. ),
  6057. uninterpreted_option=[],
  6058. ),
  6059. proto3_optional=unset(False),
  6060. ),
  6061. FieldDescriptorProto(
  6062. name="json_format",
  6063. number=6,
  6064. label=FieldDescriptorProto.Label.OPTIONAL,
  6065. type=FieldDescriptorProto.Type.ENUM,
  6066. type_name=".google.protobuf.FeatureSet.JsonFormat",
  6067. extendee=unset(""),
  6068. default_value=unset(""),
  6069. oneof_index=unset(0),
  6070. json_name="jsonFormat",
  6071. options=FieldOptions(
  6072. ctype=unset(FieldOptions.CType.STRING),
  6073. packed=unset(False),
  6074. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  6075. lazy=unset(False),
  6076. unverified_lazy=unset(False),
  6077. deprecated=unset(False),
  6078. weak=unset(False),
  6079. debug_redact=unset(False),
  6080. retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
  6081. targets=[
  6082. FieldOptions.OptionTargetType.TARGET_TYPE_MESSAGE,
  6083. FieldOptions.OptionTargetType.TARGET_TYPE_ENUM,
  6084. FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
  6085. ],
  6086. edition_defaults=[
  6087. FieldOptions.EditionDefault(
  6088. edition=Edition.LEGACY, value="LEGACY_BEST_EFFORT"
  6089. ),
  6090. FieldOptions.EditionDefault(
  6091. edition=Edition.PROTO3, value="ALLOW"
  6092. ),
  6093. ],
  6094. features=None,
  6095. feature_support=FieldOptions.FeatureSupport(
  6096. edition_introduced=Edition.EDITION_2023,
  6097. edition_deprecated=unset(Edition.UNKNOWN),
  6098. deprecation_warning=unset(""),
  6099. edition_removed=unset(Edition.UNKNOWN),
  6100. removal_error=unset(""),
  6101. ),
  6102. uninterpreted_option=[],
  6103. ),
  6104. proto3_optional=unset(False),
  6105. ),
  6106. FieldDescriptorProto(
  6107. name="enforce_naming_style",
  6108. number=7,
  6109. label=FieldDescriptorProto.Label.OPTIONAL,
  6110. type=FieldDescriptorProto.Type.ENUM,
  6111. type_name=".google.protobuf.FeatureSet.EnforceNamingStyle",
  6112. extendee=unset(""),
  6113. default_value=unset(""),
  6114. oneof_index=unset(0),
  6115. json_name="enforceNamingStyle",
  6116. options=FieldOptions(
  6117. ctype=unset(FieldOptions.CType.STRING),
  6118. packed=unset(False),
  6119. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  6120. lazy=unset(False),
  6121. unverified_lazy=unset(False),
  6122. deprecated=unset(False),
  6123. weak=unset(False),
  6124. debug_redact=unset(False),
  6125. retention=FieldOptions.OptionRetention.RETENTION_SOURCE,
  6126. targets=[
  6127. FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
  6128. FieldOptions.OptionTargetType.TARGET_TYPE_EXTENSION_RANGE,
  6129. FieldOptions.OptionTargetType.TARGET_TYPE_MESSAGE,
  6130. FieldOptions.OptionTargetType.TARGET_TYPE_FIELD,
  6131. FieldOptions.OptionTargetType.TARGET_TYPE_ONEOF,
  6132. FieldOptions.OptionTargetType.TARGET_TYPE_ENUM,
  6133. FieldOptions.OptionTargetType.TARGET_TYPE_ENUM_ENTRY,
  6134. FieldOptions.OptionTargetType.TARGET_TYPE_SERVICE,
  6135. FieldOptions.OptionTargetType.TARGET_TYPE_METHOD,
  6136. ],
  6137. edition_defaults=[
  6138. FieldOptions.EditionDefault(
  6139. edition=Edition.LEGACY, value="STYLE_LEGACY"
  6140. ),
  6141. FieldOptions.EditionDefault(
  6142. edition=Edition.EDITION_2024, value="STYLE2024"
  6143. ),
  6144. FieldOptions.EditionDefault(
  6145. edition=Edition.UNSTABLE, value="STYLE2026"
  6146. ),
  6147. ],
  6148. features=None,
  6149. feature_support=FieldOptions.FeatureSupport(
  6150. edition_introduced=Edition.EDITION_2024,
  6151. edition_deprecated=unset(Edition.UNKNOWN),
  6152. deprecation_warning=unset(""),
  6153. edition_removed=unset(Edition.UNKNOWN),
  6154. removal_error=unset(""),
  6155. ),
  6156. uninterpreted_option=[],
  6157. ),
  6158. proto3_optional=unset(False),
  6159. ),
  6160. FieldDescriptorProto(
  6161. name="default_symbol_visibility",
  6162. number=8,
  6163. label=FieldDescriptorProto.Label.OPTIONAL,
  6164. type=FieldDescriptorProto.Type.ENUM,
  6165. type_name=".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility",
  6166. extendee=unset(""),
  6167. default_value=unset(""),
  6168. oneof_index=unset(0),
  6169. json_name="defaultSymbolVisibility",
  6170. options=FieldOptions(
  6171. ctype=unset(FieldOptions.CType.STRING),
  6172. packed=unset(False),
  6173. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  6174. lazy=unset(False),
  6175. unverified_lazy=unset(False),
  6176. deprecated=unset(False),
  6177. weak=unset(False),
  6178. debug_redact=unset(False),
  6179. retention=FieldOptions.OptionRetention.RETENTION_SOURCE,
  6180. targets=[FieldOptions.OptionTargetType.TARGET_TYPE_FILE],
  6181. edition_defaults=[
  6182. FieldOptions.EditionDefault(
  6183. edition=Edition.LEGACY, value="EXPORT_ALL"
  6184. ),
  6185. FieldOptions.EditionDefault(
  6186. edition=Edition.EDITION_2024,
  6187. value="EXPORT_TOP_LEVEL",
  6188. ),
  6189. ],
  6190. features=None,
  6191. feature_support=FieldOptions.FeatureSupport(
  6192. edition_introduced=Edition.EDITION_2024,
  6193. edition_deprecated=unset(Edition.UNKNOWN),
  6194. deprecation_warning=unset(""),
  6195. edition_removed=unset(Edition.UNKNOWN),
  6196. removal_error=unset(""),
  6197. ),
  6198. uninterpreted_option=[],
  6199. ),
  6200. proto3_optional=unset(False),
  6201. ),
  6202. ],
  6203. extension=[],
  6204. nested_type=[
  6205. DescriptorProto(
  6206. name="VisibilityFeature",
  6207. field=[],
  6208. extension=[],
  6209. nested_type=[],
  6210. enum_type=[
  6211. EnumDescriptorProto(
  6212. name="DefaultSymbolVisibility",
  6213. value=[
  6214. EnumValueDescriptorProto(
  6215. name="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",
  6216. number=0,
  6217. options=None,
  6218. ),
  6219. EnumValueDescriptorProto(
  6220. name="EXPORT_ALL", number=1, options=None
  6221. ),
  6222. EnumValueDescriptorProto(
  6223. name="EXPORT_TOP_LEVEL", number=2, options=None
  6224. ),
  6225. EnumValueDescriptorProto(
  6226. name="LOCAL_ALL", number=3, options=None
  6227. ),
  6228. EnumValueDescriptorProto(
  6229. name="STRICT", number=4, options=None
  6230. ),
  6231. ],
  6232. options=None,
  6233. reserved_range=[],
  6234. reserved_name=[],
  6235. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6236. )
  6237. ],
  6238. extension_range=[],
  6239. oneof_decl=[],
  6240. options=None,
  6241. reserved_range=[
  6242. DescriptorProto.ReservedRange(start=1, end=536870912)
  6243. ],
  6244. reserved_name=[],
  6245. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6246. )
  6247. ],
  6248. enum_type=[
  6249. EnumDescriptorProto(
  6250. name="FieldPresence",
  6251. value=[
  6252. EnumValueDescriptorProto(
  6253. name="FIELD_PRESENCE_UNKNOWN", number=0, options=None
  6254. ),
  6255. EnumValueDescriptorProto(
  6256. name="EXPLICIT", number=1, options=None
  6257. ),
  6258. EnumValueDescriptorProto(
  6259. name="IMPLICIT", number=2, options=None
  6260. ),
  6261. EnumValueDescriptorProto(
  6262. name="LEGACY_REQUIRED", number=3, options=None
  6263. ),
  6264. ],
  6265. options=None,
  6266. reserved_range=[],
  6267. reserved_name=[],
  6268. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6269. ),
  6270. EnumDescriptorProto(
  6271. name="EnumType",
  6272. value=[
  6273. EnumValueDescriptorProto(
  6274. name="ENUM_TYPE_UNKNOWN", number=0, options=None
  6275. ),
  6276. EnumValueDescriptorProto(
  6277. name="OPEN", number=1, options=None
  6278. ),
  6279. EnumValueDescriptorProto(
  6280. name="CLOSED", number=2, options=None
  6281. ),
  6282. ],
  6283. options=None,
  6284. reserved_range=[],
  6285. reserved_name=[],
  6286. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6287. ),
  6288. EnumDescriptorProto(
  6289. name="RepeatedFieldEncoding",
  6290. value=[
  6291. EnumValueDescriptorProto(
  6292. name="REPEATED_FIELD_ENCODING_UNKNOWN",
  6293. number=0,
  6294. options=None,
  6295. ),
  6296. EnumValueDescriptorProto(
  6297. name="PACKED", number=1, options=None
  6298. ),
  6299. EnumValueDescriptorProto(
  6300. name="EXPANDED", number=2, options=None
  6301. ),
  6302. ],
  6303. options=None,
  6304. reserved_range=[],
  6305. reserved_name=[],
  6306. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6307. ),
  6308. EnumDescriptorProto(
  6309. name="Utf8Validation",
  6310. value=[
  6311. EnumValueDescriptorProto(
  6312. name="UTF8_VALIDATION_UNKNOWN", number=0, options=None
  6313. ),
  6314. EnumValueDescriptorProto(
  6315. name="VERIFY", number=2, options=None
  6316. ),
  6317. EnumValueDescriptorProto(
  6318. name="NONE", number=3, options=None
  6319. ),
  6320. ],
  6321. options=None,
  6322. reserved_range=[
  6323. EnumDescriptorProto.EnumReservedRange(start=1, end=1)
  6324. ],
  6325. reserved_name=[],
  6326. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6327. ),
  6328. EnumDescriptorProto(
  6329. name="MessageEncoding",
  6330. value=[
  6331. EnumValueDescriptorProto(
  6332. name="MESSAGE_ENCODING_UNKNOWN", number=0, options=None
  6333. ),
  6334. EnumValueDescriptorProto(
  6335. name="LENGTH_PREFIXED", number=1, options=None
  6336. ),
  6337. EnumValueDescriptorProto(
  6338. name="DELIMITED", number=2, options=None
  6339. ),
  6340. ],
  6341. options=None,
  6342. reserved_range=[],
  6343. reserved_name=[],
  6344. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6345. ),
  6346. EnumDescriptorProto(
  6347. name="JsonFormat",
  6348. value=[
  6349. EnumValueDescriptorProto(
  6350. name="JSON_FORMAT_UNKNOWN", number=0, options=None
  6351. ),
  6352. EnumValueDescriptorProto(
  6353. name="ALLOW", number=1, options=None
  6354. ),
  6355. EnumValueDescriptorProto(
  6356. name="LEGACY_BEST_EFFORT", number=2, options=None
  6357. ),
  6358. ],
  6359. options=None,
  6360. reserved_range=[],
  6361. reserved_name=[],
  6362. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6363. ),
  6364. EnumDescriptorProto(
  6365. name="EnforceNamingStyle",
  6366. value=[
  6367. EnumValueDescriptorProto(
  6368. name="ENFORCE_NAMING_STYLE_UNKNOWN",
  6369. number=0,
  6370. options=None,
  6371. ),
  6372. EnumValueDescriptorProto(
  6373. name="STYLE2024", number=1, options=None
  6374. ),
  6375. EnumValueDescriptorProto(
  6376. name="STYLE_LEGACY", number=2, options=None
  6377. ),
  6378. EnumValueDescriptorProto(
  6379. name="STYLE2026", number=3, options=None
  6380. ),
  6381. ],
  6382. options=None,
  6383. reserved_range=[],
  6384. reserved_name=[],
  6385. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6386. ),
  6387. ],
  6388. extension_range=[
  6389. DescriptorProto.ExtensionRange(
  6390. start=1000,
  6391. end=9995,
  6392. options=ExtensionRangeOptions(
  6393. uninterpreted_option=[],
  6394. declaration=[
  6395. ExtensionRangeOptions.Declaration(
  6396. number=1000,
  6397. full_name=".pb.cpp",
  6398. type=".pb.CppFeatures",
  6399. reserved=unset(False),
  6400. repeated=unset(False),
  6401. ),
  6402. ExtensionRangeOptions.Declaration(
  6403. number=1001,
  6404. full_name=".pb.java",
  6405. type=".pb.JavaFeatures",
  6406. reserved=unset(False),
  6407. repeated=unset(False),
  6408. ),
  6409. ExtensionRangeOptions.Declaration(
  6410. number=1002,
  6411. full_name=".pb.go",
  6412. type=".pb.GoFeatures",
  6413. reserved=unset(False),
  6414. repeated=unset(False),
  6415. ),
  6416. ExtensionRangeOptions.Declaration(
  6417. number=1003,
  6418. full_name=".pb.python",
  6419. type=".pb.PythonFeatures",
  6420. reserved=unset(False),
  6421. repeated=unset(False),
  6422. ),
  6423. ExtensionRangeOptions.Declaration(
  6424. number=1004,
  6425. full_name=".pb.csharp",
  6426. type=".pb.CSharpFeatures",
  6427. reserved=unset(False),
  6428. repeated=unset(False),
  6429. ),
  6430. ExtensionRangeOptions.Declaration(
  6431. number=1100,
  6432. full_name=".imp.impress_feature_set",
  6433. type=".imp.ImpressFeatureSet",
  6434. reserved=unset(False),
  6435. repeated=unset(False),
  6436. ),
  6437. ExtensionRangeOptions.Declaration(
  6438. number=9989,
  6439. full_name=".pb.java_mutable",
  6440. type=".pb.JavaMutableFeatures",
  6441. reserved=unset(False),
  6442. repeated=unset(False),
  6443. ),
  6444. ExtensionRangeOptions.Declaration(
  6445. number=9990,
  6446. full_name=".pb.proto1",
  6447. type=".pb.Proto1Features",
  6448. reserved=unset(False),
  6449. repeated=unset(False),
  6450. ),
  6451. ],
  6452. features=None,
  6453. verification=unset(
  6454. ExtensionRangeOptions.VerificationState.UNVERIFIED
  6455. ),
  6456. ),
  6457. ),
  6458. DescriptorProto.ExtensionRange(start=9995, end=10000, options=None),
  6459. DescriptorProto.ExtensionRange(
  6460. start=10000, end=10001, options=None
  6461. ),
  6462. ],
  6463. oneof_decl=[],
  6464. options=None,
  6465. reserved_range=[DescriptorProto.ReservedRange(start=999, end=1000)],
  6466. reserved_name=[],
  6467. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6468. ),
  6469. DescriptorProto(
  6470. name="FeatureSetDefaults",
  6471. field=[
  6472. FieldDescriptorProto(
  6473. name="defaults",
  6474. number=1,
  6475. label=FieldDescriptorProto.Label.REPEATED,
  6476. type=FieldDescriptorProto.Type.MESSAGE,
  6477. type_name=".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",
  6478. extendee=unset(""),
  6479. default_value=unset(""),
  6480. oneof_index=unset(0),
  6481. json_name="defaults",
  6482. options=None,
  6483. proto3_optional=unset(False),
  6484. ),
  6485. FieldDescriptorProto(
  6486. name="minimum_edition",
  6487. number=4,
  6488. label=FieldDescriptorProto.Label.OPTIONAL,
  6489. type=FieldDescriptorProto.Type.ENUM,
  6490. type_name=".google.protobuf.Edition",
  6491. extendee=unset(""),
  6492. default_value=unset(""),
  6493. oneof_index=unset(0),
  6494. json_name="minimumEdition",
  6495. options=None,
  6496. proto3_optional=unset(False),
  6497. ),
  6498. FieldDescriptorProto(
  6499. name="maximum_edition",
  6500. number=5,
  6501. label=FieldDescriptorProto.Label.OPTIONAL,
  6502. type=FieldDescriptorProto.Type.ENUM,
  6503. type_name=".google.protobuf.Edition",
  6504. extendee=unset(""),
  6505. default_value=unset(""),
  6506. oneof_index=unset(0),
  6507. json_name="maximumEdition",
  6508. options=None,
  6509. proto3_optional=unset(False),
  6510. ),
  6511. ],
  6512. extension=[],
  6513. nested_type=[
  6514. DescriptorProto(
  6515. name="FeatureSetEditionDefault",
  6516. field=[
  6517. FieldDescriptorProto(
  6518. name="edition",
  6519. number=3,
  6520. label=FieldDescriptorProto.Label.OPTIONAL,
  6521. type=FieldDescriptorProto.Type.ENUM,
  6522. type_name=".google.protobuf.Edition",
  6523. extendee=unset(""),
  6524. default_value=unset(""),
  6525. oneof_index=unset(0),
  6526. json_name="edition",
  6527. options=None,
  6528. proto3_optional=unset(False),
  6529. ),
  6530. FieldDescriptorProto(
  6531. name="overridable_features",
  6532. number=4,
  6533. label=FieldDescriptorProto.Label.OPTIONAL,
  6534. type=FieldDescriptorProto.Type.MESSAGE,
  6535. type_name=".google.protobuf.FeatureSet",
  6536. extendee=unset(""),
  6537. default_value=unset(""),
  6538. oneof_index=unset(0),
  6539. json_name="overridableFeatures",
  6540. options=None,
  6541. proto3_optional=unset(False),
  6542. ),
  6543. FieldDescriptorProto(
  6544. name="fixed_features",
  6545. number=5,
  6546. label=FieldDescriptorProto.Label.OPTIONAL,
  6547. type=FieldDescriptorProto.Type.MESSAGE,
  6548. type_name=".google.protobuf.FeatureSet",
  6549. extendee=unset(""),
  6550. default_value=unset(""),
  6551. oneof_index=unset(0),
  6552. json_name="fixedFeatures",
  6553. options=None,
  6554. proto3_optional=unset(False),
  6555. ),
  6556. ],
  6557. extension=[],
  6558. nested_type=[],
  6559. enum_type=[],
  6560. extension_range=[],
  6561. oneof_decl=[],
  6562. options=None,
  6563. reserved_range=[
  6564. DescriptorProto.ReservedRange(start=1, end=2),
  6565. DescriptorProto.ReservedRange(start=2, end=3),
  6566. ],
  6567. reserved_name=["features"],
  6568. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6569. )
  6570. ],
  6571. enum_type=[],
  6572. extension_range=[],
  6573. oneof_decl=[],
  6574. options=None,
  6575. reserved_range=[],
  6576. reserved_name=[],
  6577. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6578. ),
  6579. DescriptorProto(
  6580. name="SourceCodeInfo",
  6581. field=[
  6582. FieldDescriptorProto(
  6583. name="location",
  6584. number=1,
  6585. label=FieldDescriptorProto.Label.REPEATED,
  6586. type=FieldDescriptorProto.Type.MESSAGE,
  6587. type_name=".google.protobuf.SourceCodeInfo.Location",
  6588. extendee=unset(""),
  6589. default_value=unset(""),
  6590. oneof_index=unset(0),
  6591. json_name="location",
  6592. options=None,
  6593. proto3_optional=unset(False),
  6594. )
  6595. ],
  6596. extension=[],
  6597. nested_type=[
  6598. DescriptorProto(
  6599. name="Location",
  6600. field=[
  6601. FieldDescriptorProto(
  6602. name="path",
  6603. number=1,
  6604. label=FieldDescriptorProto.Label.REPEATED,
  6605. type=FieldDescriptorProto.Type.INT32,
  6606. type_name=unset(""),
  6607. extendee=unset(""),
  6608. default_value=unset(""),
  6609. oneof_index=unset(0),
  6610. json_name="path",
  6611. options=FieldOptions(
  6612. ctype=unset(FieldOptions.CType.STRING),
  6613. packed=True,
  6614. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  6615. lazy=unset(False),
  6616. unverified_lazy=unset(False),
  6617. deprecated=unset(False),
  6618. weak=unset(False),
  6619. debug_redact=unset(False),
  6620. retention=unset(
  6621. FieldOptions.OptionRetention.RETENTION_UNKNOWN
  6622. ),
  6623. targets=[],
  6624. edition_defaults=[],
  6625. features=None,
  6626. feature_support=None,
  6627. uninterpreted_option=[],
  6628. ),
  6629. proto3_optional=unset(False),
  6630. ),
  6631. FieldDescriptorProto(
  6632. name="span",
  6633. number=2,
  6634. label=FieldDescriptorProto.Label.REPEATED,
  6635. type=FieldDescriptorProto.Type.INT32,
  6636. type_name=unset(""),
  6637. extendee=unset(""),
  6638. default_value=unset(""),
  6639. oneof_index=unset(0),
  6640. json_name="span",
  6641. options=FieldOptions(
  6642. ctype=unset(FieldOptions.CType.STRING),
  6643. packed=True,
  6644. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  6645. lazy=unset(False),
  6646. unverified_lazy=unset(False),
  6647. deprecated=unset(False),
  6648. weak=unset(False),
  6649. debug_redact=unset(False),
  6650. retention=unset(
  6651. FieldOptions.OptionRetention.RETENTION_UNKNOWN
  6652. ),
  6653. targets=[],
  6654. edition_defaults=[],
  6655. features=None,
  6656. feature_support=None,
  6657. uninterpreted_option=[],
  6658. ),
  6659. proto3_optional=unset(False),
  6660. ),
  6661. FieldDescriptorProto(
  6662. name="leading_comments",
  6663. number=3,
  6664. label=FieldDescriptorProto.Label.OPTIONAL,
  6665. type=FieldDescriptorProto.Type.STRING,
  6666. type_name=unset(""),
  6667. extendee=unset(""),
  6668. default_value=unset(""),
  6669. oneof_index=unset(0),
  6670. json_name="leadingComments",
  6671. options=None,
  6672. proto3_optional=unset(False),
  6673. ),
  6674. FieldDescriptorProto(
  6675. name="trailing_comments",
  6676. number=4,
  6677. label=FieldDescriptorProto.Label.OPTIONAL,
  6678. type=FieldDescriptorProto.Type.STRING,
  6679. type_name=unset(""),
  6680. extendee=unset(""),
  6681. default_value=unset(""),
  6682. oneof_index=unset(0),
  6683. json_name="trailingComments",
  6684. options=None,
  6685. proto3_optional=unset(False),
  6686. ),
  6687. FieldDescriptorProto(
  6688. name="leading_detached_comments",
  6689. number=6,
  6690. label=FieldDescriptorProto.Label.REPEATED,
  6691. type=FieldDescriptorProto.Type.STRING,
  6692. type_name=unset(""),
  6693. extendee=unset(""),
  6694. default_value=unset(""),
  6695. oneof_index=unset(0),
  6696. json_name="leadingDetachedComments",
  6697. options=None,
  6698. proto3_optional=unset(False),
  6699. ),
  6700. ],
  6701. extension=[],
  6702. nested_type=[],
  6703. enum_type=[],
  6704. extension_range=[],
  6705. oneof_decl=[],
  6706. options=None,
  6707. reserved_range=[],
  6708. reserved_name=[],
  6709. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6710. )
  6711. ],
  6712. enum_type=[],
  6713. extension_range=[
  6714. DescriptorProto.ExtensionRange(
  6715. start=536000000,
  6716. end=536000001,
  6717. options=ExtensionRangeOptions(
  6718. uninterpreted_option=[],
  6719. declaration=[
  6720. ExtensionRangeOptions.Declaration(
  6721. number=536000000,
  6722. full_name=".buf.descriptor.v1.buf_source_code_info_extension",
  6723. type=".buf.descriptor.v1.SourceCodeInfoExtension",
  6724. reserved=unset(False),
  6725. repeated=unset(False),
  6726. )
  6727. ],
  6728. features=None,
  6729. verification=unset(
  6730. ExtensionRangeOptions.VerificationState.UNVERIFIED
  6731. ),
  6732. ),
  6733. )
  6734. ],
  6735. oneof_decl=[],
  6736. options=None,
  6737. reserved_range=[],
  6738. reserved_name=[],
  6739. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6740. ),
  6741. DescriptorProto(
  6742. name="GeneratedCodeInfo",
  6743. field=[
  6744. FieldDescriptorProto(
  6745. name="annotation",
  6746. number=1,
  6747. label=FieldDescriptorProto.Label.REPEATED,
  6748. type=FieldDescriptorProto.Type.MESSAGE,
  6749. type_name=".google.protobuf.GeneratedCodeInfo.Annotation",
  6750. extendee=unset(""),
  6751. default_value=unset(""),
  6752. oneof_index=unset(0),
  6753. json_name="annotation",
  6754. options=None,
  6755. proto3_optional=unset(False),
  6756. )
  6757. ],
  6758. extension=[],
  6759. nested_type=[
  6760. DescriptorProto(
  6761. name="Annotation",
  6762. field=[
  6763. FieldDescriptorProto(
  6764. name="path",
  6765. number=1,
  6766. label=FieldDescriptorProto.Label.REPEATED,
  6767. type=FieldDescriptorProto.Type.INT32,
  6768. type_name=unset(""),
  6769. extendee=unset(""),
  6770. default_value=unset(""),
  6771. oneof_index=unset(0),
  6772. json_name="path",
  6773. options=FieldOptions(
  6774. ctype=unset(FieldOptions.CType.STRING),
  6775. packed=True,
  6776. jstype=unset(FieldOptions.JSType.JS_NORMAL),
  6777. lazy=unset(False),
  6778. unverified_lazy=unset(False),
  6779. deprecated=unset(False),
  6780. weak=unset(False),
  6781. debug_redact=unset(False),
  6782. retention=unset(
  6783. FieldOptions.OptionRetention.RETENTION_UNKNOWN
  6784. ),
  6785. targets=[],
  6786. edition_defaults=[],
  6787. features=None,
  6788. feature_support=None,
  6789. uninterpreted_option=[],
  6790. ),
  6791. proto3_optional=unset(False),
  6792. ),
  6793. FieldDescriptorProto(
  6794. name="source_file",
  6795. number=2,
  6796. label=FieldDescriptorProto.Label.OPTIONAL,
  6797. type=FieldDescriptorProto.Type.STRING,
  6798. type_name=unset(""),
  6799. extendee=unset(""),
  6800. default_value=unset(""),
  6801. oneof_index=unset(0),
  6802. json_name="sourceFile",
  6803. options=None,
  6804. proto3_optional=unset(False),
  6805. ),
  6806. FieldDescriptorProto(
  6807. name="begin",
  6808. number=3,
  6809. label=FieldDescriptorProto.Label.OPTIONAL,
  6810. type=FieldDescriptorProto.Type.INT32,
  6811. type_name=unset(""),
  6812. extendee=unset(""),
  6813. default_value=unset(""),
  6814. oneof_index=unset(0),
  6815. json_name="begin",
  6816. options=None,
  6817. proto3_optional=unset(False),
  6818. ),
  6819. FieldDescriptorProto(
  6820. name="end",
  6821. number=4,
  6822. label=FieldDescriptorProto.Label.OPTIONAL,
  6823. type=FieldDescriptorProto.Type.INT32,
  6824. type_name=unset(""),
  6825. extendee=unset(""),
  6826. default_value=unset(""),
  6827. oneof_index=unset(0),
  6828. json_name="end",
  6829. options=None,
  6830. proto3_optional=unset(False),
  6831. ),
  6832. FieldDescriptorProto(
  6833. name="semantic",
  6834. number=5,
  6835. label=FieldDescriptorProto.Label.OPTIONAL,
  6836. type=FieldDescriptorProto.Type.ENUM,
  6837. type_name=".google.protobuf.GeneratedCodeInfo.Annotation.Semantic",
  6838. extendee=unset(""),
  6839. default_value=unset(""),
  6840. oneof_index=unset(0),
  6841. json_name="semantic",
  6842. options=None,
  6843. proto3_optional=unset(False),
  6844. ),
  6845. ],
  6846. extension=[],
  6847. nested_type=[],
  6848. enum_type=[
  6849. EnumDescriptorProto(
  6850. name="Semantic",
  6851. value=[
  6852. EnumValueDescriptorProto(
  6853. name="NONE", number=0, options=None
  6854. ),
  6855. EnumValueDescriptorProto(
  6856. name="SET", number=1, options=None
  6857. ),
  6858. EnumValueDescriptorProto(
  6859. name="ALIAS", number=2, options=None
  6860. ),
  6861. ],
  6862. options=None,
  6863. reserved_range=[],
  6864. reserved_name=[],
  6865. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6866. )
  6867. ],
  6868. extension_range=[],
  6869. oneof_decl=[],
  6870. options=None,
  6871. reserved_range=[],
  6872. reserved_name=[],
  6873. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6874. )
  6875. ],
  6876. enum_type=[],
  6877. extension_range=[],
  6878. oneof_decl=[],
  6879. options=None,
  6880. reserved_range=[],
  6881. reserved_name=[],
  6882. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6883. ),
  6884. ],
  6885. enum_type=[
  6886. EnumDescriptorProto(
  6887. name="Edition",
  6888. value=[
  6889. EnumValueDescriptorProto(
  6890. name="EDITION_UNKNOWN", number=0, options=None
  6891. ),
  6892. EnumValueDescriptorProto(
  6893. name="EDITION_LEGACY", number=900, options=None
  6894. ),
  6895. EnumValueDescriptorProto(
  6896. name="EDITION_PROTO2", number=998, options=None
  6897. ),
  6898. EnumValueDescriptorProto(
  6899. name="EDITION_PROTO3", number=999, options=None
  6900. ),
  6901. EnumValueDescriptorProto(
  6902. name="EDITION_2023", number=1000, options=None
  6903. ),
  6904. EnumValueDescriptorProto(
  6905. name="EDITION_2024", number=1001, options=None
  6906. ),
  6907. EnumValueDescriptorProto(
  6908. name="EDITION_2026", number=1002, options=None
  6909. ),
  6910. EnumValueDescriptorProto(
  6911. name="EDITION_UNSTABLE", number=9999, options=None
  6912. ),
  6913. EnumValueDescriptorProto(
  6914. name="EDITION_1_TEST_ONLY", number=1, options=None
  6915. ),
  6916. EnumValueDescriptorProto(
  6917. name="EDITION_2_TEST_ONLY", number=2, options=None
  6918. ),
  6919. EnumValueDescriptorProto(
  6920. name="EDITION_99997_TEST_ONLY", number=99997, options=None
  6921. ),
  6922. EnumValueDescriptorProto(
  6923. name="EDITION_99998_TEST_ONLY", number=99998, options=None
  6924. ),
  6925. EnumValueDescriptorProto(
  6926. name="EDITION_99999_TEST_ONLY", number=99999, options=None
  6927. ),
  6928. EnumValueDescriptorProto(
  6929. name="EDITION_MAX", number=2147483647, options=None
  6930. ),
  6931. ],
  6932. options=None,
  6933. reserved_range=[],
  6934. reserved_name=[],
  6935. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6936. ),
  6937. EnumDescriptorProto(
  6938. name="SymbolVisibility",
  6939. value=[
  6940. EnumValueDescriptorProto(
  6941. name="VISIBILITY_UNSET", number=0, options=None
  6942. ),
  6943. EnumValueDescriptorProto(
  6944. name="VISIBILITY_LOCAL", number=1, options=None
  6945. ),
  6946. EnumValueDescriptorProto(
  6947. name="VISIBILITY_EXPORT", number=2, options=None
  6948. ),
  6949. ],
  6950. options=None,
  6951. reserved_range=[],
  6952. reserved_name=[],
  6953. visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
  6954. ),
  6955. ],
  6956. service=[],
  6957. extension=[],
  6958. options=FileOptions(
  6959. java_package="com.google.protobuf",
  6960. java_outer_classname="DescriptorProtos",
  6961. java_multiple_files=unset(False),
  6962. java_generate_equals_and_hash=unset(False),
  6963. java_string_check_utf8=unset(False),
  6964. optimize_for=FileOptions.OptimizeMode.SPEED,
  6965. go_package="google.golang.org/protobuf/types/descriptorpb",
  6966. cc_generic_services=unset(False),
  6967. java_generic_services=unset(False),
  6968. py_generic_services=unset(False),
  6969. deprecated=unset(False),
  6970. cc_enable_arenas=True,
  6971. objc_class_prefix="GPB",
  6972. csharp_namespace="Google.Protobuf.Reflection",
  6973. swift_prefix=unset(""),
  6974. php_class_prefix=unset(""),
  6975. php_namespace=unset(""),
  6976. php_metadata_namespace=unset(""),
  6977. ruby_package=unset(""),
  6978. features=None,
  6979. uninterpreted_option=[],
  6980. ),
  6981. source_code_info=None,
  6982. syntax=unset(""),
  6983. edition=unset(Edition.UNKNOWN),
  6984. ),
  6985. {
  6986. "FileDescriptorSet": FileDescriptorSet,
  6987. "FileDescriptorProto": FileDescriptorProto,
  6988. "DescriptorProto": DescriptorProto,
  6989. "DescriptorProto.ExtensionRange": DescriptorProto.ExtensionRange,
  6990. "DescriptorProto.ReservedRange": DescriptorProto.ReservedRange,
  6991. "ExtensionRangeOptions": ExtensionRangeOptions,
  6992. "ExtensionRangeOptions.Declaration": ExtensionRangeOptions.Declaration,
  6993. "ExtensionRangeOptions.VerificationState": ExtensionRangeOptions.VerificationState,
  6994. "FieldDescriptorProto": FieldDescriptorProto,
  6995. "FieldDescriptorProto.Type": FieldDescriptorProto.Type,
  6996. "FieldDescriptorProto.Label": FieldDescriptorProto.Label,
  6997. "OneofDescriptorProto": OneofDescriptorProto,
  6998. "EnumDescriptorProto": EnumDescriptorProto,
  6999. "EnumDescriptorProto.EnumReservedRange": EnumDescriptorProto.EnumReservedRange,
  7000. "EnumValueDescriptorProto": EnumValueDescriptorProto,
  7001. "ServiceDescriptorProto": ServiceDescriptorProto,
  7002. "MethodDescriptorProto": MethodDescriptorProto,
  7003. "FileOptions": FileOptions,
  7004. "FileOptions.OptimizeMode": FileOptions.OptimizeMode,
  7005. "MessageOptions": MessageOptions,
  7006. "FieldOptions": FieldOptions,
  7007. "FieldOptions.EditionDefault": FieldOptions.EditionDefault,
  7008. "FieldOptions.FeatureSupport": FieldOptions.FeatureSupport,
  7009. "FieldOptions.CType": FieldOptions.CType,
  7010. "FieldOptions.JSType": FieldOptions.JSType,
  7011. "FieldOptions.OptionRetention": FieldOptions.OptionRetention,
  7012. "FieldOptions.OptionTargetType": FieldOptions.OptionTargetType,
  7013. "OneofOptions": OneofOptions,
  7014. "EnumOptions": EnumOptions,
  7015. "EnumValueOptions": EnumValueOptions,
  7016. "ServiceOptions": ServiceOptions,
  7017. "MethodOptions": MethodOptions,
  7018. "MethodOptions.IdempotencyLevel": MethodOptions.IdempotencyLevel,
  7019. "UninterpretedOption": UninterpretedOption,
  7020. "UninterpretedOption.NamePart": UninterpretedOption.NamePart,
  7021. "FeatureSet": FeatureSet,
  7022. "FeatureSet.VisibilityFeature": FeatureSet.VisibilityFeature,
  7023. "FeatureSet.VisibilityFeature.DefaultSymbolVisibility": FeatureSet.VisibilityFeature.DefaultSymbolVisibility,
  7024. "FeatureSet.FieldPresence": FeatureSet.FieldPresence,
  7025. "FeatureSet.EnumType": FeatureSet.EnumType,
  7026. "FeatureSet.RepeatedFieldEncoding": FeatureSet.RepeatedFieldEncoding,
  7027. "FeatureSet.Utf8Validation": FeatureSet.Utf8Validation,
  7028. "FeatureSet.MessageEncoding": FeatureSet.MessageEncoding,
  7029. "FeatureSet.JsonFormat": FeatureSet.JsonFormat,
  7030. "FeatureSet.EnforceNamingStyle": FeatureSet.EnforceNamingStyle,
  7031. "FeatureSetDefaults": FeatureSetDefaults,
  7032. "FeatureSetDefaults.FeatureSetEditionDefault": FeatureSetDefaults.FeatureSetEditionDefault,
  7033. "SourceCodeInfo": SourceCodeInfo,
  7034. "SourceCodeInfo.Location": SourceCodeInfo.Location,
  7035. "GeneratedCodeInfo": GeneratedCodeInfo,
  7036. "GeneratedCodeInfo.Annotation": GeneratedCodeInfo.Annotation,
  7037. "GeneratedCodeInfo.Annotation.Semantic": GeneratedCodeInfo.Annotation.Semantic,
  7038. "Edition": Edition,
  7039. "SymbolVisibility": SymbolVisibility,
  7040. },
  7041. )
  7042. def desc() -> DescFile:
  7043. """Returns the descriptor for the file `google/protobuf/descriptor.proto`."""
  7044. return _DESC