| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608 |
- # Copyright (c) 2025-2026 Buf Technologies, Inc.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- # Generated from google/protobuf/descriptor.proto. DO NOT EDIT.
- # Generated by protoc-gen-py v0.1.1 with parameter "no_fmt_off".
- # ruff: noqa: PGH004
- # ruff: noqa
- from __future__ import annotations
- from typing import Literal, NoReturn, TYPE_CHECKING, TypeAlias
- from protobuf import Enum
- from protobuf._codegen import Message, boot, unset
- from protobuf.wkt._mixin import FileDescriptorSetMixin
- if TYPE_CHECKING:
- from protobuf import DescFile
- _FileDescriptorSetFields: TypeAlias = Literal["file"]
- class FileDescriptorSet(Message[_FileDescriptorSetFields], FileDescriptorSetMixin):
- """
- The protocol compiler can output a FileDescriptorSet containing the .proto
- files it parses.
- ```proto
- message google.protobuf.FileDescriptorSet
- ```
- Attributes:
- file:
- ```proto
- repeated google.protobuf.FileDescriptorProto file = 1;
- ```
- """
- __slots__ = ("file",)
- if TYPE_CHECKING:
- def __init__(self, *, file: list[FileDescriptorProto] | None = None) -> None:
- pass
- file: list[FileDescriptorProto]
- _FileDescriptorProtoFields: TypeAlias = Literal[
- "name",
- "package",
- "dependency",
- "public_dependency",
- "weak_dependency",
- "option_dependency",
- "message_type",
- "enum_type",
- "service",
- "extension",
- "options",
- "source_code_info",
- "syntax",
- "edition",
- ]
- class FileDescriptorProto(Message[_FileDescriptorProtoFields]):
- """
- Describes a complete .proto file.
- ```proto
- message google.protobuf.FileDescriptorProto
- ```
- Attributes:
- name:
- file name, relative to root of source tree
- ```proto
- optional string name = 1;
- ```
- package:
- e.g. "foo", "foo.bar", etc.
- ```proto
- optional string package = 2;
- ```
- dependency:
- Names of files imported by this file.
- ```proto
- repeated string dependency = 3;
- ```
- public_dependency:
- Indexes of the public imported files in the dependency list above.
- ```proto
- repeated int32 public_dependency = 10 [packed = false];
- ```
- weak_dependency:
- Indexes of the weak imported files in the dependency list.
- For Google-internal migration only. Do not use.
- ```proto
- repeated int32 weak_dependency = 11 [packed = false];
- ```
- option_dependency:
- Names of files imported by this file purely for the purpose of providing
- option extensions. These are excluded from the dependency list above.
- ```proto
- repeated string option_dependency = 15;
- ```
- message_type:
- All top-level definitions in this file.
- ```proto
- repeated google.protobuf.DescriptorProto message_type = 4;
- ```
- enum_type:
- ```proto
- repeated google.protobuf.EnumDescriptorProto enum_type = 5;
- ```
- service:
- ```proto
- repeated google.protobuf.ServiceDescriptorProto service = 6;
- ```
- extension:
- ```proto
- repeated google.protobuf.FieldDescriptorProto extension = 7;
- ```
- options:
- ```proto
- optional google.protobuf.FileOptions options = 8;
- ```
- source_code_info:
- This field contains optional information about the original source code.
- You may safely remove this entire field without harming runtime
- functionality of the descriptors -- the information is needed only by
- development tools.
- ```proto
- optional google.protobuf.SourceCodeInfo source_code_info = 9;
- ```
- syntax:
- The syntax of the proto file.
- The supported values are "proto2", "proto3", and "editions".
- If `edition` is present, this value must be "editions".
- WARNING: This field should only be used by protobuf plugins or special
- cases like the proto compiler. Other uses are discouraged and
- developers should rely on the protoreflect APIs for their client language.
- ```proto
- optional string syntax = 12;
- ```
- edition:
- The edition of the proto file.
- WARNING: This field should only be used by protobuf plugins or special
- cases like the proto compiler. Other uses are discouraged and
- developers should rely on the protoreflect APIs for their client language.
- ```proto
- optional google.protobuf.Edition edition = 14;
- ```
- """
- __slots__ = (
- "name",
- "package",
- "dependency",
- "public_dependency",
- "weak_dependency",
- "option_dependency",
- "message_type",
- "enum_type",
- "service",
- "extension",
- "options",
- "source_code_info",
- "syntax",
- "edition",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- name: str | None = None,
- package: str | None = None,
- dependency: list[str] | None = None,
- public_dependency: list[int] | None = None,
- weak_dependency: list[int] | None = None,
- option_dependency: list[str] | None = None,
- message_type: list[DescriptorProto] | None = None,
- enum_type: list[EnumDescriptorProto] | None = None,
- service: list[ServiceDescriptorProto] | None = None,
- extension: list[FieldDescriptorProto] | None = None,
- options: FileOptions | None = None,
- source_code_info: SourceCodeInfo | None = None,
- syntax: str | None = None,
- edition: Edition | None = None,
- ) -> None:
- pass
- name: str
- package: str
- dependency: list[str]
- public_dependency: list[int]
- weak_dependency: list[int]
- option_dependency: list[str]
- message_type: list[DescriptorProto]
- enum_type: list[EnumDescriptorProto]
- service: list[ServiceDescriptorProto]
- extension: list[FieldDescriptorProto]
- options: FileOptions | None
- source_code_info: SourceCodeInfo | None
- syntax: str
- edition: Edition
- _DescriptorProtoFields: TypeAlias = Literal[
- "name",
- "field",
- "extension",
- "nested_type",
- "enum_type",
- "extension_range",
- "oneof_decl",
- "options",
- "reserved_range",
- "reserved_name",
- "visibility",
- ]
- class DescriptorProto(Message[_DescriptorProtoFields]):
- """
- Describes a message type.
- ```proto
- message google.protobuf.DescriptorProto
- ```
- Attributes:
- name:
- ```proto
- optional string name = 1;
- ```
- field:
- ```proto
- repeated google.protobuf.FieldDescriptorProto field = 2;
- ```
- extension:
- ```proto
- repeated google.protobuf.FieldDescriptorProto extension = 6;
- ```
- nested_type:
- ```proto
- repeated google.protobuf.DescriptorProto nested_type = 3;
- ```
- enum_type:
- ```proto
- repeated google.protobuf.EnumDescriptorProto enum_type = 4;
- ```
- extension_range:
- ```proto
- repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
- ```
- oneof_decl:
- ```proto
- repeated google.protobuf.OneofDescriptorProto oneof_decl = 8;
- ```
- options:
- ```proto
- optional google.protobuf.MessageOptions options = 7;
- ```
- reserved_range:
- ```proto
- repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
- ```
- reserved_name:
- Reserved field names, which may not be used by fields in the same message.
- A given name may only be reserved once.
- ```proto
- repeated string reserved_name = 10;
- ```
- visibility:
- Support for `export` and `local` keywords on enums.
- ```proto
- optional google.protobuf.SymbolVisibility visibility = 11;
- ```
- """
- __slots__ = (
- "name",
- "field",
- "extension",
- "nested_type",
- "enum_type",
- "extension_range",
- "oneof_decl",
- "options",
- "reserved_range",
- "reserved_name",
- "visibility",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- name: str | None = None,
- field: list[FieldDescriptorProto] | None = None,
- extension: list[FieldDescriptorProto] | None = None,
- nested_type: list[DescriptorProto] | None = None,
- enum_type: list[EnumDescriptorProto] | None = None,
- extension_range: list[DescriptorProto.ExtensionRange] | None = None,
- oneof_decl: list[OneofDescriptorProto] | None = None,
- options: MessageOptions | None = None,
- reserved_range: list[DescriptorProto.ReservedRange] | None = None,
- reserved_name: list[str] | None = None,
- visibility: SymbolVisibility | None = None,
- ) -> None:
- pass
- name: str
- field: list[FieldDescriptorProto]
- extension: list[FieldDescriptorProto]
- nested_type: list[DescriptorProto]
- enum_type: list[EnumDescriptorProto]
- extension_range: list[DescriptorProto.ExtensionRange]
- oneof_decl: list[OneofDescriptorProto]
- options: MessageOptions | None
- reserved_range: list[DescriptorProto.ReservedRange]
- reserved_name: list[str]
- visibility: SymbolVisibility
- _ExtensionRangeFields: TypeAlias = Literal["start", "end", "options"]
- class ExtensionRange(Message[_ExtensionRangeFields]):
- """
- ```proto
- message google.protobuf.DescriptorProto.ExtensionRange
- ```
- Attributes:
- start:
- Inclusive.
- ```proto
- optional int32 start = 1;
- ```
- end:
- Exclusive.
- ```proto
- optional int32 end = 2;
- ```
- options:
- ```proto
- optional google.protobuf.ExtensionRangeOptions options = 3;
- ```
- """
- __slots__ = ("start", "end", "options")
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- start: int | None = None,
- end: int | None = None,
- options: ExtensionRangeOptions | None = None,
- ) -> None:
- pass
- start: int
- end: int
- options: ExtensionRangeOptions | None
- _ReservedRangeFields: TypeAlias = Literal["start", "end"]
- class ReservedRange(Message[_ReservedRangeFields]):
- """
- Range of reserved tag numbers. Reserved tag numbers may not be used by
- fields or extension ranges in the same message. Reserved ranges may
- not overlap.
- ```proto
- message google.protobuf.DescriptorProto.ReservedRange
- ```
- Attributes:
- start:
- Inclusive.
- ```proto
- optional int32 start = 1;
- ```
- end:
- Exclusive.
- ```proto
- optional int32 end = 2;
- ```
- """
- __slots__ = ("start", "end")
- if TYPE_CHECKING:
- def __init__(
- self, *, start: int | None = None, end: int | None = None
- ) -> None:
- pass
- start: int
- end: int
- _ExtensionRangeOptionsFields: TypeAlias = Literal[
- "uninterpreted_option", "declaration", "features", "verification"
- ]
- class ExtensionRangeOptions(Message[_ExtensionRangeOptionsFields]):
- """
- ```proto
- message google.protobuf.ExtensionRangeOptions
- ```
- Attributes:
- uninterpreted_option:
- The parser stores options it doesn't recognize here. See above.
- ```proto
- repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
- ```
- declaration:
- For external users: DO NOT USE. We are in the process of open sourcing
- extension declaration and executing internal cleanups before it can be
- used externally.
- ```proto
- repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2;
- ```
- features:
- Any features defined in the specific edition.
- ```proto
- optional google.protobuf.FeatureSet features = 50;
- ```
- verification:
- The verification state of the range.
- TODO: flip the default to DECLARATION once all empty ranges
- are marked as UNVERIFIED.
- ```proto
- optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED];
- ```
- """
- __slots__ = ("uninterpreted_option", "declaration", "features", "verification")
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- uninterpreted_option: list[UninterpretedOption] | None = None,
- declaration: list[ExtensionRangeOptions.Declaration] | None = None,
- features: FeatureSet | None = None,
- verification: ExtensionRangeOptions.VerificationState | None = None,
- ) -> None:
- pass
- uninterpreted_option: list[UninterpretedOption]
- declaration: list[ExtensionRangeOptions.Declaration]
- features: FeatureSet | None
- verification: ExtensionRangeOptions.VerificationState
- _DeclarationFields: TypeAlias = Literal[
- "number", "full_name", "type", "reserved", "repeated"
- ]
- class Declaration(Message[_DeclarationFields]):
- """
- ```proto
- message google.protobuf.ExtensionRangeOptions.Declaration
- ```
- Attributes:
- number:
- The extension number declared within the extension range.
- ```proto
- optional int32 number = 1;
- ```
- full_name:
- The fully-qualified name of the extension field. There must be a leading
- dot in front of the full name.
- ```proto
- optional string full_name = 2;
- ```
- type:
- The fully-qualified type name of the extension field. Unlike
- Metadata.type, Declaration.type must have a leading dot for messages
- and enums.
- ```proto
- optional string type = 3;
- ```
- reserved:
- If true, indicates that the number is reserved in the extension range,
- and any extension field with the number will fail to compile. Set this
- when a declared extension field is deleted.
- ```proto
- optional bool reserved = 5;
- ```
- repeated:
- If true, indicates that the extension must be defined as repeated.
- Otherwise the extension must be defined as optional.
- ```proto
- optional bool repeated = 6;
- ```
- """
- __slots__ = ("number", "full_name", "type", "reserved", "repeated")
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- number: int | None = None,
- full_name: str | None = None,
- type: str | None = None,
- reserved: bool | None = None,
- repeated: bool | None = None,
- ) -> None:
- pass
- number: int
- full_name: str
- type: str
- reserved: bool
- repeated: bool
- class VerificationState(Enum):
- """
- The verification state of the extension range.
- ```proto
- enum google.protobuf.ExtensionRangeOptions.VerificationState
- ```
- Attributes:
- DECLARATION:
- All the extensions of the range must be declared.
- ```proto
- DECLARATION = 0
- ```
- UNVERIFIED:
- ```proto
- UNVERIFIED = 1
- ```
- """
- DECLARATION = 0
- UNVERIFIED = 1
- _FieldDescriptorProtoFields: TypeAlias = Literal[
- "name",
- "number",
- "label",
- "type",
- "type_name",
- "extendee",
- "default_value",
- "oneof_index",
- "json_name",
- "options",
- "proto3_optional",
- ]
- class FieldDescriptorProto(Message[_FieldDescriptorProtoFields]):
- """
- Describes a field within a message.
- ```proto
- message google.protobuf.FieldDescriptorProto
- ```
- Attributes:
- name:
- ```proto
- optional string name = 1;
- ```
- number:
- ```proto
- optional int32 number = 3;
- ```
- label:
- ```proto
- optional google.protobuf.FieldDescriptorProto.Label label = 4;
- ```
- type:
- If type_name is set, this need not be set. If both this and type_name
- are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
- ```proto
- optional google.protobuf.FieldDescriptorProto.Type type = 5;
- ```
- type_name:
- For message and enum types, this is the name of the type. If the name
- starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
- rules are used to find the type (i.e. first the nested types within this
- message are searched, then within the parent, on up to the root
- namespace).
- ```proto
- optional string type_name = 6;
- ```
- extendee:
- For extensions, this is the name of the type being extended. It is
- resolved in the same manner as type_name.
- ```proto
- optional string extendee = 2;
- ```
- default_value:
- For numeric types, contains the original text representation of the value.
- For booleans, "true" or "false".
- For strings, contains the default text contents (not escaped in any way).
- For bytes, contains the C escaped value. All bytes >= 128 are escaped.
- ```proto
- optional string default_value = 7;
- ```
- oneof_index:
- If set, gives the index of a oneof in the containing type's oneof_decl
- list. This field is a member of that oneof.
- ```proto
- optional int32 oneof_index = 9;
- ```
- json_name:
- JSON name of this field. The value is set by protocol compiler. If the
- user has set a "json_name" option on this field, that option's value
- will be used. Otherwise, it's deduced from the field's name by converting
- it to camelCase.
- ```proto
- optional string json_name = 10;
- ```
- options:
- ```proto
- optional google.protobuf.FieldOptions options = 8;
- ```
- proto3_optional:
- If true, this is a proto3 "optional". When a proto3 field is optional, it
- tracks presence regardless of field type.
- When proto3_optional is true, this field must belong to a oneof to signal
- to old proto3 clients that presence is tracked for this field. This oneof
- is known as a "synthetic" oneof, and this field must be its sole member
- (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs
- exist in the descriptor only, and do not generate any API. Synthetic oneofs
- must be ordered after all "real" oneofs.
- For message fields, proto3_optional doesn't create any semantic change,
- since non-repeated message fields always track presence. However it still
- indicates the semantic detail of whether the user wrote "optional" or not.
- This can be useful for round-tripping the .proto file. For consistency we
- give message fields a synthetic oneof also, even though it is not required
- to track presence. This is especially important because the parser can't
- tell if a field is a message or an enum, so it must always create a
- synthetic oneof.
- Proto2 optional fields do not set this flag, because they already indicate
- optional with `LABEL_OPTIONAL`.
- ```proto
- optional bool proto3_optional = 17;
- ```
- """
- __slots__ = (
- "name",
- "number",
- "label",
- "type",
- "type_name",
- "extendee",
- "default_value",
- "oneof_index",
- "json_name",
- "options",
- "proto3_optional",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- name: str | None = None,
- number: int | None = None,
- label: FieldDescriptorProto.Label | None = None,
- type: FieldDescriptorProto.Type | None = None,
- type_name: str | None = None,
- extendee: str | None = None,
- default_value: str | None = None,
- oneof_index: int | None = None,
- json_name: str | None = None,
- options: FieldOptions | None = None,
- proto3_optional: bool | None = None,
- ) -> None:
- pass
- name: str
- number: int
- label: FieldDescriptorProto.Label
- type: FieldDescriptorProto.Type
- type_name: str
- extendee: str
- default_value: str
- oneof_index: int
- json_name: str
- options: FieldOptions | None
- proto3_optional: bool
- class Type(Enum):
- """
- ```proto
- enum google.protobuf.FieldDescriptorProto.Type
- ```
- Attributes:
- DOUBLE:
- 0 is reserved for errors.
- Order is weird for historical reasons.
- ```proto
- TYPE_DOUBLE = 1
- ```
- FLOAT:
- ```proto
- TYPE_FLOAT = 2
- ```
- INT64:
- Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
- negative values are likely.
- ```proto
- TYPE_INT64 = 3
- ```
- UINT64:
- ```proto
- TYPE_UINT64 = 4
- ```
- INT32:
- Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
- negative values are likely.
- ```proto
- TYPE_INT32 = 5
- ```
- FIXED64:
- ```proto
- TYPE_FIXED64 = 6
- ```
- FIXED32:
- ```proto
- TYPE_FIXED32 = 7
- ```
- BOOL:
- ```proto
- TYPE_BOOL = 8
- ```
- STRING:
- ```proto
- TYPE_STRING = 9
- ```
- GROUP:
- Tag-delimited aggregate.
- Group type is deprecated and not supported after google.protobuf. However, Proto3
- implementations should still be able to parse the group wire format and
- treat group fields as unknown fields. In Editions, the group wire format
- can be enabled via the `message_encoding` feature.
- ```proto
- TYPE_GROUP = 10
- ```
- MESSAGE:
- Length-delimited aggregate.
- ```proto
- TYPE_MESSAGE = 11
- ```
- BYTES:
- New in version 2.
- ```proto
- TYPE_BYTES = 12
- ```
- UINT32:
- ```proto
- TYPE_UINT32 = 13
- ```
- ENUM:
- ```proto
- TYPE_ENUM = 14
- ```
- SFIXED32:
- ```proto
- TYPE_SFIXED32 = 15
- ```
- SFIXED64:
- ```proto
- TYPE_SFIXED64 = 16
- ```
- SINT32:
- Uses ZigZag encoding.
- ```proto
- TYPE_SINT32 = 17
- ```
- SINT64:
- Uses ZigZag encoding.
- ```proto
- TYPE_SINT64 = 18
- ```
- """
- DOUBLE = 1
- FLOAT = 2
- INT64 = 3
- UINT64 = 4
- INT32 = 5
- FIXED64 = 6
- FIXED32 = 7
- BOOL = 8
- STRING = 9
- GROUP = 10
- MESSAGE = 11
- BYTES = 12
- UINT32 = 13
- ENUM = 14
- SFIXED32 = 15
- SFIXED64 = 16
- SINT32 = 17
- SINT64 = 18
- class Label(Enum):
- """
- ```proto
- enum google.protobuf.FieldDescriptorProto.Label
- ```
- Attributes:
- OPTIONAL:
- 0 is reserved for errors
- ```proto
- LABEL_OPTIONAL = 1
- ```
- REPEATED:
- ```proto
- LABEL_REPEATED = 3
- ```
- REQUIRED:
- The required label is only allowed in google.protobuf. In proto3 and Editions
- it's explicitly prohibited. In Editions, the `field_presence` feature
- can be used to get this behavior.
- ```proto
- LABEL_REQUIRED = 2
- ```
- """
- OPTIONAL = 1
- REPEATED = 3
- REQUIRED = 2
- _OneofDescriptorProtoFields: TypeAlias = Literal["name", "options"]
- class OneofDescriptorProto(Message[_OneofDescriptorProtoFields]):
- """
- Describes a oneof.
- ```proto
- message google.protobuf.OneofDescriptorProto
- ```
- Attributes:
- name:
- ```proto
- optional string name = 1;
- ```
- options:
- ```proto
- optional google.protobuf.OneofOptions options = 2;
- ```
- """
- __slots__ = ("name", "options")
- if TYPE_CHECKING:
- def __init__(
- self, *, name: str | None = None, options: OneofOptions | None = None
- ) -> None:
- pass
- name: str
- options: OneofOptions | None
- _EnumDescriptorProtoFields: TypeAlias = Literal[
- "name", "value", "options", "reserved_range", "reserved_name", "visibility"
- ]
- class EnumDescriptorProto(Message[_EnumDescriptorProtoFields]):
- """
- Describes an enum type.
- ```proto
- message google.protobuf.EnumDescriptorProto
- ```
- Attributes:
- name:
- ```proto
- optional string name = 1;
- ```
- value:
- ```proto
- repeated google.protobuf.EnumValueDescriptorProto value = 2;
- ```
- options:
- ```proto
- optional google.protobuf.EnumOptions options = 3;
- ```
- reserved_range:
- Range of reserved numeric values. Reserved numeric values may not be used
- by enum values in the same enum declaration. Reserved ranges may not
- overlap.
- ```proto
- repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
- ```
- reserved_name:
- Reserved enum value names, which may not be reused. A given name may only
- be reserved once.
- ```proto
- repeated string reserved_name = 5;
- ```
- visibility:
- Support for `export` and `local` keywords on enums.
- ```proto
- optional google.protobuf.SymbolVisibility visibility = 6;
- ```
- """
- __slots__ = (
- "name",
- "value",
- "options",
- "reserved_range",
- "reserved_name",
- "visibility",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- name: str | None = None,
- value: list[EnumValueDescriptorProto] | None = None,
- options: EnumOptions | None = None,
- reserved_range: list[EnumDescriptorProto.EnumReservedRange] | None = None,
- reserved_name: list[str] | None = None,
- visibility: SymbolVisibility | None = None,
- ) -> None:
- pass
- name: str
- value: list[EnumValueDescriptorProto]
- options: EnumOptions | None
- reserved_range: list[EnumDescriptorProto.EnumReservedRange]
- reserved_name: list[str]
- visibility: SymbolVisibility
- _EnumReservedRangeFields: TypeAlias = Literal["start", "end"]
- class EnumReservedRange(Message[_EnumReservedRangeFields]):
- """
- Range of reserved numeric values. Reserved values may not be used by
- entries in the same enum. Reserved ranges may not overlap.
- Note that this is distinct from DescriptorProto.ReservedRange in that it
- is inclusive such that it can appropriately represent the entire int32
- domain.
- ```proto
- message google.protobuf.EnumDescriptorProto.EnumReservedRange
- ```
- Attributes:
- start:
- Inclusive.
- ```proto
- optional int32 start = 1;
- ```
- end:
- Inclusive.
- ```proto
- optional int32 end = 2;
- ```
- """
- __slots__ = ("start", "end")
- if TYPE_CHECKING:
- def __init__(
- self, *, start: int | None = None, end: int | None = None
- ) -> None:
- pass
- start: int
- end: int
- _EnumValueDescriptorProtoFields: TypeAlias = Literal["name", "number", "options"]
- class EnumValueDescriptorProto(Message[_EnumValueDescriptorProtoFields]):
- """
- Describes a value within an enum.
- ```proto
- message google.protobuf.EnumValueDescriptorProto
- ```
- Attributes:
- name:
- ```proto
- optional string name = 1;
- ```
- number:
- ```proto
- optional int32 number = 2;
- ```
- options:
- ```proto
- optional google.protobuf.EnumValueOptions options = 3;
- ```
- """
- __slots__ = ("name", "number", "options")
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- name: str | None = None,
- number: int | None = None,
- options: EnumValueOptions | None = None,
- ) -> None:
- pass
- name: str
- number: int
- options: EnumValueOptions | None
- _ServiceDescriptorProtoFields: TypeAlias = Literal["name", "method", "options"]
- class ServiceDescriptorProto(Message[_ServiceDescriptorProtoFields]):
- """
- Describes a service.
- ```proto
- message google.protobuf.ServiceDescriptorProto
- ```
- Attributes:
- name:
- ```proto
- optional string name = 1;
- ```
- method:
- ```proto
- repeated google.protobuf.MethodDescriptorProto method = 2;
- ```
- options:
- ```proto
- optional google.protobuf.ServiceOptions options = 3;
- ```
- """
- __slots__ = ("name", "method", "options")
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- name: str | None = None,
- method: list[MethodDescriptorProto] | None = None,
- options: ServiceOptions | None = None,
- ) -> None:
- pass
- name: str
- method: list[MethodDescriptorProto]
- options: ServiceOptions | None
- _MethodDescriptorProtoFields: TypeAlias = Literal[
- "name",
- "input_type",
- "output_type",
- "options",
- "client_streaming",
- "server_streaming",
- ]
- class MethodDescriptorProto(Message[_MethodDescriptorProtoFields]):
- """
- Describes a method of a service.
- ```proto
- message google.protobuf.MethodDescriptorProto
- ```
- Attributes:
- name:
- ```proto
- optional string name = 1;
- ```
- input_type:
- Input and output type names. These are resolved in the same way as
- FieldDescriptorProto.type_name, but must refer to a message type.
- ```proto
- optional string input_type = 2;
- ```
- output_type:
- ```proto
- optional string output_type = 3;
- ```
- options:
- ```proto
- optional google.protobuf.MethodOptions options = 4;
- ```
- client_streaming:
- Identifies if client streams multiple client messages
- ```proto
- optional bool client_streaming = 5 [default = false];
- ```
- server_streaming:
- Identifies if server streams multiple server messages
- ```proto
- optional bool server_streaming = 6 [default = false];
- ```
- """
- __slots__ = (
- "name",
- "input_type",
- "output_type",
- "options",
- "client_streaming",
- "server_streaming",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- name: str | None = None,
- input_type: str | None = None,
- output_type: str | None = None,
- options: MethodOptions | None = None,
- client_streaming: bool | None = None,
- server_streaming: bool | None = None,
- ) -> None:
- pass
- name: str
- input_type: str
- output_type: str
- options: MethodOptions | None
- client_streaming: bool
- server_streaming: bool
- _FileOptionsFields: TypeAlias = Literal[
- "java_package",
- "java_outer_classname",
- "java_multiple_files",
- "java_generate_equals_and_hash",
- "java_string_check_utf8",
- "optimize_for",
- "go_package",
- "cc_generic_services",
- "java_generic_services",
- "py_generic_services",
- "deprecated",
- "cc_enable_arenas",
- "objc_class_prefix",
- "csharp_namespace",
- "swift_prefix",
- "php_class_prefix",
- "php_namespace",
- "php_metadata_namespace",
- "ruby_package",
- "features",
- "uninterpreted_option",
- ]
- class FileOptions(Message[_FileOptionsFields]):
- """
- ```proto
- message google.protobuf.FileOptions
- ```
- Attributes:
- java_package:
- Sets the Java package where classes generated from this .proto will be
- placed. By default, the proto package is used, but this is often
- inappropriate because proto packages do not normally start with backwards
- domain names.
- ```proto
- optional string java_package = 1;
- ```
- java_outer_classname:
- Controls the name of the wrapper Java class generated for the .proto file.
- That class will always contain the .proto file's getDescriptor() method as
- well as any top-level extensions defined in the .proto file.
- If java_multiple_files is disabled, then all the other classes from the
- .proto file will be nested inside the single wrapper outer class.
- ```proto
- optional string java_outer_classname = 8;
- ```
- java_multiple_files:
- If enabled, then the Java code generator will generate a separate .java
- file for each top-level message, enum, and service defined in the .proto
- file. Thus, these types will *not* be nested inside the wrapper class
- named by java_outer_classname. However, the wrapper class will still be
- generated to contain the file's getDescriptor() method as well as any
- top-level extensions defined in the file.
- ```proto
- optional bool java_multiple_files = 10 [default = false];
- ```
- java_generate_equals_and_hash:
- This option does nothing.
- ```proto
- optional bool java_generate_equals_and_hash = 20 [deprecated = true];
- ```
- java_string_check_utf8:
- A proto2 file can set this to true to opt in to UTF-8 checking for Java,
- which will throw an exception if invalid UTF-8 is parsed from the wire or
- assigned to a string field.
- TODO: clarify exactly what kinds of field types this option
- applies to, and update these docs accordingly.
- Proto3 files already perform these checks. Setting the option explicitly to
- false has no effect: it cannot be used to opt proto3 files out of UTF-8
- checks.
- ```proto
- optional bool java_string_check_utf8 = 27 [default = false];
- ```
- optimize_for:
- ```proto
- optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
- ```
- go_package:
- Sets the Go package where structs generated from this .proto will be
- placed. If omitted, the Go package will be derived from the following:
- - The basename of the package import path, if provided.
- - Otherwise, the package statement in the .proto file, if present.
- - Otherwise, the basename of the .proto file, without extension.
- ```proto
- optional string go_package = 11;
- ```
- cc_generic_services:
- Should generic services be generated in each language? "Generic" services
- are not specific to any particular RPC system. They are generated by the
- main code generators in each language (without additional plugins).
- Generic services were the only kind of service generation supported by
- early versions of google.protobuf.
- Generic services are now considered deprecated in favor of using plugins
- that generate code specific to your particular RPC system. Therefore,
- these default to false. Old code which depends on generic services should
- explicitly set them to true.
- ```proto
- optional bool cc_generic_services = 16 [default = false];
- ```
- java_generic_services:
- ```proto
- optional bool java_generic_services = 17 [default = false];
- ```
- py_generic_services:
- ```proto
- optional bool py_generic_services = 18 [default = false];
- ```
- deprecated:
- Is this file deprecated?
- Depending on the target platform, this can emit Deprecated annotations
- for everything in the file, or it will be completely ignored; in the very
- least, this is a formalization for deprecating files.
- ```proto
- optional bool deprecated = 23 [default = false];
- ```
- cc_enable_arenas:
- Enables the use of arenas for the proto messages in this file. This applies
- only to generated classes for C++.
- ```proto
- optional bool cc_enable_arenas = 31 [default = true];
- ```
- objc_class_prefix:
- Sets the objective c class prefix which is prepended to all objective c
- generated classes from this .proto. There is no default.
- ```proto
- optional string objc_class_prefix = 36;
- ```
- csharp_namespace:
- Namespace for generated classes; defaults to the package.
- ```proto
- optional string csharp_namespace = 37;
- ```
- swift_prefix:
- By default Swift generators will take the proto package and CamelCase it
- replacing '.' with underscore and use that to prefix the types/symbols
- defined. When this options is provided, they will use this value instead
- to prefix the types/symbols defined.
- ```proto
- optional string swift_prefix = 39;
- ```
- php_class_prefix:
- Sets the php class prefix which is prepended to all php generated classes
- from this .proto. Default is empty.
- ```proto
- optional string php_class_prefix = 40;
- ```
- php_namespace:
- Use this option to change the namespace of php generated classes. Default
- is empty. When this option is empty, the package name will be used for
- determining the namespace.
- ```proto
- optional string php_namespace = 41;
- ```
- php_metadata_namespace:
- Use this option to change the namespace of php generated metadata classes.
- Default is empty. When this option is empty, the proto file name will be
- used for determining the namespace.
- ```proto
- optional string php_metadata_namespace = 44;
- ```
- ruby_package:
- Use this option to change the package of ruby generated classes. Default
- is empty. When this option is not set, the package name will be used for
- determining the ruby package.
- ```proto
- optional string ruby_package = 45;
- ```
- features:
- Any features defined in the specific edition.
- WARNING: This field should only be used by protobuf plugins or special
- cases like the proto compiler. Other uses are discouraged and
- developers should rely on the protoreflect APIs for their client language.
- ```proto
- optional google.protobuf.FeatureSet features = 50;
- ```
- uninterpreted_option:
- The parser stores options it doesn't recognize here.
- See the documentation for the "Options" section above.
- ```proto
- repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
- ```
- """
- __slots__ = (
- "java_package",
- "java_outer_classname",
- "java_multiple_files",
- "java_generate_equals_and_hash",
- "java_string_check_utf8",
- "optimize_for",
- "go_package",
- "cc_generic_services",
- "java_generic_services",
- "py_generic_services",
- "deprecated",
- "cc_enable_arenas",
- "objc_class_prefix",
- "csharp_namespace",
- "swift_prefix",
- "php_class_prefix",
- "php_namespace",
- "php_metadata_namespace",
- "ruby_package",
- "features",
- "uninterpreted_option",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- java_package: str | None = None,
- java_outer_classname: str | None = None,
- java_multiple_files: bool | None = None,
- java_generate_equals_and_hash: bool | None = None,
- java_string_check_utf8: bool | None = None,
- optimize_for: FileOptions.OptimizeMode | None = None,
- go_package: str | None = None,
- cc_generic_services: bool | None = None,
- java_generic_services: bool | None = None,
- py_generic_services: bool | None = None,
- deprecated: bool | None = None,
- cc_enable_arenas: bool | None = None,
- objc_class_prefix: str | None = None,
- csharp_namespace: str | None = None,
- swift_prefix: str | None = None,
- php_class_prefix: str | None = None,
- php_namespace: str | None = None,
- php_metadata_namespace: str | None = None,
- ruby_package: str | None = None,
- features: FeatureSet | None = None,
- uninterpreted_option: list[UninterpretedOption] | None = None,
- ) -> None:
- pass
- java_package: str
- java_outer_classname: str
- java_multiple_files: bool
- java_generate_equals_and_hash: bool
- java_string_check_utf8: bool
- optimize_for: FileOptions.OptimizeMode
- go_package: str
- cc_generic_services: bool
- java_generic_services: bool
- py_generic_services: bool
- deprecated: bool
- cc_enable_arenas: bool
- objc_class_prefix: str
- csharp_namespace: str
- swift_prefix: str
- php_class_prefix: str
- php_namespace: str
- php_metadata_namespace: str
- ruby_package: str
- features: FeatureSet | None
- uninterpreted_option: list[UninterpretedOption]
- class OptimizeMode(Enum):
- """
- Generated classes can be optimized for speed or code size.
- ```proto
- enum google.protobuf.FileOptions.OptimizeMode
- ```
- Attributes:
- SPEED:
- Generate complete code for parsing, serialization,
- ```proto
- SPEED = 1
- ```
- CODE_SIZE:
- etc.
- Use ReflectionOps to implement these methods.
- ```proto
- CODE_SIZE = 2
- ```
- LITE_RUNTIME:
- Generate code using MessageLite and the lite runtime.
- ```proto
- LITE_RUNTIME = 3
- ```
- """
- SPEED = 1
- CODE_SIZE = 2
- LITE_RUNTIME = 3
- _MessageOptionsFields: TypeAlias = Literal[
- "message_set_wire_format",
- "no_standard_descriptor_accessor",
- "deprecated",
- "map_entry",
- "deprecated_legacy_json_field_conflicts",
- "features",
- "uninterpreted_option",
- ]
- class MessageOptions(Message[_MessageOptionsFields]):
- """
- ```proto
- message google.protobuf.MessageOptions
- ```
- Attributes:
- message_set_wire_format:
- Set true to use the old proto1 MessageSet wire format for extensions.
- This is provided for backwards-compatibility with the MessageSet wire
- format. You should not use this for any other reason: It's less
- efficient, has fewer features, and is more complicated.
- The message must be defined exactly as follows:
- message Foo {
- option message_set_wire_format = true;
- extensions 4 to max;
- }
- Note that the message cannot have any defined fields; MessageSets only
- have extensions.
- All extensions of your type must be singular messages; e.g. they cannot
- be int32s, enums, or repeated messages.
- Because this is an option, the above two restrictions are not enforced by
- the protocol compiler.
- ```proto
- optional bool message_set_wire_format = 1 [default = false];
- ```
- no_standard_descriptor_accessor:
- Disables the generation of the standard "descriptor()" accessor, which can
- conflict with a field of the same name. This is meant to make migration
- from proto1 easier; new code should avoid fields named "descriptor".
- ```proto
- optional bool no_standard_descriptor_accessor = 2 [default = false];
- ```
- deprecated:
- Is this message deprecated?
- Depending on the target platform, this can emit Deprecated annotations
- for the message, or it will be completely ignored; in the very least,
- this is a formalization for deprecating messages.
- ```proto
- optional bool deprecated = 3 [default = false];
- ```
- map_entry:
- Whether the message is an automatically generated map entry type for the
- maps field.
- For maps fields:
- map<KeyType, ValueType> map_field = 1;
- The parsed descriptor looks like:
- message MapFieldEntry {
- option map_entry = true;
- optional KeyType key = 1;
- optional ValueType value = 2;
- }
- repeated MapFieldEntry map_field = 1;
- Implementations may choose not to generate the map_entry=true message, but
- use a native map in the target language to hold the keys and values.
- The reflection APIs in such implementations still need to work as
- if the field is a repeated message field.
- NOTE: Do not set the option in .proto files. Always use the maps syntax
- instead. The option should only be implicitly set by the proto compiler
- parser.
- ```proto
- optional bool map_entry = 7;
- ```
- deprecated_legacy_json_field_conflicts:
- Enable the legacy handling of JSON field name conflicts. This lowercases
- and strips underscored from the fields before comparison in proto3 only.
- The new behavior takes `json_name` into account and applies to proto2 as
- well.
- This should only be used as a temporary measure against broken builds due
- to the change in behavior for JSON field name conflicts.
- TODO This is legacy behavior we plan to remove once downstream
- teams have had time to migrate.
- ```proto
- optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
- ```
- features:
- Any features defined in the specific edition.
- WARNING: This field should only be used by protobuf plugins or special
- cases like the proto compiler. Other uses are discouraged and
- developers should rely on the protoreflect APIs for their client language.
- ```proto
- optional google.protobuf.FeatureSet features = 12;
- ```
- uninterpreted_option:
- The parser stores options it doesn't recognize here. See above.
- ```proto
- repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
- ```
- """
- __slots__ = (
- "message_set_wire_format",
- "no_standard_descriptor_accessor",
- "deprecated",
- "map_entry",
- "deprecated_legacy_json_field_conflicts",
- "features",
- "uninterpreted_option",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- message_set_wire_format: bool | None = None,
- no_standard_descriptor_accessor: bool | None = None,
- deprecated: bool | None = None,
- map_entry: bool | None = None,
- deprecated_legacy_json_field_conflicts: bool | None = None,
- features: FeatureSet | None = None,
- uninterpreted_option: list[UninterpretedOption] | None = None,
- ) -> None:
- pass
- message_set_wire_format: bool
- no_standard_descriptor_accessor: bool
- deprecated: bool
- map_entry: bool
- deprecated_legacy_json_field_conflicts: bool
- features: FeatureSet | None
- uninterpreted_option: list[UninterpretedOption]
- _FieldOptionsFields: TypeAlias = Literal[
- "ctype",
- "packed",
- "jstype",
- "lazy",
- "unverified_lazy",
- "deprecated",
- "weak",
- "debug_redact",
- "retention",
- "targets",
- "edition_defaults",
- "features",
- "feature_support",
- "uninterpreted_option",
- ]
- class FieldOptions(Message[_FieldOptionsFields]):
- """
- ```proto
- message google.protobuf.FieldOptions
- ```
- Attributes:
- ctype:
- NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
- The ctype option instructs the C++ code generator to use a different
- representation of the field than it normally would. See the specific
- options below. This option is only implemented to support use of
- [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
- type "bytes" in the open source release.
- TODO: make ctype actually deprecated.
- ```proto
- optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
- ```
- packed:
- The packed option can be enabled for repeated primitive fields to enable
- a more efficient representation on the wire. Rather than repeatedly
- writing the tag and type for each element, the entire array is encoded as
- a single length-delimited blob. In proto3, only explicit setting it to
- false will avoid using packed encoding. This option is prohibited in
- Editions, but the `repeated_field_encoding` feature can be used to control
- the behavior.
- ```proto
- optional bool packed = 2;
- ```
- jstype:
- The jstype option determines the JavaScript type used for values of the
- field. The option is permitted only for 64 bit integral and fixed types
- (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
- is represented as JavaScript string, which avoids loss of precision that
- can happen when a large value is converted to a floating point JavaScript.
- Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
- use the JavaScript "number" type. The behavior of the default option
- JS_NORMAL is implementation dependent.
- This option is an enum to permit additional types to be added, e.g.
- goog.math.Integer.
- ```proto
- optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
- ```
- lazy:
- Should this field be parsed lazily? Lazy applies only to message-type
- fields. It means that when the outer message is initially parsed, the
- inner message's contents will not be parsed but instead stored in encoded
- form. The inner message will actually be parsed when it is first accessed.
- This is only a hint. Implementations are free to choose whether to use
- eager or lazy parsing regardless of the value of this option. However,
- setting this option true suggests that the protocol author believes that
- using lazy parsing on this field is worth the additional bookkeeping
- overhead typically needed to implement it.
- This option does not affect the public interface of any generated code;
- all method signatures remain the same. Furthermore, thread-safety of the
- interface is not affected by this option; const methods remain safe to
- call from multiple threads concurrently, while non-const methods continue
- to require exclusive access.
- Note that lazy message fields are still eagerly verified to check
- ill-formed wireformat or missing required fields. Calling IsInitialized()
- on the outer message would fail if the inner message has missing required
- fields. Failed verification would result in parsing failure (except when
- uninitialized messages are acceptable).
- ```proto
- optional bool lazy = 5 [default = false];
- ```
- unverified_lazy:
- unverified_lazy does no correctness checks on the byte stream. This should
- only be used where lazy with verification is prohibitive for performance
- reasons.
- ```proto
- optional bool unverified_lazy = 15 [default = false];
- ```
- deprecated:
- Is this field deprecated?
- Depending on the target platform, this can emit Deprecated annotations
- for accessors, or it will be completely ignored; in the very least, this
- is a formalization for deprecating fields.
- ```proto
- optional bool deprecated = 3 [default = false];
- ```
- weak:
- DEPRECATED. DO NOT USE!
- For Google-internal migration only. Do not use.
- ```proto
- optional bool weak = 10 [default = false, deprecated = true];
- ```
- debug_redact:
- Indicate that the field value should not be printed out when using debug
- formats, e.g. when the field contains sensitive credentials.
- ```proto
- optional bool debug_redact = 16 [default = false];
- ```
- retention:
- ```proto
- optional google.protobuf.FieldOptions.OptionRetention retention = 17;
- ```
- targets:
- ```proto
- repeated google.protobuf.FieldOptions.OptionTargetType targets = 19 [packed = false];
- ```
- edition_defaults:
- ```proto
- repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
- ```
- features:
- Any features defined in the specific edition.
- WARNING: This field should only be used by protobuf plugins or special
- cases like the proto compiler. Other uses are discouraged and
- developers should rely on the protoreflect APIs for their client language.
- ```proto
- optional google.protobuf.FeatureSet features = 21;
- ```
- feature_support:
- ```proto
- optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22;
- ```
- uninterpreted_option:
- The parser stores options it doesn't recognize here. See above.
- ```proto
- repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
- ```
- """
- __slots__ = (
- "ctype",
- "packed",
- "jstype",
- "lazy",
- "unverified_lazy",
- "deprecated",
- "weak",
- "debug_redact",
- "retention",
- "targets",
- "edition_defaults",
- "features",
- "feature_support",
- "uninterpreted_option",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- ctype: FieldOptions.CType | None = None,
- packed: bool | None = None,
- jstype: FieldOptions.JSType | None = None,
- lazy: bool | None = None,
- unverified_lazy: bool | None = None,
- deprecated: bool | None = None,
- weak: bool | None = None,
- debug_redact: bool | None = None,
- retention: FieldOptions.OptionRetention | None = None,
- targets: list[FieldOptions.OptionTargetType] | None = None,
- edition_defaults: list[FieldOptions.EditionDefault] | None = None,
- features: FeatureSet | None = None,
- feature_support: FieldOptions.FeatureSupport | None = None,
- uninterpreted_option: list[UninterpretedOption] | None = None,
- ) -> None:
- pass
- ctype: FieldOptions.CType
- packed: bool
- jstype: FieldOptions.JSType
- lazy: bool
- unverified_lazy: bool
- deprecated: bool
- weak: bool
- debug_redact: bool
- retention: FieldOptions.OptionRetention
- targets: list[FieldOptions.OptionTargetType]
- edition_defaults: list[FieldOptions.EditionDefault]
- features: FeatureSet | None
- feature_support: FieldOptions.FeatureSupport | None
- uninterpreted_option: list[UninterpretedOption]
- _EditionDefaultFields: TypeAlias = Literal["edition", "value"]
- class EditionDefault(Message[_EditionDefaultFields]):
- """
- ```proto
- message google.protobuf.FieldOptions.EditionDefault
- ```
- Attributes:
- edition:
- ```proto
- optional google.protobuf.Edition edition = 3;
- ```
- value:
- Textproto value.
- ```proto
- optional string value = 2;
- ```
- """
- __slots__ = ("edition", "value")
- if TYPE_CHECKING:
- def __init__(
- self, *, edition: Edition | None = None, value: str | None = None
- ) -> None:
- pass
- edition: Edition
- value: str
- _FeatureSupportFields: TypeAlias = Literal[
- "edition_introduced",
- "edition_deprecated",
- "deprecation_warning",
- "edition_removed",
- "removal_error",
- ]
- class FeatureSupport(Message[_FeatureSupportFields]):
- """
- Information about the support window of a feature.
- ```proto
- message google.protobuf.FieldOptions.FeatureSupport
- ```
- Attributes:
- edition_introduced:
- The edition that this feature was first available in. In editions
- earlier than this one, the default assigned to EDITION_LEGACY will be
- used, and proto files will not be able to override it.
- ```proto
- optional google.protobuf.Edition edition_introduced = 1;
- ```
- edition_deprecated:
- The edition this feature becomes deprecated in. Using this after this
- edition may trigger warnings.
- ```proto
- optional google.protobuf.Edition edition_deprecated = 2;
- ```
- deprecation_warning:
- The deprecation warning text if this feature is used after the edition it
- was marked deprecated in.
- ```proto
- optional string deprecation_warning = 3;
- ```
- edition_removed:
- The edition this feature is no longer available in. In editions after
- this one, the last default assigned will be used, and proto files will
- not be able to override it.
- ```proto
- optional google.protobuf.Edition edition_removed = 4;
- ```
- removal_error:
- The removal error text if this feature is used after the edition it was
- removed in.
- ```proto
- optional string removal_error = 5;
- ```
- """
- __slots__ = (
- "edition_introduced",
- "edition_deprecated",
- "deprecation_warning",
- "edition_removed",
- "removal_error",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- edition_introduced: Edition | None = None,
- edition_deprecated: Edition | None = None,
- deprecation_warning: str | None = None,
- edition_removed: Edition | None = None,
- removal_error: str | None = None,
- ) -> None:
- pass
- edition_introduced: Edition
- edition_deprecated: Edition
- deprecation_warning: str
- edition_removed: Edition
- removal_error: str
- class CType(Enum):
- """
- ```proto
- enum google.protobuf.FieldOptions.CType
- ```
- Attributes:
- STRING:
- Default mode.
- ```proto
- STRING = 0
- ```
- CORD:
- The option [ctype=CORD] may be applied to a non-repeated field of type
- "bytes". It indicates that in C++, the data should be stored in a Cord
- instead of a string. For very large strings, this may reduce memory
- fragmentation. It may also allow better performance when parsing from a
- Cord, or when parsing with aliasing enabled, as the parsed Cord may then
- alias the original buffer.
- ```proto
- CORD = 1
- ```
- STRING_PIECE:
- ```proto
- STRING_PIECE = 2
- ```
- """
- STRING = 0
- CORD = 1
- STRING_PIECE = 2
- class JSType(Enum):
- """
- ```proto
- enum google.protobuf.FieldOptions.JSType
- ```
- Attributes:
- JS_NORMAL:
- Use the default type.
- ```proto
- JS_NORMAL = 0
- ```
- JS_STRING:
- Use JavaScript strings.
- ```proto
- JS_STRING = 1
- ```
- JS_NUMBER:
- Use JavaScript numbers.
- ```proto
- JS_NUMBER = 2
- ```
- """
- JS_NORMAL = 0
- JS_STRING = 1
- JS_NUMBER = 2
- class OptionRetention(Enum):
- """
- If set to RETENTION_SOURCE, the option will be omitted from the binary.
- ```proto
- enum google.protobuf.FieldOptions.OptionRetention
- ```
- Attributes:
- RETENTION_UNKNOWN:
- ```proto
- RETENTION_UNKNOWN = 0
- ```
- RETENTION_RUNTIME:
- ```proto
- RETENTION_RUNTIME = 1
- ```
- RETENTION_SOURCE:
- ```proto
- RETENTION_SOURCE = 2
- ```
- """
- RETENTION_UNKNOWN = 0
- RETENTION_RUNTIME = 1
- RETENTION_SOURCE = 2
- class OptionTargetType(Enum):
- """
- This indicates the types of entities that the field may apply to when used
- as an option. If it is unset, then the field may be freely used as an
- option on any kind of entity.
- ```proto
- enum google.protobuf.FieldOptions.OptionTargetType
- ```
- Attributes:
- TARGET_TYPE_UNKNOWN:
- ```proto
- TARGET_TYPE_UNKNOWN = 0
- ```
- TARGET_TYPE_FILE:
- ```proto
- TARGET_TYPE_FILE = 1
- ```
- TARGET_TYPE_EXTENSION_RANGE:
- ```proto
- TARGET_TYPE_EXTENSION_RANGE = 2
- ```
- TARGET_TYPE_MESSAGE:
- ```proto
- TARGET_TYPE_MESSAGE = 3
- ```
- TARGET_TYPE_FIELD:
- ```proto
- TARGET_TYPE_FIELD = 4
- ```
- TARGET_TYPE_ONEOF:
- ```proto
- TARGET_TYPE_ONEOF = 5
- ```
- TARGET_TYPE_ENUM:
- ```proto
- TARGET_TYPE_ENUM = 6
- ```
- TARGET_TYPE_ENUM_ENTRY:
- ```proto
- TARGET_TYPE_ENUM_ENTRY = 7
- ```
- TARGET_TYPE_SERVICE:
- ```proto
- TARGET_TYPE_SERVICE = 8
- ```
- TARGET_TYPE_METHOD:
- ```proto
- TARGET_TYPE_METHOD = 9
- ```
- """
- TARGET_TYPE_UNKNOWN = 0
- TARGET_TYPE_FILE = 1
- TARGET_TYPE_EXTENSION_RANGE = 2
- TARGET_TYPE_MESSAGE = 3
- TARGET_TYPE_FIELD = 4
- TARGET_TYPE_ONEOF = 5
- TARGET_TYPE_ENUM = 6
- TARGET_TYPE_ENUM_ENTRY = 7
- TARGET_TYPE_SERVICE = 8
- TARGET_TYPE_METHOD = 9
- _OneofOptionsFields: TypeAlias = Literal["features", "uninterpreted_option"]
- class OneofOptions(Message[_OneofOptionsFields]):
- """
- ```proto
- message google.protobuf.OneofOptions
- ```
- Attributes:
- features:
- Any features defined in the specific edition.
- WARNING: This field should only be used by protobuf plugins or special
- cases like the proto compiler. Other uses are discouraged and
- developers should rely on the protoreflect APIs for their client language.
- ```proto
- optional google.protobuf.FeatureSet features = 1;
- ```
- uninterpreted_option:
- The parser stores options it doesn't recognize here. See above.
- ```proto
- repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
- ```
- """
- __slots__ = ("features", "uninterpreted_option")
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- features: FeatureSet | None = None,
- uninterpreted_option: list[UninterpretedOption] | None = None,
- ) -> None:
- pass
- features: FeatureSet | None
- uninterpreted_option: list[UninterpretedOption]
- _EnumOptionsFields: TypeAlias = Literal[
- "allow_alias",
- "deprecated",
- "deprecated_legacy_json_field_conflicts",
- "features",
- "uninterpreted_option",
- ]
- class EnumOptions(Message[_EnumOptionsFields]):
- """
- ```proto
- message google.protobuf.EnumOptions
- ```
- Attributes:
- allow_alias:
- Set this option to true to allow mapping different tag names to the same
- value.
- ```proto
- optional bool allow_alias = 2;
- ```
- deprecated:
- Is this enum deprecated?
- Depending on the target platform, this can emit Deprecated annotations
- for the enum, or it will be completely ignored; in the very least, this
- is a formalization for deprecating enums.
- ```proto
- optional bool deprecated = 3 [default = false];
- ```
- deprecated_legacy_json_field_conflicts:
- Enable the legacy handling of JSON field name conflicts. This lowercases
- and strips underscored from the fields before comparison in proto3 only.
- The new behavior takes `json_name` into account and applies to proto2 as
- well.
- TODO Remove this legacy behavior once downstream teams have
- had time to migrate.
- ```proto
- optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
- ```
- features:
- Any features defined in the specific edition.
- WARNING: This field should only be used by protobuf plugins or special
- cases like the proto compiler. Other uses are discouraged and
- developers should rely on the protoreflect APIs for their client language.
- ```proto
- optional google.protobuf.FeatureSet features = 7;
- ```
- uninterpreted_option:
- The parser stores options it doesn't recognize here. See above.
- ```proto
- repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
- ```
- """
- __slots__ = (
- "allow_alias",
- "deprecated",
- "deprecated_legacy_json_field_conflicts",
- "features",
- "uninterpreted_option",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- allow_alias: bool | None = None,
- deprecated: bool | None = None,
- deprecated_legacy_json_field_conflicts: bool | None = None,
- features: FeatureSet | None = None,
- uninterpreted_option: list[UninterpretedOption] | None = None,
- ) -> None:
- pass
- allow_alias: bool
- deprecated: bool
- deprecated_legacy_json_field_conflicts: bool
- features: FeatureSet | None
- uninterpreted_option: list[UninterpretedOption]
- _EnumValueOptionsFields: TypeAlias = Literal[
- "deprecated", "features", "debug_redact", "feature_support", "uninterpreted_option"
- ]
- class EnumValueOptions(Message[_EnumValueOptionsFields]):
- """
- ```proto
- message google.protobuf.EnumValueOptions
- ```
- Attributes:
- deprecated:
- Is this enum value deprecated?
- Depending on the target platform, this can emit Deprecated annotations
- for the enum value, or it will be completely ignored; in the very least,
- this is a formalization for deprecating enum values.
- ```proto
- optional bool deprecated = 1 [default = false];
- ```
- features:
- Any features defined in the specific edition.
- WARNING: This field should only be used by protobuf plugins or special
- cases like the proto compiler. Other uses are discouraged and
- developers should rely on the protoreflect APIs for their client language.
- ```proto
- optional google.protobuf.FeatureSet features = 2;
- ```
- debug_redact:
- Indicate that fields annotated with this enum value should not be printed
- out when using debug formats, e.g. when the field contains sensitive
- credentials.
- ```proto
- optional bool debug_redact = 3 [default = false];
- ```
- feature_support:
- Information about the support window of a feature value.
- ```proto
- optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4;
- ```
- uninterpreted_option:
- The parser stores options it doesn't recognize here. See above.
- ```proto
- repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
- ```
- """
- __slots__ = (
- "deprecated",
- "features",
- "debug_redact",
- "feature_support",
- "uninterpreted_option",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- deprecated: bool | None = None,
- features: FeatureSet | None = None,
- debug_redact: bool | None = None,
- feature_support: FieldOptions.FeatureSupport | None = None,
- uninterpreted_option: list[UninterpretedOption] | None = None,
- ) -> None:
- pass
- deprecated: bool
- features: FeatureSet | None
- debug_redact: bool
- feature_support: FieldOptions.FeatureSupport | None
- uninterpreted_option: list[UninterpretedOption]
- _ServiceOptionsFields: TypeAlias = Literal[
- "features", "deprecated", "uninterpreted_option"
- ]
- class ServiceOptions(Message[_ServiceOptionsFields]):
- """
- ```proto
- message google.protobuf.ServiceOptions
- ```
- Attributes:
- features:
- Any features defined in the specific edition.
- WARNING: This field should only be used by protobuf plugins or special
- cases like the proto compiler. Other uses are discouraged and
- developers should rely on the protoreflect APIs for their client language.
- ```proto
- optional google.protobuf.FeatureSet features = 34;
- ```
- deprecated:
- Is this service deprecated?
- Depending on the target platform, this can emit Deprecated annotations
- for the service, or it will be completely ignored; in the very least,
- this is a formalization for deprecating services.
- ```proto
- optional bool deprecated = 33 [default = false];
- ```
- uninterpreted_option:
- The parser stores options it doesn't recognize here. See above.
- ```proto
- repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
- ```
- """
- __slots__ = ("features", "deprecated", "uninterpreted_option")
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- features: FeatureSet | None = None,
- deprecated: bool | None = None,
- uninterpreted_option: list[UninterpretedOption] | None = None,
- ) -> None:
- pass
- features: FeatureSet | None
- deprecated: bool
- uninterpreted_option: list[UninterpretedOption]
- _MethodOptionsFields: TypeAlias = Literal[
- "deprecated", "idempotency_level", "features", "uninterpreted_option"
- ]
- class MethodOptions(Message[_MethodOptionsFields]):
- """
- ```proto
- message google.protobuf.MethodOptions
- ```
- Attributes:
- deprecated:
- Is this method deprecated?
- Depending on the target platform, this can emit Deprecated annotations
- for the method, or it will be completely ignored; in the very least,
- this is a formalization for deprecating methods.
- ```proto
- optional bool deprecated = 33 [default = false];
- ```
- idempotency_level:
- ```proto
- optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
- ```
- features:
- Any features defined in the specific edition.
- WARNING: This field should only be used by protobuf plugins or special
- cases like the proto compiler. Other uses are discouraged and
- developers should rely on the protoreflect APIs for their client language.
- ```proto
- optional google.protobuf.FeatureSet features = 35;
- ```
- uninterpreted_option:
- The parser stores options it doesn't recognize here. See above.
- ```proto
- repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
- ```
- """
- __slots__ = ("deprecated", "idempotency_level", "features", "uninterpreted_option")
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- deprecated: bool | None = None,
- idempotency_level: MethodOptions.IdempotencyLevel | None = None,
- features: FeatureSet | None = None,
- uninterpreted_option: list[UninterpretedOption] | None = None,
- ) -> None:
- pass
- deprecated: bool
- idempotency_level: MethodOptions.IdempotencyLevel
- features: FeatureSet | None
- uninterpreted_option: list[UninterpretedOption]
- class IdempotencyLevel(Enum):
- """
- Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
- or neither? HTTP based RPC implementation may choose GET verb for safe
- methods, and PUT verb for idempotent methods instead of the default POST.
- ```proto
- enum google.protobuf.MethodOptions.IdempotencyLevel
- ```
- Attributes:
- IDEMPOTENCY_UNKNOWN:
- ```proto
- IDEMPOTENCY_UNKNOWN = 0
- ```
- NO_SIDE_EFFECTS:
- implies idempotent
- ```proto
- NO_SIDE_EFFECTS = 1
- ```
- IDEMPOTENT:
- idempotent, but may have side effects
- ```proto
- IDEMPOTENT = 2
- ```
- """
- IDEMPOTENCY_UNKNOWN = 0
- NO_SIDE_EFFECTS = 1
- IDEMPOTENT = 2
- _UninterpretedOptionFields: TypeAlias = Literal[
- "name",
- "identifier_value",
- "positive_int_value",
- "negative_int_value",
- "double_value",
- "string_value",
- "aggregate_value",
- ]
- class UninterpretedOption(Message[_UninterpretedOptionFields]):
- """
- A message representing a option the parser does not recognize. This only
- appears in options protos created by the compiler::Parser class.
- DescriptorPool resolves these when building Descriptor objects. Therefore,
- options protos in descriptor objects (e.g. returned by Descriptor::options(),
- or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
- in them.
- ```proto
- message google.protobuf.UninterpretedOption
- ```
- Attributes:
- name:
- ```proto
- repeated google.protobuf.UninterpretedOption.NamePart name = 2;
- ```
- identifier_value:
- The value of the uninterpreted option, in whatever type the tokenizer
- identified it as during parsing. Exactly one of these should be set.
- ```proto
- optional string identifier_value = 3;
- ```
- positive_int_value:
- ```proto
- optional uint64 positive_int_value = 4;
- ```
- negative_int_value:
- ```proto
- optional int64 negative_int_value = 5;
- ```
- double_value:
- ```proto
- optional double double_value = 6;
- ```
- string_value:
- ```proto
- optional bytes string_value = 7;
- ```
- aggregate_value:
- ```proto
- optional string aggregate_value = 8;
- ```
- """
- __slots__ = (
- "name",
- "identifier_value",
- "positive_int_value",
- "negative_int_value",
- "double_value",
- "string_value",
- "aggregate_value",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- name: list[UninterpretedOption.NamePart] | None = None,
- identifier_value: str | None = None,
- positive_int_value: int | None = None,
- negative_int_value: int | None = None,
- double_value: float | None = None,
- string_value: bytes | None = None,
- aggregate_value: str | None = None,
- ) -> None:
- pass
- name: list[UninterpretedOption.NamePart]
- identifier_value: str
- positive_int_value: int
- negative_int_value: int
- double_value: float
- string_value: bytes
- aggregate_value: str
- _NamePartFields: TypeAlias = Literal["name_part", "is_extension"]
- class NamePart(Message[_NamePartFields]):
- """
- The name of the uninterpreted option. Each string represents a segment in
- a dot-separated name. is_extension is true iff a segment represents an
- extension (denoted with parentheses in options specs in .proto files).
- E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
- "foo.(bar.baz).moo".
- ```proto
- message google.protobuf.UninterpretedOption.NamePart
- ```
- Attributes:
- name_part:
- ```proto
- required string name_part = 1;
- ```
- is_extension:
- ```proto
- required bool is_extension = 2;
- ```
- """
- __slots__ = ("name_part", "is_extension")
- if TYPE_CHECKING:
- def __init__(
- self, *, name_part: str | None = None, is_extension: bool | None = None
- ) -> None:
- pass
- name_part: str
- is_extension: bool
- _FeatureSetFields: TypeAlias = Literal[
- "field_presence",
- "enum_type",
- "repeated_field_encoding",
- "utf8_validation",
- "message_encoding",
- "json_format",
- "enforce_naming_style",
- "default_symbol_visibility",
- ]
- class FeatureSet(Message[_FeatureSetFields]):
- """
- TODO Enums in C++ gencode (and potentially other languages) are
- not well scoped. This means that each of the feature enums below can clash
- with each other. The short names we've chosen maximize call-site
- readability, but leave us very open to this scenario. A future feature will
- be designed and implemented to handle this, hopefully before we ever hit a
- conflict here.
- ```proto
- message google.protobuf.FeatureSet
- ```
- Attributes:
- field_presence:
- ```proto
- optional google.protobuf.FeatureSet.FieldPresence field_presence = 1;
- ```
- enum_type:
- ```proto
- optional google.protobuf.FeatureSet.EnumType enum_type = 2;
- ```
- repeated_field_encoding:
- ```proto
- optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3;
- ```
- utf8_validation:
- ```proto
- optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4;
- ```
- message_encoding:
- ```proto
- optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5;
- ```
- json_format:
- ```proto
- optional google.protobuf.FeatureSet.JsonFormat json_format = 6;
- ```
- enforce_naming_style:
- ```proto
- optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7;
- ```
- default_symbol_visibility:
- ```proto
- optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8;
- ```
- """
- __slots__ = (
- "field_presence",
- "enum_type",
- "repeated_field_encoding",
- "utf8_validation",
- "message_encoding",
- "json_format",
- "enforce_naming_style",
- "default_symbol_visibility",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- field_presence: FeatureSet.FieldPresence | None = None,
- enum_type: FeatureSet.EnumType | None = None,
- repeated_field_encoding: FeatureSet.RepeatedFieldEncoding | None = None,
- utf8_validation: FeatureSet.Utf8Validation | None = None,
- message_encoding: FeatureSet.MessageEncoding | None = None,
- json_format: FeatureSet.JsonFormat | None = None,
- enforce_naming_style: FeatureSet.EnforceNamingStyle | None = None,
- default_symbol_visibility: FeatureSet.VisibilityFeature.DefaultSymbolVisibility
- | None = None,
- ) -> None:
- pass
- field_presence: FeatureSet.FieldPresence
- enum_type: FeatureSet.EnumType
- repeated_field_encoding: FeatureSet.RepeatedFieldEncoding
- utf8_validation: FeatureSet.Utf8Validation
- message_encoding: FeatureSet.MessageEncoding
- json_format: FeatureSet.JsonFormat
- enforce_naming_style: FeatureSet.EnforceNamingStyle
- default_symbol_visibility: FeatureSet.VisibilityFeature.DefaultSymbolVisibility
- _VisibilityFeatureFields: TypeAlias = NoReturn
- class VisibilityFeature(Message[_VisibilityFeatureFields]):
- """
- ```proto
- message google.protobuf.FeatureSet.VisibilityFeature
- ```
- """
- __slots__ = ()
- if TYPE_CHECKING:
- def __init__(self) -> None:
- pass
- class DefaultSymbolVisibility(Enum):
- """
- ```proto
- enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility
- ```
- Attributes:
- UNKNOWN:
- ```proto
- DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0
- ```
- EXPORT_ALL:
- Default pre-EDITION_2024, all UNSET visibility are export.
- ```proto
- EXPORT_ALL = 1
- ```
- EXPORT_TOP_LEVEL:
- All top-level symbols default to export, nested default to local.
- ```proto
- EXPORT_TOP_LEVEL = 2
- ```
- LOCAL_ALL:
- All symbols default to local.
- ```proto
- LOCAL_ALL = 3
- ```
- STRICT:
- All symbols local by default. Nested types cannot be exported.
- With special case caveat for message { enum {} reserved 1 to max; }
- This is the recommended setting for new protos.
- ```proto
- STRICT = 4
- ```
- """
- UNKNOWN = 0
- EXPORT_ALL = 1
- EXPORT_TOP_LEVEL = 2
- LOCAL_ALL = 3
- STRICT = 4
- class FieldPresence(Enum):
- """
- ```proto
- enum google.protobuf.FeatureSet.FieldPresence
- ```
- Attributes:
- UNKNOWN:
- ```proto
- FIELD_PRESENCE_UNKNOWN = 0
- ```
- EXPLICIT:
- ```proto
- EXPLICIT = 1
- ```
- IMPLICIT:
- ```proto
- IMPLICIT = 2
- ```
- LEGACY_REQUIRED:
- ```proto
- LEGACY_REQUIRED = 3
- ```
- """
- UNKNOWN = 0
- EXPLICIT = 1
- IMPLICIT = 2
- LEGACY_REQUIRED = 3
- class EnumType(Enum):
- """
- ```proto
- enum google.protobuf.FeatureSet.EnumType
- ```
- Attributes:
- UNKNOWN:
- ```proto
- ENUM_TYPE_UNKNOWN = 0
- ```
- OPEN:
- ```proto
- OPEN = 1
- ```
- CLOSED:
- ```proto
- CLOSED = 2
- ```
- """
- UNKNOWN = 0
- OPEN = 1
- CLOSED = 2
- class RepeatedFieldEncoding(Enum):
- """
- ```proto
- enum google.protobuf.FeatureSet.RepeatedFieldEncoding
- ```
- Attributes:
- UNKNOWN:
- ```proto
- REPEATED_FIELD_ENCODING_UNKNOWN = 0
- ```
- PACKED:
- ```proto
- PACKED = 1
- ```
- EXPANDED:
- ```proto
- EXPANDED = 2
- ```
- """
- UNKNOWN = 0
- PACKED = 1
- EXPANDED = 2
- class Utf8Validation(Enum):
- """
- ```proto
- enum google.protobuf.FeatureSet.Utf8Validation
- ```
- Attributes:
- UNKNOWN:
- ```proto
- UTF8_VALIDATION_UNKNOWN = 0
- ```
- VERIFY:
- ```proto
- VERIFY = 2
- ```
- NONE:
- ```proto
- NONE = 3
- ```
- """
- UNKNOWN = 0
- VERIFY = 2
- NONE = 3
- class MessageEncoding(Enum):
- """
- ```proto
- enum google.protobuf.FeatureSet.MessageEncoding
- ```
- Attributes:
- UNKNOWN:
- ```proto
- MESSAGE_ENCODING_UNKNOWN = 0
- ```
- LENGTH_PREFIXED:
- ```proto
- LENGTH_PREFIXED = 1
- ```
- DELIMITED:
- ```proto
- DELIMITED = 2
- ```
- """
- UNKNOWN = 0
- LENGTH_PREFIXED = 1
- DELIMITED = 2
- class JsonFormat(Enum):
- """
- ```proto
- enum google.protobuf.FeatureSet.JsonFormat
- ```
- Attributes:
- UNKNOWN:
- ```proto
- JSON_FORMAT_UNKNOWN = 0
- ```
- ALLOW:
- ```proto
- ALLOW = 1
- ```
- LEGACY_BEST_EFFORT:
- ```proto
- LEGACY_BEST_EFFORT = 2
- ```
- """
- UNKNOWN = 0
- ALLOW = 1
- LEGACY_BEST_EFFORT = 2
- class EnforceNamingStyle(Enum):
- """
- ```proto
- enum google.protobuf.FeatureSet.EnforceNamingStyle
- ```
- Attributes:
- UNKNOWN:
- ```proto
- ENFORCE_NAMING_STYLE_UNKNOWN = 0
- ```
- STYLE2024:
- ```proto
- STYLE2024 = 1
- ```
- STYLE_LEGACY:
- ```proto
- STYLE_LEGACY = 2
- ```
- STYLE2026:
- ```proto
- STYLE2026 = 3
- ```
- """
- UNKNOWN = 0
- STYLE2024 = 1
- STYLE_LEGACY = 2
- STYLE2026 = 3
- _FeatureSetDefaultsFields: TypeAlias = Literal[
- "defaults", "minimum_edition", "maximum_edition"
- ]
- class FeatureSetDefaults(Message[_FeatureSetDefaultsFields]):
- """
- A compiled specification for the defaults of a set of features. These
- messages are generated from FeatureSet extensions and can be used to seed
- feature resolution. The resolution with this object becomes a simple search
- for the closest matching edition, followed by proto merges.
- ```proto
- message google.protobuf.FeatureSetDefaults
- ```
- Attributes:
- defaults:
- ```proto
- repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
- ```
- minimum_edition:
- The minimum supported edition (inclusive) when this was constructed.
- Editions before this will not have defaults.
- ```proto
- optional google.protobuf.Edition minimum_edition = 4;
- ```
- maximum_edition:
- The maximum known edition (inclusive) when this was constructed. Editions
- after this will not have reliable defaults.
- ```proto
- optional google.protobuf.Edition maximum_edition = 5;
- ```
- """
- __slots__ = ("defaults", "minimum_edition", "maximum_edition")
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- defaults: list[FeatureSetDefaults.FeatureSetEditionDefault] | None = None,
- minimum_edition: Edition | None = None,
- maximum_edition: Edition | None = None,
- ) -> None:
- pass
- defaults: list[FeatureSetDefaults.FeatureSetEditionDefault]
- minimum_edition: Edition
- maximum_edition: Edition
- _FeatureSetEditionDefaultFields: TypeAlias = Literal[
- "edition", "overridable_features", "fixed_features"
- ]
- class FeatureSetEditionDefault(Message[_FeatureSetEditionDefaultFields]):
- """
- A map from every known edition with a unique set of defaults to its
- defaults. Not all editions may be contained here. For a given edition,
- the defaults at the closest matching edition ordered at or before it should
- be used. This field must be in strict ascending order by edition.
- ```proto
- message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
- ```
- Attributes:
- edition:
- ```proto
- optional google.protobuf.Edition edition = 3;
- ```
- overridable_features:
- Defaults of features that can be overridden in this edition.
- ```proto
- optional google.protobuf.FeatureSet overridable_features = 4;
- ```
- fixed_features:
- Defaults of features that can't be overridden in this edition.
- ```proto
- optional google.protobuf.FeatureSet fixed_features = 5;
- ```
- """
- __slots__ = ("edition", "overridable_features", "fixed_features")
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- edition: Edition | None = None,
- overridable_features: FeatureSet | None = None,
- fixed_features: FeatureSet | None = None,
- ) -> None:
- pass
- edition: Edition
- overridable_features: FeatureSet | None
- fixed_features: FeatureSet | None
- _SourceCodeInfoFields: TypeAlias = Literal["location"]
- class SourceCodeInfo(Message[_SourceCodeInfoFields]):
- """
- Encapsulates information about the original source file from which a
- FileDescriptorProto was generated.
- ```proto
- message google.protobuf.SourceCodeInfo
- ```
- Attributes:
- location:
- A Location identifies a piece of source code in a .proto file which
- corresponds to a particular definition. This information is intended
- to be useful to IDEs, code indexers, documentation generators, and similar
- tools.
- For example, say we have a file like:
- message Foo {
- optional string foo = 1;
- }
- Let's look at just the field definition:
- optional string foo = 1;
- ^ ^^ ^^ ^ ^^^
- a bc de f ghi
- We have the following locations:
- span path represents
- [a,i) [ 4, 0, 2, 0 ] The whole field definition.
- [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
- [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
- [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
- [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
- Notes:
- - A location may refer to a repeated field itself (i.e. not to any
- particular index within it). This is used whenever a set of elements are
- logically enclosed in a single code segment. For example, an entire
- extend block (possibly containing multiple extension definitions) will
- have an outer location whose path refers to the "extensions" repeated
- field without an index.
- - Multiple locations may have the same path. This happens when a single
- logical declaration is spread out across multiple places. The most
- obvious example is the "extend" block again -- there may be multiple
- extend blocks in the same scope, each of which will have the same path.
- - A location's span is not always a subset of its parent's span. For
- example, the "extendee" of an extension declaration appears at the
- beginning of the "extend" block and is shared by all extensions within
- the block.
- - Just because a location's span is a subset of some other location's span
- does not mean that it is a descendant. For example, a "group" defines
- both a type and a field in a single declaration. Thus, the locations
- corresponding to the type and field and their components will overlap.
- - Code which tries to interpret locations should probably be designed to
- ignore those that it doesn't understand, as more types of locations could
- be recorded in the future.
- ```proto
- repeated google.protobuf.SourceCodeInfo.Location location = 1;
- ```
- """
- __slots__ = ("location",)
- if TYPE_CHECKING:
- def __init__(
- self, *, location: list[SourceCodeInfo.Location] | None = None
- ) -> None:
- pass
- location: list[SourceCodeInfo.Location]
- _LocationFields: TypeAlias = Literal[
- "path",
- "span",
- "leading_comments",
- "trailing_comments",
- "leading_detached_comments",
- ]
- class Location(Message[_LocationFields]):
- """
- ```proto
- message google.protobuf.SourceCodeInfo.Location
- ```
- Attributes:
- path:
- Identifies which part of the FileDescriptorProto was defined at this
- location.
- Each element is a field number or an index. They form a path from
- the root FileDescriptorProto to the place where the definition appears.
- For example, this path:
- [ 4, 3, 2, 7, 1 ]
- refers to:
- file.message_type(3) // 4, 3
- .field(7) // 2, 7
- .name() // 1
- This is because FileDescriptorProto.message_type has field number 4:
- repeated DescriptorProto message_type = 4;
- and DescriptorProto.field has field number 2:
- repeated FieldDescriptorProto field = 2;
- and FieldDescriptorProto.name has field number 1:
- optional string name = 1;
- Thus, the above path gives the location of a field name. If we removed
- the last element:
- [ 4, 3, 2, 7 ]
- this path refers to the whole field declaration (from the beginning
- of the label to the terminating semicolon).
- ```proto
- repeated int32 path = 1 [packed = true];
- ```
- span:
- Always has exactly three or four elements: start line, start column,
- end line (optional, otherwise assumed same as start line), end column.
- These are packed into a single field for efficiency. Note that line
- and column numbers are zero-based -- typically you will want to add
- 1 to each before displaying to a user.
- ```proto
- repeated int32 span = 2 [packed = true];
- ```
- leading_comments:
- If this SourceCodeInfo represents a complete declaration, these are any
- comments appearing before and after the declaration which appear to be
- attached to the declaration.
- A series of line comments appearing on consecutive lines, with no other
- tokens appearing on those lines, will be treated as a single comment.
- leading_detached_comments will keep paragraphs of comments that appear
- before (but not connected to) the current element. Each paragraph,
- separated by empty lines, will be one comment element in the repeated
- field.
- Only the comment content is provided; comment markers (e.g. //) are
- stripped out. For block comments, leading whitespace and an asterisk
- will be stripped from the beginning of each line other than the first.
- Newlines are included in the output.
- Examples:
- optional int32 foo = 1; // Comment attached to foo.
- // Comment attached to bar.
- optional int32 bar = 2;
- optional string baz = 3;
- // Comment attached to baz.
- // Another line attached to baz.
- // Comment attached to moo.
- //
- // Another line attached to moo.
- optional double moo = 4;
- // Detached comment for corge. This is not leading or trailing comments
- // to moo or corge because there are blank lines separating it from
- // both.
- // Detached comment for corge paragraph 2.
- optional string corge = 5;
- /* Block comment attached
- * to corge. Leading asterisks
- * will be removed. */
- /* Block comment attached to
- * grault. */
- optional int32 grault = 6;
- // ignored detached comments.
- ```proto
- optional string leading_comments = 3;
- ```
- trailing_comments:
- ```proto
- optional string trailing_comments = 4;
- ```
- leading_detached_comments:
- ```proto
- repeated string leading_detached_comments = 6;
- ```
- """
- __slots__ = (
- "path",
- "span",
- "leading_comments",
- "trailing_comments",
- "leading_detached_comments",
- )
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- path: list[int] | None = None,
- span: list[int] | None = None,
- leading_comments: str | None = None,
- trailing_comments: str | None = None,
- leading_detached_comments: list[str] | None = None,
- ) -> None:
- pass
- path: list[int]
- span: list[int]
- leading_comments: str
- trailing_comments: str
- leading_detached_comments: list[str]
- _GeneratedCodeInfoFields: TypeAlias = Literal["annotation"]
- class GeneratedCodeInfo(Message[_GeneratedCodeInfoFields]):
- """
- Describes the relationship between generated code and its original source
- file. A GeneratedCodeInfo message is associated with only one generated
- source file, but may contain references to different source .proto files.
- ```proto
- message google.protobuf.GeneratedCodeInfo
- ```
- Attributes:
- annotation:
- An Annotation connects some span of text in generated code to an element
- of its generating .proto file.
- ```proto
- repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
- ```
- """
- __slots__ = ("annotation",)
- if TYPE_CHECKING:
- def __init__(
- self, *, annotation: list[GeneratedCodeInfo.Annotation] | None = None
- ) -> None:
- pass
- annotation: list[GeneratedCodeInfo.Annotation]
- _AnnotationFields: TypeAlias = Literal[
- "path", "source_file", "begin", "end", "semantic"
- ]
- class Annotation(Message[_AnnotationFields]):
- """
- ```proto
- message google.protobuf.GeneratedCodeInfo.Annotation
- ```
- Attributes:
- path:
- Identifies the element in the original source .proto file. This field
- is formatted the same as SourceCodeInfo.Location.path.
- ```proto
- repeated int32 path = 1 [packed = true];
- ```
- source_file:
- Identifies the filesystem path to the original source .proto.
- ```proto
- optional string source_file = 2;
- ```
- begin:
- Identifies the starting offset in bytes in the generated code
- that relates to the identified object.
- ```proto
- optional int32 begin = 3;
- ```
- end:
- Identifies the ending offset in bytes in the generated code that
- relates to the identified object. The end offset should be one past
- the last relevant byte (so the length of the text = end - begin).
- ```proto
- optional int32 end = 4;
- ```
- semantic:
- ```proto
- optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
- ```
- """
- __slots__ = ("path", "source_file", "begin", "end", "semantic")
- if TYPE_CHECKING:
- def __init__(
- self,
- *,
- path: list[int] | None = None,
- source_file: str | None = None,
- begin: int | None = None,
- end: int | None = None,
- semantic: GeneratedCodeInfo.Annotation.Semantic | None = None,
- ) -> None:
- pass
- path: list[int]
- source_file: str
- begin: int
- end: int
- semantic: GeneratedCodeInfo.Annotation.Semantic
- class Semantic(Enum):
- """
- Represents the identified object's effect on the element in the original
- .proto file.
- ```proto
- enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic
- ```
- Attributes:
- NONE:
- There is no effect or the effect is indescribable.
- ```proto
- NONE = 0
- ```
- SET:
- The element is set or otherwise mutated.
- ```proto
- SET = 1
- ```
- ALIAS:
- An alias to the element is returned.
- ```proto
- ALIAS = 2
- ```
- """
- NONE = 0
- SET = 1
- ALIAS = 2
- class Edition(Enum):
- """
- The full set of known editions.
- ```proto
- enum google.protobuf.Edition
- ```
- Attributes:
- UNKNOWN:
- A placeholder for an unknown edition value.
- ```proto
- EDITION_UNKNOWN = 0
- ```
- LEGACY:
- A placeholder edition for specifying default behaviors *before* a feature
- was first introduced. This is effectively an "infinite past".
- ```proto
- EDITION_LEGACY = 900
- ```
- PROTO2:
- Legacy syntax "editions". These pre-date editions, but behave much like
- distinct editions. These can't be used to specify the edition of proto
- files, but feature definitions must supply proto2/proto3 defaults for
- backwards compatibility.
- ```proto
- EDITION_PROTO2 = 998
- ```
- PROTO3:
- ```proto
- EDITION_PROTO3 = 999
- ```
- EDITION_2023:
- Editions that have been released. The specific values are arbitrary and
- should not be depended on, but they will always be time-ordered for easy
- comparison.
- ```proto
- EDITION_2023 = 1000
- ```
- EDITION_2024:
- ```proto
- EDITION_2024 = 1001
- ```
- EDITION_2026:
- ```proto
- EDITION_2026 = 1002
- ```
- UNSTABLE:
- A placeholder edition for developing and testing unscheduled features.
- ```proto
- EDITION_UNSTABLE = 9999
- ```
- EDITION_1_TEST_ONLY:
- Placeholder editions for testing feature resolution. These should not be
- used or relied on outside of tests.
- ```proto
- EDITION_1_TEST_ONLY = 1
- ```
- EDITION_2_TEST_ONLY:
- ```proto
- EDITION_2_TEST_ONLY = 2
- ```
- EDITION_99997_TEST_ONLY:
- ```proto
- EDITION_99997_TEST_ONLY = 99997
- ```
- EDITION_99998_TEST_ONLY:
- ```proto
- EDITION_99998_TEST_ONLY = 99998
- ```
- EDITION_99999_TEST_ONLY:
- ```proto
- EDITION_99999_TEST_ONLY = 99999
- ```
- MAX:
- Placeholder for specifying unbounded edition support. This should only
- ever be used by plugins that can expect to never require any changes to
- support a new edition.
- ```proto
- EDITION_MAX = 2147483647
- ```
- """
- UNKNOWN = 0
- LEGACY = 900
- PROTO2 = 998
- PROTO3 = 999
- EDITION_2023 = 1000
- EDITION_2024 = 1001
- EDITION_2026 = 1002
- UNSTABLE = 9999
- EDITION_1_TEST_ONLY = 1
- EDITION_2_TEST_ONLY = 2
- EDITION_99997_TEST_ONLY = 99997
- EDITION_99998_TEST_ONLY = 99998
- EDITION_99999_TEST_ONLY = 99999
- MAX = 2147483647
- class SymbolVisibility(Enum):
- """
- Describes the 'visibility' of a symbol with respect to the proto import
- system. Symbols can only be imported when the visibility rules do not prevent
- it (ex: local symbols cannot be imported). Visibility modifiers can only set
- on `message` and `enum` as they are the only types available to be referenced
- from other files.
- ```proto
- enum google.protobuf.SymbolVisibility
- ```
- Attributes:
- VISIBILITY_UNSET:
- ```proto
- VISIBILITY_UNSET = 0
- ```
- VISIBILITY_LOCAL:
- ```proto
- VISIBILITY_LOCAL = 1
- ```
- VISIBILITY_EXPORT:
- ```proto
- VISIBILITY_EXPORT = 2
- ```
- """
- VISIBILITY_UNSET = 0
- VISIBILITY_LOCAL = 1
- VISIBILITY_EXPORT = 2
- _DESC = boot(
- FileDescriptorProto(
- name="google/protobuf/descriptor.proto",
- package="google.protobuf",
- dependency=[],
- public_dependency=[],
- weak_dependency=[],
- option_dependency=[],
- message_type=[
- DescriptorProto(
- name="FileDescriptorSet",
- field=[
- FieldDescriptorProto(
- name="file",
- number=1,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FileDescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="file",
- options=None,
- proto3_optional=unset(False),
- )
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[
- DescriptorProto.ExtensionRange(
- start=536000000,
- end=536000001,
- options=ExtensionRangeOptions(
- uninterpreted_option=[],
- declaration=[
- ExtensionRangeOptions.Declaration(
- number=536000000,
- full_name=".buf.descriptor.v1.buf_file_descriptor_set_extension",
- type=".buf.descriptor.v1.FileDescriptorSetExtension",
- reserved=unset(False),
- repeated=unset(False),
- )
- ],
- features=None,
- verification=unset(
- ExtensionRangeOptions.VerificationState.UNVERIFIED
- ),
- ),
- )
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="FileDescriptorProto",
- field=[
- FieldDescriptorProto(
- name="name",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="name",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="package",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="package",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="dependency",
- number=3,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="dependency",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="public_dependency",
- number=10,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="publicDependency",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="weak_dependency",
- number=11,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="weakDependency",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="option_dependency",
- number=15,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="optionDependency",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="message_type",
- number=4,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.DescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="messageType",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="enum_type",
- number=5,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.EnumDescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="enumType",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="service",
- number=6,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.ServiceDescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="service",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="extension",
- number=7,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FieldDescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="extension",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="options",
- number=8,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FileOptions",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="options",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="source_code_info",
- number=9,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.SourceCodeInfo",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="sourceCodeInfo",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="syntax",
- number=12,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="syntax",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="edition",
- number=14,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.Edition",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="edition",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="DescriptorProto",
- field=[
- FieldDescriptorProto(
- name="name",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="name",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="field",
- number=2,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FieldDescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="field",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="extension",
- number=6,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FieldDescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="extension",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="nested_type",
- number=3,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.DescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="nestedType",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="enum_type",
- number=4,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.EnumDescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="enumType",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="extension_range",
- number=5,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.DescriptorProto.ExtensionRange",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="extensionRange",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="oneof_decl",
- number=8,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.OneofDescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="oneofDecl",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="options",
- number=7,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.MessageOptions",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="options",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="reserved_range",
- number=9,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.DescriptorProto.ReservedRange",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="reservedRange",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="reserved_name",
- number=10,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="reservedName",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="visibility",
- number=11,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.SymbolVisibility",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="visibility",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[
- DescriptorProto(
- name="ExtensionRange",
- field=[
- FieldDescriptorProto(
- name="start",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="start",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="end",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="end",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="options",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.ExtensionRangeOptions",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="options",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="ReservedRange",
- field=[
- FieldDescriptorProto(
- name="start",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="start",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="end",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="end",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- ],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="ExtensionRangeOptions",
- field=[
- FieldDescriptorProto(
- name="uninterpreted_option",
- number=999,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.UninterpretedOption",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="uninterpretedOption",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="declaration",
- number=2,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.ExtensionRangeOptions.Declaration",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="declaration",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=FieldOptions.OptionRetention.RETENTION_SOURCE,
- targets=[],
- edition_defaults=[],
- features=None,
- feature_support=None,
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="features",
- number=50,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSet",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="features",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="verification",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.ExtensionRangeOptions.VerificationState",
- extendee=unset(""),
- default_value="UNVERIFIED",
- oneof_index=unset(0),
- json_name="verification",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=FieldOptions.OptionRetention.RETENTION_SOURCE,
- targets=[],
- edition_defaults=[],
- features=None,
- feature_support=None,
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[
- DescriptorProto(
- name="Declaration",
- field=[
- FieldDescriptorProto(
- name="number",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="number",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="full_name",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="fullName",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="type",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="type",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="reserved",
- number=5,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="reserved",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="repeated",
- number=6,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="repeated",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[DescriptorProto.ReservedRange(start=4, end=5)],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- enum_type=[
- EnumDescriptorProto(
- name="VerificationState",
- value=[
- EnumValueDescriptorProto(
- name="DECLARATION", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="UNVERIFIED", number=1, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- extension_range=[
- DescriptorProto.ExtensionRange(start=990, end=999, options=None),
- DescriptorProto.ExtensionRange(
- start=1000, end=536870912, options=None
- ),
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="FieldDescriptorProto",
- field=[
- FieldDescriptorProto(
- name="name",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="name",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="number",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="number",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="label",
- number=4,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FieldDescriptorProto.Label",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="label",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="type",
- number=5,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FieldDescriptorProto.Type",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="type",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="type_name",
- number=6,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="typeName",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="extendee",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="extendee",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="default_value",
- number=7,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="defaultValue",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="oneof_index",
- number=9,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="oneofIndex",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="json_name",
- number=10,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="jsonName",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="options",
- number=8,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FieldOptions",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="options",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="proto3_optional",
- number=17,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="proto3Optional",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[
- EnumDescriptorProto(
- name="Type",
- value=[
- EnumValueDescriptorProto(
- name="TYPE_DOUBLE", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_FLOAT", number=2, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_INT64", number=3, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_UINT64", number=4, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_INT32", number=5, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_FIXED64", number=6, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_FIXED32", number=7, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_BOOL", number=8, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_STRING", number=9, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_GROUP", number=10, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_MESSAGE", number=11, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_BYTES", number=12, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_UINT32", number=13, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_ENUM", number=14, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_SFIXED32", number=15, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_SFIXED64", number=16, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_SINT32", number=17, options=None
- ),
- EnumValueDescriptorProto(
- name="TYPE_SINT64", number=18, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- EnumDescriptorProto(
- name="Label",
- value=[
- EnumValueDescriptorProto(
- name="LABEL_OPTIONAL", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="LABEL_REPEATED", number=3, options=None
- ),
- EnumValueDescriptorProto(
- name="LABEL_REQUIRED", number=2, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- ],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="OneofDescriptorProto",
- field=[
- FieldDescriptorProto(
- name="name",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="name",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="options",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.OneofOptions",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="options",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="EnumDescriptorProto",
- field=[
- FieldDescriptorProto(
- name="name",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="name",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="value",
- number=2,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.EnumValueDescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="value",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="options",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.EnumOptions",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="options",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="reserved_range",
- number=4,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.EnumDescriptorProto.EnumReservedRange",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="reservedRange",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="reserved_name",
- number=5,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="reservedName",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="visibility",
- number=6,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.SymbolVisibility",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="visibility",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[
- DescriptorProto(
- name="EnumReservedRange",
- field=[
- FieldDescriptorProto(
- name="start",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="start",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="end",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="end",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="EnumValueDescriptorProto",
- field=[
- FieldDescriptorProto(
- name="name",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="name",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="number",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="number",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="options",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.EnumValueOptions",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="options",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="ServiceDescriptorProto",
- field=[
- FieldDescriptorProto(
- name="name",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="name",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="method",
- number=2,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.MethodDescriptorProto",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="method",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="options",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.ServiceOptions",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="options",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[DescriptorProto.ReservedRange(start=4, end=5)],
- reserved_name=["stream"],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="MethodDescriptorProto",
- field=[
- FieldDescriptorProto(
- name="name",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="name",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="input_type",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="inputType",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="output_type",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="outputType",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="options",
- number=4,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.MethodOptions",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="options",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="client_streaming",
- number=5,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="clientStreaming",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="server_streaming",
- number=6,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="serverStreaming",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="FileOptions",
- field=[
- FieldDescriptorProto(
- name="java_package",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="javaPackage",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="java_outer_classname",
- number=8,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="javaOuterClassname",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="java_multiple_files",
- number=10,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="javaMultipleFiles",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=unset(
- FieldOptions.OptionRetention.RETENTION_UNKNOWN
- ),
- targets=[],
- edition_defaults=[],
- features=None,
- feature_support=FieldOptions.FeatureSupport(
- edition_introduced=Edition.PROTO2,
- edition_deprecated=unset(Edition.UNKNOWN),
- deprecation_warning=unset(""),
- edition_removed=Edition.EDITION_2024,
- 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.",
- ),
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="java_generate_equals_and_hash",
- number=20,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="javaGenerateEqualsAndHash",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=True,
- weak=unset(False),
- debug_redact=unset(False),
- retention=unset(
- FieldOptions.OptionRetention.RETENTION_UNKNOWN
- ),
- targets=[],
- edition_defaults=[],
- features=None,
- feature_support=None,
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="java_string_check_utf8",
- number=27,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="javaStringCheckUtf8",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="optimize_for",
- number=9,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FileOptions.OptimizeMode",
- extendee=unset(""),
- default_value="SPEED",
- oneof_index=unset(0),
- json_name="optimizeFor",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="go_package",
- number=11,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="goPackage",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="cc_generic_services",
- number=16,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="ccGenericServices",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="java_generic_services",
- number=17,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="javaGenericServices",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="py_generic_services",
- number=18,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="pyGenericServices",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="deprecated",
- number=23,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="deprecated",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="cc_enable_arenas",
- number=31,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="true",
- oneof_index=unset(0),
- json_name="ccEnableArenas",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="objc_class_prefix",
- number=36,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="objcClassPrefix",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="csharp_namespace",
- number=37,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="csharpNamespace",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="swift_prefix",
- number=39,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="swiftPrefix",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="php_class_prefix",
- number=40,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="phpClassPrefix",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="php_namespace",
- number=41,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="phpNamespace",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="php_metadata_namespace",
- number=44,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="phpMetadataNamespace",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="ruby_package",
- number=45,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="rubyPackage",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="features",
- number=50,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSet",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="features",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="uninterpreted_option",
- number=999,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.UninterpretedOption",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="uninterpretedOption",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[
- EnumDescriptorProto(
- name="OptimizeMode",
- value=[
- EnumValueDescriptorProto(
- name="SPEED", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="CODE_SIZE", number=2, options=None
- ),
- EnumValueDescriptorProto(
- name="LITE_RUNTIME", number=3, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- extension_range=[
- DescriptorProto.ExtensionRange(
- start=990,
- end=999,
- options=ExtensionRangeOptions(
- uninterpreted_option=[],
- declaration=[
- ExtensionRangeOptions.Declaration(
- number=990,
- full_name=".pb.file.cpp",
- type=".pb.file.CppFileOptions",
- reserved=unset(False),
- repeated=unset(False),
- )
- ],
- features=None,
- verification=unset(
- ExtensionRangeOptions.VerificationState.UNVERIFIED
- ),
- ),
- ),
- DescriptorProto.ExtensionRange(
- start=1000, end=536870912, options=None
- ),
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[
- DescriptorProto.ReservedRange(start=42, end=43),
- DescriptorProto.ReservedRange(start=38, end=39),
- ],
- reserved_name=["php_generic_services"],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="MessageOptions",
- field=[
- FieldDescriptorProto(
- name="message_set_wire_format",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="messageSetWireFormat",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="no_standard_descriptor_accessor",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="noStandardDescriptorAccessor",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="deprecated",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="deprecated",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="map_entry",
- number=7,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="mapEntry",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="deprecated_legacy_json_field_conflicts",
- number=11,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="deprecatedLegacyJsonFieldConflicts",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=True,
- weak=unset(False),
- debug_redact=unset(False),
- retention=unset(
- FieldOptions.OptionRetention.RETENTION_UNKNOWN
- ),
- targets=[],
- edition_defaults=[],
- features=None,
- feature_support=None,
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="features",
- number=12,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSet",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="features",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="uninterpreted_option",
- number=999,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.UninterpretedOption",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="uninterpretedOption",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[
- DescriptorProto.ExtensionRange(start=990, end=999, options=None),
- DescriptorProto.ExtensionRange(
- start=1000, end=536870912, options=None
- ),
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[
- DescriptorProto.ReservedRange(start=4, end=5),
- DescriptorProto.ReservedRange(start=5, end=6),
- DescriptorProto.ReservedRange(start=6, end=7),
- DescriptorProto.ReservedRange(start=8, end=9),
- DescriptorProto.ReservedRange(start=9, end=10),
- ],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="FieldOptions",
- field=[
- FieldDescriptorProto(
- name="ctype",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FieldOptions.CType",
- extendee=unset(""),
- default_value="STRING",
- oneof_index=unset(0),
- json_name="ctype",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="packed",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="packed",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="jstype",
- number=6,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FieldOptions.JSType",
- extendee=unset(""),
- default_value="JS_NORMAL",
- oneof_index=unset(0),
- json_name="jstype",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="lazy",
- number=5,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="lazy",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="unverified_lazy",
- number=15,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="unverifiedLazy",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="deprecated",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="deprecated",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="weak",
- number=10,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="weak",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=True,
- weak=unset(False),
- debug_redact=unset(False),
- retention=unset(
- FieldOptions.OptionRetention.RETENTION_UNKNOWN
- ),
- targets=[],
- edition_defaults=[],
- features=None,
- feature_support=None,
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="debug_redact",
- number=16,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="debugRedact",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="retention",
- number=17,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FieldOptions.OptionRetention",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="retention",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="targets",
- number=19,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FieldOptions.OptionTargetType",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="targets",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="edition_defaults",
- number=20,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FieldOptions.EditionDefault",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="editionDefaults",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="features",
- number=21,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSet",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="features",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="feature_support",
- number=22,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FieldOptions.FeatureSupport",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="featureSupport",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="uninterpreted_option",
- number=999,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.UninterpretedOption",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="uninterpretedOption",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[
- DescriptorProto(
- name="EditionDefault",
- field=[
- FieldDescriptorProto(
- name="edition",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.Edition",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="edition",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="value",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="value",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="FeatureSupport",
- field=[
- FieldDescriptorProto(
- name="edition_introduced",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.Edition",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="editionIntroduced",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="edition_deprecated",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.Edition",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="editionDeprecated",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="deprecation_warning",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="deprecationWarning",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="edition_removed",
- number=4,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.Edition",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="editionRemoved",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="removal_error",
- number=5,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="removalError",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- ],
- enum_type=[
- EnumDescriptorProto(
- name="CType",
- value=[
- EnumValueDescriptorProto(
- name="STRING", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="CORD", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="STRING_PIECE", number=2, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- EnumDescriptorProto(
- name="JSType",
- value=[
- EnumValueDescriptorProto(
- name="JS_NORMAL", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="JS_STRING", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="JS_NUMBER", number=2, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- EnumDescriptorProto(
- name="OptionRetention",
- value=[
- EnumValueDescriptorProto(
- name="RETENTION_UNKNOWN", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="RETENTION_RUNTIME", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="RETENTION_SOURCE", number=2, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- EnumDescriptorProto(
- name="OptionTargetType",
- value=[
- EnumValueDescriptorProto(
- name="TARGET_TYPE_UNKNOWN", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="TARGET_TYPE_FILE", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="TARGET_TYPE_EXTENSION_RANGE",
- number=2,
- options=None,
- ),
- EnumValueDescriptorProto(
- name="TARGET_TYPE_MESSAGE", number=3, options=None
- ),
- EnumValueDescriptorProto(
- name="TARGET_TYPE_FIELD", number=4, options=None
- ),
- EnumValueDescriptorProto(
- name="TARGET_TYPE_ONEOF", number=5, options=None
- ),
- EnumValueDescriptorProto(
- name="TARGET_TYPE_ENUM", number=6, options=None
- ),
- EnumValueDescriptorProto(
- name="TARGET_TYPE_ENUM_ENTRY", number=7, options=None
- ),
- EnumValueDescriptorProto(
- name="TARGET_TYPE_SERVICE", number=8, options=None
- ),
- EnumValueDescriptorProto(
- name="TARGET_TYPE_METHOD", number=9, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- ],
- extension_range=[
- DescriptorProto.ExtensionRange(start=990, end=999, options=None),
- DescriptorProto.ExtensionRange(
- start=1000, end=536870912, options=None
- ),
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[
- DescriptorProto.ReservedRange(start=4, end=5),
- DescriptorProto.ReservedRange(start=18, end=19),
- ],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="OneofOptions",
- field=[
- FieldDescriptorProto(
- name="features",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSet",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="features",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="uninterpreted_option",
- number=999,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.UninterpretedOption",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="uninterpretedOption",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[
- DescriptorProto.ExtensionRange(start=990, end=999, options=None),
- DescriptorProto.ExtensionRange(
- start=1000, end=536870912, options=None
- ),
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="EnumOptions",
- field=[
- FieldDescriptorProto(
- name="allow_alias",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="allowAlias",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="deprecated",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="deprecated",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="deprecated_legacy_json_field_conflicts",
- number=6,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="deprecatedLegacyJsonFieldConflicts",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=True,
- weak=unset(False),
- debug_redact=unset(False),
- retention=unset(
- FieldOptions.OptionRetention.RETENTION_UNKNOWN
- ),
- targets=[],
- edition_defaults=[],
- features=None,
- feature_support=None,
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="features",
- number=7,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSet",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="features",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="uninterpreted_option",
- number=999,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.UninterpretedOption",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="uninterpretedOption",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[
- DescriptorProto.ExtensionRange(start=990, end=999, options=None),
- DescriptorProto.ExtensionRange(
- start=1000, end=536870912, options=None
- ),
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[DescriptorProto.ReservedRange(start=5, end=6)],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="EnumValueOptions",
- field=[
- FieldDescriptorProto(
- name="deprecated",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="deprecated",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="features",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSet",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="features",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="debug_redact",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="debugRedact",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="feature_support",
- number=4,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FieldOptions.FeatureSupport",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="featureSupport",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="uninterpreted_option",
- number=999,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.UninterpretedOption",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="uninterpretedOption",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[
- DescriptorProto.ExtensionRange(start=990, end=999, options=None),
- DescriptorProto.ExtensionRange(
- start=1000, end=536870912, options=None
- ),
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="ServiceOptions",
- field=[
- FieldDescriptorProto(
- name="features",
- number=34,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSet",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="features",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="deprecated",
- number=33,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="deprecated",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="uninterpreted_option",
- number=999,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.UninterpretedOption",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="uninterpretedOption",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[
- DescriptorProto.ExtensionRange(start=990, end=999, options=None),
- DescriptorProto.ExtensionRange(
- start=1000, end=536870912, options=None
- ),
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="MethodOptions",
- field=[
- FieldDescriptorProto(
- name="deprecated",
- number=33,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value="false",
- oneof_index=unset(0),
- json_name="deprecated",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="idempotency_level",
- number=34,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.MethodOptions.IdempotencyLevel",
- extendee=unset(""),
- default_value="IDEMPOTENCY_UNKNOWN",
- oneof_index=unset(0),
- json_name="idempotencyLevel",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="features",
- number=35,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSet",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="features",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="uninterpreted_option",
- number=999,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.UninterpretedOption",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="uninterpretedOption",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[
- EnumDescriptorProto(
- name="IdempotencyLevel",
- value=[
- EnumValueDescriptorProto(
- name="IDEMPOTENCY_UNKNOWN", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="NO_SIDE_EFFECTS", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="IDEMPOTENT", number=2, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- extension_range=[
- DescriptorProto.ExtensionRange(start=990, end=999, options=None),
- DescriptorProto.ExtensionRange(
- start=1000, end=536870912, options=None
- ),
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="UninterpretedOption",
- field=[
- FieldDescriptorProto(
- name="name",
- number=2,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.UninterpretedOption.NamePart",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="name",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="identifier_value",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="identifierValue",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="positive_int_value",
- number=4,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.UINT64,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="positiveIntValue",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="negative_int_value",
- number=5,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT64,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="negativeIntValue",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="double_value",
- number=6,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.DOUBLE,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="doubleValue",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="string_value",
- number=7,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.BYTES,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="stringValue",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="aggregate_value",
- number=8,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="aggregateValue",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[
- DescriptorProto(
- name="NamePart",
- field=[
- FieldDescriptorProto(
- name="name_part",
- number=1,
- label=FieldDescriptorProto.Label.REQUIRED,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="namePart",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="is_extension",
- number=2,
- label=FieldDescriptorProto.Label.REQUIRED,
- type=FieldDescriptorProto.Type.BOOL,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="isExtension",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="FeatureSet",
- field=[
- FieldDescriptorProto(
- name="field_presence",
- number=1,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FeatureSet.FieldPresence",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="fieldPresence",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
- targets=[
- FieldOptions.OptionTargetType.TARGET_TYPE_FIELD,
- FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
- ],
- edition_defaults=[
- FieldOptions.EditionDefault(
- edition=Edition.LEGACY, value="EXPLICIT"
- ),
- FieldOptions.EditionDefault(
- edition=Edition.PROTO3, value="IMPLICIT"
- ),
- FieldOptions.EditionDefault(
- edition=Edition.EDITION_2023, value="EXPLICIT"
- ),
- ],
- features=None,
- feature_support=FieldOptions.FeatureSupport(
- edition_introduced=Edition.EDITION_2023,
- edition_deprecated=unset(Edition.UNKNOWN),
- deprecation_warning=unset(""),
- edition_removed=unset(Edition.UNKNOWN),
- removal_error=unset(""),
- ),
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="enum_type",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FeatureSet.EnumType",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="enumType",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
- targets=[
- FieldOptions.OptionTargetType.TARGET_TYPE_ENUM,
- FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
- ],
- edition_defaults=[
- FieldOptions.EditionDefault(
- edition=Edition.LEGACY, value="CLOSED"
- ),
- FieldOptions.EditionDefault(
- edition=Edition.PROTO3, value="OPEN"
- ),
- ],
- features=None,
- feature_support=FieldOptions.FeatureSupport(
- edition_introduced=Edition.EDITION_2023,
- edition_deprecated=unset(Edition.UNKNOWN),
- deprecation_warning=unset(""),
- edition_removed=unset(Edition.UNKNOWN),
- removal_error=unset(""),
- ),
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="repeated_field_encoding",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FeatureSet.RepeatedFieldEncoding",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="repeatedFieldEncoding",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
- targets=[
- FieldOptions.OptionTargetType.TARGET_TYPE_FIELD,
- FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
- ],
- edition_defaults=[
- FieldOptions.EditionDefault(
- edition=Edition.LEGACY, value="EXPANDED"
- ),
- FieldOptions.EditionDefault(
- edition=Edition.PROTO3, value="PACKED"
- ),
- ],
- features=None,
- feature_support=FieldOptions.FeatureSupport(
- edition_introduced=Edition.EDITION_2023,
- edition_deprecated=unset(Edition.UNKNOWN),
- deprecation_warning=unset(""),
- edition_removed=unset(Edition.UNKNOWN),
- removal_error=unset(""),
- ),
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="utf8_validation",
- number=4,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FeatureSet.Utf8Validation",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="utf8Validation",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
- targets=[
- FieldOptions.OptionTargetType.TARGET_TYPE_FIELD,
- FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
- ],
- edition_defaults=[
- FieldOptions.EditionDefault(
- edition=Edition.LEGACY, value="NONE"
- ),
- FieldOptions.EditionDefault(
- edition=Edition.PROTO3, value="VERIFY"
- ),
- ],
- features=None,
- feature_support=FieldOptions.FeatureSupport(
- edition_introduced=Edition.EDITION_2023,
- edition_deprecated=unset(Edition.UNKNOWN),
- deprecation_warning=unset(""),
- edition_removed=unset(Edition.UNKNOWN),
- removal_error=unset(""),
- ),
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="message_encoding",
- number=5,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FeatureSet.MessageEncoding",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="messageEncoding",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
- targets=[
- FieldOptions.OptionTargetType.TARGET_TYPE_FIELD,
- FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
- ],
- edition_defaults=[
- FieldOptions.EditionDefault(
- edition=Edition.LEGACY, value="LENGTH_PREFIXED"
- )
- ],
- features=None,
- feature_support=FieldOptions.FeatureSupport(
- edition_introduced=Edition.EDITION_2023,
- edition_deprecated=unset(Edition.UNKNOWN),
- deprecation_warning=unset(""),
- edition_removed=unset(Edition.UNKNOWN),
- removal_error=unset(""),
- ),
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="json_format",
- number=6,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FeatureSet.JsonFormat",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="jsonFormat",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=FieldOptions.OptionRetention.RETENTION_RUNTIME,
- targets=[
- FieldOptions.OptionTargetType.TARGET_TYPE_MESSAGE,
- FieldOptions.OptionTargetType.TARGET_TYPE_ENUM,
- FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
- ],
- edition_defaults=[
- FieldOptions.EditionDefault(
- edition=Edition.LEGACY, value="LEGACY_BEST_EFFORT"
- ),
- FieldOptions.EditionDefault(
- edition=Edition.PROTO3, value="ALLOW"
- ),
- ],
- features=None,
- feature_support=FieldOptions.FeatureSupport(
- edition_introduced=Edition.EDITION_2023,
- edition_deprecated=unset(Edition.UNKNOWN),
- deprecation_warning=unset(""),
- edition_removed=unset(Edition.UNKNOWN),
- removal_error=unset(""),
- ),
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="enforce_naming_style",
- number=7,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FeatureSet.EnforceNamingStyle",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="enforceNamingStyle",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=FieldOptions.OptionRetention.RETENTION_SOURCE,
- targets=[
- FieldOptions.OptionTargetType.TARGET_TYPE_FILE,
- FieldOptions.OptionTargetType.TARGET_TYPE_EXTENSION_RANGE,
- FieldOptions.OptionTargetType.TARGET_TYPE_MESSAGE,
- FieldOptions.OptionTargetType.TARGET_TYPE_FIELD,
- FieldOptions.OptionTargetType.TARGET_TYPE_ONEOF,
- FieldOptions.OptionTargetType.TARGET_TYPE_ENUM,
- FieldOptions.OptionTargetType.TARGET_TYPE_ENUM_ENTRY,
- FieldOptions.OptionTargetType.TARGET_TYPE_SERVICE,
- FieldOptions.OptionTargetType.TARGET_TYPE_METHOD,
- ],
- edition_defaults=[
- FieldOptions.EditionDefault(
- edition=Edition.LEGACY, value="STYLE_LEGACY"
- ),
- FieldOptions.EditionDefault(
- edition=Edition.EDITION_2024, value="STYLE2024"
- ),
- FieldOptions.EditionDefault(
- edition=Edition.UNSTABLE, value="STYLE2026"
- ),
- ],
- features=None,
- feature_support=FieldOptions.FeatureSupport(
- edition_introduced=Edition.EDITION_2024,
- edition_deprecated=unset(Edition.UNKNOWN),
- deprecation_warning=unset(""),
- edition_removed=unset(Edition.UNKNOWN),
- removal_error=unset(""),
- ),
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="default_symbol_visibility",
- number=8,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="defaultSymbolVisibility",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=unset(False),
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=FieldOptions.OptionRetention.RETENTION_SOURCE,
- targets=[FieldOptions.OptionTargetType.TARGET_TYPE_FILE],
- edition_defaults=[
- FieldOptions.EditionDefault(
- edition=Edition.LEGACY, value="EXPORT_ALL"
- ),
- FieldOptions.EditionDefault(
- edition=Edition.EDITION_2024,
- value="EXPORT_TOP_LEVEL",
- ),
- ],
- features=None,
- feature_support=FieldOptions.FeatureSupport(
- edition_introduced=Edition.EDITION_2024,
- edition_deprecated=unset(Edition.UNKNOWN),
- deprecation_warning=unset(""),
- edition_removed=unset(Edition.UNKNOWN),
- removal_error=unset(""),
- ),
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[
- DescriptorProto(
- name="VisibilityFeature",
- field=[],
- extension=[],
- nested_type=[],
- enum_type=[
- EnumDescriptorProto(
- name="DefaultSymbolVisibility",
- value=[
- EnumValueDescriptorProto(
- name="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",
- number=0,
- options=None,
- ),
- EnumValueDescriptorProto(
- name="EXPORT_ALL", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="EXPORT_TOP_LEVEL", number=2, options=None
- ),
- EnumValueDescriptorProto(
- name="LOCAL_ALL", number=3, options=None
- ),
- EnumValueDescriptorProto(
- name="STRICT", number=4, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[
- DescriptorProto.ReservedRange(start=1, end=536870912)
- ],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- enum_type=[
- EnumDescriptorProto(
- name="FieldPresence",
- value=[
- EnumValueDescriptorProto(
- name="FIELD_PRESENCE_UNKNOWN", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="EXPLICIT", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="IMPLICIT", number=2, options=None
- ),
- EnumValueDescriptorProto(
- name="LEGACY_REQUIRED", number=3, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- EnumDescriptorProto(
- name="EnumType",
- value=[
- EnumValueDescriptorProto(
- name="ENUM_TYPE_UNKNOWN", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="OPEN", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="CLOSED", number=2, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- EnumDescriptorProto(
- name="RepeatedFieldEncoding",
- value=[
- EnumValueDescriptorProto(
- name="REPEATED_FIELD_ENCODING_UNKNOWN",
- number=0,
- options=None,
- ),
- EnumValueDescriptorProto(
- name="PACKED", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="EXPANDED", number=2, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- EnumDescriptorProto(
- name="Utf8Validation",
- value=[
- EnumValueDescriptorProto(
- name="UTF8_VALIDATION_UNKNOWN", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="VERIFY", number=2, options=None
- ),
- EnumValueDescriptorProto(
- name="NONE", number=3, options=None
- ),
- ],
- options=None,
- reserved_range=[
- EnumDescriptorProto.EnumReservedRange(start=1, end=1)
- ],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- EnumDescriptorProto(
- name="MessageEncoding",
- value=[
- EnumValueDescriptorProto(
- name="MESSAGE_ENCODING_UNKNOWN", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="LENGTH_PREFIXED", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="DELIMITED", number=2, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- EnumDescriptorProto(
- name="JsonFormat",
- value=[
- EnumValueDescriptorProto(
- name="JSON_FORMAT_UNKNOWN", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="ALLOW", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="LEGACY_BEST_EFFORT", number=2, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- EnumDescriptorProto(
- name="EnforceNamingStyle",
- value=[
- EnumValueDescriptorProto(
- name="ENFORCE_NAMING_STYLE_UNKNOWN",
- number=0,
- options=None,
- ),
- EnumValueDescriptorProto(
- name="STYLE2024", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="STYLE_LEGACY", number=2, options=None
- ),
- EnumValueDescriptorProto(
- name="STYLE2026", number=3, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- ],
- extension_range=[
- DescriptorProto.ExtensionRange(
- start=1000,
- end=9995,
- options=ExtensionRangeOptions(
- uninterpreted_option=[],
- declaration=[
- ExtensionRangeOptions.Declaration(
- number=1000,
- full_name=".pb.cpp",
- type=".pb.CppFeatures",
- reserved=unset(False),
- repeated=unset(False),
- ),
- ExtensionRangeOptions.Declaration(
- number=1001,
- full_name=".pb.java",
- type=".pb.JavaFeatures",
- reserved=unset(False),
- repeated=unset(False),
- ),
- ExtensionRangeOptions.Declaration(
- number=1002,
- full_name=".pb.go",
- type=".pb.GoFeatures",
- reserved=unset(False),
- repeated=unset(False),
- ),
- ExtensionRangeOptions.Declaration(
- number=1003,
- full_name=".pb.python",
- type=".pb.PythonFeatures",
- reserved=unset(False),
- repeated=unset(False),
- ),
- ExtensionRangeOptions.Declaration(
- number=1004,
- full_name=".pb.csharp",
- type=".pb.CSharpFeatures",
- reserved=unset(False),
- repeated=unset(False),
- ),
- ExtensionRangeOptions.Declaration(
- number=1100,
- full_name=".imp.impress_feature_set",
- type=".imp.ImpressFeatureSet",
- reserved=unset(False),
- repeated=unset(False),
- ),
- ExtensionRangeOptions.Declaration(
- number=9989,
- full_name=".pb.java_mutable",
- type=".pb.JavaMutableFeatures",
- reserved=unset(False),
- repeated=unset(False),
- ),
- ExtensionRangeOptions.Declaration(
- number=9990,
- full_name=".pb.proto1",
- type=".pb.Proto1Features",
- reserved=unset(False),
- repeated=unset(False),
- ),
- ],
- features=None,
- verification=unset(
- ExtensionRangeOptions.VerificationState.UNVERIFIED
- ),
- ),
- ),
- DescriptorProto.ExtensionRange(start=9995, end=10000, options=None),
- DescriptorProto.ExtensionRange(
- start=10000, end=10001, options=None
- ),
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[DescriptorProto.ReservedRange(start=999, end=1000)],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="FeatureSetDefaults",
- field=[
- FieldDescriptorProto(
- name="defaults",
- number=1,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="defaults",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="minimum_edition",
- number=4,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.Edition",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="minimumEdition",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="maximum_edition",
- number=5,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.Edition",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="maximumEdition",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[
- DescriptorProto(
- name="FeatureSetEditionDefault",
- field=[
- FieldDescriptorProto(
- name="edition",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.Edition",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="edition",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="overridable_features",
- number=4,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSet",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="overridableFeatures",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="fixed_features",
- number=5,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.FeatureSet",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="fixedFeatures",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[
- DescriptorProto.ReservedRange(start=1, end=2),
- DescriptorProto.ReservedRange(start=2, end=3),
- ],
- reserved_name=["features"],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="SourceCodeInfo",
- field=[
- FieldDescriptorProto(
- name="location",
- number=1,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.SourceCodeInfo.Location",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="location",
- options=None,
- proto3_optional=unset(False),
- )
- ],
- extension=[],
- nested_type=[
- DescriptorProto(
- name="Location",
- field=[
- FieldDescriptorProto(
- name="path",
- number=1,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="path",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=True,
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=unset(
- FieldOptions.OptionRetention.RETENTION_UNKNOWN
- ),
- targets=[],
- edition_defaults=[],
- features=None,
- feature_support=None,
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="span",
- number=2,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="span",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=True,
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=unset(
- FieldOptions.OptionRetention.RETENTION_UNKNOWN
- ),
- targets=[],
- edition_defaults=[],
- features=None,
- feature_support=None,
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="leading_comments",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="leadingComments",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="trailing_comments",
- number=4,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="trailingComments",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="leading_detached_comments",
- number=6,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="leadingDetachedComments",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- enum_type=[],
- extension_range=[
- DescriptorProto.ExtensionRange(
- start=536000000,
- end=536000001,
- options=ExtensionRangeOptions(
- uninterpreted_option=[],
- declaration=[
- ExtensionRangeOptions.Declaration(
- number=536000000,
- full_name=".buf.descriptor.v1.buf_source_code_info_extension",
- type=".buf.descriptor.v1.SourceCodeInfoExtension",
- reserved=unset(False),
- repeated=unset(False),
- )
- ],
- features=None,
- verification=unset(
- ExtensionRangeOptions.VerificationState.UNVERIFIED
- ),
- ),
- )
- ],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- DescriptorProto(
- name="GeneratedCodeInfo",
- field=[
- FieldDescriptorProto(
- name="annotation",
- number=1,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.MESSAGE,
- type_name=".google.protobuf.GeneratedCodeInfo.Annotation",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="annotation",
- options=None,
- proto3_optional=unset(False),
- )
- ],
- extension=[],
- nested_type=[
- DescriptorProto(
- name="Annotation",
- field=[
- FieldDescriptorProto(
- name="path",
- number=1,
- label=FieldDescriptorProto.Label.REPEATED,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="path",
- options=FieldOptions(
- ctype=unset(FieldOptions.CType.STRING),
- packed=True,
- jstype=unset(FieldOptions.JSType.JS_NORMAL),
- lazy=unset(False),
- unverified_lazy=unset(False),
- deprecated=unset(False),
- weak=unset(False),
- debug_redact=unset(False),
- retention=unset(
- FieldOptions.OptionRetention.RETENTION_UNKNOWN
- ),
- targets=[],
- edition_defaults=[],
- features=None,
- feature_support=None,
- uninterpreted_option=[],
- ),
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="source_file",
- number=2,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.STRING,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="sourceFile",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="begin",
- number=3,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="begin",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="end",
- number=4,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.INT32,
- type_name=unset(""),
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="end",
- options=None,
- proto3_optional=unset(False),
- ),
- FieldDescriptorProto(
- name="semantic",
- number=5,
- label=FieldDescriptorProto.Label.OPTIONAL,
- type=FieldDescriptorProto.Type.ENUM,
- type_name=".google.protobuf.GeneratedCodeInfo.Annotation.Semantic",
- extendee=unset(""),
- default_value=unset(""),
- oneof_index=unset(0),
- json_name="semantic",
- options=None,
- proto3_optional=unset(False),
- ),
- ],
- extension=[],
- nested_type=[],
- enum_type=[
- EnumDescriptorProto(
- name="Semantic",
- value=[
- EnumValueDescriptorProto(
- name="NONE", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="SET", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="ALIAS", number=2, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- )
- ],
- enum_type=[],
- extension_range=[],
- oneof_decl=[],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- ],
- enum_type=[
- EnumDescriptorProto(
- name="Edition",
- value=[
- EnumValueDescriptorProto(
- name="EDITION_UNKNOWN", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_LEGACY", number=900, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_PROTO2", number=998, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_PROTO3", number=999, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_2023", number=1000, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_2024", number=1001, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_2026", number=1002, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_UNSTABLE", number=9999, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_1_TEST_ONLY", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_2_TEST_ONLY", number=2, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_99997_TEST_ONLY", number=99997, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_99998_TEST_ONLY", number=99998, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_99999_TEST_ONLY", number=99999, options=None
- ),
- EnumValueDescriptorProto(
- name="EDITION_MAX", number=2147483647, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- EnumDescriptorProto(
- name="SymbolVisibility",
- value=[
- EnumValueDescriptorProto(
- name="VISIBILITY_UNSET", number=0, options=None
- ),
- EnumValueDescriptorProto(
- name="VISIBILITY_LOCAL", number=1, options=None
- ),
- EnumValueDescriptorProto(
- name="VISIBILITY_EXPORT", number=2, options=None
- ),
- ],
- options=None,
- reserved_range=[],
- reserved_name=[],
- visibility=unset(SymbolVisibility.VISIBILITY_UNSET),
- ),
- ],
- service=[],
- extension=[],
- options=FileOptions(
- java_package="com.google.protobuf",
- java_outer_classname="DescriptorProtos",
- java_multiple_files=unset(False),
- java_generate_equals_and_hash=unset(False),
- java_string_check_utf8=unset(False),
- optimize_for=FileOptions.OptimizeMode.SPEED,
- go_package="google.golang.org/protobuf/types/descriptorpb",
- cc_generic_services=unset(False),
- java_generic_services=unset(False),
- py_generic_services=unset(False),
- deprecated=unset(False),
- cc_enable_arenas=True,
- objc_class_prefix="GPB",
- csharp_namespace="Google.Protobuf.Reflection",
- swift_prefix=unset(""),
- php_class_prefix=unset(""),
- php_namespace=unset(""),
- php_metadata_namespace=unset(""),
- ruby_package=unset(""),
- features=None,
- uninterpreted_option=[],
- ),
- source_code_info=None,
- syntax=unset(""),
- edition=unset(Edition.UNKNOWN),
- ),
- {
- "FileDescriptorSet": FileDescriptorSet,
- "FileDescriptorProto": FileDescriptorProto,
- "DescriptorProto": DescriptorProto,
- "DescriptorProto.ExtensionRange": DescriptorProto.ExtensionRange,
- "DescriptorProto.ReservedRange": DescriptorProto.ReservedRange,
- "ExtensionRangeOptions": ExtensionRangeOptions,
- "ExtensionRangeOptions.Declaration": ExtensionRangeOptions.Declaration,
- "ExtensionRangeOptions.VerificationState": ExtensionRangeOptions.VerificationState,
- "FieldDescriptorProto": FieldDescriptorProto,
- "FieldDescriptorProto.Type": FieldDescriptorProto.Type,
- "FieldDescriptorProto.Label": FieldDescriptorProto.Label,
- "OneofDescriptorProto": OneofDescriptorProto,
- "EnumDescriptorProto": EnumDescriptorProto,
- "EnumDescriptorProto.EnumReservedRange": EnumDescriptorProto.EnumReservedRange,
- "EnumValueDescriptorProto": EnumValueDescriptorProto,
- "ServiceDescriptorProto": ServiceDescriptorProto,
- "MethodDescriptorProto": MethodDescriptorProto,
- "FileOptions": FileOptions,
- "FileOptions.OptimizeMode": FileOptions.OptimizeMode,
- "MessageOptions": MessageOptions,
- "FieldOptions": FieldOptions,
- "FieldOptions.EditionDefault": FieldOptions.EditionDefault,
- "FieldOptions.FeatureSupport": FieldOptions.FeatureSupport,
- "FieldOptions.CType": FieldOptions.CType,
- "FieldOptions.JSType": FieldOptions.JSType,
- "FieldOptions.OptionRetention": FieldOptions.OptionRetention,
- "FieldOptions.OptionTargetType": FieldOptions.OptionTargetType,
- "OneofOptions": OneofOptions,
- "EnumOptions": EnumOptions,
- "EnumValueOptions": EnumValueOptions,
- "ServiceOptions": ServiceOptions,
- "MethodOptions": MethodOptions,
- "MethodOptions.IdempotencyLevel": MethodOptions.IdempotencyLevel,
- "UninterpretedOption": UninterpretedOption,
- "UninterpretedOption.NamePart": UninterpretedOption.NamePart,
- "FeatureSet": FeatureSet,
- "FeatureSet.VisibilityFeature": FeatureSet.VisibilityFeature,
- "FeatureSet.VisibilityFeature.DefaultSymbolVisibility": FeatureSet.VisibilityFeature.DefaultSymbolVisibility,
- "FeatureSet.FieldPresence": FeatureSet.FieldPresence,
- "FeatureSet.EnumType": FeatureSet.EnumType,
- "FeatureSet.RepeatedFieldEncoding": FeatureSet.RepeatedFieldEncoding,
- "FeatureSet.Utf8Validation": FeatureSet.Utf8Validation,
- "FeatureSet.MessageEncoding": FeatureSet.MessageEncoding,
- "FeatureSet.JsonFormat": FeatureSet.JsonFormat,
- "FeatureSet.EnforceNamingStyle": FeatureSet.EnforceNamingStyle,
- "FeatureSetDefaults": FeatureSetDefaults,
- "FeatureSetDefaults.FeatureSetEditionDefault": FeatureSetDefaults.FeatureSetEditionDefault,
- "SourceCodeInfo": SourceCodeInfo,
- "SourceCodeInfo.Location": SourceCodeInfo.Location,
- "GeneratedCodeInfo": GeneratedCodeInfo,
- "GeneratedCodeInfo.Annotation": GeneratedCodeInfo.Annotation,
- "GeneratedCodeInfo.Annotation.Semantic": GeneratedCodeInfo.Annotation.Semantic,
- "Edition": Edition,
- "SymbolVisibility": SymbolVisibility,
- },
- )
- def desc() -> DescFile:
- """Returns the descriptor for the file `google/protobuf/descriptor.proto`."""
- return _DESC
|