descriptor.pb.h 619 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3019000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3019004 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/metadata_lite.h>
  25. #include <google/protobuf/generated_message_reflection.h>
  26. #include <google/protobuf/message.h>
  27. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  28. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  29. #include <google/protobuf/generated_enum_reflection.h>
  30. #include <google/protobuf/unknown_field_set.h>
  31. // @@protoc_insertion_point(includes)
  32. #include <google/protobuf/port_def.inc>
  33. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto PROTOBUF_EXPORT
  34. PROTOBUF_NAMESPACE_OPEN
  35. namespace internal {
  36. class AnyMetadata;
  37. } // namespace internal
  38. PROTOBUF_NAMESPACE_CLOSE
  39. // Internal implementation detail -- do not use these members.
  40. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fdescriptor_2eproto {
  41. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  42. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  43. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  44. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  45. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[27]
  46. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  49. static const uint32_t offsets[];
  50. };
  51. PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fdescriptor_2eproto;
  52. PROTOBUF_NAMESPACE_OPEN
  53. class DescriptorProto;
  54. struct DescriptorProtoDefaultTypeInternal;
  55. PROTOBUF_EXPORT extern DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_;
  56. class DescriptorProto_ExtensionRange;
  57. struct DescriptorProto_ExtensionRangeDefaultTypeInternal;
  58. PROTOBUF_EXPORT extern DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_;
  59. class DescriptorProto_ReservedRange;
  60. struct DescriptorProto_ReservedRangeDefaultTypeInternal;
  61. PROTOBUF_EXPORT extern DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_;
  62. class EnumDescriptorProto;
  63. struct EnumDescriptorProtoDefaultTypeInternal;
  64. PROTOBUF_EXPORT extern EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_;
  65. class EnumDescriptorProto_EnumReservedRange;
  66. struct EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal;
  67. PROTOBUF_EXPORT extern EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal _EnumDescriptorProto_EnumReservedRange_default_instance_;
  68. class EnumOptions;
  69. struct EnumOptionsDefaultTypeInternal;
  70. PROTOBUF_EXPORT extern EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_;
  71. class EnumValueDescriptorProto;
  72. struct EnumValueDescriptorProtoDefaultTypeInternal;
  73. PROTOBUF_EXPORT extern EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_;
  74. class EnumValueOptions;
  75. struct EnumValueOptionsDefaultTypeInternal;
  76. PROTOBUF_EXPORT extern EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_;
  77. class ExtensionRangeOptions;
  78. struct ExtensionRangeOptionsDefaultTypeInternal;
  79. PROTOBUF_EXPORT extern ExtensionRangeOptionsDefaultTypeInternal _ExtensionRangeOptions_default_instance_;
  80. class FieldDescriptorProto;
  81. struct FieldDescriptorProtoDefaultTypeInternal;
  82. PROTOBUF_EXPORT extern FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_;
  83. class FieldOptions;
  84. struct FieldOptionsDefaultTypeInternal;
  85. PROTOBUF_EXPORT extern FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_;
  86. class FileDescriptorProto;
  87. struct FileDescriptorProtoDefaultTypeInternal;
  88. PROTOBUF_EXPORT extern FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_;
  89. class FileDescriptorSet;
  90. struct FileDescriptorSetDefaultTypeInternal;
  91. PROTOBUF_EXPORT extern FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_;
  92. class FileOptions;
  93. struct FileOptionsDefaultTypeInternal;
  94. PROTOBUF_EXPORT extern FileOptionsDefaultTypeInternal _FileOptions_default_instance_;
  95. class GeneratedCodeInfo;
  96. struct GeneratedCodeInfoDefaultTypeInternal;
  97. PROTOBUF_EXPORT extern GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_;
  98. class GeneratedCodeInfo_Annotation;
  99. struct GeneratedCodeInfo_AnnotationDefaultTypeInternal;
  100. PROTOBUF_EXPORT extern GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_;
  101. class MessageOptions;
  102. struct MessageOptionsDefaultTypeInternal;
  103. PROTOBUF_EXPORT extern MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_;
  104. class MethodDescriptorProto;
  105. struct MethodDescriptorProtoDefaultTypeInternal;
  106. PROTOBUF_EXPORT extern MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_;
  107. class MethodOptions;
  108. struct MethodOptionsDefaultTypeInternal;
  109. PROTOBUF_EXPORT extern MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_;
  110. class OneofDescriptorProto;
  111. struct OneofDescriptorProtoDefaultTypeInternal;
  112. PROTOBUF_EXPORT extern OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_;
  113. class OneofOptions;
  114. struct OneofOptionsDefaultTypeInternal;
  115. PROTOBUF_EXPORT extern OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_;
  116. class ServiceDescriptorProto;
  117. struct ServiceDescriptorProtoDefaultTypeInternal;
  118. PROTOBUF_EXPORT extern ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_;
  119. class ServiceOptions;
  120. struct ServiceOptionsDefaultTypeInternal;
  121. PROTOBUF_EXPORT extern ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_;
  122. class SourceCodeInfo;
  123. struct SourceCodeInfoDefaultTypeInternal;
  124. PROTOBUF_EXPORT extern SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_;
  125. class SourceCodeInfo_Location;
  126. struct SourceCodeInfo_LocationDefaultTypeInternal;
  127. PROTOBUF_EXPORT extern SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_;
  128. class UninterpretedOption;
  129. struct UninterpretedOptionDefaultTypeInternal;
  130. PROTOBUF_EXPORT extern UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_;
  131. class UninterpretedOption_NamePart;
  132. struct UninterpretedOption_NamePartDefaultTypeInternal;
  133. PROTOBUF_EXPORT extern UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_;
  134. PROTOBUF_NAMESPACE_CLOSE
  135. PROTOBUF_NAMESPACE_OPEN
  136. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto>(Arena*);
  137. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange>(Arena*);
  138. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange>(Arena*);
  139. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>(Arena*);
  140. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange>(Arena*);
  141. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumOptions>(Arena*);
  142. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto>(Arena*);
  143. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueOptions>(Arena*);
  144. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>(Arena*);
  145. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>(Arena*);
  146. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FieldOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldOptions>(Arena*);
  147. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>(Arena*);
  148. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileDescriptorSet* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileDescriptorSet>(Arena*);
  149. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileOptions>(Arena*);
  150. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo>(Arena*);
  151. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation>(Arena*);
  152. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MessageOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MessageOptions>(Arena*);
  153. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto>(Arena*);
  154. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MethodOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodOptions>(Arena*);
  155. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto>(Arena*);
  156. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::OneofOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofOptions>(Arena*);
  157. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto>(Arena*);
  158. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ServiceOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceOptions>(Arena*);
  159. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo>(Arena*);
  160. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location>(Arena*);
  161. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>(Arena*);
  162. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart>(Arena*);
  163. PROTOBUF_NAMESPACE_CLOSE
  164. PROTOBUF_NAMESPACE_OPEN
  165. enum FieldDescriptorProto_Type : int {
  166. FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
  167. FieldDescriptorProto_Type_TYPE_FLOAT = 2,
  168. FieldDescriptorProto_Type_TYPE_INT64 = 3,
  169. FieldDescriptorProto_Type_TYPE_UINT64 = 4,
  170. FieldDescriptorProto_Type_TYPE_INT32 = 5,
  171. FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
  172. FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
  173. FieldDescriptorProto_Type_TYPE_BOOL = 8,
  174. FieldDescriptorProto_Type_TYPE_STRING = 9,
  175. FieldDescriptorProto_Type_TYPE_GROUP = 10,
  176. FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
  177. FieldDescriptorProto_Type_TYPE_BYTES = 12,
  178. FieldDescriptorProto_Type_TYPE_UINT32 = 13,
  179. FieldDescriptorProto_Type_TYPE_ENUM = 14,
  180. FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
  181. FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
  182. FieldDescriptorProto_Type_TYPE_SINT32 = 17,
  183. FieldDescriptorProto_Type_TYPE_SINT64 = 18
  184. };
  185. PROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
  186. constexpr FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
  187. constexpr FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
  188. constexpr int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
  189. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
  190. template<typename T>
  191. inline const std::string& FieldDescriptorProto_Type_Name(T enum_t_value) {
  192. static_assert(::std::is_same<T, FieldDescriptorProto_Type>::value ||
  193. ::std::is_integral<T>::value,
  194. "Incorrect type passed to function FieldDescriptorProto_Type_Name.");
  195. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  196. FieldDescriptorProto_Type_descriptor(), enum_t_value);
  197. }
  198. inline bool FieldDescriptorProto_Type_Parse(
  199. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldDescriptorProto_Type* value) {
  200. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
  201. FieldDescriptorProto_Type_descriptor(), name, value);
  202. }
  203. enum FieldDescriptorProto_Label : int {
  204. FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
  205. FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
  206. FieldDescriptorProto_Label_LABEL_REPEATED = 3
  207. };
  208. PROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
  209. constexpr FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  210. constexpr FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
  211. constexpr int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
  212. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
  213. template<typename T>
  214. inline const std::string& FieldDescriptorProto_Label_Name(T enum_t_value) {
  215. static_assert(::std::is_same<T, FieldDescriptorProto_Label>::value ||
  216. ::std::is_integral<T>::value,
  217. "Incorrect type passed to function FieldDescriptorProto_Label_Name.");
  218. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  219. FieldDescriptorProto_Label_descriptor(), enum_t_value);
  220. }
  221. inline bool FieldDescriptorProto_Label_Parse(
  222. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldDescriptorProto_Label* value) {
  223. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
  224. FieldDescriptorProto_Label_descriptor(), name, value);
  225. }
  226. enum FileOptions_OptimizeMode : int {
  227. FileOptions_OptimizeMode_SPEED = 1,
  228. FileOptions_OptimizeMode_CODE_SIZE = 2,
  229. FileOptions_OptimizeMode_LITE_RUNTIME = 3
  230. };
  231. PROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
  232. constexpr FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
  233. constexpr FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
  234. constexpr int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
  235. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
  236. template<typename T>
  237. inline const std::string& FileOptions_OptimizeMode_Name(T enum_t_value) {
  238. static_assert(::std::is_same<T, FileOptions_OptimizeMode>::value ||
  239. ::std::is_integral<T>::value,
  240. "Incorrect type passed to function FileOptions_OptimizeMode_Name.");
  241. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  242. FileOptions_OptimizeMode_descriptor(), enum_t_value);
  243. }
  244. inline bool FileOptions_OptimizeMode_Parse(
  245. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FileOptions_OptimizeMode* value) {
  246. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
  247. FileOptions_OptimizeMode_descriptor(), name, value);
  248. }
  249. enum FieldOptions_CType : int {
  250. FieldOptions_CType_STRING = 0,
  251. FieldOptions_CType_CORD = 1,
  252. FieldOptions_CType_STRING_PIECE = 2
  253. };
  254. PROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
  255. constexpr FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
  256. constexpr FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
  257. constexpr int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
  258. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_CType_descriptor();
  259. template<typename T>
  260. inline const std::string& FieldOptions_CType_Name(T enum_t_value) {
  261. static_assert(::std::is_same<T, FieldOptions_CType>::value ||
  262. ::std::is_integral<T>::value,
  263. "Incorrect type passed to function FieldOptions_CType_Name.");
  264. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  265. FieldOptions_CType_descriptor(), enum_t_value);
  266. }
  267. inline bool FieldOptions_CType_Parse(
  268. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldOptions_CType* value) {
  269. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldOptions_CType>(
  270. FieldOptions_CType_descriptor(), name, value);
  271. }
  272. enum FieldOptions_JSType : int {
  273. FieldOptions_JSType_JS_NORMAL = 0,
  274. FieldOptions_JSType_JS_STRING = 1,
  275. FieldOptions_JSType_JS_NUMBER = 2
  276. };
  277. PROTOBUF_EXPORT bool FieldOptions_JSType_IsValid(int value);
  278. constexpr FieldOptions_JSType FieldOptions_JSType_JSType_MIN = FieldOptions_JSType_JS_NORMAL;
  279. constexpr FieldOptions_JSType FieldOptions_JSType_JSType_MAX = FieldOptions_JSType_JS_NUMBER;
  280. constexpr int FieldOptions_JSType_JSType_ARRAYSIZE = FieldOptions_JSType_JSType_MAX + 1;
  281. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_JSType_descriptor();
  282. template<typename T>
  283. inline const std::string& FieldOptions_JSType_Name(T enum_t_value) {
  284. static_assert(::std::is_same<T, FieldOptions_JSType>::value ||
  285. ::std::is_integral<T>::value,
  286. "Incorrect type passed to function FieldOptions_JSType_Name.");
  287. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  288. FieldOptions_JSType_descriptor(), enum_t_value);
  289. }
  290. inline bool FieldOptions_JSType_Parse(
  291. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldOptions_JSType* value) {
  292. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldOptions_JSType>(
  293. FieldOptions_JSType_descriptor(), name, value);
  294. }
  295. enum MethodOptions_IdempotencyLevel : int {
  296. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN = 0,
  297. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS = 1,
  298. MethodOptions_IdempotencyLevel_IDEMPOTENT = 2
  299. };
  300. PROTOBUF_EXPORT bool MethodOptions_IdempotencyLevel_IsValid(int value);
  301. constexpr MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN = MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  302. constexpr MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX = MethodOptions_IdempotencyLevel_IDEMPOTENT;
  303. constexpr int MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE = MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX + 1;
  304. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MethodOptions_IdempotencyLevel_descriptor();
  305. template<typename T>
  306. inline const std::string& MethodOptions_IdempotencyLevel_Name(T enum_t_value) {
  307. static_assert(::std::is_same<T, MethodOptions_IdempotencyLevel>::value ||
  308. ::std::is_integral<T>::value,
  309. "Incorrect type passed to function MethodOptions_IdempotencyLevel_Name.");
  310. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  311. MethodOptions_IdempotencyLevel_descriptor(), enum_t_value);
  312. }
  313. inline bool MethodOptions_IdempotencyLevel_Parse(
  314. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MethodOptions_IdempotencyLevel* value) {
  315. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MethodOptions_IdempotencyLevel>(
  316. MethodOptions_IdempotencyLevel_descriptor(), name, value);
  317. }
  318. // ===================================================================
  319. class PROTOBUF_EXPORT FileDescriptorSet final :
  320. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorSet) */ {
  321. public:
  322. inline FileDescriptorSet() : FileDescriptorSet(nullptr) {}
  323. ~FileDescriptorSet() override;
  324. explicit constexpr FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  325. FileDescriptorSet(const FileDescriptorSet& from);
  326. FileDescriptorSet(FileDescriptorSet&& from) noexcept
  327. : FileDescriptorSet() {
  328. *this = ::std::move(from);
  329. }
  330. inline FileDescriptorSet& operator=(const FileDescriptorSet& from) {
  331. CopyFrom(from);
  332. return *this;
  333. }
  334. inline FileDescriptorSet& operator=(FileDescriptorSet&& from) noexcept {
  335. if (this == &from) return *this;
  336. if (GetOwningArena() == from.GetOwningArena()
  337. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  338. && GetOwningArena() != nullptr
  339. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  340. ) {
  341. InternalSwap(&from);
  342. } else {
  343. CopyFrom(from);
  344. }
  345. return *this;
  346. }
  347. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  348. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  349. }
  350. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  351. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  352. }
  353. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  354. return GetDescriptor();
  355. }
  356. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  357. return default_instance().GetMetadata().descriptor;
  358. }
  359. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  360. return default_instance().GetMetadata().reflection;
  361. }
  362. static const FileDescriptorSet& default_instance() {
  363. return *internal_default_instance();
  364. }
  365. static inline const FileDescriptorSet* internal_default_instance() {
  366. return reinterpret_cast<const FileDescriptorSet*>(
  367. &_FileDescriptorSet_default_instance_);
  368. }
  369. static constexpr int kIndexInFileMessages =
  370. 0;
  371. friend void swap(FileDescriptorSet& a, FileDescriptorSet& b) {
  372. a.Swap(&b);
  373. }
  374. inline void Swap(FileDescriptorSet* other) {
  375. if (other == this) return;
  376. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  377. if (GetOwningArena() != nullptr &&
  378. GetOwningArena() == other->GetOwningArena()) {
  379. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  380. if (GetOwningArena() == other->GetOwningArena()) {
  381. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  382. InternalSwap(other);
  383. } else {
  384. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  385. }
  386. }
  387. void UnsafeArenaSwap(FileDescriptorSet* other) {
  388. if (other == this) return;
  389. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  390. InternalSwap(other);
  391. }
  392. // implements Message ----------------------------------------------
  393. FileDescriptorSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  394. return CreateMaybeMessage<FileDescriptorSet>(arena);
  395. }
  396. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  397. void CopyFrom(const FileDescriptorSet& from);
  398. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  399. void MergeFrom(const FileDescriptorSet& from);
  400. private:
  401. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  402. public:
  403. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  404. bool IsInitialized() const final;
  405. size_t ByteSizeLong() const final;
  406. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  407. uint8_t* _InternalSerialize(
  408. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  409. int GetCachedSize() const final { return _cached_size_.Get(); }
  410. private:
  411. void SharedCtor();
  412. void SharedDtor();
  413. void SetCachedSize(int size) const final;
  414. void InternalSwap(FileDescriptorSet* other);
  415. private:
  416. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  417. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  418. return "google.protobuf.FileDescriptorSet";
  419. }
  420. protected:
  421. explicit FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  422. bool is_message_owned = false);
  423. private:
  424. static void ArenaDtor(void* object);
  425. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  426. public:
  427. static const ClassData _class_data_;
  428. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  429. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  430. // nested types ----------------------------------------------------
  431. // accessors -------------------------------------------------------
  432. enum : int {
  433. kFileFieldNumber = 1,
  434. };
  435. // repeated .google.protobuf.FileDescriptorProto file = 1;
  436. int file_size() const;
  437. private:
  438. int _internal_file_size() const;
  439. public:
  440. void clear_file();
  441. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* mutable_file(int index);
  442. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  443. mutable_file();
  444. private:
  445. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& _internal_file(int index) const;
  446. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _internal_add_file();
  447. public:
  448. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& file(int index) const;
  449. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* add_file();
  450. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  451. file() const;
  452. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
  453. private:
  454. class _Internal;
  455. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  456. typedef void InternalArenaConstructable_;
  457. typedef void DestructorSkippable_;
  458. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto > file_;
  459. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  460. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  461. };
  462. // -------------------------------------------------------------------
  463. class PROTOBUF_EXPORT FileDescriptorProto final :
  464. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorProto) */ {
  465. public:
  466. inline FileDescriptorProto() : FileDescriptorProto(nullptr) {}
  467. ~FileDescriptorProto() override;
  468. explicit constexpr FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  469. FileDescriptorProto(const FileDescriptorProto& from);
  470. FileDescriptorProto(FileDescriptorProto&& from) noexcept
  471. : FileDescriptorProto() {
  472. *this = ::std::move(from);
  473. }
  474. inline FileDescriptorProto& operator=(const FileDescriptorProto& from) {
  475. CopyFrom(from);
  476. return *this;
  477. }
  478. inline FileDescriptorProto& operator=(FileDescriptorProto&& from) noexcept {
  479. if (this == &from) return *this;
  480. if (GetOwningArena() == from.GetOwningArena()
  481. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  482. && GetOwningArena() != nullptr
  483. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  484. ) {
  485. InternalSwap(&from);
  486. } else {
  487. CopyFrom(from);
  488. }
  489. return *this;
  490. }
  491. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  492. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  493. }
  494. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  495. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  496. }
  497. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  498. return GetDescriptor();
  499. }
  500. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  501. return default_instance().GetMetadata().descriptor;
  502. }
  503. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  504. return default_instance().GetMetadata().reflection;
  505. }
  506. static const FileDescriptorProto& default_instance() {
  507. return *internal_default_instance();
  508. }
  509. static inline const FileDescriptorProto* internal_default_instance() {
  510. return reinterpret_cast<const FileDescriptorProto*>(
  511. &_FileDescriptorProto_default_instance_);
  512. }
  513. static constexpr int kIndexInFileMessages =
  514. 1;
  515. friend void swap(FileDescriptorProto& a, FileDescriptorProto& b) {
  516. a.Swap(&b);
  517. }
  518. inline void Swap(FileDescriptorProto* other) {
  519. if (other == this) return;
  520. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  521. if (GetOwningArena() != nullptr &&
  522. GetOwningArena() == other->GetOwningArena()) {
  523. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  524. if (GetOwningArena() == other->GetOwningArena()) {
  525. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  526. InternalSwap(other);
  527. } else {
  528. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  529. }
  530. }
  531. void UnsafeArenaSwap(FileDescriptorProto* other) {
  532. if (other == this) return;
  533. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  534. InternalSwap(other);
  535. }
  536. // implements Message ----------------------------------------------
  537. FileDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  538. return CreateMaybeMessage<FileDescriptorProto>(arena);
  539. }
  540. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  541. void CopyFrom(const FileDescriptorProto& from);
  542. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  543. void MergeFrom(const FileDescriptorProto& from);
  544. private:
  545. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  546. public:
  547. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  548. bool IsInitialized() const final;
  549. size_t ByteSizeLong() const final;
  550. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  551. uint8_t* _InternalSerialize(
  552. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  553. int GetCachedSize() const final { return _cached_size_.Get(); }
  554. private:
  555. void SharedCtor();
  556. void SharedDtor();
  557. void SetCachedSize(int size) const final;
  558. void InternalSwap(FileDescriptorProto* other);
  559. private:
  560. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  561. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  562. return "google.protobuf.FileDescriptorProto";
  563. }
  564. protected:
  565. explicit FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  566. bool is_message_owned = false);
  567. private:
  568. static void ArenaDtor(void* object);
  569. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  570. public:
  571. static const ClassData _class_data_;
  572. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  573. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  574. // nested types ----------------------------------------------------
  575. // accessors -------------------------------------------------------
  576. enum : int {
  577. kDependencyFieldNumber = 3,
  578. kMessageTypeFieldNumber = 4,
  579. kEnumTypeFieldNumber = 5,
  580. kServiceFieldNumber = 6,
  581. kExtensionFieldNumber = 7,
  582. kPublicDependencyFieldNumber = 10,
  583. kWeakDependencyFieldNumber = 11,
  584. kNameFieldNumber = 1,
  585. kPackageFieldNumber = 2,
  586. kSyntaxFieldNumber = 12,
  587. kOptionsFieldNumber = 8,
  588. kSourceCodeInfoFieldNumber = 9,
  589. };
  590. // repeated string dependency = 3;
  591. int dependency_size() const;
  592. private:
  593. int _internal_dependency_size() const;
  594. public:
  595. void clear_dependency();
  596. const std::string& dependency(int index) const;
  597. std::string* mutable_dependency(int index);
  598. void set_dependency(int index, const std::string& value);
  599. void set_dependency(int index, std::string&& value);
  600. void set_dependency(int index, const char* value);
  601. void set_dependency(int index, const char* value, size_t size);
  602. std::string* add_dependency();
  603. void add_dependency(const std::string& value);
  604. void add_dependency(std::string&& value);
  605. void add_dependency(const char* value);
  606. void add_dependency(const char* value, size_t size);
  607. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& dependency() const;
  608. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_dependency();
  609. private:
  610. const std::string& _internal_dependency(int index) const;
  611. std::string* _internal_add_dependency();
  612. public:
  613. // repeated .google.protobuf.DescriptorProto message_type = 4;
  614. int message_type_size() const;
  615. private:
  616. int _internal_message_type_size() const;
  617. public:
  618. void clear_message_type();
  619. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* mutable_message_type(int index);
  620. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  621. mutable_message_type();
  622. private:
  623. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& _internal_message_type(int index) const;
  624. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _internal_add_message_type();
  625. public:
  626. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& message_type(int index) const;
  627. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* add_message_type();
  628. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  629. message_type() const;
  630. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  631. int enum_type_size() const;
  632. private:
  633. int _internal_enum_type_size() const;
  634. public:
  635. void clear_enum_type();
  636. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* mutable_enum_type(int index);
  637. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  638. mutable_enum_type();
  639. private:
  640. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& _internal_enum_type(int index) const;
  641. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _internal_add_enum_type();
  642. public:
  643. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& enum_type(int index) const;
  644. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* add_enum_type();
  645. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  646. enum_type() const;
  647. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  648. int service_size() const;
  649. private:
  650. int _internal_service_size() const;
  651. public:
  652. void clear_service();
  653. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* mutable_service(int index);
  654. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >*
  655. mutable_service();
  656. private:
  657. const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& _internal_service(int index) const;
  658. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* _internal_add_service();
  659. public:
  660. const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& service(int index) const;
  661. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* add_service();
  662. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >&
  663. service() const;
  664. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  665. int extension_size() const;
  666. private:
  667. int _internal_extension_size() const;
  668. public:
  669. void clear_extension();
  670. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index);
  671. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  672. mutable_extension();
  673. private:
  674. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_extension(int index) const;
  675. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_extension();
  676. public:
  677. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& extension(int index) const;
  678. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_extension();
  679. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  680. extension() const;
  681. // repeated int32 public_dependency = 10;
  682. int public_dependency_size() const;
  683. private:
  684. int _internal_public_dependency_size() const;
  685. public:
  686. void clear_public_dependency();
  687. private:
  688. int32_t _internal_public_dependency(int index) const;
  689. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  690. _internal_public_dependency() const;
  691. void _internal_add_public_dependency(int32_t value);
  692. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  693. _internal_mutable_public_dependency();
  694. public:
  695. int32_t public_dependency(int index) const;
  696. void set_public_dependency(int index, int32_t value);
  697. void add_public_dependency(int32_t value);
  698. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  699. public_dependency() const;
  700. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  701. mutable_public_dependency();
  702. // repeated int32 weak_dependency = 11;
  703. int weak_dependency_size() const;
  704. private:
  705. int _internal_weak_dependency_size() const;
  706. public:
  707. void clear_weak_dependency();
  708. private:
  709. int32_t _internal_weak_dependency(int index) const;
  710. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  711. _internal_weak_dependency() const;
  712. void _internal_add_weak_dependency(int32_t value);
  713. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  714. _internal_mutable_weak_dependency();
  715. public:
  716. int32_t weak_dependency(int index) const;
  717. void set_weak_dependency(int index, int32_t value);
  718. void add_weak_dependency(int32_t value);
  719. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  720. weak_dependency() const;
  721. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  722. mutable_weak_dependency();
  723. // optional string name = 1;
  724. bool has_name() const;
  725. private:
  726. bool _internal_has_name() const;
  727. public:
  728. void clear_name();
  729. const std::string& name() const;
  730. template <typename ArgT0 = const std::string&, typename... ArgT>
  731. void set_name(ArgT0&& arg0, ArgT... args);
  732. std::string* mutable_name();
  733. PROTOBUF_NODISCARD std::string* release_name();
  734. void set_allocated_name(std::string* name);
  735. private:
  736. const std::string& _internal_name() const;
  737. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  738. std::string* _internal_mutable_name();
  739. public:
  740. // optional string package = 2;
  741. bool has_package() const;
  742. private:
  743. bool _internal_has_package() const;
  744. public:
  745. void clear_package();
  746. const std::string& package() const;
  747. template <typename ArgT0 = const std::string&, typename... ArgT>
  748. void set_package(ArgT0&& arg0, ArgT... args);
  749. std::string* mutable_package();
  750. PROTOBUF_NODISCARD std::string* release_package();
  751. void set_allocated_package(std::string* package);
  752. private:
  753. const std::string& _internal_package() const;
  754. inline PROTOBUF_ALWAYS_INLINE void _internal_set_package(const std::string& value);
  755. std::string* _internal_mutable_package();
  756. public:
  757. // optional string syntax = 12;
  758. bool has_syntax() const;
  759. private:
  760. bool _internal_has_syntax() const;
  761. public:
  762. void clear_syntax();
  763. const std::string& syntax() const;
  764. template <typename ArgT0 = const std::string&, typename... ArgT>
  765. void set_syntax(ArgT0&& arg0, ArgT... args);
  766. std::string* mutable_syntax();
  767. PROTOBUF_NODISCARD std::string* release_syntax();
  768. void set_allocated_syntax(std::string* syntax);
  769. private:
  770. const std::string& _internal_syntax() const;
  771. inline PROTOBUF_ALWAYS_INLINE void _internal_set_syntax(const std::string& value);
  772. std::string* _internal_mutable_syntax();
  773. public:
  774. // optional .google.protobuf.FileOptions options = 8;
  775. bool has_options() const;
  776. private:
  777. bool _internal_has_options() const;
  778. public:
  779. void clear_options();
  780. const ::PROTOBUF_NAMESPACE_ID::FileOptions& options() const;
  781. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FileOptions* release_options();
  782. ::PROTOBUF_NAMESPACE_ID::FileOptions* mutable_options();
  783. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::FileOptions* options);
  784. private:
  785. const ::PROTOBUF_NAMESPACE_ID::FileOptions& _internal_options() const;
  786. ::PROTOBUF_NAMESPACE_ID::FileOptions* _internal_mutable_options();
  787. public:
  788. void unsafe_arena_set_allocated_options(
  789. ::PROTOBUF_NAMESPACE_ID::FileOptions* options);
  790. ::PROTOBUF_NAMESPACE_ID::FileOptions* unsafe_arena_release_options();
  791. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  792. bool has_source_code_info() const;
  793. private:
  794. bool _internal_has_source_code_info() const;
  795. public:
  796. void clear_source_code_info();
  797. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& source_code_info() const;
  798. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* release_source_code_info();
  799. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* mutable_source_code_info();
  800. void set_allocated_source_code_info(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info);
  801. private:
  802. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& _internal_source_code_info() const;
  803. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* _internal_mutable_source_code_info();
  804. public:
  805. void unsafe_arena_set_allocated_source_code_info(
  806. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info);
  807. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* unsafe_arena_release_source_code_info();
  808. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
  809. private:
  810. class _Internal;
  811. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  812. typedef void InternalArenaConstructable_;
  813. typedef void DestructorSkippable_;
  814. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  815. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  816. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> dependency_;
  817. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto > message_type_;
  818. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto > enum_type_;
  819. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto > service_;
  820. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > extension_;
  821. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > public_dependency_;
  822. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > weak_dependency_;
  823. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  824. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_;
  825. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr syntax_;
  826. ::PROTOBUF_NAMESPACE_ID::FileOptions* options_;
  827. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info_;
  828. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  829. };
  830. // -------------------------------------------------------------------
  831. class PROTOBUF_EXPORT DescriptorProto_ExtensionRange final :
  832. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ExtensionRange) */ {
  833. public:
  834. inline DescriptorProto_ExtensionRange() : DescriptorProto_ExtensionRange(nullptr) {}
  835. ~DescriptorProto_ExtensionRange() override;
  836. explicit constexpr DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  837. DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from);
  838. DescriptorProto_ExtensionRange(DescriptorProto_ExtensionRange&& from) noexcept
  839. : DescriptorProto_ExtensionRange() {
  840. *this = ::std::move(from);
  841. }
  842. inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) {
  843. CopyFrom(from);
  844. return *this;
  845. }
  846. inline DescriptorProto_ExtensionRange& operator=(DescriptorProto_ExtensionRange&& from) noexcept {
  847. if (this == &from) return *this;
  848. if (GetOwningArena() == from.GetOwningArena()
  849. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  850. && GetOwningArena() != nullptr
  851. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  852. ) {
  853. InternalSwap(&from);
  854. } else {
  855. CopyFrom(from);
  856. }
  857. return *this;
  858. }
  859. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  860. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  861. }
  862. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  863. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  864. }
  865. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  866. return GetDescriptor();
  867. }
  868. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  869. return default_instance().GetMetadata().descriptor;
  870. }
  871. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  872. return default_instance().GetMetadata().reflection;
  873. }
  874. static const DescriptorProto_ExtensionRange& default_instance() {
  875. return *internal_default_instance();
  876. }
  877. static inline const DescriptorProto_ExtensionRange* internal_default_instance() {
  878. return reinterpret_cast<const DescriptorProto_ExtensionRange*>(
  879. &_DescriptorProto_ExtensionRange_default_instance_);
  880. }
  881. static constexpr int kIndexInFileMessages =
  882. 2;
  883. friend void swap(DescriptorProto_ExtensionRange& a, DescriptorProto_ExtensionRange& b) {
  884. a.Swap(&b);
  885. }
  886. inline void Swap(DescriptorProto_ExtensionRange* other) {
  887. if (other == this) return;
  888. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  889. if (GetOwningArena() != nullptr &&
  890. GetOwningArena() == other->GetOwningArena()) {
  891. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  892. if (GetOwningArena() == other->GetOwningArena()) {
  893. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  894. InternalSwap(other);
  895. } else {
  896. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  897. }
  898. }
  899. void UnsafeArenaSwap(DescriptorProto_ExtensionRange* other) {
  900. if (other == this) return;
  901. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  902. InternalSwap(other);
  903. }
  904. // implements Message ----------------------------------------------
  905. DescriptorProto_ExtensionRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  906. return CreateMaybeMessage<DescriptorProto_ExtensionRange>(arena);
  907. }
  908. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  909. void CopyFrom(const DescriptorProto_ExtensionRange& from);
  910. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  911. void MergeFrom(const DescriptorProto_ExtensionRange& from);
  912. private:
  913. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  914. public:
  915. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  916. bool IsInitialized() const final;
  917. size_t ByteSizeLong() const final;
  918. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  919. uint8_t* _InternalSerialize(
  920. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  921. int GetCachedSize() const final { return _cached_size_.Get(); }
  922. private:
  923. void SharedCtor();
  924. void SharedDtor();
  925. void SetCachedSize(int size) const final;
  926. void InternalSwap(DescriptorProto_ExtensionRange* other);
  927. private:
  928. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  929. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  930. return "google.protobuf.DescriptorProto.ExtensionRange";
  931. }
  932. protected:
  933. explicit DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  934. bool is_message_owned = false);
  935. private:
  936. static void ArenaDtor(void* object);
  937. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  938. public:
  939. static const ClassData _class_data_;
  940. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  941. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  942. // nested types ----------------------------------------------------
  943. // accessors -------------------------------------------------------
  944. enum : int {
  945. kOptionsFieldNumber = 3,
  946. kStartFieldNumber = 1,
  947. kEndFieldNumber = 2,
  948. };
  949. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  950. bool has_options() const;
  951. private:
  952. bool _internal_has_options() const;
  953. public:
  954. void clear_options();
  955. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& options() const;
  956. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* release_options();
  957. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* mutable_options();
  958. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options);
  959. private:
  960. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& _internal_options() const;
  961. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* _internal_mutable_options();
  962. public:
  963. void unsafe_arena_set_allocated_options(
  964. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options);
  965. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* unsafe_arena_release_options();
  966. // optional int32 start = 1;
  967. bool has_start() const;
  968. private:
  969. bool _internal_has_start() const;
  970. public:
  971. void clear_start();
  972. int32_t start() const;
  973. void set_start(int32_t value);
  974. private:
  975. int32_t _internal_start() const;
  976. void _internal_set_start(int32_t value);
  977. public:
  978. // optional int32 end = 2;
  979. bool has_end() const;
  980. private:
  981. bool _internal_has_end() const;
  982. public:
  983. void clear_end();
  984. int32_t end() const;
  985. void set_end(int32_t value);
  986. private:
  987. int32_t _internal_end() const;
  988. void _internal_set_end(int32_t value);
  989. public:
  990. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
  991. private:
  992. class _Internal;
  993. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  994. typedef void InternalArenaConstructable_;
  995. typedef void DestructorSkippable_;
  996. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  997. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  998. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options_;
  999. int32_t start_;
  1000. int32_t end_;
  1001. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1002. };
  1003. // -------------------------------------------------------------------
  1004. class PROTOBUF_EXPORT DescriptorProto_ReservedRange final :
  1005. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ReservedRange) */ {
  1006. public:
  1007. inline DescriptorProto_ReservedRange() : DescriptorProto_ReservedRange(nullptr) {}
  1008. ~DescriptorProto_ReservedRange() override;
  1009. explicit constexpr DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1010. DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from);
  1011. DescriptorProto_ReservedRange(DescriptorProto_ReservedRange&& from) noexcept
  1012. : DescriptorProto_ReservedRange() {
  1013. *this = ::std::move(from);
  1014. }
  1015. inline DescriptorProto_ReservedRange& operator=(const DescriptorProto_ReservedRange& from) {
  1016. CopyFrom(from);
  1017. return *this;
  1018. }
  1019. inline DescriptorProto_ReservedRange& operator=(DescriptorProto_ReservedRange&& from) noexcept {
  1020. if (this == &from) return *this;
  1021. if (GetOwningArena() == from.GetOwningArena()
  1022. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1023. && GetOwningArena() != nullptr
  1024. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1025. ) {
  1026. InternalSwap(&from);
  1027. } else {
  1028. CopyFrom(from);
  1029. }
  1030. return *this;
  1031. }
  1032. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1033. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1034. }
  1035. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1036. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1037. }
  1038. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1039. return GetDescriptor();
  1040. }
  1041. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1042. return default_instance().GetMetadata().descriptor;
  1043. }
  1044. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1045. return default_instance().GetMetadata().reflection;
  1046. }
  1047. static const DescriptorProto_ReservedRange& default_instance() {
  1048. return *internal_default_instance();
  1049. }
  1050. static inline const DescriptorProto_ReservedRange* internal_default_instance() {
  1051. return reinterpret_cast<const DescriptorProto_ReservedRange*>(
  1052. &_DescriptorProto_ReservedRange_default_instance_);
  1053. }
  1054. static constexpr int kIndexInFileMessages =
  1055. 3;
  1056. friend void swap(DescriptorProto_ReservedRange& a, DescriptorProto_ReservedRange& b) {
  1057. a.Swap(&b);
  1058. }
  1059. inline void Swap(DescriptorProto_ReservedRange* other) {
  1060. if (other == this) return;
  1061. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1062. if (GetOwningArena() != nullptr &&
  1063. GetOwningArena() == other->GetOwningArena()) {
  1064. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1065. if (GetOwningArena() == other->GetOwningArena()) {
  1066. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1067. InternalSwap(other);
  1068. } else {
  1069. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1070. }
  1071. }
  1072. void UnsafeArenaSwap(DescriptorProto_ReservedRange* other) {
  1073. if (other == this) return;
  1074. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1075. InternalSwap(other);
  1076. }
  1077. // implements Message ----------------------------------------------
  1078. DescriptorProto_ReservedRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1079. return CreateMaybeMessage<DescriptorProto_ReservedRange>(arena);
  1080. }
  1081. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1082. void CopyFrom(const DescriptorProto_ReservedRange& from);
  1083. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1084. void MergeFrom(const DescriptorProto_ReservedRange& from);
  1085. private:
  1086. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1087. public:
  1088. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1089. bool IsInitialized() const final;
  1090. size_t ByteSizeLong() const final;
  1091. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1092. uint8_t* _InternalSerialize(
  1093. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1094. int GetCachedSize() const final { return _cached_size_.Get(); }
  1095. private:
  1096. void SharedCtor();
  1097. void SharedDtor();
  1098. void SetCachedSize(int size) const final;
  1099. void InternalSwap(DescriptorProto_ReservedRange* other);
  1100. private:
  1101. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1102. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1103. return "google.protobuf.DescriptorProto.ReservedRange";
  1104. }
  1105. protected:
  1106. explicit DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1107. bool is_message_owned = false);
  1108. private:
  1109. static void ArenaDtor(void* object);
  1110. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1111. public:
  1112. static const ClassData _class_data_;
  1113. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1114. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1115. // nested types ----------------------------------------------------
  1116. // accessors -------------------------------------------------------
  1117. enum : int {
  1118. kStartFieldNumber = 1,
  1119. kEndFieldNumber = 2,
  1120. };
  1121. // optional int32 start = 1;
  1122. bool has_start() const;
  1123. private:
  1124. bool _internal_has_start() const;
  1125. public:
  1126. void clear_start();
  1127. int32_t start() const;
  1128. void set_start(int32_t value);
  1129. private:
  1130. int32_t _internal_start() const;
  1131. void _internal_set_start(int32_t value);
  1132. public:
  1133. // optional int32 end = 2;
  1134. bool has_end() const;
  1135. private:
  1136. bool _internal_has_end() const;
  1137. public:
  1138. void clear_end();
  1139. int32_t end() const;
  1140. void set_end(int32_t value);
  1141. private:
  1142. int32_t _internal_end() const;
  1143. void _internal_set_end(int32_t value);
  1144. public:
  1145. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ReservedRange)
  1146. private:
  1147. class _Internal;
  1148. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1149. typedef void InternalArenaConstructable_;
  1150. typedef void DestructorSkippable_;
  1151. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1152. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1153. int32_t start_;
  1154. int32_t end_;
  1155. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1156. };
  1157. // -------------------------------------------------------------------
  1158. class PROTOBUF_EXPORT DescriptorProto final :
  1159. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto) */ {
  1160. public:
  1161. inline DescriptorProto() : DescriptorProto(nullptr) {}
  1162. ~DescriptorProto() override;
  1163. explicit constexpr DescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1164. DescriptorProto(const DescriptorProto& from);
  1165. DescriptorProto(DescriptorProto&& from) noexcept
  1166. : DescriptorProto() {
  1167. *this = ::std::move(from);
  1168. }
  1169. inline DescriptorProto& operator=(const DescriptorProto& from) {
  1170. CopyFrom(from);
  1171. return *this;
  1172. }
  1173. inline DescriptorProto& operator=(DescriptorProto&& from) noexcept {
  1174. if (this == &from) return *this;
  1175. if (GetOwningArena() == from.GetOwningArena()
  1176. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1177. && GetOwningArena() != nullptr
  1178. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1179. ) {
  1180. InternalSwap(&from);
  1181. } else {
  1182. CopyFrom(from);
  1183. }
  1184. return *this;
  1185. }
  1186. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1187. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1188. }
  1189. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1190. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1191. }
  1192. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1193. return GetDescriptor();
  1194. }
  1195. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1196. return default_instance().GetMetadata().descriptor;
  1197. }
  1198. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1199. return default_instance().GetMetadata().reflection;
  1200. }
  1201. static const DescriptorProto& default_instance() {
  1202. return *internal_default_instance();
  1203. }
  1204. static inline const DescriptorProto* internal_default_instance() {
  1205. return reinterpret_cast<const DescriptorProto*>(
  1206. &_DescriptorProto_default_instance_);
  1207. }
  1208. static constexpr int kIndexInFileMessages =
  1209. 4;
  1210. friend void swap(DescriptorProto& a, DescriptorProto& b) {
  1211. a.Swap(&b);
  1212. }
  1213. inline void Swap(DescriptorProto* other) {
  1214. if (other == this) return;
  1215. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1216. if (GetOwningArena() != nullptr &&
  1217. GetOwningArena() == other->GetOwningArena()) {
  1218. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1219. if (GetOwningArena() == other->GetOwningArena()) {
  1220. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1221. InternalSwap(other);
  1222. } else {
  1223. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1224. }
  1225. }
  1226. void UnsafeArenaSwap(DescriptorProto* other) {
  1227. if (other == this) return;
  1228. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1229. InternalSwap(other);
  1230. }
  1231. // implements Message ----------------------------------------------
  1232. DescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1233. return CreateMaybeMessage<DescriptorProto>(arena);
  1234. }
  1235. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1236. void CopyFrom(const DescriptorProto& from);
  1237. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1238. void MergeFrom(const DescriptorProto& from);
  1239. private:
  1240. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1241. public:
  1242. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1243. bool IsInitialized() const final;
  1244. size_t ByteSizeLong() const final;
  1245. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1246. uint8_t* _InternalSerialize(
  1247. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1248. int GetCachedSize() const final { return _cached_size_.Get(); }
  1249. private:
  1250. void SharedCtor();
  1251. void SharedDtor();
  1252. void SetCachedSize(int size) const final;
  1253. void InternalSwap(DescriptorProto* other);
  1254. private:
  1255. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1256. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1257. return "google.protobuf.DescriptorProto";
  1258. }
  1259. protected:
  1260. explicit DescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1261. bool is_message_owned = false);
  1262. private:
  1263. static void ArenaDtor(void* object);
  1264. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1265. public:
  1266. static const ClassData _class_data_;
  1267. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1268. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1269. // nested types ----------------------------------------------------
  1270. typedef DescriptorProto_ExtensionRange ExtensionRange;
  1271. typedef DescriptorProto_ReservedRange ReservedRange;
  1272. // accessors -------------------------------------------------------
  1273. enum : int {
  1274. kFieldFieldNumber = 2,
  1275. kNestedTypeFieldNumber = 3,
  1276. kEnumTypeFieldNumber = 4,
  1277. kExtensionRangeFieldNumber = 5,
  1278. kExtensionFieldNumber = 6,
  1279. kOneofDeclFieldNumber = 8,
  1280. kReservedRangeFieldNumber = 9,
  1281. kReservedNameFieldNumber = 10,
  1282. kNameFieldNumber = 1,
  1283. kOptionsFieldNumber = 7,
  1284. };
  1285. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1286. int field_size() const;
  1287. private:
  1288. int _internal_field_size() const;
  1289. public:
  1290. void clear_field();
  1291. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_field(int index);
  1292. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  1293. mutable_field();
  1294. private:
  1295. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_field(int index) const;
  1296. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_field();
  1297. public:
  1298. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& field(int index) const;
  1299. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_field();
  1300. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  1301. field() const;
  1302. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1303. int nested_type_size() const;
  1304. private:
  1305. int _internal_nested_type_size() const;
  1306. public:
  1307. void clear_nested_type();
  1308. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* mutable_nested_type(int index);
  1309. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  1310. mutable_nested_type();
  1311. private:
  1312. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& _internal_nested_type(int index) const;
  1313. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _internal_add_nested_type();
  1314. public:
  1315. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& nested_type(int index) const;
  1316. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* add_nested_type();
  1317. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  1318. nested_type() const;
  1319. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1320. int enum_type_size() const;
  1321. private:
  1322. int _internal_enum_type_size() const;
  1323. public:
  1324. void clear_enum_type();
  1325. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* mutable_enum_type(int index);
  1326. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  1327. mutable_enum_type();
  1328. private:
  1329. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& _internal_enum_type(int index) const;
  1330. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _internal_add_enum_type();
  1331. public:
  1332. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& enum_type(int index) const;
  1333. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* add_enum_type();
  1334. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  1335. enum_type() const;
  1336. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1337. int extension_range_size() const;
  1338. private:
  1339. int _internal_extension_range_size() const;
  1340. public:
  1341. void clear_extension_range();
  1342. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
  1343. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >*
  1344. mutable_extension_range();
  1345. private:
  1346. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& _internal_extension_range(int index) const;
  1347. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* _internal_add_extension_range();
  1348. public:
  1349. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& extension_range(int index) const;
  1350. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* add_extension_range();
  1351. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >&
  1352. extension_range() const;
  1353. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1354. int extension_size() const;
  1355. private:
  1356. int _internal_extension_size() const;
  1357. public:
  1358. void clear_extension();
  1359. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index);
  1360. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  1361. mutable_extension();
  1362. private:
  1363. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_extension(int index) const;
  1364. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_extension();
  1365. public:
  1366. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& extension(int index) const;
  1367. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_extension();
  1368. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  1369. extension() const;
  1370. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  1371. int oneof_decl_size() const;
  1372. private:
  1373. int _internal_oneof_decl_size() const;
  1374. public:
  1375. void clear_oneof_decl();
  1376. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* mutable_oneof_decl(int index);
  1377. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >*
  1378. mutable_oneof_decl();
  1379. private:
  1380. const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& _internal_oneof_decl(int index) const;
  1381. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* _internal_add_oneof_decl();
  1382. public:
  1383. const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& oneof_decl(int index) const;
  1384. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* add_oneof_decl();
  1385. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >&
  1386. oneof_decl() const;
  1387. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  1388. int reserved_range_size() const;
  1389. private:
  1390. int _internal_reserved_range_size() const;
  1391. public:
  1392. void clear_reserved_range();
  1393. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* mutable_reserved_range(int index);
  1394. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >*
  1395. mutable_reserved_range();
  1396. private:
  1397. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& _internal_reserved_range(int index) const;
  1398. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* _internal_add_reserved_range();
  1399. public:
  1400. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& reserved_range(int index) const;
  1401. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* add_reserved_range();
  1402. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >&
  1403. reserved_range() const;
  1404. // repeated string reserved_name = 10;
  1405. int reserved_name_size() const;
  1406. private:
  1407. int _internal_reserved_name_size() const;
  1408. public:
  1409. void clear_reserved_name();
  1410. const std::string& reserved_name(int index) const;
  1411. std::string* mutable_reserved_name(int index);
  1412. void set_reserved_name(int index, const std::string& value);
  1413. void set_reserved_name(int index, std::string&& value);
  1414. void set_reserved_name(int index, const char* value);
  1415. void set_reserved_name(int index, const char* value, size_t size);
  1416. std::string* add_reserved_name();
  1417. void add_reserved_name(const std::string& value);
  1418. void add_reserved_name(std::string&& value);
  1419. void add_reserved_name(const char* value);
  1420. void add_reserved_name(const char* value, size_t size);
  1421. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& reserved_name() const;
  1422. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_reserved_name();
  1423. private:
  1424. const std::string& _internal_reserved_name(int index) const;
  1425. std::string* _internal_add_reserved_name();
  1426. public:
  1427. // optional string name = 1;
  1428. bool has_name() const;
  1429. private:
  1430. bool _internal_has_name() const;
  1431. public:
  1432. void clear_name();
  1433. const std::string& name() const;
  1434. template <typename ArgT0 = const std::string&, typename... ArgT>
  1435. void set_name(ArgT0&& arg0, ArgT... args);
  1436. std::string* mutable_name();
  1437. PROTOBUF_NODISCARD std::string* release_name();
  1438. void set_allocated_name(std::string* name);
  1439. private:
  1440. const std::string& _internal_name() const;
  1441. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  1442. std::string* _internal_mutable_name();
  1443. public:
  1444. // optional .google.protobuf.MessageOptions options = 7;
  1445. bool has_options() const;
  1446. private:
  1447. bool _internal_has_options() const;
  1448. public:
  1449. void clear_options();
  1450. const ::PROTOBUF_NAMESPACE_ID::MessageOptions& options() const;
  1451. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::MessageOptions* release_options();
  1452. ::PROTOBUF_NAMESPACE_ID::MessageOptions* mutable_options();
  1453. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::MessageOptions* options);
  1454. private:
  1455. const ::PROTOBUF_NAMESPACE_ID::MessageOptions& _internal_options() const;
  1456. ::PROTOBUF_NAMESPACE_ID::MessageOptions* _internal_mutable_options();
  1457. public:
  1458. void unsafe_arena_set_allocated_options(
  1459. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options);
  1460. ::PROTOBUF_NAMESPACE_ID::MessageOptions* unsafe_arena_release_options();
  1461. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
  1462. private:
  1463. class _Internal;
  1464. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1465. typedef void InternalArenaConstructable_;
  1466. typedef void DestructorSkippable_;
  1467. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1468. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1469. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > field_;
  1470. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto > nested_type_;
  1471. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto > enum_type_;
  1472. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange > extension_range_;
  1473. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > extension_;
  1474. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto > oneof_decl_;
  1475. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange > reserved_range_;
  1476. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> reserved_name_;
  1477. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  1478. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options_;
  1479. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1480. };
  1481. // -------------------------------------------------------------------
  1482. class PROTOBUF_EXPORT ExtensionRangeOptions final :
  1483. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ExtensionRangeOptions) */ {
  1484. public:
  1485. inline ExtensionRangeOptions() : ExtensionRangeOptions(nullptr) {}
  1486. ~ExtensionRangeOptions() override;
  1487. explicit constexpr ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1488. ExtensionRangeOptions(const ExtensionRangeOptions& from);
  1489. ExtensionRangeOptions(ExtensionRangeOptions&& from) noexcept
  1490. : ExtensionRangeOptions() {
  1491. *this = ::std::move(from);
  1492. }
  1493. inline ExtensionRangeOptions& operator=(const ExtensionRangeOptions& from) {
  1494. CopyFrom(from);
  1495. return *this;
  1496. }
  1497. inline ExtensionRangeOptions& operator=(ExtensionRangeOptions&& from) noexcept {
  1498. if (this == &from) return *this;
  1499. if (GetOwningArena() == from.GetOwningArena()
  1500. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1501. && GetOwningArena() != nullptr
  1502. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1503. ) {
  1504. InternalSwap(&from);
  1505. } else {
  1506. CopyFrom(from);
  1507. }
  1508. return *this;
  1509. }
  1510. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1511. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1512. }
  1513. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1514. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1515. }
  1516. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1517. return GetDescriptor();
  1518. }
  1519. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1520. return default_instance().GetMetadata().descriptor;
  1521. }
  1522. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1523. return default_instance().GetMetadata().reflection;
  1524. }
  1525. static const ExtensionRangeOptions& default_instance() {
  1526. return *internal_default_instance();
  1527. }
  1528. static inline const ExtensionRangeOptions* internal_default_instance() {
  1529. return reinterpret_cast<const ExtensionRangeOptions*>(
  1530. &_ExtensionRangeOptions_default_instance_);
  1531. }
  1532. static constexpr int kIndexInFileMessages =
  1533. 5;
  1534. friend void swap(ExtensionRangeOptions& a, ExtensionRangeOptions& b) {
  1535. a.Swap(&b);
  1536. }
  1537. inline void Swap(ExtensionRangeOptions* other) {
  1538. if (other == this) return;
  1539. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1540. if (GetOwningArena() != nullptr &&
  1541. GetOwningArena() == other->GetOwningArena()) {
  1542. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1543. if (GetOwningArena() == other->GetOwningArena()) {
  1544. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1545. InternalSwap(other);
  1546. } else {
  1547. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1548. }
  1549. }
  1550. void UnsafeArenaSwap(ExtensionRangeOptions* other) {
  1551. if (other == this) return;
  1552. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1553. InternalSwap(other);
  1554. }
  1555. // implements Message ----------------------------------------------
  1556. ExtensionRangeOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1557. return CreateMaybeMessage<ExtensionRangeOptions>(arena);
  1558. }
  1559. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1560. void CopyFrom(const ExtensionRangeOptions& from);
  1561. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1562. void MergeFrom(const ExtensionRangeOptions& from);
  1563. private:
  1564. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1565. public:
  1566. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1567. bool IsInitialized() const final;
  1568. size_t ByteSizeLong() const final;
  1569. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1570. uint8_t* _InternalSerialize(
  1571. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1572. int GetCachedSize() const final { return _cached_size_.Get(); }
  1573. private:
  1574. void SharedCtor();
  1575. void SharedDtor();
  1576. void SetCachedSize(int size) const final;
  1577. void InternalSwap(ExtensionRangeOptions* other);
  1578. private:
  1579. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1580. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1581. return "google.protobuf.ExtensionRangeOptions";
  1582. }
  1583. protected:
  1584. explicit ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1585. bool is_message_owned = false);
  1586. private:
  1587. static void ArenaDtor(void* object);
  1588. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1589. public:
  1590. static const ClassData _class_data_;
  1591. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1592. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1593. // nested types ----------------------------------------------------
  1594. // accessors -------------------------------------------------------
  1595. enum : int {
  1596. kUninterpretedOptionFieldNumber = 999,
  1597. };
  1598. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1599. int uninterpreted_option_size() const;
  1600. private:
  1601. int _internal_uninterpreted_option_size() const;
  1602. public:
  1603. void clear_uninterpreted_option();
  1604. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  1605. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  1606. mutable_uninterpreted_option();
  1607. private:
  1608. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  1609. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  1610. public:
  1611. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  1612. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  1613. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  1614. uninterpreted_option() const;
  1615. template <typename _proto_TypeTraits,
  1616. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1617. bool _is_packed>
  1618. inline bool HasExtension(
  1619. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1620. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1621. return _extensions_.Has(id.number());
  1622. }
  1623. template <typename _proto_TypeTraits,
  1624. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1625. bool _is_packed>
  1626. inline void ClearExtension(
  1627. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1628. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1629. _extensions_.ClearExtension(id.number());
  1630. }
  1631. template <typename _proto_TypeTraits,
  1632. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1633. bool _is_packed>
  1634. inline int ExtensionSize(
  1635. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1636. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1637. return _extensions_.ExtensionSize(id.number());
  1638. }
  1639. template <typename _proto_TypeTraits,
  1640. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1641. bool _is_packed>
  1642. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  1643. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1644. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1645. return _proto_TypeTraits::Get(id.number(), _extensions_,
  1646. id.default_value());
  1647. }
  1648. template <typename _proto_TypeTraits,
  1649. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1650. bool _is_packed>
  1651. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  1652. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1653. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1654. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  1655. &_extensions_);
  1656. }
  1657. template <typename _proto_TypeTraits,
  1658. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1659. bool _is_packed>
  1660. inline void SetExtension(
  1661. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1662. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1663. typename _proto_TypeTraits::Singular::ConstType value) {
  1664. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  1665. }
  1666. template <typename _proto_TypeTraits,
  1667. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1668. bool _is_packed>
  1669. inline void SetAllocatedExtension(
  1670. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1671. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1672. typename _proto_TypeTraits::Singular::MutableType value) {
  1673. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  1674. &_extensions_);
  1675. }
  1676. template <typename _proto_TypeTraits,
  1677. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1678. bool _is_packed>
  1679. inline void UnsafeArenaSetAllocatedExtension(
  1680. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1681. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1682. typename _proto_TypeTraits::Singular::MutableType value) {
  1683. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  1684. value, &_extensions_);
  1685. }
  1686. template <typename _proto_TypeTraits,
  1687. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1688. bool _is_packed>
  1689. PROTOBUF_NODISCARD inline
  1690. typename _proto_TypeTraits::Singular::MutableType
  1691. ReleaseExtension(
  1692. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1693. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1694. return _proto_TypeTraits::Release(id.number(), _field_type,
  1695. &_extensions_);
  1696. }
  1697. template <typename _proto_TypeTraits,
  1698. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1699. bool _is_packed>
  1700. inline typename _proto_TypeTraits::Singular::MutableType
  1701. UnsafeArenaReleaseExtension(
  1702. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1703. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1704. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  1705. &_extensions_);
  1706. }
  1707. template <typename _proto_TypeTraits,
  1708. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1709. bool _is_packed>
  1710. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  1711. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1712. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1713. int index) const {
  1714. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  1715. }
  1716. template <typename _proto_TypeTraits,
  1717. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1718. bool _is_packed>
  1719. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  1720. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1721. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1722. int index) {
  1723. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  1724. }
  1725. template <typename _proto_TypeTraits,
  1726. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1727. bool _is_packed>
  1728. inline void SetExtension(
  1729. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1730. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1731. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  1732. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  1733. }
  1734. template <typename _proto_TypeTraits,
  1735. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1736. bool _is_packed>
  1737. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  1738. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1739. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1740. typename _proto_TypeTraits::Repeated::MutableType to_add =
  1741. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  1742. return to_add;
  1743. }
  1744. template <typename _proto_TypeTraits,
  1745. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1746. bool _is_packed>
  1747. inline void AddExtension(
  1748. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1749. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1750. typename _proto_TypeTraits::Repeated::ConstType value) {
  1751. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  1752. &_extensions_);
  1753. }
  1754. template <typename _proto_TypeTraits,
  1755. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1756. bool _is_packed>
  1757. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  1758. GetRepeatedExtension(
  1759. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1760. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1761. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  1762. }
  1763. template <typename _proto_TypeTraits,
  1764. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1765. bool _is_packed>
  1766. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  1767. MutableRepeatedExtension(
  1768. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1769. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1770. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  1771. _is_packed, &_extensions_);
  1772. }
  1773. // @@protoc_insertion_point(class_scope:google.protobuf.ExtensionRangeOptions)
  1774. private:
  1775. class _Internal;
  1776. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  1777. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1778. typedef void InternalArenaConstructable_;
  1779. typedef void DestructorSkippable_;
  1780. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  1781. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1782. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1783. };
  1784. // -------------------------------------------------------------------
  1785. class PROTOBUF_EXPORT FieldDescriptorProto final :
  1786. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldDescriptorProto) */ {
  1787. public:
  1788. inline FieldDescriptorProto() : FieldDescriptorProto(nullptr) {}
  1789. ~FieldDescriptorProto() override;
  1790. explicit constexpr FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1791. FieldDescriptorProto(const FieldDescriptorProto& from);
  1792. FieldDescriptorProto(FieldDescriptorProto&& from) noexcept
  1793. : FieldDescriptorProto() {
  1794. *this = ::std::move(from);
  1795. }
  1796. inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) {
  1797. CopyFrom(from);
  1798. return *this;
  1799. }
  1800. inline FieldDescriptorProto& operator=(FieldDescriptorProto&& from) noexcept {
  1801. if (this == &from) return *this;
  1802. if (GetOwningArena() == from.GetOwningArena()
  1803. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1804. && GetOwningArena() != nullptr
  1805. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1806. ) {
  1807. InternalSwap(&from);
  1808. } else {
  1809. CopyFrom(from);
  1810. }
  1811. return *this;
  1812. }
  1813. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1814. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1815. }
  1816. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1817. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1818. }
  1819. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1820. return GetDescriptor();
  1821. }
  1822. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1823. return default_instance().GetMetadata().descriptor;
  1824. }
  1825. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1826. return default_instance().GetMetadata().reflection;
  1827. }
  1828. static const FieldDescriptorProto& default_instance() {
  1829. return *internal_default_instance();
  1830. }
  1831. static inline const FieldDescriptorProto* internal_default_instance() {
  1832. return reinterpret_cast<const FieldDescriptorProto*>(
  1833. &_FieldDescriptorProto_default_instance_);
  1834. }
  1835. static constexpr int kIndexInFileMessages =
  1836. 6;
  1837. friend void swap(FieldDescriptorProto& a, FieldDescriptorProto& b) {
  1838. a.Swap(&b);
  1839. }
  1840. inline void Swap(FieldDescriptorProto* other) {
  1841. if (other == this) return;
  1842. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1843. if (GetOwningArena() != nullptr &&
  1844. GetOwningArena() == other->GetOwningArena()) {
  1845. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1846. if (GetOwningArena() == other->GetOwningArena()) {
  1847. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1848. InternalSwap(other);
  1849. } else {
  1850. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1851. }
  1852. }
  1853. void UnsafeArenaSwap(FieldDescriptorProto* other) {
  1854. if (other == this) return;
  1855. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1856. InternalSwap(other);
  1857. }
  1858. // implements Message ----------------------------------------------
  1859. FieldDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1860. return CreateMaybeMessage<FieldDescriptorProto>(arena);
  1861. }
  1862. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1863. void CopyFrom(const FieldDescriptorProto& from);
  1864. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1865. void MergeFrom(const FieldDescriptorProto& from);
  1866. private:
  1867. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1868. public:
  1869. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1870. bool IsInitialized() const final;
  1871. size_t ByteSizeLong() const final;
  1872. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1873. uint8_t* _InternalSerialize(
  1874. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1875. int GetCachedSize() const final { return _cached_size_.Get(); }
  1876. private:
  1877. void SharedCtor();
  1878. void SharedDtor();
  1879. void SetCachedSize(int size) const final;
  1880. void InternalSwap(FieldDescriptorProto* other);
  1881. private:
  1882. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1883. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1884. return "google.protobuf.FieldDescriptorProto";
  1885. }
  1886. protected:
  1887. explicit FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1888. bool is_message_owned = false);
  1889. private:
  1890. static void ArenaDtor(void* object);
  1891. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1892. public:
  1893. static const ClassData _class_data_;
  1894. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1895. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1896. // nested types ----------------------------------------------------
  1897. typedef FieldDescriptorProto_Type Type;
  1898. static constexpr Type TYPE_DOUBLE =
  1899. FieldDescriptorProto_Type_TYPE_DOUBLE;
  1900. static constexpr Type TYPE_FLOAT =
  1901. FieldDescriptorProto_Type_TYPE_FLOAT;
  1902. static constexpr Type TYPE_INT64 =
  1903. FieldDescriptorProto_Type_TYPE_INT64;
  1904. static constexpr Type TYPE_UINT64 =
  1905. FieldDescriptorProto_Type_TYPE_UINT64;
  1906. static constexpr Type TYPE_INT32 =
  1907. FieldDescriptorProto_Type_TYPE_INT32;
  1908. static constexpr Type TYPE_FIXED64 =
  1909. FieldDescriptorProto_Type_TYPE_FIXED64;
  1910. static constexpr Type TYPE_FIXED32 =
  1911. FieldDescriptorProto_Type_TYPE_FIXED32;
  1912. static constexpr Type TYPE_BOOL =
  1913. FieldDescriptorProto_Type_TYPE_BOOL;
  1914. static constexpr Type TYPE_STRING =
  1915. FieldDescriptorProto_Type_TYPE_STRING;
  1916. static constexpr Type TYPE_GROUP =
  1917. FieldDescriptorProto_Type_TYPE_GROUP;
  1918. static constexpr Type TYPE_MESSAGE =
  1919. FieldDescriptorProto_Type_TYPE_MESSAGE;
  1920. static constexpr Type TYPE_BYTES =
  1921. FieldDescriptorProto_Type_TYPE_BYTES;
  1922. static constexpr Type TYPE_UINT32 =
  1923. FieldDescriptorProto_Type_TYPE_UINT32;
  1924. static constexpr Type TYPE_ENUM =
  1925. FieldDescriptorProto_Type_TYPE_ENUM;
  1926. static constexpr Type TYPE_SFIXED32 =
  1927. FieldDescriptorProto_Type_TYPE_SFIXED32;
  1928. static constexpr Type TYPE_SFIXED64 =
  1929. FieldDescriptorProto_Type_TYPE_SFIXED64;
  1930. static constexpr Type TYPE_SINT32 =
  1931. FieldDescriptorProto_Type_TYPE_SINT32;
  1932. static constexpr Type TYPE_SINT64 =
  1933. FieldDescriptorProto_Type_TYPE_SINT64;
  1934. static inline bool Type_IsValid(int value) {
  1935. return FieldDescriptorProto_Type_IsValid(value);
  1936. }
  1937. static constexpr Type Type_MIN =
  1938. FieldDescriptorProto_Type_Type_MIN;
  1939. static constexpr Type Type_MAX =
  1940. FieldDescriptorProto_Type_Type_MAX;
  1941. static constexpr int Type_ARRAYSIZE =
  1942. FieldDescriptorProto_Type_Type_ARRAYSIZE;
  1943. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  1944. Type_descriptor() {
  1945. return FieldDescriptorProto_Type_descriptor();
  1946. }
  1947. template<typename T>
  1948. static inline const std::string& Type_Name(T enum_t_value) {
  1949. static_assert(::std::is_same<T, Type>::value ||
  1950. ::std::is_integral<T>::value,
  1951. "Incorrect type passed to function Type_Name.");
  1952. return FieldDescriptorProto_Type_Name(enum_t_value);
  1953. }
  1954. static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  1955. Type* value) {
  1956. return FieldDescriptorProto_Type_Parse(name, value);
  1957. }
  1958. typedef FieldDescriptorProto_Label Label;
  1959. static constexpr Label LABEL_OPTIONAL =
  1960. FieldDescriptorProto_Label_LABEL_OPTIONAL;
  1961. static constexpr Label LABEL_REQUIRED =
  1962. FieldDescriptorProto_Label_LABEL_REQUIRED;
  1963. static constexpr Label LABEL_REPEATED =
  1964. FieldDescriptorProto_Label_LABEL_REPEATED;
  1965. static inline bool Label_IsValid(int value) {
  1966. return FieldDescriptorProto_Label_IsValid(value);
  1967. }
  1968. static constexpr Label Label_MIN =
  1969. FieldDescriptorProto_Label_Label_MIN;
  1970. static constexpr Label Label_MAX =
  1971. FieldDescriptorProto_Label_Label_MAX;
  1972. static constexpr int Label_ARRAYSIZE =
  1973. FieldDescriptorProto_Label_Label_ARRAYSIZE;
  1974. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  1975. Label_descriptor() {
  1976. return FieldDescriptorProto_Label_descriptor();
  1977. }
  1978. template<typename T>
  1979. static inline const std::string& Label_Name(T enum_t_value) {
  1980. static_assert(::std::is_same<T, Label>::value ||
  1981. ::std::is_integral<T>::value,
  1982. "Incorrect type passed to function Label_Name.");
  1983. return FieldDescriptorProto_Label_Name(enum_t_value);
  1984. }
  1985. static inline bool Label_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  1986. Label* value) {
  1987. return FieldDescriptorProto_Label_Parse(name, value);
  1988. }
  1989. // accessors -------------------------------------------------------
  1990. enum : int {
  1991. kNameFieldNumber = 1,
  1992. kExtendeeFieldNumber = 2,
  1993. kTypeNameFieldNumber = 6,
  1994. kDefaultValueFieldNumber = 7,
  1995. kJsonNameFieldNumber = 10,
  1996. kOptionsFieldNumber = 8,
  1997. kNumberFieldNumber = 3,
  1998. kOneofIndexFieldNumber = 9,
  1999. kProto3OptionalFieldNumber = 17,
  2000. kLabelFieldNumber = 4,
  2001. kTypeFieldNumber = 5,
  2002. };
  2003. // optional string name = 1;
  2004. bool has_name() const;
  2005. private:
  2006. bool _internal_has_name() const;
  2007. public:
  2008. void clear_name();
  2009. const std::string& name() const;
  2010. template <typename ArgT0 = const std::string&, typename... ArgT>
  2011. void set_name(ArgT0&& arg0, ArgT... args);
  2012. std::string* mutable_name();
  2013. PROTOBUF_NODISCARD std::string* release_name();
  2014. void set_allocated_name(std::string* name);
  2015. private:
  2016. const std::string& _internal_name() const;
  2017. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2018. std::string* _internal_mutable_name();
  2019. public:
  2020. // optional string extendee = 2;
  2021. bool has_extendee() const;
  2022. private:
  2023. bool _internal_has_extendee() const;
  2024. public:
  2025. void clear_extendee();
  2026. const std::string& extendee() const;
  2027. template <typename ArgT0 = const std::string&, typename... ArgT>
  2028. void set_extendee(ArgT0&& arg0, ArgT... args);
  2029. std::string* mutable_extendee();
  2030. PROTOBUF_NODISCARD std::string* release_extendee();
  2031. void set_allocated_extendee(std::string* extendee);
  2032. private:
  2033. const std::string& _internal_extendee() const;
  2034. inline PROTOBUF_ALWAYS_INLINE void _internal_set_extendee(const std::string& value);
  2035. std::string* _internal_mutable_extendee();
  2036. public:
  2037. // optional string type_name = 6;
  2038. bool has_type_name() const;
  2039. private:
  2040. bool _internal_has_type_name() const;
  2041. public:
  2042. void clear_type_name();
  2043. const std::string& type_name() const;
  2044. template <typename ArgT0 = const std::string&, typename... ArgT>
  2045. void set_type_name(ArgT0&& arg0, ArgT... args);
  2046. std::string* mutable_type_name();
  2047. PROTOBUF_NODISCARD std::string* release_type_name();
  2048. void set_allocated_type_name(std::string* type_name);
  2049. private:
  2050. const std::string& _internal_type_name() const;
  2051. inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_name(const std::string& value);
  2052. std::string* _internal_mutable_type_name();
  2053. public:
  2054. // optional string default_value = 7;
  2055. bool has_default_value() const;
  2056. private:
  2057. bool _internal_has_default_value() const;
  2058. public:
  2059. void clear_default_value();
  2060. const std::string& default_value() const;
  2061. template <typename ArgT0 = const std::string&, typename... ArgT>
  2062. void set_default_value(ArgT0&& arg0, ArgT... args);
  2063. std::string* mutable_default_value();
  2064. PROTOBUF_NODISCARD std::string* release_default_value();
  2065. void set_allocated_default_value(std::string* default_value);
  2066. private:
  2067. const std::string& _internal_default_value() const;
  2068. inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_value(const std::string& value);
  2069. std::string* _internal_mutable_default_value();
  2070. public:
  2071. // optional string json_name = 10;
  2072. bool has_json_name() const;
  2073. private:
  2074. bool _internal_has_json_name() const;
  2075. public:
  2076. void clear_json_name();
  2077. const std::string& json_name() const;
  2078. template <typename ArgT0 = const std::string&, typename... ArgT>
  2079. void set_json_name(ArgT0&& arg0, ArgT... args);
  2080. std::string* mutable_json_name();
  2081. PROTOBUF_NODISCARD std::string* release_json_name();
  2082. void set_allocated_json_name(std::string* json_name);
  2083. private:
  2084. const std::string& _internal_json_name() const;
  2085. inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_name(const std::string& value);
  2086. std::string* _internal_mutable_json_name();
  2087. public:
  2088. // optional .google.protobuf.FieldOptions options = 8;
  2089. bool has_options() const;
  2090. private:
  2091. bool _internal_has_options() const;
  2092. public:
  2093. void clear_options();
  2094. const ::PROTOBUF_NAMESPACE_ID::FieldOptions& options() const;
  2095. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FieldOptions* release_options();
  2096. ::PROTOBUF_NAMESPACE_ID::FieldOptions* mutable_options();
  2097. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::FieldOptions* options);
  2098. private:
  2099. const ::PROTOBUF_NAMESPACE_ID::FieldOptions& _internal_options() const;
  2100. ::PROTOBUF_NAMESPACE_ID::FieldOptions* _internal_mutable_options();
  2101. public:
  2102. void unsafe_arena_set_allocated_options(
  2103. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options);
  2104. ::PROTOBUF_NAMESPACE_ID::FieldOptions* unsafe_arena_release_options();
  2105. // optional int32 number = 3;
  2106. bool has_number() const;
  2107. private:
  2108. bool _internal_has_number() const;
  2109. public:
  2110. void clear_number();
  2111. int32_t number() const;
  2112. void set_number(int32_t value);
  2113. private:
  2114. int32_t _internal_number() const;
  2115. void _internal_set_number(int32_t value);
  2116. public:
  2117. // optional int32 oneof_index = 9;
  2118. bool has_oneof_index() const;
  2119. private:
  2120. bool _internal_has_oneof_index() const;
  2121. public:
  2122. void clear_oneof_index();
  2123. int32_t oneof_index() const;
  2124. void set_oneof_index(int32_t value);
  2125. private:
  2126. int32_t _internal_oneof_index() const;
  2127. void _internal_set_oneof_index(int32_t value);
  2128. public:
  2129. // optional bool proto3_optional = 17;
  2130. bool has_proto3_optional() const;
  2131. private:
  2132. bool _internal_has_proto3_optional() const;
  2133. public:
  2134. void clear_proto3_optional();
  2135. bool proto3_optional() const;
  2136. void set_proto3_optional(bool value);
  2137. private:
  2138. bool _internal_proto3_optional() const;
  2139. void _internal_set_proto3_optional(bool value);
  2140. public:
  2141. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2142. bool has_label() const;
  2143. private:
  2144. bool _internal_has_label() const;
  2145. public:
  2146. void clear_label();
  2147. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label label() const;
  2148. void set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value);
  2149. private:
  2150. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label _internal_label() const;
  2151. void _internal_set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value);
  2152. public:
  2153. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2154. bool has_type() const;
  2155. private:
  2156. bool _internal_has_type() const;
  2157. public:
  2158. void clear_type();
  2159. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type type() const;
  2160. void set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value);
  2161. private:
  2162. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type _internal_type() const;
  2163. void _internal_set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value);
  2164. public:
  2165. // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
  2166. private:
  2167. class _Internal;
  2168. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2169. typedef void InternalArenaConstructable_;
  2170. typedef void DestructorSkippable_;
  2171. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2172. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2173. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2174. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extendee_;
  2175. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_name_;
  2176. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_value_;
  2177. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_name_;
  2178. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options_;
  2179. int32_t number_;
  2180. int32_t oneof_index_;
  2181. bool proto3_optional_;
  2182. int label_;
  2183. int type_;
  2184. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2185. };
  2186. // -------------------------------------------------------------------
  2187. class PROTOBUF_EXPORT OneofDescriptorProto final :
  2188. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofDescriptorProto) */ {
  2189. public:
  2190. inline OneofDescriptorProto() : OneofDescriptorProto(nullptr) {}
  2191. ~OneofDescriptorProto() override;
  2192. explicit constexpr OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2193. OneofDescriptorProto(const OneofDescriptorProto& from);
  2194. OneofDescriptorProto(OneofDescriptorProto&& from) noexcept
  2195. : OneofDescriptorProto() {
  2196. *this = ::std::move(from);
  2197. }
  2198. inline OneofDescriptorProto& operator=(const OneofDescriptorProto& from) {
  2199. CopyFrom(from);
  2200. return *this;
  2201. }
  2202. inline OneofDescriptorProto& operator=(OneofDescriptorProto&& from) noexcept {
  2203. if (this == &from) return *this;
  2204. if (GetOwningArena() == from.GetOwningArena()
  2205. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2206. && GetOwningArena() != nullptr
  2207. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2208. ) {
  2209. InternalSwap(&from);
  2210. } else {
  2211. CopyFrom(from);
  2212. }
  2213. return *this;
  2214. }
  2215. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2216. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2217. }
  2218. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2219. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2220. }
  2221. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2222. return GetDescriptor();
  2223. }
  2224. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2225. return default_instance().GetMetadata().descriptor;
  2226. }
  2227. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2228. return default_instance().GetMetadata().reflection;
  2229. }
  2230. static const OneofDescriptorProto& default_instance() {
  2231. return *internal_default_instance();
  2232. }
  2233. static inline const OneofDescriptorProto* internal_default_instance() {
  2234. return reinterpret_cast<const OneofDescriptorProto*>(
  2235. &_OneofDescriptorProto_default_instance_);
  2236. }
  2237. static constexpr int kIndexInFileMessages =
  2238. 7;
  2239. friend void swap(OneofDescriptorProto& a, OneofDescriptorProto& b) {
  2240. a.Swap(&b);
  2241. }
  2242. inline void Swap(OneofDescriptorProto* other) {
  2243. if (other == this) return;
  2244. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2245. if (GetOwningArena() != nullptr &&
  2246. GetOwningArena() == other->GetOwningArena()) {
  2247. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2248. if (GetOwningArena() == other->GetOwningArena()) {
  2249. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2250. InternalSwap(other);
  2251. } else {
  2252. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2253. }
  2254. }
  2255. void UnsafeArenaSwap(OneofDescriptorProto* other) {
  2256. if (other == this) return;
  2257. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2258. InternalSwap(other);
  2259. }
  2260. // implements Message ----------------------------------------------
  2261. OneofDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2262. return CreateMaybeMessage<OneofDescriptorProto>(arena);
  2263. }
  2264. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2265. void CopyFrom(const OneofDescriptorProto& from);
  2266. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2267. void MergeFrom(const OneofDescriptorProto& from);
  2268. private:
  2269. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2270. public:
  2271. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2272. bool IsInitialized() const final;
  2273. size_t ByteSizeLong() const final;
  2274. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2275. uint8_t* _InternalSerialize(
  2276. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2277. int GetCachedSize() const final { return _cached_size_.Get(); }
  2278. private:
  2279. void SharedCtor();
  2280. void SharedDtor();
  2281. void SetCachedSize(int size) const final;
  2282. void InternalSwap(OneofDescriptorProto* other);
  2283. private:
  2284. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2285. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2286. return "google.protobuf.OneofDescriptorProto";
  2287. }
  2288. protected:
  2289. explicit OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2290. bool is_message_owned = false);
  2291. private:
  2292. static void ArenaDtor(void* object);
  2293. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2294. public:
  2295. static const ClassData _class_data_;
  2296. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2297. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2298. // nested types ----------------------------------------------------
  2299. // accessors -------------------------------------------------------
  2300. enum : int {
  2301. kNameFieldNumber = 1,
  2302. kOptionsFieldNumber = 2,
  2303. };
  2304. // optional string name = 1;
  2305. bool has_name() const;
  2306. private:
  2307. bool _internal_has_name() const;
  2308. public:
  2309. void clear_name();
  2310. const std::string& name() const;
  2311. template <typename ArgT0 = const std::string&, typename... ArgT>
  2312. void set_name(ArgT0&& arg0, ArgT... args);
  2313. std::string* mutable_name();
  2314. PROTOBUF_NODISCARD std::string* release_name();
  2315. void set_allocated_name(std::string* name);
  2316. private:
  2317. const std::string& _internal_name() const;
  2318. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2319. std::string* _internal_mutable_name();
  2320. public:
  2321. // optional .google.protobuf.OneofOptions options = 2;
  2322. bool has_options() const;
  2323. private:
  2324. bool _internal_has_options() const;
  2325. public:
  2326. void clear_options();
  2327. const ::PROTOBUF_NAMESPACE_ID::OneofOptions& options() const;
  2328. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::OneofOptions* release_options();
  2329. ::PROTOBUF_NAMESPACE_ID::OneofOptions* mutable_options();
  2330. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::OneofOptions* options);
  2331. private:
  2332. const ::PROTOBUF_NAMESPACE_ID::OneofOptions& _internal_options() const;
  2333. ::PROTOBUF_NAMESPACE_ID::OneofOptions* _internal_mutable_options();
  2334. public:
  2335. void unsafe_arena_set_allocated_options(
  2336. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options);
  2337. ::PROTOBUF_NAMESPACE_ID::OneofOptions* unsafe_arena_release_options();
  2338. // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto)
  2339. private:
  2340. class _Internal;
  2341. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2342. typedef void InternalArenaConstructable_;
  2343. typedef void DestructorSkippable_;
  2344. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2345. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2346. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2347. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options_;
  2348. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2349. };
  2350. // -------------------------------------------------------------------
  2351. class PROTOBUF_EXPORT EnumDescriptorProto_EnumReservedRange final :
  2352. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto.EnumReservedRange) */ {
  2353. public:
  2354. inline EnumDescriptorProto_EnumReservedRange() : EnumDescriptorProto_EnumReservedRange(nullptr) {}
  2355. ~EnumDescriptorProto_EnumReservedRange() override;
  2356. explicit constexpr EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2357. EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from);
  2358. EnumDescriptorProto_EnumReservedRange(EnumDescriptorProto_EnumReservedRange&& from) noexcept
  2359. : EnumDescriptorProto_EnumReservedRange() {
  2360. *this = ::std::move(from);
  2361. }
  2362. inline EnumDescriptorProto_EnumReservedRange& operator=(const EnumDescriptorProto_EnumReservedRange& from) {
  2363. CopyFrom(from);
  2364. return *this;
  2365. }
  2366. inline EnumDescriptorProto_EnumReservedRange& operator=(EnumDescriptorProto_EnumReservedRange&& from) noexcept {
  2367. if (this == &from) return *this;
  2368. if (GetOwningArena() == from.GetOwningArena()
  2369. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2370. && GetOwningArena() != nullptr
  2371. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2372. ) {
  2373. InternalSwap(&from);
  2374. } else {
  2375. CopyFrom(from);
  2376. }
  2377. return *this;
  2378. }
  2379. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2380. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2381. }
  2382. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2383. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2384. }
  2385. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2386. return GetDescriptor();
  2387. }
  2388. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2389. return default_instance().GetMetadata().descriptor;
  2390. }
  2391. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2392. return default_instance().GetMetadata().reflection;
  2393. }
  2394. static const EnumDescriptorProto_EnumReservedRange& default_instance() {
  2395. return *internal_default_instance();
  2396. }
  2397. static inline const EnumDescriptorProto_EnumReservedRange* internal_default_instance() {
  2398. return reinterpret_cast<const EnumDescriptorProto_EnumReservedRange*>(
  2399. &_EnumDescriptorProto_EnumReservedRange_default_instance_);
  2400. }
  2401. static constexpr int kIndexInFileMessages =
  2402. 8;
  2403. friend void swap(EnumDescriptorProto_EnumReservedRange& a, EnumDescriptorProto_EnumReservedRange& b) {
  2404. a.Swap(&b);
  2405. }
  2406. inline void Swap(EnumDescriptorProto_EnumReservedRange* other) {
  2407. if (other == this) return;
  2408. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2409. if (GetOwningArena() != nullptr &&
  2410. GetOwningArena() == other->GetOwningArena()) {
  2411. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2412. if (GetOwningArena() == other->GetOwningArena()) {
  2413. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2414. InternalSwap(other);
  2415. } else {
  2416. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2417. }
  2418. }
  2419. void UnsafeArenaSwap(EnumDescriptorProto_EnumReservedRange* other) {
  2420. if (other == this) return;
  2421. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2422. InternalSwap(other);
  2423. }
  2424. // implements Message ----------------------------------------------
  2425. EnumDescriptorProto_EnumReservedRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2426. return CreateMaybeMessage<EnumDescriptorProto_EnumReservedRange>(arena);
  2427. }
  2428. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2429. void CopyFrom(const EnumDescriptorProto_EnumReservedRange& from);
  2430. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2431. void MergeFrom(const EnumDescriptorProto_EnumReservedRange& from);
  2432. private:
  2433. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2434. public:
  2435. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2436. bool IsInitialized() const final;
  2437. size_t ByteSizeLong() const final;
  2438. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2439. uint8_t* _InternalSerialize(
  2440. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2441. int GetCachedSize() const final { return _cached_size_.Get(); }
  2442. private:
  2443. void SharedCtor();
  2444. void SharedDtor();
  2445. void SetCachedSize(int size) const final;
  2446. void InternalSwap(EnumDescriptorProto_EnumReservedRange* other);
  2447. private:
  2448. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2449. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2450. return "google.protobuf.EnumDescriptorProto.EnumReservedRange";
  2451. }
  2452. protected:
  2453. explicit EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2454. bool is_message_owned = false);
  2455. private:
  2456. static void ArenaDtor(void* object);
  2457. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2458. public:
  2459. static const ClassData _class_data_;
  2460. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2461. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2462. // nested types ----------------------------------------------------
  2463. // accessors -------------------------------------------------------
  2464. enum : int {
  2465. kStartFieldNumber = 1,
  2466. kEndFieldNumber = 2,
  2467. };
  2468. // optional int32 start = 1;
  2469. bool has_start() const;
  2470. private:
  2471. bool _internal_has_start() const;
  2472. public:
  2473. void clear_start();
  2474. int32_t start() const;
  2475. void set_start(int32_t value);
  2476. private:
  2477. int32_t _internal_start() const;
  2478. void _internal_set_start(int32_t value);
  2479. public:
  2480. // optional int32 end = 2;
  2481. bool has_end() const;
  2482. private:
  2483. bool _internal_has_end() const;
  2484. public:
  2485. void clear_end();
  2486. int32_t end() const;
  2487. void set_end(int32_t value);
  2488. private:
  2489. int32_t _internal_end() const;
  2490. void _internal_set_end(int32_t value);
  2491. public:
  2492. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  2493. private:
  2494. class _Internal;
  2495. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2496. typedef void InternalArenaConstructable_;
  2497. typedef void DestructorSkippable_;
  2498. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2499. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2500. int32_t start_;
  2501. int32_t end_;
  2502. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2503. };
  2504. // -------------------------------------------------------------------
  2505. class PROTOBUF_EXPORT EnumDescriptorProto final :
  2506. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto) */ {
  2507. public:
  2508. inline EnumDescriptorProto() : EnumDescriptorProto(nullptr) {}
  2509. ~EnumDescriptorProto() override;
  2510. explicit constexpr EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2511. EnumDescriptorProto(const EnumDescriptorProto& from);
  2512. EnumDescriptorProto(EnumDescriptorProto&& from) noexcept
  2513. : EnumDescriptorProto() {
  2514. *this = ::std::move(from);
  2515. }
  2516. inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) {
  2517. CopyFrom(from);
  2518. return *this;
  2519. }
  2520. inline EnumDescriptorProto& operator=(EnumDescriptorProto&& from) noexcept {
  2521. if (this == &from) return *this;
  2522. if (GetOwningArena() == from.GetOwningArena()
  2523. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2524. && GetOwningArena() != nullptr
  2525. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2526. ) {
  2527. InternalSwap(&from);
  2528. } else {
  2529. CopyFrom(from);
  2530. }
  2531. return *this;
  2532. }
  2533. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2534. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2535. }
  2536. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2537. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2538. }
  2539. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2540. return GetDescriptor();
  2541. }
  2542. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2543. return default_instance().GetMetadata().descriptor;
  2544. }
  2545. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2546. return default_instance().GetMetadata().reflection;
  2547. }
  2548. static const EnumDescriptorProto& default_instance() {
  2549. return *internal_default_instance();
  2550. }
  2551. static inline const EnumDescriptorProto* internal_default_instance() {
  2552. return reinterpret_cast<const EnumDescriptorProto*>(
  2553. &_EnumDescriptorProto_default_instance_);
  2554. }
  2555. static constexpr int kIndexInFileMessages =
  2556. 9;
  2557. friend void swap(EnumDescriptorProto& a, EnumDescriptorProto& b) {
  2558. a.Swap(&b);
  2559. }
  2560. inline void Swap(EnumDescriptorProto* other) {
  2561. if (other == this) return;
  2562. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2563. if (GetOwningArena() != nullptr &&
  2564. GetOwningArena() == other->GetOwningArena()) {
  2565. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2566. if (GetOwningArena() == other->GetOwningArena()) {
  2567. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2568. InternalSwap(other);
  2569. } else {
  2570. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2571. }
  2572. }
  2573. void UnsafeArenaSwap(EnumDescriptorProto* other) {
  2574. if (other == this) return;
  2575. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2576. InternalSwap(other);
  2577. }
  2578. // implements Message ----------------------------------------------
  2579. EnumDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2580. return CreateMaybeMessage<EnumDescriptorProto>(arena);
  2581. }
  2582. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2583. void CopyFrom(const EnumDescriptorProto& from);
  2584. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2585. void MergeFrom(const EnumDescriptorProto& from);
  2586. private:
  2587. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2588. public:
  2589. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2590. bool IsInitialized() const final;
  2591. size_t ByteSizeLong() const final;
  2592. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2593. uint8_t* _InternalSerialize(
  2594. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2595. int GetCachedSize() const final { return _cached_size_.Get(); }
  2596. private:
  2597. void SharedCtor();
  2598. void SharedDtor();
  2599. void SetCachedSize(int size) const final;
  2600. void InternalSwap(EnumDescriptorProto* other);
  2601. private:
  2602. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2603. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2604. return "google.protobuf.EnumDescriptorProto";
  2605. }
  2606. protected:
  2607. explicit EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2608. bool is_message_owned = false);
  2609. private:
  2610. static void ArenaDtor(void* object);
  2611. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2612. public:
  2613. static const ClassData _class_data_;
  2614. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2615. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2616. // nested types ----------------------------------------------------
  2617. typedef EnumDescriptorProto_EnumReservedRange EnumReservedRange;
  2618. // accessors -------------------------------------------------------
  2619. enum : int {
  2620. kValueFieldNumber = 2,
  2621. kReservedRangeFieldNumber = 4,
  2622. kReservedNameFieldNumber = 5,
  2623. kNameFieldNumber = 1,
  2624. kOptionsFieldNumber = 3,
  2625. };
  2626. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2627. int value_size() const;
  2628. private:
  2629. int _internal_value_size() const;
  2630. public:
  2631. void clear_value();
  2632. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* mutable_value(int index);
  2633. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >*
  2634. mutable_value();
  2635. private:
  2636. const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& _internal_value(int index) const;
  2637. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* _internal_add_value();
  2638. public:
  2639. const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& value(int index) const;
  2640. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* add_value();
  2641. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >&
  2642. value() const;
  2643. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  2644. int reserved_range_size() const;
  2645. private:
  2646. int _internal_reserved_range_size() const;
  2647. public:
  2648. void clear_reserved_range();
  2649. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* mutable_reserved_range(int index);
  2650. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >*
  2651. mutable_reserved_range();
  2652. private:
  2653. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& _internal_reserved_range(int index) const;
  2654. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* _internal_add_reserved_range();
  2655. public:
  2656. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& reserved_range(int index) const;
  2657. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* add_reserved_range();
  2658. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >&
  2659. reserved_range() const;
  2660. // repeated string reserved_name = 5;
  2661. int reserved_name_size() const;
  2662. private:
  2663. int _internal_reserved_name_size() const;
  2664. public:
  2665. void clear_reserved_name();
  2666. const std::string& reserved_name(int index) const;
  2667. std::string* mutable_reserved_name(int index);
  2668. void set_reserved_name(int index, const std::string& value);
  2669. void set_reserved_name(int index, std::string&& value);
  2670. void set_reserved_name(int index, const char* value);
  2671. void set_reserved_name(int index, const char* value, size_t size);
  2672. std::string* add_reserved_name();
  2673. void add_reserved_name(const std::string& value);
  2674. void add_reserved_name(std::string&& value);
  2675. void add_reserved_name(const char* value);
  2676. void add_reserved_name(const char* value, size_t size);
  2677. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& reserved_name() const;
  2678. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_reserved_name();
  2679. private:
  2680. const std::string& _internal_reserved_name(int index) const;
  2681. std::string* _internal_add_reserved_name();
  2682. public:
  2683. // optional string name = 1;
  2684. bool has_name() const;
  2685. private:
  2686. bool _internal_has_name() const;
  2687. public:
  2688. void clear_name();
  2689. const std::string& name() const;
  2690. template <typename ArgT0 = const std::string&, typename... ArgT>
  2691. void set_name(ArgT0&& arg0, ArgT... args);
  2692. std::string* mutable_name();
  2693. PROTOBUF_NODISCARD std::string* release_name();
  2694. void set_allocated_name(std::string* name);
  2695. private:
  2696. const std::string& _internal_name() const;
  2697. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2698. std::string* _internal_mutable_name();
  2699. public:
  2700. // optional .google.protobuf.EnumOptions options = 3;
  2701. bool has_options() const;
  2702. private:
  2703. bool _internal_has_options() const;
  2704. public:
  2705. void clear_options();
  2706. const ::PROTOBUF_NAMESPACE_ID::EnumOptions& options() const;
  2707. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::EnumOptions* release_options();
  2708. ::PROTOBUF_NAMESPACE_ID::EnumOptions* mutable_options();
  2709. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumOptions* options);
  2710. private:
  2711. const ::PROTOBUF_NAMESPACE_ID::EnumOptions& _internal_options() const;
  2712. ::PROTOBUF_NAMESPACE_ID::EnumOptions* _internal_mutable_options();
  2713. public:
  2714. void unsafe_arena_set_allocated_options(
  2715. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options);
  2716. ::PROTOBUF_NAMESPACE_ID::EnumOptions* unsafe_arena_release_options();
  2717. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
  2718. private:
  2719. class _Internal;
  2720. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2721. typedef void InternalArenaConstructable_;
  2722. typedef void DestructorSkippable_;
  2723. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2724. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2725. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto > value_;
  2726. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange > reserved_range_;
  2727. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> reserved_name_;
  2728. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2729. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options_;
  2730. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2731. };
  2732. // -------------------------------------------------------------------
  2733. class PROTOBUF_EXPORT EnumValueDescriptorProto final :
  2734. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueDescriptorProto) */ {
  2735. public:
  2736. inline EnumValueDescriptorProto() : EnumValueDescriptorProto(nullptr) {}
  2737. ~EnumValueDescriptorProto() override;
  2738. explicit constexpr EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2739. EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
  2740. EnumValueDescriptorProto(EnumValueDescriptorProto&& from) noexcept
  2741. : EnumValueDescriptorProto() {
  2742. *this = ::std::move(from);
  2743. }
  2744. inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) {
  2745. CopyFrom(from);
  2746. return *this;
  2747. }
  2748. inline EnumValueDescriptorProto& operator=(EnumValueDescriptorProto&& from) noexcept {
  2749. if (this == &from) return *this;
  2750. if (GetOwningArena() == from.GetOwningArena()
  2751. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2752. && GetOwningArena() != nullptr
  2753. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2754. ) {
  2755. InternalSwap(&from);
  2756. } else {
  2757. CopyFrom(from);
  2758. }
  2759. return *this;
  2760. }
  2761. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2762. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2763. }
  2764. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2765. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2766. }
  2767. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2768. return GetDescriptor();
  2769. }
  2770. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2771. return default_instance().GetMetadata().descriptor;
  2772. }
  2773. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2774. return default_instance().GetMetadata().reflection;
  2775. }
  2776. static const EnumValueDescriptorProto& default_instance() {
  2777. return *internal_default_instance();
  2778. }
  2779. static inline const EnumValueDescriptorProto* internal_default_instance() {
  2780. return reinterpret_cast<const EnumValueDescriptorProto*>(
  2781. &_EnumValueDescriptorProto_default_instance_);
  2782. }
  2783. static constexpr int kIndexInFileMessages =
  2784. 10;
  2785. friend void swap(EnumValueDescriptorProto& a, EnumValueDescriptorProto& b) {
  2786. a.Swap(&b);
  2787. }
  2788. inline void Swap(EnumValueDescriptorProto* other) {
  2789. if (other == this) return;
  2790. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2791. if (GetOwningArena() != nullptr &&
  2792. GetOwningArena() == other->GetOwningArena()) {
  2793. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2794. if (GetOwningArena() == other->GetOwningArena()) {
  2795. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2796. InternalSwap(other);
  2797. } else {
  2798. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2799. }
  2800. }
  2801. void UnsafeArenaSwap(EnumValueDescriptorProto* other) {
  2802. if (other == this) return;
  2803. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2804. InternalSwap(other);
  2805. }
  2806. // implements Message ----------------------------------------------
  2807. EnumValueDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2808. return CreateMaybeMessage<EnumValueDescriptorProto>(arena);
  2809. }
  2810. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2811. void CopyFrom(const EnumValueDescriptorProto& from);
  2812. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2813. void MergeFrom(const EnumValueDescriptorProto& from);
  2814. private:
  2815. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2816. public:
  2817. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2818. bool IsInitialized() const final;
  2819. size_t ByteSizeLong() const final;
  2820. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2821. uint8_t* _InternalSerialize(
  2822. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2823. int GetCachedSize() const final { return _cached_size_.Get(); }
  2824. private:
  2825. void SharedCtor();
  2826. void SharedDtor();
  2827. void SetCachedSize(int size) const final;
  2828. void InternalSwap(EnumValueDescriptorProto* other);
  2829. private:
  2830. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2831. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2832. return "google.protobuf.EnumValueDescriptorProto";
  2833. }
  2834. protected:
  2835. explicit EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2836. bool is_message_owned = false);
  2837. private:
  2838. static void ArenaDtor(void* object);
  2839. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2840. public:
  2841. static const ClassData _class_data_;
  2842. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2843. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2844. // nested types ----------------------------------------------------
  2845. // accessors -------------------------------------------------------
  2846. enum : int {
  2847. kNameFieldNumber = 1,
  2848. kOptionsFieldNumber = 3,
  2849. kNumberFieldNumber = 2,
  2850. };
  2851. // optional string name = 1;
  2852. bool has_name() const;
  2853. private:
  2854. bool _internal_has_name() const;
  2855. public:
  2856. void clear_name();
  2857. const std::string& name() const;
  2858. template <typename ArgT0 = const std::string&, typename... ArgT>
  2859. void set_name(ArgT0&& arg0, ArgT... args);
  2860. std::string* mutable_name();
  2861. PROTOBUF_NODISCARD std::string* release_name();
  2862. void set_allocated_name(std::string* name);
  2863. private:
  2864. const std::string& _internal_name() const;
  2865. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2866. std::string* _internal_mutable_name();
  2867. public:
  2868. // optional .google.protobuf.EnumValueOptions options = 3;
  2869. bool has_options() const;
  2870. private:
  2871. bool _internal_has_options() const;
  2872. public:
  2873. void clear_options();
  2874. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& options() const;
  2875. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* release_options();
  2876. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* mutable_options();
  2877. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options);
  2878. private:
  2879. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& _internal_options() const;
  2880. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* _internal_mutable_options();
  2881. public:
  2882. void unsafe_arena_set_allocated_options(
  2883. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options);
  2884. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* unsafe_arena_release_options();
  2885. // optional int32 number = 2;
  2886. bool has_number() const;
  2887. private:
  2888. bool _internal_has_number() const;
  2889. public:
  2890. void clear_number();
  2891. int32_t number() const;
  2892. void set_number(int32_t value);
  2893. private:
  2894. int32_t _internal_number() const;
  2895. void _internal_set_number(int32_t value);
  2896. public:
  2897. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
  2898. private:
  2899. class _Internal;
  2900. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2901. typedef void InternalArenaConstructable_;
  2902. typedef void DestructorSkippable_;
  2903. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2904. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2905. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2906. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options_;
  2907. int32_t number_;
  2908. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2909. };
  2910. // -------------------------------------------------------------------
  2911. class PROTOBUF_EXPORT ServiceDescriptorProto final :
  2912. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceDescriptorProto) */ {
  2913. public:
  2914. inline ServiceDescriptorProto() : ServiceDescriptorProto(nullptr) {}
  2915. ~ServiceDescriptorProto() override;
  2916. explicit constexpr ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2917. ServiceDescriptorProto(const ServiceDescriptorProto& from);
  2918. ServiceDescriptorProto(ServiceDescriptorProto&& from) noexcept
  2919. : ServiceDescriptorProto() {
  2920. *this = ::std::move(from);
  2921. }
  2922. inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) {
  2923. CopyFrom(from);
  2924. return *this;
  2925. }
  2926. inline ServiceDescriptorProto& operator=(ServiceDescriptorProto&& from) noexcept {
  2927. if (this == &from) return *this;
  2928. if (GetOwningArena() == from.GetOwningArena()
  2929. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2930. && GetOwningArena() != nullptr
  2931. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2932. ) {
  2933. InternalSwap(&from);
  2934. } else {
  2935. CopyFrom(from);
  2936. }
  2937. return *this;
  2938. }
  2939. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2940. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2941. }
  2942. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2943. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2944. }
  2945. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2946. return GetDescriptor();
  2947. }
  2948. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2949. return default_instance().GetMetadata().descriptor;
  2950. }
  2951. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2952. return default_instance().GetMetadata().reflection;
  2953. }
  2954. static const ServiceDescriptorProto& default_instance() {
  2955. return *internal_default_instance();
  2956. }
  2957. static inline const ServiceDescriptorProto* internal_default_instance() {
  2958. return reinterpret_cast<const ServiceDescriptorProto*>(
  2959. &_ServiceDescriptorProto_default_instance_);
  2960. }
  2961. static constexpr int kIndexInFileMessages =
  2962. 11;
  2963. friend void swap(ServiceDescriptorProto& a, ServiceDescriptorProto& b) {
  2964. a.Swap(&b);
  2965. }
  2966. inline void Swap(ServiceDescriptorProto* other) {
  2967. if (other == this) return;
  2968. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2969. if (GetOwningArena() != nullptr &&
  2970. GetOwningArena() == other->GetOwningArena()) {
  2971. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2972. if (GetOwningArena() == other->GetOwningArena()) {
  2973. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2974. InternalSwap(other);
  2975. } else {
  2976. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2977. }
  2978. }
  2979. void UnsafeArenaSwap(ServiceDescriptorProto* other) {
  2980. if (other == this) return;
  2981. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2982. InternalSwap(other);
  2983. }
  2984. // implements Message ----------------------------------------------
  2985. ServiceDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2986. return CreateMaybeMessage<ServiceDescriptorProto>(arena);
  2987. }
  2988. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2989. void CopyFrom(const ServiceDescriptorProto& from);
  2990. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2991. void MergeFrom(const ServiceDescriptorProto& from);
  2992. private:
  2993. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2994. public:
  2995. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2996. bool IsInitialized() const final;
  2997. size_t ByteSizeLong() const final;
  2998. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2999. uint8_t* _InternalSerialize(
  3000. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3001. int GetCachedSize() const final { return _cached_size_.Get(); }
  3002. private:
  3003. void SharedCtor();
  3004. void SharedDtor();
  3005. void SetCachedSize(int size) const final;
  3006. void InternalSwap(ServiceDescriptorProto* other);
  3007. private:
  3008. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3009. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3010. return "google.protobuf.ServiceDescriptorProto";
  3011. }
  3012. protected:
  3013. explicit ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3014. bool is_message_owned = false);
  3015. private:
  3016. static void ArenaDtor(void* object);
  3017. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3018. public:
  3019. static const ClassData _class_data_;
  3020. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  3021. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3022. // nested types ----------------------------------------------------
  3023. // accessors -------------------------------------------------------
  3024. enum : int {
  3025. kMethodFieldNumber = 2,
  3026. kNameFieldNumber = 1,
  3027. kOptionsFieldNumber = 3,
  3028. };
  3029. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3030. int method_size() const;
  3031. private:
  3032. int _internal_method_size() const;
  3033. public:
  3034. void clear_method();
  3035. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* mutable_method(int index);
  3036. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >*
  3037. mutable_method();
  3038. private:
  3039. const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& _internal_method(int index) const;
  3040. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* _internal_add_method();
  3041. public:
  3042. const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& method(int index) const;
  3043. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* add_method();
  3044. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >&
  3045. method() const;
  3046. // optional string name = 1;
  3047. bool has_name() const;
  3048. private:
  3049. bool _internal_has_name() const;
  3050. public:
  3051. void clear_name();
  3052. const std::string& name() const;
  3053. template <typename ArgT0 = const std::string&, typename... ArgT>
  3054. void set_name(ArgT0&& arg0, ArgT... args);
  3055. std::string* mutable_name();
  3056. PROTOBUF_NODISCARD std::string* release_name();
  3057. void set_allocated_name(std::string* name);
  3058. private:
  3059. const std::string& _internal_name() const;
  3060. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  3061. std::string* _internal_mutable_name();
  3062. public:
  3063. // optional .google.protobuf.ServiceOptions options = 3;
  3064. bool has_options() const;
  3065. private:
  3066. bool _internal_has_options() const;
  3067. public:
  3068. void clear_options();
  3069. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& options() const;
  3070. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::ServiceOptions* release_options();
  3071. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* mutable_options();
  3072. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::ServiceOptions* options);
  3073. private:
  3074. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& _internal_options() const;
  3075. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* _internal_mutable_options();
  3076. public:
  3077. void unsafe_arena_set_allocated_options(
  3078. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options);
  3079. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* unsafe_arena_release_options();
  3080. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
  3081. private:
  3082. class _Internal;
  3083. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3084. typedef void InternalArenaConstructable_;
  3085. typedef void DestructorSkippable_;
  3086. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3087. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3088. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto > method_;
  3089. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3090. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options_;
  3091. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3092. };
  3093. // -------------------------------------------------------------------
  3094. class PROTOBUF_EXPORT MethodDescriptorProto final :
  3095. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodDescriptorProto) */ {
  3096. public:
  3097. inline MethodDescriptorProto() : MethodDescriptorProto(nullptr) {}
  3098. ~MethodDescriptorProto() override;
  3099. explicit constexpr MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3100. MethodDescriptorProto(const MethodDescriptorProto& from);
  3101. MethodDescriptorProto(MethodDescriptorProto&& from) noexcept
  3102. : MethodDescriptorProto() {
  3103. *this = ::std::move(from);
  3104. }
  3105. inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) {
  3106. CopyFrom(from);
  3107. return *this;
  3108. }
  3109. inline MethodDescriptorProto& operator=(MethodDescriptorProto&& from) noexcept {
  3110. if (this == &from) return *this;
  3111. if (GetOwningArena() == from.GetOwningArena()
  3112. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3113. && GetOwningArena() != nullptr
  3114. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3115. ) {
  3116. InternalSwap(&from);
  3117. } else {
  3118. CopyFrom(from);
  3119. }
  3120. return *this;
  3121. }
  3122. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  3123. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  3124. }
  3125. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  3126. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3127. }
  3128. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3129. return GetDescriptor();
  3130. }
  3131. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3132. return default_instance().GetMetadata().descriptor;
  3133. }
  3134. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3135. return default_instance().GetMetadata().reflection;
  3136. }
  3137. static const MethodDescriptorProto& default_instance() {
  3138. return *internal_default_instance();
  3139. }
  3140. static inline const MethodDescriptorProto* internal_default_instance() {
  3141. return reinterpret_cast<const MethodDescriptorProto*>(
  3142. &_MethodDescriptorProto_default_instance_);
  3143. }
  3144. static constexpr int kIndexInFileMessages =
  3145. 12;
  3146. friend void swap(MethodDescriptorProto& a, MethodDescriptorProto& b) {
  3147. a.Swap(&b);
  3148. }
  3149. inline void Swap(MethodDescriptorProto* other) {
  3150. if (other == this) return;
  3151. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3152. if (GetOwningArena() != nullptr &&
  3153. GetOwningArena() == other->GetOwningArena()) {
  3154. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3155. if (GetOwningArena() == other->GetOwningArena()) {
  3156. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3157. InternalSwap(other);
  3158. } else {
  3159. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3160. }
  3161. }
  3162. void UnsafeArenaSwap(MethodDescriptorProto* other) {
  3163. if (other == this) return;
  3164. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  3165. InternalSwap(other);
  3166. }
  3167. // implements Message ----------------------------------------------
  3168. MethodDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  3169. return CreateMaybeMessage<MethodDescriptorProto>(arena);
  3170. }
  3171. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3172. void CopyFrom(const MethodDescriptorProto& from);
  3173. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3174. void MergeFrom(const MethodDescriptorProto& from);
  3175. private:
  3176. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  3177. public:
  3178. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3179. bool IsInitialized() const final;
  3180. size_t ByteSizeLong() const final;
  3181. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3182. uint8_t* _InternalSerialize(
  3183. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3184. int GetCachedSize() const final { return _cached_size_.Get(); }
  3185. private:
  3186. void SharedCtor();
  3187. void SharedDtor();
  3188. void SetCachedSize(int size) const final;
  3189. void InternalSwap(MethodDescriptorProto* other);
  3190. private:
  3191. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3192. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3193. return "google.protobuf.MethodDescriptorProto";
  3194. }
  3195. protected:
  3196. explicit MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3197. bool is_message_owned = false);
  3198. private:
  3199. static void ArenaDtor(void* object);
  3200. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3201. public:
  3202. static const ClassData _class_data_;
  3203. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  3204. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3205. // nested types ----------------------------------------------------
  3206. // accessors -------------------------------------------------------
  3207. enum : int {
  3208. kNameFieldNumber = 1,
  3209. kInputTypeFieldNumber = 2,
  3210. kOutputTypeFieldNumber = 3,
  3211. kOptionsFieldNumber = 4,
  3212. kClientStreamingFieldNumber = 5,
  3213. kServerStreamingFieldNumber = 6,
  3214. };
  3215. // optional string name = 1;
  3216. bool has_name() const;
  3217. private:
  3218. bool _internal_has_name() const;
  3219. public:
  3220. void clear_name();
  3221. const std::string& name() const;
  3222. template <typename ArgT0 = const std::string&, typename... ArgT>
  3223. void set_name(ArgT0&& arg0, ArgT... args);
  3224. std::string* mutable_name();
  3225. PROTOBUF_NODISCARD std::string* release_name();
  3226. void set_allocated_name(std::string* name);
  3227. private:
  3228. const std::string& _internal_name() const;
  3229. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  3230. std::string* _internal_mutable_name();
  3231. public:
  3232. // optional string input_type = 2;
  3233. bool has_input_type() const;
  3234. private:
  3235. bool _internal_has_input_type() const;
  3236. public:
  3237. void clear_input_type();
  3238. const std::string& input_type() const;
  3239. template <typename ArgT0 = const std::string&, typename... ArgT>
  3240. void set_input_type(ArgT0&& arg0, ArgT... args);
  3241. std::string* mutable_input_type();
  3242. PROTOBUF_NODISCARD std::string* release_input_type();
  3243. void set_allocated_input_type(std::string* input_type);
  3244. private:
  3245. const std::string& _internal_input_type() const;
  3246. inline PROTOBUF_ALWAYS_INLINE void _internal_set_input_type(const std::string& value);
  3247. std::string* _internal_mutable_input_type();
  3248. public:
  3249. // optional string output_type = 3;
  3250. bool has_output_type() const;
  3251. private:
  3252. bool _internal_has_output_type() const;
  3253. public:
  3254. void clear_output_type();
  3255. const std::string& output_type() const;
  3256. template <typename ArgT0 = const std::string&, typename... ArgT>
  3257. void set_output_type(ArgT0&& arg0, ArgT... args);
  3258. std::string* mutable_output_type();
  3259. PROTOBUF_NODISCARD std::string* release_output_type();
  3260. void set_allocated_output_type(std::string* output_type);
  3261. private:
  3262. const std::string& _internal_output_type() const;
  3263. inline PROTOBUF_ALWAYS_INLINE void _internal_set_output_type(const std::string& value);
  3264. std::string* _internal_mutable_output_type();
  3265. public:
  3266. // optional .google.protobuf.MethodOptions options = 4;
  3267. bool has_options() const;
  3268. private:
  3269. bool _internal_has_options() const;
  3270. public:
  3271. void clear_options();
  3272. const ::PROTOBUF_NAMESPACE_ID::MethodOptions& options() const;
  3273. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::MethodOptions* release_options();
  3274. ::PROTOBUF_NAMESPACE_ID::MethodOptions* mutable_options();
  3275. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::MethodOptions* options);
  3276. private:
  3277. const ::PROTOBUF_NAMESPACE_ID::MethodOptions& _internal_options() const;
  3278. ::PROTOBUF_NAMESPACE_ID::MethodOptions* _internal_mutable_options();
  3279. public:
  3280. void unsafe_arena_set_allocated_options(
  3281. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options);
  3282. ::PROTOBUF_NAMESPACE_ID::MethodOptions* unsafe_arena_release_options();
  3283. // optional bool client_streaming = 5 [default = false];
  3284. bool has_client_streaming() const;
  3285. private:
  3286. bool _internal_has_client_streaming() const;
  3287. public:
  3288. void clear_client_streaming();
  3289. bool client_streaming() const;
  3290. void set_client_streaming(bool value);
  3291. private:
  3292. bool _internal_client_streaming() const;
  3293. void _internal_set_client_streaming(bool value);
  3294. public:
  3295. // optional bool server_streaming = 6 [default = false];
  3296. bool has_server_streaming() const;
  3297. private:
  3298. bool _internal_has_server_streaming() const;
  3299. public:
  3300. void clear_server_streaming();
  3301. bool server_streaming() const;
  3302. void set_server_streaming(bool value);
  3303. private:
  3304. bool _internal_server_streaming() const;
  3305. void _internal_set_server_streaming(bool value);
  3306. public:
  3307. // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
  3308. private:
  3309. class _Internal;
  3310. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3311. typedef void InternalArenaConstructable_;
  3312. typedef void DestructorSkippable_;
  3313. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3314. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3315. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3316. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr input_type_;
  3317. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr output_type_;
  3318. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options_;
  3319. bool client_streaming_;
  3320. bool server_streaming_;
  3321. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3322. };
  3323. // -------------------------------------------------------------------
  3324. class PROTOBUF_EXPORT FileOptions final :
  3325. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileOptions) */ {
  3326. public:
  3327. inline FileOptions() : FileOptions(nullptr) {}
  3328. ~FileOptions() override;
  3329. explicit constexpr FileOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3330. FileOptions(const FileOptions& from);
  3331. FileOptions(FileOptions&& from) noexcept
  3332. : FileOptions() {
  3333. *this = ::std::move(from);
  3334. }
  3335. inline FileOptions& operator=(const FileOptions& from) {
  3336. CopyFrom(from);
  3337. return *this;
  3338. }
  3339. inline FileOptions& operator=(FileOptions&& from) noexcept {
  3340. if (this == &from) return *this;
  3341. if (GetOwningArena() == from.GetOwningArena()
  3342. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3343. && GetOwningArena() != nullptr
  3344. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3345. ) {
  3346. InternalSwap(&from);
  3347. } else {
  3348. CopyFrom(from);
  3349. }
  3350. return *this;
  3351. }
  3352. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  3353. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  3354. }
  3355. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  3356. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3357. }
  3358. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3359. return GetDescriptor();
  3360. }
  3361. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3362. return default_instance().GetMetadata().descriptor;
  3363. }
  3364. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3365. return default_instance().GetMetadata().reflection;
  3366. }
  3367. static const FileOptions& default_instance() {
  3368. return *internal_default_instance();
  3369. }
  3370. static inline const FileOptions* internal_default_instance() {
  3371. return reinterpret_cast<const FileOptions*>(
  3372. &_FileOptions_default_instance_);
  3373. }
  3374. static constexpr int kIndexInFileMessages =
  3375. 13;
  3376. friend void swap(FileOptions& a, FileOptions& b) {
  3377. a.Swap(&b);
  3378. }
  3379. inline void Swap(FileOptions* other) {
  3380. if (other == this) return;
  3381. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3382. if (GetOwningArena() != nullptr &&
  3383. GetOwningArena() == other->GetOwningArena()) {
  3384. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3385. if (GetOwningArena() == other->GetOwningArena()) {
  3386. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3387. InternalSwap(other);
  3388. } else {
  3389. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3390. }
  3391. }
  3392. void UnsafeArenaSwap(FileOptions* other) {
  3393. if (other == this) return;
  3394. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  3395. InternalSwap(other);
  3396. }
  3397. // implements Message ----------------------------------------------
  3398. FileOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  3399. return CreateMaybeMessage<FileOptions>(arena);
  3400. }
  3401. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3402. void CopyFrom(const FileOptions& from);
  3403. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3404. void MergeFrom(const FileOptions& from);
  3405. private:
  3406. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  3407. public:
  3408. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3409. bool IsInitialized() const final;
  3410. size_t ByteSizeLong() const final;
  3411. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3412. uint8_t* _InternalSerialize(
  3413. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3414. int GetCachedSize() const final { return _cached_size_.Get(); }
  3415. private:
  3416. void SharedCtor();
  3417. void SharedDtor();
  3418. void SetCachedSize(int size) const final;
  3419. void InternalSwap(FileOptions* other);
  3420. private:
  3421. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3422. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3423. return "google.protobuf.FileOptions";
  3424. }
  3425. protected:
  3426. explicit FileOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3427. bool is_message_owned = false);
  3428. private:
  3429. static void ArenaDtor(void* object);
  3430. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3431. public:
  3432. static const ClassData _class_data_;
  3433. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  3434. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3435. // nested types ----------------------------------------------------
  3436. typedef FileOptions_OptimizeMode OptimizeMode;
  3437. static constexpr OptimizeMode SPEED =
  3438. FileOptions_OptimizeMode_SPEED;
  3439. static constexpr OptimizeMode CODE_SIZE =
  3440. FileOptions_OptimizeMode_CODE_SIZE;
  3441. static constexpr OptimizeMode LITE_RUNTIME =
  3442. FileOptions_OptimizeMode_LITE_RUNTIME;
  3443. static inline bool OptimizeMode_IsValid(int value) {
  3444. return FileOptions_OptimizeMode_IsValid(value);
  3445. }
  3446. static constexpr OptimizeMode OptimizeMode_MIN =
  3447. FileOptions_OptimizeMode_OptimizeMode_MIN;
  3448. static constexpr OptimizeMode OptimizeMode_MAX =
  3449. FileOptions_OptimizeMode_OptimizeMode_MAX;
  3450. static constexpr int OptimizeMode_ARRAYSIZE =
  3451. FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
  3452. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  3453. OptimizeMode_descriptor() {
  3454. return FileOptions_OptimizeMode_descriptor();
  3455. }
  3456. template<typename T>
  3457. static inline const std::string& OptimizeMode_Name(T enum_t_value) {
  3458. static_assert(::std::is_same<T, OptimizeMode>::value ||
  3459. ::std::is_integral<T>::value,
  3460. "Incorrect type passed to function OptimizeMode_Name.");
  3461. return FileOptions_OptimizeMode_Name(enum_t_value);
  3462. }
  3463. static inline bool OptimizeMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  3464. OptimizeMode* value) {
  3465. return FileOptions_OptimizeMode_Parse(name, value);
  3466. }
  3467. // accessors -------------------------------------------------------
  3468. enum : int {
  3469. kUninterpretedOptionFieldNumber = 999,
  3470. kJavaPackageFieldNumber = 1,
  3471. kJavaOuterClassnameFieldNumber = 8,
  3472. kGoPackageFieldNumber = 11,
  3473. kObjcClassPrefixFieldNumber = 36,
  3474. kCsharpNamespaceFieldNumber = 37,
  3475. kSwiftPrefixFieldNumber = 39,
  3476. kPhpClassPrefixFieldNumber = 40,
  3477. kPhpNamespaceFieldNumber = 41,
  3478. kPhpMetadataNamespaceFieldNumber = 44,
  3479. kRubyPackageFieldNumber = 45,
  3480. kJavaMultipleFilesFieldNumber = 10,
  3481. kJavaGenerateEqualsAndHashFieldNumber = 20,
  3482. kJavaStringCheckUtf8FieldNumber = 27,
  3483. kCcGenericServicesFieldNumber = 16,
  3484. kJavaGenericServicesFieldNumber = 17,
  3485. kPyGenericServicesFieldNumber = 18,
  3486. kPhpGenericServicesFieldNumber = 42,
  3487. kDeprecatedFieldNumber = 23,
  3488. kOptimizeForFieldNumber = 9,
  3489. kCcEnableArenasFieldNumber = 31,
  3490. };
  3491. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3492. int uninterpreted_option_size() const;
  3493. private:
  3494. int _internal_uninterpreted_option_size() const;
  3495. public:
  3496. void clear_uninterpreted_option();
  3497. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  3498. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  3499. mutable_uninterpreted_option();
  3500. private:
  3501. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  3502. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  3503. public:
  3504. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  3505. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  3506. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  3507. uninterpreted_option() const;
  3508. // optional string java_package = 1;
  3509. bool has_java_package() const;
  3510. private:
  3511. bool _internal_has_java_package() const;
  3512. public:
  3513. void clear_java_package();
  3514. const std::string& java_package() const;
  3515. template <typename ArgT0 = const std::string&, typename... ArgT>
  3516. void set_java_package(ArgT0&& arg0, ArgT... args);
  3517. std::string* mutable_java_package();
  3518. PROTOBUF_NODISCARD std::string* release_java_package();
  3519. void set_allocated_java_package(std::string* java_package);
  3520. private:
  3521. const std::string& _internal_java_package() const;
  3522. inline PROTOBUF_ALWAYS_INLINE void _internal_set_java_package(const std::string& value);
  3523. std::string* _internal_mutable_java_package();
  3524. public:
  3525. // optional string java_outer_classname = 8;
  3526. bool has_java_outer_classname() const;
  3527. private:
  3528. bool _internal_has_java_outer_classname() const;
  3529. public:
  3530. void clear_java_outer_classname();
  3531. const std::string& java_outer_classname() const;
  3532. template <typename ArgT0 = const std::string&, typename... ArgT>
  3533. void set_java_outer_classname(ArgT0&& arg0, ArgT... args);
  3534. std::string* mutable_java_outer_classname();
  3535. PROTOBUF_NODISCARD std::string* release_java_outer_classname();
  3536. void set_allocated_java_outer_classname(std::string* java_outer_classname);
  3537. private:
  3538. const std::string& _internal_java_outer_classname() const;
  3539. inline PROTOBUF_ALWAYS_INLINE void _internal_set_java_outer_classname(const std::string& value);
  3540. std::string* _internal_mutable_java_outer_classname();
  3541. public:
  3542. // optional string go_package = 11;
  3543. bool has_go_package() const;
  3544. private:
  3545. bool _internal_has_go_package() const;
  3546. public:
  3547. void clear_go_package();
  3548. const std::string& go_package() const;
  3549. template <typename ArgT0 = const std::string&, typename... ArgT>
  3550. void set_go_package(ArgT0&& arg0, ArgT... args);
  3551. std::string* mutable_go_package();
  3552. PROTOBUF_NODISCARD std::string* release_go_package();
  3553. void set_allocated_go_package(std::string* go_package);
  3554. private:
  3555. const std::string& _internal_go_package() const;
  3556. inline PROTOBUF_ALWAYS_INLINE void _internal_set_go_package(const std::string& value);
  3557. std::string* _internal_mutable_go_package();
  3558. public:
  3559. // optional string objc_class_prefix = 36;
  3560. bool has_objc_class_prefix() const;
  3561. private:
  3562. bool _internal_has_objc_class_prefix() const;
  3563. public:
  3564. void clear_objc_class_prefix();
  3565. const std::string& objc_class_prefix() const;
  3566. template <typename ArgT0 = const std::string&, typename... ArgT>
  3567. void set_objc_class_prefix(ArgT0&& arg0, ArgT... args);
  3568. std::string* mutable_objc_class_prefix();
  3569. PROTOBUF_NODISCARD std::string* release_objc_class_prefix();
  3570. void set_allocated_objc_class_prefix(std::string* objc_class_prefix);
  3571. private:
  3572. const std::string& _internal_objc_class_prefix() const;
  3573. inline PROTOBUF_ALWAYS_INLINE void _internal_set_objc_class_prefix(const std::string& value);
  3574. std::string* _internal_mutable_objc_class_prefix();
  3575. public:
  3576. // optional string csharp_namespace = 37;
  3577. bool has_csharp_namespace() const;
  3578. private:
  3579. bool _internal_has_csharp_namespace() const;
  3580. public:
  3581. void clear_csharp_namespace();
  3582. const std::string& csharp_namespace() const;
  3583. template <typename ArgT0 = const std::string&, typename... ArgT>
  3584. void set_csharp_namespace(ArgT0&& arg0, ArgT... args);
  3585. std::string* mutable_csharp_namespace();
  3586. PROTOBUF_NODISCARD std::string* release_csharp_namespace();
  3587. void set_allocated_csharp_namespace(std::string* csharp_namespace);
  3588. private:
  3589. const std::string& _internal_csharp_namespace() const;
  3590. inline PROTOBUF_ALWAYS_INLINE void _internal_set_csharp_namespace(const std::string& value);
  3591. std::string* _internal_mutable_csharp_namespace();
  3592. public:
  3593. // optional string swift_prefix = 39;
  3594. bool has_swift_prefix() const;
  3595. private:
  3596. bool _internal_has_swift_prefix() const;
  3597. public:
  3598. void clear_swift_prefix();
  3599. const std::string& swift_prefix() const;
  3600. template <typename ArgT0 = const std::string&, typename... ArgT>
  3601. void set_swift_prefix(ArgT0&& arg0, ArgT... args);
  3602. std::string* mutable_swift_prefix();
  3603. PROTOBUF_NODISCARD std::string* release_swift_prefix();
  3604. void set_allocated_swift_prefix(std::string* swift_prefix);
  3605. private:
  3606. const std::string& _internal_swift_prefix() const;
  3607. inline PROTOBUF_ALWAYS_INLINE void _internal_set_swift_prefix(const std::string& value);
  3608. std::string* _internal_mutable_swift_prefix();
  3609. public:
  3610. // optional string php_class_prefix = 40;
  3611. bool has_php_class_prefix() const;
  3612. private:
  3613. bool _internal_has_php_class_prefix() const;
  3614. public:
  3615. void clear_php_class_prefix();
  3616. const std::string& php_class_prefix() const;
  3617. template <typename ArgT0 = const std::string&, typename... ArgT>
  3618. void set_php_class_prefix(ArgT0&& arg0, ArgT... args);
  3619. std::string* mutable_php_class_prefix();
  3620. PROTOBUF_NODISCARD std::string* release_php_class_prefix();
  3621. void set_allocated_php_class_prefix(std::string* php_class_prefix);
  3622. private:
  3623. const std::string& _internal_php_class_prefix() const;
  3624. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_class_prefix(const std::string& value);
  3625. std::string* _internal_mutable_php_class_prefix();
  3626. public:
  3627. // optional string php_namespace = 41;
  3628. bool has_php_namespace() const;
  3629. private:
  3630. bool _internal_has_php_namespace() const;
  3631. public:
  3632. void clear_php_namespace();
  3633. const std::string& php_namespace() const;
  3634. template <typename ArgT0 = const std::string&, typename... ArgT>
  3635. void set_php_namespace(ArgT0&& arg0, ArgT... args);
  3636. std::string* mutable_php_namespace();
  3637. PROTOBUF_NODISCARD std::string* release_php_namespace();
  3638. void set_allocated_php_namespace(std::string* php_namespace);
  3639. private:
  3640. const std::string& _internal_php_namespace() const;
  3641. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_namespace(const std::string& value);
  3642. std::string* _internal_mutable_php_namespace();
  3643. public:
  3644. // optional string php_metadata_namespace = 44;
  3645. bool has_php_metadata_namespace() const;
  3646. private:
  3647. bool _internal_has_php_metadata_namespace() const;
  3648. public:
  3649. void clear_php_metadata_namespace();
  3650. const std::string& php_metadata_namespace() const;
  3651. template <typename ArgT0 = const std::string&, typename... ArgT>
  3652. void set_php_metadata_namespace(ArgT0&& arg0, ArgT... args);
  3653. std::string* mutable_php_metadata_namespace();
  3654. PROTOBUF_NODISCARD std::string* release_php_metadata_namespace();
  3655. void set_allocated_php_metadata_namespace(std::string* php_metadata_namespace);
  3656. private:
  3657. const std::string& _internal_php_metadata_namespace() const;
  3658. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_metadata_namespace(const std::string& value);
  3659. std::string* _internal_mutable_php_metadata_namespace();
  3660. public:
  3661. // optional string ruby_package = 45;
  3662. bool has_ruby_package() const;
  3663. private:
  3664. bool _internal_has_ruby_package() const;
  3665. public:
  3666. void clear_ruby_package();
  3667. const std::string& ruby_package() const;
  3668. template <typename ArgT0 = const std::string&, typename... ArgT>
  3669. void set_ruby_package(ArgT0&& arg0, ArgT... args);
  3670. std::string* mutable_ruby_package();
  3671. PROTOBUF_NODISCARD std::string* release_ruby_package();
  3672. void set_allocated_ruby_package(std::string* ruby_package);
  3673. private:
  3674. const std::string& _internal_ruby_package() const;
  3675. inline PROTOBUF_ALWAYS_INLINE void _internal_set_ruby_package(const std::string& value);
  3676. std::string* _internal_mutable_ruby_package();
  3677. public:
  3678. // optional bool java_multiple_files = 10 [default = false];
  3679. bool has_java_multiple_files() const;
  3680. private:
  3681. bool _internal_has_java_multiple_files() const;
  3682. public:
  3683. void clear_java_multiple_files();
  3684. bool java_multiple_files() const;
  3685. void set_java_multiple_files(bool value);
  3686. private:
  3687. bool _internal_java_multiple_files() const;
  3688. void _internal_set_java_multiple_files(bool value);
  3689. public:
  3690. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  3691. PROTOBUF_DEPRECATED bool has_java_generate_equals_and_hash() const;
  3692. private:
  3693. bool _internal_has_java_generate_equals_and_hash() const;
  3694. public:
  3695. PROTOBUF_DEPRECATED void clear_java_generate_equals_and_hash();
  3696. PROTOBUF_DEPRECATED bool java_generate_equals_and_hash() const;
  3697. PROTOBUF_DEPRECATED void set_java_generate_equals_and_hash(bool value);
  3698. private:
  3699. bool _internal_java_generate_equals_and_hash() const;
  3700. void _internal_set_java_generate_equals_and_hash(bool value);
  3701. public:
  3702. // optional bool java_string_check_utf8 = 27 [default = false];
  3703. bool has_java_string_check_utf8() const;
  3704. private:
  3705. bool _internal_has_java_string_check_utf8() const;
  3706. public:
  3707. void clear_java_string_check_utf8();
  3708. bool java_string_check_utf8() const;
  3709. void set_java_string_check_utf8(bool value);
  3710. private:
  3711. bool _internal_java_string_check_utf8() const;
  3712. void _internal_set_java_string_check_utf8(bool value);
  3713. public:
  3714. // optional bool cc_generic_services = 16 [default = false];
  3715. bool has_cc_generic_services() const;
  3716. private:
  3717. bool _internal_has_cc_generic_services() const;
  3718. public:
  3719. void clear_cc_generic_services();
  3720. bool cc_generic_services() const;
  3721. void set_cc_generic_services(bool value);
  3722. private:
  3723. bool _internal_cc_generic_services() const;
  3724. void _internal_set_cc_generic_services(bool value);
  3725. public:
  3726. // optional bool java_generic_services = 17 [default = false];
  3727. bool has_java_generic_services() const;
  3728. private:
  3729. bool _internal_has_java_generic_services() const;
  3730. public:
  3731. void clear_java_generic_services();
  3732. bool java_generic_services() const;
  3733. void set_java_generic_services(bool value);
  3734. private:
  3735. bool _internal_java_generic_services() const;
  3736. void _internal_set_java_generic_services(bool value);
  3737. public:
  3738. // optional bool py_generic_services = 18 [default = false];
  3739. bool has_py_generic_services() const;
  3740. private:
  3741. bool _internal_has_py_generic_services() const;
  3742. public:
  3743. void clear_py_generic_services();
  3744. bool py_generic_services() const;
  3745. void set_py_generic_services(bool value);
  3746. private:
  3747. bool _internal_py_generic_services() const;
  3748. void _internal_set_py_generic_services(bool value);
  3749. public:
  3750. // optional bool php_generic_services = 42 [default = false];
  3751. bool has_php_generic_services() const;
  3752. private:
  3753. bool _internal_has_php_generic_services() const;
  3754. public:
  3755. void clear_php_generic_services();
  3756. bool php_generic_services() const;
  3757. void set_php_generic_services(bool value);
  3758. private:
  3759. bool _internal_php_generic_services() const;
  3760. void _internal_set_php_generic_services(bool value);
  3761. public:
  3762. // optional bool deprecated = 23 [default = false];
  3763. bool has_deprecated() const;
  3764. private:
  3765. bool _internal_has_deprecated() const;
  3766. public:
  3767. void clear_deprecated();
  3768. bool deprecated() const;
  3769. void set_deprecated(bool value);
  3770. private:
  3771. bool _internal_deprecated() const;
  3772. void _internal_set_deprecated(bool value);
  3773. public:
  3774. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  3775. bool has_optimize_for() const;
  3776. private:
  3777. bool _internal_has_optimize_for() const;
  3778. public:
  3779. void clear_optimize_for();
  3780. ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode optimize_for() const;
  3781. void set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value);
  3782. private:
  3783. ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode _internal_optimize_for() const;
  3784. void _internal_set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value);
  3785. public:
  3786. // optional bool cc_enable_arenas = 31 [default = true];
  3787. bool has_cc_enable_arenas() const;
  3788. private:
  3789. bool _internal_has_cc_enable_arenas() const;
  3790. public:
  3791. void clear_cc_enable_arenas();
  3792. bool cc_enable_arenas() const;
  3793. void set_cc_enable_arenas(bool value);
  3794. private:
  3795. bool _internal_cc_enable_arenas() const;
  3796. void _internal_set_cc_enable_arenas(bool value);
  3797. public:
  3798. template <typename _proto_TypeTraits,
  3799. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3800. bool _is_packed>
  3801. inline bool HasExtension(
  3802. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3803. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3804. return _extensions_.Has(id.number());
  3805. }
  3806. template <typename _proto_TypeTraits,
  3807. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3808. bool _is_packed>
  3809. inline void ClearExtension(
  3810. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3811. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3812. _extensions_.ClearExtension(id.number());
  3813. }
  3814. template <typename _proto_TypeTraits,
  3815. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3816. bool _is_packed>
  3817. inline int ExtensionSize(
  3818. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3819. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3820. return _extensions_.ExtensionSize(id.number());
  3821. }
  3822. template <typename _proto_TypeTraits,
  3823. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3824. bool _is_packed>
  3825. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  3826. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3827. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3828. return _proto_TypeTraits::Get(id.number(), _extensions_,
  3829. id.default_value());
  3830. }
  3831. template <typename _proto_TypeTraits,
  3832. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3833. bool _is_packed>
  3834. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  3835. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3836. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3837. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  3838. &_extensions_);
  3839. }
  3840. template <typename _proto_TypeTraits,
  3841. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3842. bool _is_packed>
  3843. inline void SetExtension(
  3844. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3845. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3846. typename _proto_TypeTraits::Singular::ConstType value) {
  3847. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  3848. }
  3849. template <typename _proto_TypeTraits,
  3850. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3851. bool _is_packed>
  3852. inline void SetAllocatedExtension(
  3853. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3854. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3855. typename _proto_TypeTraits::Singular::MutableType value) {
  3856. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  3857. &_extensions_);
  3858. }
  3859. template <typename _proto_TypeTraits,
  3860. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3861. bool _is_packed>
  3862. inline void UnsafeArenaSetAllocatedExtension(
  3863. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3864. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3865. typename _proto_TypeTraits::Singular::MutableType value) {
  3866. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  3867. value, &_extensions_);
  3868. }
  3869. template <typename _proto_TypeTraits,
  3870. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3871. bool _is_packed>
  3872. PROTOBUF_NODISCARD inline
  3873. typename _proto_TypeTraits::Singular::MutableType
  3874. ReleaseExtension(
  3875. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3876. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3877. return _proto_TypeTraits::Release(id.number(), _field_type,
  3878. &_extensions_);
  3879. }
  3880. template <typename _proto_TypeTraits,
  3881. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3882. bool _is_packed>
  3883. inline typename _proto_TypeTraits::Singular::MutableType
  3884. UnsafeArenaReleaseExtension(
  3885. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3886. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3887. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  3888. &_extensions_);
  3889. }
  3890. template <typename _proto_TypeTraits,
  3891. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3892. bool _is_packed>
  3893. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  3894. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3895. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3896. int index) const {
  3897. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  3898. }
  3899. template <typename _proto_TypeTraits,
  3900. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3901. bool _is_packed>
  3902. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  3903. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3904. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3905. int index) {
  3906. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  3907. }
  3908. template <typename _proto_TypeTraits,
  3909. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3910. bool _is_packed>
  3911. inline void SetExtension(
  3912. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3913. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3914. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  3915. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  3916. }
  3917. template <typename _proto_TypeTraits,
  3918. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3919. bool _is_packed>
  3920. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  3921. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3922. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3923. typename _proto_TypeTraits::Repeated::MutableType to_add =
  3924. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  3925. return to_add;
  3926. }
  3927. template <typename _proto_TypeTraits,
  3928. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3929. bool _is_packed>
  3930. inline void AddExtension(
  3931. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3932. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3933. typename _proto_TypeTraits::Repeated::ConstType value) {
  3934. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  3935. &_extensions_);
  3936. }
  3937. template <typename _proto_TypeTraits,
  3938. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3939. bool _is_packed>
  3940. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  3941. GetRepeatedExtension(
  3942. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3943. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3944. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  3945. }
  3946. template <typename _proto_TypeTraits,
  3947. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3948. bool _is_packed>
  3949. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  3950. MutableRepeatedExtension(
  3951. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3952. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3953. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  3954. _is_packed, &_extensions_);
  3955. }
  3956. // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
  3957. private:
  3958. class _Internal;
  3959. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  3960. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3961. typedef void InternalArenaConstructable_;
  3962. typedef void DestructorSkippable_;
  3963. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3964. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3965. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  3966. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr java_package_;
  3967. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr java_outer_classname_;
  3968. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr go_package_;
  3969. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr objc_class_prefix_;
  3970. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr csharp_namespace_;
  3971. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr swift_prefix_;
  3972. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_class_prefix_;
  3973. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_namespace_;
  3974. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_metadata_namespace_;
  3975. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ruby_package_;
  3976. bool java_multiple_files_;
  3977. bool java_generate_equals_and_hash_;
  3978. bool java_string_check_utf8_;
  3979. bool cc_generic_services_;
  3980. bool java_generic_services_;
  3981. bool py_generic_services_;
  3982. bool php_generic_services_;
  3983. bool deprecated_;
  3984. int optimize_for_;
  3985. bool cc_enable_arenas_;
  3986. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3987. };
  3988. // -------------------------------------------------------------------
  3989. class PROTOBUF_EXPORT MessageOptions final :
  3990. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MessageOptions) */ {
  3991. public:
  3992. inline MessageOptions() : MessageOptions(nullptr) {}
  3993. ~MessageOptions() override;
  3994. explicit constexpr MessageOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3995. MessageOptions(const MessageOptions& from);
  3996. MessageOptions(MessageOptions&& from) noexcept
  3997. : MessageOptions() {
  3998. *this = ::std::move(from);
  3999. }
  4000. inline MessageOptions& operator=(const MessageOptions& from) {
  4001. CopyFrom(from);
  4002. return *this;
  4003. }
  4004. inline MessageOptions& operator=(MessageOptions&& from) noexcept {
  4005. if (this == &from) return *this;
  4006. if (GetOwningArena() == from.GetOwningArena()
  4007. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4008. && GetOwningArena() != nullptr
  4009. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4010. ) {
  4011. InternalSwap(&from);
  4012. } else {
  4013. CopyFrom(from);
  4014. }
  4015. return *this;
  4016. }
  4017. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4018. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  4019. }
  4020. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4021. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4022. }
  4023. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4024. return GetDescriptor();
  4025. }
  4026. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4027. return default_instance().GetMetadata().descriptor;
  4028. }
  4029. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4030. return default_instance().GetMetadata().reflection;
  4031. }
  4032. static const MessageOptions& default_instance() {
  4033. return *internal_default_instance();
  4034. }
  4035. static inline const MessageOptions* internal_default_instance() {
  4036. return reinterpret_cast<const MessageOptions*>(
  4037. &_MessageOptions_default_instance_);
  4038. }
  4039. static constexpr int kIndexInFileMessages =
  4040. 14;
  4041. friend void swap(MessageOptions& a, MessageOptions& b) {
  4042. a.Swap(&b);
  4043. }
  4044. inline void Swap(MessageOptions* other) {
  4045. if (other == this) return;
  4046. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4047. if (GetOwningArena() != nullptr &&
  4048. GetOwningArena() == other->GetOwningArena()) {
  4049. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4050. if (GetOwningArena() == other->GetOwningArena()) {
  4051. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4052. InternalSwap(other);
  4053. } else {
  4054. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4055. }
  4056. }
  4057. void UnsafeArenaSwap(MessageOptions* other) {
  4058. if (other == this) return;
  4059. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  4060. InternalSwap(other);
  4061. }
  4062. // implements Message ----------------------------------------------
  4063. MessageOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  4064. return CreateMaybeMessage<MessageOptions>(arena);
  4065. }
  4066. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  4067. void CopyFrom(const MessageOptions& from);
  4068. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  4069. void MergeFrom(const MessageOptions& from);
  4070. private:
  4071. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  4072. public:
  4073. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4074. bool IsInitialized() const final;
  4075. size_t ByteSizeLong() const final;
  4076. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4077. uint8_t* _InternalSerialize(
  4078. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4079. int GetCachedSize() const final { return _cached_size_.Get(); }
  4080. private:
  4081. void SharedCtor();
  4082. void SharedDtor();
  4083. void SetCachedSize(int size) const final;
  4084. void InternalSwap(MessageOptions* other);
  4085. private:
  4086. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4087. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4088. return "google.protobuf.MessageOptions";
  4089. }
  4090. protected:
  4091. explicit MessageOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4092. bool is_message_owned = false);
  4093. private:
  4094. static void ArenaDtor(void* object);
  4095. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4096. public:
  4097. static const ClassData _class_data_;
  4098. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  4099. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4100. // nested types ----------------------------------------------------
  4101. // accessors -------------------------------------------------------
  4102. enum : int {
  4103. kUninterpretedOptionFieldNumber = 999,
  4104. kMessageSetWireFormatFieldNumber = 1,
  4105. kNoStandardDescriptorAccessorFieldNumber = 2,
  4106. kDeprecatedFieldNumber = 3,
  4107. kMapEntryFieldNumber = 7,
  4108. };
  4109. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4110. int uninterpreted_option_size() const;
  4111. private:
  4112. int _internal_uninterpreted_option_size() const;
  4113. public:
  4114. void clear_uninterpreted_option();
  4115. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4116. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4117. mutable_uninterpreted_option();
  4118. private:
  4119. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4120. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4121. public:
  4122. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4123. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4124. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4125. uninterpreted_option() const;
  4126. // optional bool message_set_wire_format = 1 [default = false];
  4127. bool has_message_set_wire_format() const;
  4128. private:
  4129. bool _internal_has_message_set_wire_format() const;
  4130. public:
  4131. void clear_message_set_wire_format();
  4132. bool message_set_wire_format() const;
  4133. void set_message_set_wire_format(bool value);
  4134. private:
  4135. bool _internal_message_set_wire_format() const;
  4136. void _internal_set_message_set_wire_format(bool value);
  4137. public:
  4138. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  4139. bool has_no_standard_descriptor_accessor() const;
  4140. private:
  4141. bool _internal_has_no_standard_descriptor_accessor() const;
  4142. public:
  4143. void clear_no_standard_descriptor_accessor();
  4144. bool no_standard_descriptor_accessor() const;
  4145. void set_no_standard_descriptor_accessor(bool value);
  4146. private:
  4147. bool _internal_no_standard_descriptor_accessor() const;
  4148. void _internal_set_no_standard_descriptor_accessor(bool value);
  4149. public:
  4150. // optional bool deprecated = 3 [default = false];
  4151. bool has_deprecated() const;
  4152. private:
  4153. bool _internal_has_deprecated() const;
  4154. public:
  4155. void clear_deprecated();
  4156. bool deprecated() const;
  4157. void set_deprecated(bool value);
  4158. private:
  4159. bool _internal_deprecated() const;
  4160. void _internal_set_deprecated(bool value);
  4161. public:
  4162. // optional bool map_entry = 7;
  4163. bool has_map_entry() const;
  4164. private:
  4165. bool _internal_has_map_entry() const;
  4166. public:
  4167. void clear_map_entry();
  4168. bool map_entry() const;
  4169. void set_map_entry(bool value);
  4170. private:
  4171. bool _internal_map_entry() const;
  4172. void _internal_set_map_entry(bool value);
  4173. public:
  4174. template <typename _proto_TypeTraits,
  4175. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4176. bool _is_packed>
  4177. inline bool HasExtension(
  4178. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4179. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4180. return _extensions_.Has(id.number());
  4181. }
  4182. template <typename _proto_TypeTraits,
  4183. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4184. bool _is_packed>
  4185. inline void ClearExtension(
  4186. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4187. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4188. _extensions_.ClearExtension(id.number());
  4189. }
  4190. template <typename _proto_TypeTraits,
  4191. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4192. bool _is_packed>
  4193. inline int ExtensionSize(
  4194. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4195. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4196. return _extensions_.ExtensionSize(id.number());
  4197. }
  4198. template <typename _proto_TypeTraits,
  4199. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4200. bool _is_packed>
  4201. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  4202. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4203. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4204. return _proto_TypeTraits::Get(id.number(), _extensions_,
  4205. id.default_value());
  4206. }
  4207. template <typename _proto_TypeTraits,
  4208. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4209. bool _is_packed>
  4210. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  4211. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4212. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4213. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  4214. &_extensions_);
  4215. }
  4216. template <typename _proto_TypeTraits,
  4217. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4218. bool _is_packed>
  4219. inline void SetExtension(
  4220. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4221. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4222. typename _proto_TypeTraits::Singular::ConstType value) {
  4223. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  4224. }
  4225. template <typename _proto_TypeTraits,
  4226. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4227. bool _is_packed>
  4228. inline void SetAllocatedExtension(
  4229. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4230. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4231. typename _proto_TypeTraits::Singular::MutableType value) {
  4232. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  4233. &_extensions_);
  4234. }
  4235. template <typename _proto_TypeTraits,
  4236. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4237. bool _is_packed>
  4238. inline void UnsafeArenaSetAllocatedExtension(
  4239. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4240. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4241. typename _proto_TypeTraits::Singular::MutableType value) {
  4242. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  4243. value, &_extensions_);
  4244. }
  4245. template <typename _proto_TypeTraits,
  4246. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4247. bool _is_packed>
  4248. PROTOBUF_NODISCARD inline
  4249. typename _proto_TypeTraits::Singular::MutableType
  4250. ReleaseExtension(
  4251. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4252. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4253. return _proto_TypeTraits::Release(id.number(), _field_type,
  4254. &_extensions_);
  4255. }
  4256. template <typename _proto_TypeTraits,
  4257. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4258. bool _is_packed>
  4259. inline typename _proto_TypeTraits::Singular::MutableType
  4260. UnsafeArenaReleaseExtension(
  4261. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4262. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4263. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  4264. &_extensions_);
  4265. }
  4266. template <typename _proto_TypeTraits,
  4267. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4268. bool _is_packed>
  4269. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  4270. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4271. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4272. int index) const {
  4273. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  4274. }
  4275. template <typename _proto_TypeTraits,
  4276. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4277. bool _is_packed>
  4278. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  4279. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4280. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4281. int index) {
  4282. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  4283. }
  4284. template <typename _proto_TypeTraits,
  4285. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4286. bool _is_packed>
  4287. inline void SetExtension(
  4288. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4289. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4290. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  4291. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  4292. }
  4293. template <typename _proto_TypeTraits,
  4294. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4295. bool _is_packed>
  4296. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  4297. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4298. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4299. typename _proto_TypeTraits::Repeated::MutableType to_add =
  4300. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  4301. return to_add;
  4302. }
  4303. template <typename _proto_TypeTraits,
  4304. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4305. bool _is_packed>
  4306. inline void AddExtension(
  4307. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4308. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4309. typename _proto_TypeTraits::Repeated::ConstType value) {
  4310. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  4311. &_extensions_);
  4312. }
  4313. template <typename _proto_TypeTraits,
  4314. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4315. bool _is_packed>
  4316. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  4317. GetRepeatedExtension(
  4318. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4319. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4320. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  4321. }
  4322. template <typename _proto_TypeTraits,
  4323. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4324. bool _is_packed>
  4325. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  4326. MutableRepeatedExtension(
  4327. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4328. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4329. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  4330. _is_packed, &_extensions_);
  4331. }
  4332. // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
  4333. private:
  4334. class _Internal;
  4335. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4336. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4337. typedef void InternalArenaConstructable_;
  4338. typedef void DestructorSkippable_;
  4339. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4340. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4341. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  4342. bool message_set_wire_format_;
  4343. bool no_standard_descriptor_accessor_;
  4344. bool deprecated_;
  4345. bool map_entry_;
  4346. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4347. };
  4348. // -------------------------------------------------------------------
  4349. class PROTOBUF_EXPORT FieldOptions final :
  4350. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldOptions) */ {
  4351. public:
  4352. inline FieldOptions() : FieldOptions(nullptr) {}
  4353. ~FieldOptions() override;
  4354. explicit constexpr FieldOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  4355. FieldOptions(const FieldOptions& from);
  4356. FieldOptions(FieldOptions&& from) noexcept
  4357. : FieldOptions() {
  4358. *this = ::std::move(from);
  4359. }
  4360. inline FieldOptions& operator=(const FieldOptions& from) {
  4361. CopyFrom(from);
  4362. return *this;
  4363. }
  4364. inline FieldOptions& operator=(FieldOptions&& from) noexcept {
  4365. if (this == &from) return *this;
  4366. if (GetOwningArena() == from.GetOwningArena()
  4367. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4368. && GetOwningArena() != nullptr
  4369. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4370. ) {
  4371. InternalSwap(&from);
  4372. } else {
  4373. CopyFrom(from);
  4374. }
  4375. return *this;
  4376. }
  4377. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4378. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  4379. }
  4380. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4381. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4382. }
  4383. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4384. return GetDescriptor();
  4385. }
  4386. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4387. return default_instance().GetMetadata().descriptor;
  4388. }
  4389. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4390. return default_instance().GetMetadata().reflection;
  4391. }
  4392. static const FieldOptions& default_instance() {
  4393. return *internal_default_instance();
  4394. }
  4395. static inline const FieldOptions* internal_default_instance() {
  4396. return reinterpret_cast<const FieldOptions*>(
  4397. &_FieldOptions_default_instance_);
  4398. }
  4399. static constexpr int kIndexInFileMessages =
  4400. 15;
  4401. friend void swap(FieldOptions& a, FieldOptions& b) {
  4402. a.Swap(&b);
  4403. }
  4404. inline void Swap(FieldOptions* other) {
  4405. if (other == this) return;
  4406. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4407. if (GetOwningArena() != nullptr &&
  4408. GetOwningArena() == other->GetOwningArena()) {
  4409. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4410. if (GetOwningArena() == other->GetOwningArena()) {
  4411. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4412. InternalSwap(other);
  4413. } else {
  4414. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4415. }
  4416. }
  4417. void UnsafeArenaSwap(FieldOptions* other) {
  4418. if (other == this) return;
  4419. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  4420. InternalSwap(other);
  4421. }
  4422. // implements Message ----------------------------------------------
  4423. FieldOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  4424. return CreateMaybeMessage<FieldOptions>(arena);
  4425. }
  4426. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  4427. void CopyFrom(const FieldOptions& from);
  4428. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  4429. void MergeFrom(const FieldOptions& from);
  4430. private:
  4431. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  4432. public:
  4433. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4434. bool IsInitialized() const final;
  4435. size_t ByteSizeLong() const final;
  4436. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4437. uint8_t* _InternalSerialize(
  4438. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4439. int GetCachedSize() const final { return _cached_size_.Get(); }
  4440. private:
  4441. void SharedCtor();
  4442. void SharedDtor();
  4443. void SetCachedSize(int size) const final;
  4444. void InternalSwap(FieldOptions* other);
  4445. private:
  4446. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4447. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4448. return "google.protobuf.FieldOptions";
  4449. }
  4450. protected:
  4451. explicit FieldOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4452. bool is_message_owned = false);
  4453. private:
  4454. static void ArenaDtor(void* object);
  4455. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4456. public:
  4457. static const ClassData _class_data_;
  4458. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  4459. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4460. // nested types ----------------------------------------------------
  4461. typedef FieldOptions_CType CType;
  4462. static constexpr CType STRING =
  4463. FieldOptions_CType_STRING;
  4464. static constexpr CType CORD =
  4465. FieldOptions_CType_CORD;
  4466. static constexpr CType STRING_PIECE =
  4467. FieldOptions_CType_STRING_PIECE;
  4468. static inline bool CType_IsValid(int value) {
  4469. return FieldOptions_CType_IsValid(value);
  4470. }
  4471. static constexpr CType CType_MIN =
  4472. FieldOptions_CType_CType_MIN;
  4473. static constexpr CType CType_MAX =
  4474. FieldOptions_CType_CType_MAX;
  4475. static constexpr int CType_ARRAYSIZE =
  4476. FieldOptions_CType_CType_ARRAYSIZE;
  4477. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4478. CType_descriptor() {
  4479. return FieldOptions_CType_descriptor();
  4480. }
  4481. template<typename T>
  4482. static inline const std::string& CType_Name(T enum_t_value) {
  4483. static_assert(::std::is_same<T, CType>::value ||
  4484. ::std::is_integral<T>::value,
  4485. "Incorrect type passed to function CType_Name.");
  4486. return FieldOptions_CType_Name(enum_t_value);
  4487. }
  4488. static inline bool CType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  4489. CType* value) {
  4490. return FieldOptions_CType_Parse(name, value);
  4491. }
  4492. typedef FieldOptions_JSType JSType;
  4493. static constexpr JSType JS_NORMAL =
  4494. FieldOptions_JSType_JS_NORMAL;
  4495. static constexpr JSType JS_STRING =
  4496. FieldOptions_JSType_JS_STRING;
  4497. static constexpr JSType JS_NUMBER =
  4498. FieldOptions_JSType_JS_NUMBER;
  4499. static inline bool JSType_IsValid(int value) {
  4500. return FieldOptions_JSType_IsValid(value);
  4501. }
  4502. static constexpr JSType JSType_MIN =
  4503. FieldOptions_JSType_JSType_MIN;
  4504. static constexpr JSType JSType_MAX =
  4505. FieldOptions_JSType_JSType_MAX;
  4506. static constexpr int JSType_ARRAYSIZE =
  4507. FieldOptions_JSType_JSType_ARRAYSIZE;
  4508. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4509. JSType_descriptor() {
  4510. return FieldOptions_JSType_descriptor();
  4511. }
  4512. template<typename T>
  4513. static inline const std::string& JSType_Name(T enum_t_value) {
  4514. static_assert(::std::is_same<T, JSType>::value ||
  4515. ::std::is_integral<T>::value,
  4516. "Incorrect type passed to function JSType_Name.");
  4517. return FieldOptions_JSType_Name(enum_t_value);
  4518. }
  4519. static inline bool JSType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  4520. JSType* value) {
  4521. return FieldOptions_JSType_Parse(name, value);
  4522. }
  4523. // accessors -------------------------------------------------------
  4524. enum : int {
  4525. kUninterpretedOptionFieldNumber = 999,
  4526. kCtypeFieldNumber = 1,
  4527. kPackedFieldNumber = 2,
  4528. kLazyFieldNumber = 5,
  4529. kDeprecatedFieldNumber = 3,
  4530. kWeakFieldNumber = 10,
  4531. kJstypeFieldNumber = 6,
  4532. };
  4533. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4534. int uninterpreted_option_size() const;
  4535. private:
  4536. int _internal_uninterpreted_option_size() const;
  4537. public:
  4538. void clear_uninterpreted_option();
  4539. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4540. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4541. mutable_uninterpreted_option();
  4542. private:
  4543. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4544. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4545. public:
  4546. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4547. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4548. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4549. uninterpreted_option() const;
  4550. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  4551. bool has_ctype() const;
  4552. private:
  4553. bool _internal_has_ctype() const;
  4554. public:
  4555. void clear_ctype();
  4556. ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType ctype() const;
  4557. void set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value);
  4558. private:
  4559. ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType _internal_ctype() const;
  4560. void _internal_set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value);
  4561. public:
  4562. // optional bool packed = 2;
  4563. bool has_packed() const;
  4564. private:
  4565. bool _internal_has_packed() const;
  4566. public:
  4567. void clear_packed();
  4568. bool packed() const;
  4569. void set_packed(bool value);
  4570. private:
  4571. bool _internal_packed() const;
  4572. void _internal_set_packed(bool value);
  4573. public:
  4574. // optional bool lazy = 5 [default = false];
  4575. bool has_lazy() const;
  4576. private:
  4577. bool _internal_has_lazy() const;
  4578. public:
  4579. void clear_lazy();
  4580. bool lazy() const;
  4581. void set_lazy(bool value);
  4582. private:
  4583. bool _internal_lazy() const;
  4584. void _internal_set_lazy(bool value);
  4585. public:
  4586. // optional bool deprecated = 3 [default = false];
  4587. bool has_deprecated() const;
  4588. private:
  4589. bool _internal_has_deprecated() const;
  4590. public:
  4591. void clear_deprecated();
  4592. bool deprecated() const;
  4593. void set_deprecated(bool value);
  4594. private:
  4595. bool _internal_deprecated() const;
  4596. void _internal_set_deprecated(bool value);
  4597. public:
  4598. // optional bool weak = 10 [default = false];
  4599. bool has_weak() const;
  4600. private:
  4601. bool _internal_has_weak() const;
  4602. public:
  4603. void clear_weak();
  4604. bool weak() const;
  4605. void set_weak(bool value);
  4606. private:
  4607. bool _internal_weak() const;
  4608. void _internal_set_weak(bool value);
  4609. public:
  4610. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  4611. bool has_jstype() const;
  4612. private:
  4613. bool _internal_has_jstype() const;
  4614. public:
  4615. void clear_jstype();
  4616. ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType jstype() const;
  4617. void set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value);
  4618. private:
  4619. ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType _internal_jstype() const;
  4620. void _internal_set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value);
  4621. public:
  4622. template <typename _proto_TypeTraits,
  4623. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4624. bool _is_packed>
  4625. inline bool HasExtension(
  4626. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4627. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4628. return _extensions_.Has(id.number());
  4629. }
  4630. template <typename _proto_TypeTraits,
  4631. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4632. bool _is_packed>
  4633. inline void ClearExtension(
  4634. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4635. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4636. _extensions_.ClearExtension(id.number());
  4637. }
  4638. template <typename _proto_TypeTraits,
  4639. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4640. bool _is_packed>
  4641. inline int ExtensionSize(
  4642. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4643. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4644. return _extensions_.ExtensionSize(id.number());
  4645. }
  4646. template <typename _proto_TypeTraits,
  4647. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4648. bool _is_packed>
  4649. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  4650. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4651. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4652. return _proto_TypeTraits::Get(id.number(), _extensions_,
  4653. id.default_value());
  4654. }
  4655. template <typename _proto_TypeTraits,
  4656. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4657. bool _is_packed>
  4658. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  4659. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4660. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4661. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  4662. &_extensions_);
  4663. }
  4664. template <typename _proto_TypeTraits,
  4665. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4666. bool _is_packed>
  4667. inline void SetExtension(
  4668. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4669. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4670. typename _proto_TypeTraits::Singular::ConstType value) {
  4671. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  4672. }
  4673. template <typename _proto_TypeTraits,
  4674. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4675. bool _is_packed>
  4676. inline void SetAllocatedExtension(
  4677. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4678. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4679. typename _proto_TypeTraits::Singular::MutableType value) {
  4680. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  4681. &_extensions_);
  4682. }
  4683. template <typename _proto_TypeTraits,
  4684. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4685. bool _is_packed>
  4686. inline void UnsafeArenaSetAllocatedExtension(
  4687. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4688. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4689. typename _proto_TypeTraits::Singular::MutableType value) {
  4690. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  4691. value, &_extensions_);
  4692. }
  4693. template <typename _proto_TypeTraits,
  4694. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4695. bool _is_packed>
  4696. PROTOBUF_NODISCARD inline
  4697. typename _proto_TypeTraits::Singular::MutableType
  4698. ReleaseExtension(
  4699. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4700. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4701. return _proto_TypeTraits::Release(id.number(), _field_type,
  4702. &_extensions_);
  4703. }
  4704. template <typename _proto_TypeTraits,
  4705. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4706. bool _is_packed>
  4707. inline typename _proto_TypeTraits::Singular::MutableType
  4708. UnsafeArenaReleaseExtension(
  4709. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4710. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4711. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  4712. &_extensions_);
  4713. }
  4714. template <typename _proto_TypeTraits,
  4715. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4716. bool _is_packed>
  4717. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  4718. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4719. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4720. int index) const {
  4721. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  4722. }
  4723. template <typename _proto_TypeTraits,
  4724. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4725. bool _is_packed>
  4726. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  4727. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4728. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4729. int index) {
  4730. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  4731. }
  4732. template <typename _proto_TypeTraits,
  4733. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4734. bool _is_packed>
  4735. inline void SetExtension(
  4736. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4737. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4738. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  4739. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  4740. }
  4741. template <typename _proto_TypeTraits,
  4742. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4743. bool _is_packed>
  4744. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  4745. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4746. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4747. typename _proto_TypeTraits::Repeated::MutableType to_add =
  4748. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  4749. return to_add;
  4750. }
  4751. template <typename _proto_TypeTraits,
  4752. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4753. bool _is_packed>
  4754. inline void AddExtension(
  4755. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4756. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4757. typename _proto_TypeTraits::Repeated::ConstType value) {
  4758. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  4759. &_extensions_);
  4760. }
  4761. template <typename _proto_TypeTraits,
  4762. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4763. bool _is_packed>
  4764. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  4765. GetRepeatedExtension(
  4766. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4767. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4768. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  4769. }
  4770. template <typename _proto_TypeTraits,
  4771. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4772. bool _is_packed>
  4773. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  4774. MutableRepeatedExtension(
  4775. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4776. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4777. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  4778. _is_packed, &_extensions_);
  4779. }
  4780. // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
  4781. private:
  4782. class _Internal;
  4783. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4784. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4785. typedef void InternalArenaConstructable_;
  4786. typedef void DestructorSkippable_;
  4787. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4788. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4789. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  4790. int ctype_;
  4791. bool packed_;
  4792. bool lazy_;
  4793. bool deprecated_;
  4794. bool weak_;
  4795. int jstype_;
  4796. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4797. };
  4798. // -------------------------------------------------------------------
  4799. class PROTOBUF_EXPORT OneofOptions final :
  4800. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofOptions) */ {
  4801. public:
  4802. inline OneofOptions() : OneofOptions(nullptr) {}
  4803. ~OneofOptions() override;
  4804. explicit constexpr OneofOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  4805. OneofOptions(const OneofOptions& from);
  4806. OneofOptions(OneofOptions&& from) noexcept
  4807. : OneofOptions() {
  4808. *this = ::std::move(from);
  4809. }
  4810. inline OneofOptions& operator=(const OneofOptions& from) {
  4811. CopyFrom(from);
  4812. return *this;
  4813. }
  4814. inline OneofOptions& operator=(OneofOptions&& from) noexcept {
  4815. if (this == &from) return *this;
  4816. if (GetOwningArena() == from.GetOwningArena()
  4817. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4818. && GetOwningArena() != nullptr
  4819. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4820. ) {
  4821. InternalSwap(&from);
  4822. } else {
  4823. CopyFrom(from);
  4824. }
  4825. return *this;
  4826. }
  4827. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4828. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  4829. }
  4830. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4831. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4832. }
  4833. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4834. return GetDescriptor();
  4835. }
  4836. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4837. return default_instance().GetMetadata().descriptor;
  4838. }
  4839. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4840. return default_instance().GetMetadata().reflection;
  4841. }
  4842. static const OneofOptions& default_instance() {
  4843. return *internal_default_instance();
  4844. }
  4845. static inline const OneofOptions* internal_default_instance() {
  4846. return reinterpret_cast<const OneofOptions*>(
  4847. &_OneofOptions_default_instance_);
  4848. }
  4849. static constexpr int kIndexInFileMessages =
  4850. 16;
  4851. friend void swap(OneofOptions& a, OneofOptions& b) {
  4852. a.Swap(&b);
  4853. }
  4854. inline void Swap(OneofOptions* other) {
  4855. if (other == this) return;
  4856. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4857. if (GetOwningArena() != nullptr &&
  4858. GetOwningArena() == other->GetOwningArena()) {
  4859. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4860. if (GetOwningArena() == other->GetOwningArena()) {
  4861. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4862. InternalSwap(other);
  4863. } else {
  4864. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4865. }
  4866. }
  4867. void UnsafeArenaSwap(OneofOptions* other) {
  4868. if (other == this) return;
  4869. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  4870. InternalSwap(other);
  4871. }
  4872. // implements Message ----------------------------------------------
  4873. OneofOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  4874. return CreateMaybeMessage<OneofOptions>(arena);
  4875. }
  4876. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  4877. void CopyFrom(const OneofOptions& from);
  4878. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  4879. void MergeFrom(const OneofOptions& from);
  4880. private:
  4881. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  4882. public:
  4883. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4884. bool IsInitialized() const final;
  4885. size_t ByteSizeLong() const final;
  4886. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4887. uint8_t* _InternalSerialize(
  4888. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4889. int GetCachedSize() const final { return _cached_size_.Get(); }
  4890. private:
  4891. void SharedCtor();
  4892. void SharedDtor();
  4893. void SetCachedSize(int size) const final;
  4894. void InternalSwap(OneofOptions* other);
  4895. private:
  4896. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4897. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4898. return "google.protobuf.OneofOptions";
  4899. }
  4900. protected:
  4901. explicit OneofOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4902. bool is_message_owned = false);
  4903. private:
  4904. static void ArenaDtor(void* object);
  4905. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4906. public:
  4907. static const ClassData _class_data_;
  4908. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  4909. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4910. // nested types ----------------------------------------------------
  4911. // accessors -------------------------------------------------------
  4912. enum : int {
  4913. kUninterpretedOptionFieldNumber = 999,
  4914. };
  4915. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4916. int uninterpreted_option_size() const;
  4917. private:
  4918. int _internal_uninterpreted_option_size() const;
  4919. public:
  4920. void clear_uninterpreted_option();
  4921. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4922. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4923. mutable_uninterpreted_option();
  4924. private:
  4925. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4926. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4927. public:
  4928. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4929. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4930. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4931. uninterpreted_option() const;
  4932. template <typename _proto_TypeTraits,
  4933. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4934. bool _is_packed>
  4935. inline bool HasExtension(
  4936. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4937. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4938. return _extensions_.Has(id.number());
  4939. }
  4940. template <typename _proto_TypeTraits,
  4941. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4942. bool _is_packed>
  4943. inline void ClearExtension(
  4944. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4945. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4946. _extensions_.ClearExtension(id.number());
  4947. }
  4948. template <typename _proto_TypeTraits,
  4949. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4950. bool _is_packed>
  4951. inline int ExtensionSize(
  4952. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4953. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4954. return _extensions_.ExtensionSize(id.number());
  4955. }
  4956. template <typename _proto_TypeTraits,
  4957. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4958. bool _is_packed>
  4959. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  4960. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4961. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4962. return _proto_TypeTraits::Get(id.number(), _extensions_,
  4963. id.default_value());
  4964. }
  4965. template <typename _proto_TypeTraits,
  4966. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4967. bool _is_packed>
  4968. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  4969. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4970. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4971. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  4972. &_extensions_);
  4973. }
  4974. template <typename _proto_TypeTraits,
  4975. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4976. bool _is_packed>
  4977. inline void SetExtension(
  4978. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4979. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4980. typename _proto_TypeTraits::Singular::ConstType value) {
  4981. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  4982. }
  4983. template <typename _proto_TypeTraits,
  4984. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4985. bool _is_packed>
  4986. inline void SetAllocatedExtension(
  4987. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4988. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4989. typename _proto_TypeTraits::Singular::MutableType value) {
  4990. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  4991. &_extensions_);
  4992. }
  4993. template <typename _proto_TypeTraits,
  4994. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4995. bool _is_packed>
  4996. inline void UnsafeArenaSetAllocatedExtension(
  4997. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4998. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4999. typename _proto_TypeTraits::Singular::MutableType value) {
  5000. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  5001. value, &_extensions_);
  5002. }
  5003. template <typename _proto_TypeTraits,
  5004. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5005. bool _is_packed>
  5006. PROTOBUF_NODISCARD inline
  5007. typename _proto_TypeTraits::Singular::MutableType
  5008. ReleaseExtension(
  5009. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5010. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5011. return _proto_TypeTraits::Release(id.number(), _field_type,
  5012. &_extensions_);
  5013. }
  5014. template <typename _proto_TypeTraits,
  5015. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5016. bool _is_packed>
  5017. inline typename _proto_TypeTraits::Singular::MutableType
  5018. UnsafeArenaReleaseExtension(
  5019. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5020. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5021. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  5022. &_extensions_);
  5023. }
  5024. template <typename _proto_TypeTraits,
  5025. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5026. bool _is_packed>
  5027. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5028. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5029. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5030. int index) const {
  5031. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  5032. }
  5033. template <typename _proto_TypeTraits,
  5034. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5035. bool _is_packed>
  5036. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  5037. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5038. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5039. int index) {
  5040. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  5041. }
  5042. template <typename _proto_TypeTraits,
  5043. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5044. bool _is_packed>
  5045. inline void SetExtension(
  5046. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5047. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5048. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  5049. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  5050. }
  5051. template <typename _proto_TypeTraits,
  5052. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5053. bool _is_packed>
  5054. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  5055. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5056. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5057. typename _proto_TypeTraits::Repeated::MutableType to_add =
  5058. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  5059. return to_add;
  5060. }
  5061. template <typename _proto_TypeTraits,
  5062. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5063. bool _is_packed>
  5064. inline void AddExtension(
  5065. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5066. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5067. typename _proto_TypeTraits::Repeated::ConstType value) {
  5068. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  5069. &_extensions_);
  5070. }
  5071. template <typename _proto_TypeTraits,
  5072. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5073. bool _is_packed>
  5074. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  5075. GetRepeatedExtension(
  5076. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5077. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5078. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  5079. }
  5080. template <typename _proto_TypeTraits,
  5081. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5082. bool _is_packed>
  5083. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  5084. MutableRepeatedExtension(
  5085. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5086. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5087. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  5088. _is_packed, &_extensions_);
  5089. }
  5090. // @@protoc_insertion_point(class_scope:google.protobuf.OneofOptions)
  5091. private:
  5092. class _Internal;
  5093. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5094. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5095. typedef void InternalArenaConstructable_;
  5096. typedef void DestructorSkippable_;
  5097. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5098. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5099. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5100. };
  5101. // -------------------------------------------------------------------
  5102. class PROTOBUF_EXPORT EnumOptions final :
  5103. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumOptions) */ {
  5104. public:
  5105. inline EnumOptions() : EnumOptions(nullptr) {}
  5106. ~EnumOptions() override;
  5107. explicit constexpr EnumOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  5108. EnumOptions(const EnumOptions& from);
  5109. EnumOptions(EnumOptions&& from) noexcept
  5110. : EnumOptions() {
  5111. *this = ::std::move(from);
  5112. }
  5113. inline EnumOptions& operator=(const EnumOptions& from) {
  5114. CopyFrom(from);
  5115. return *this;
  5116. }
  5117. inline EnumOptions& operator=(EnumOptions&& from) noexcept {
  5118. if (this == &from) return *this;
  5119. if (GetOwningArena() == from.GetOwningArena()
  5120. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5121. && GetOwningArena() != nullptr
  5122. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5123. ) {
  5124. InternalSwap(&from);
  5125. } else {
  5126. CopyFrom(from);
  5127. }
  5128. return *this;
  5129. }
  5130. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5131. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  5132. }
  5133. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5134. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5135. }
  5136. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5137. return GetDescriptor();
  5138. }
  5139. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5140. return default_instance().GetMetadata().descriptor;
  5141. }
  5142. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5143. return default_instance().GetMetadata().reflection;
  5144. }
  5145. static const EnumOptions& default_instance() {
  5146. return *internal_default_instance();
  5147. }
  5148. static inline const EnumOptions* internal_default_instance() {
  5149. return reinterpret_cast<const EnumOptions*>(
  5150. &_EnumOptions_default_instance_);
  5151. }
  5152. static constexpr int kIndexInFileMessages =
  5153. 17;
  5154. friend void swap(EnumOptions& a, EnumOptions& b) {
  5155. a.Swap(&b);
  5156. }
  5157. inline void Swap(EnumOptions* other) {
  5158. if (other == this) return;
  5159. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5160. if (GetOwningArena() != nullptr &&
  5161. GetOwningArena() == other->GetOwningArena()) {
  5162. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5163. if (GetOwningArena() == other->GetOwningArena()) {
  5164. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5165. InternalSwap(other);
  5166. } else {
  5167. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5168. }
  5169. }
  5170. void UnsafeArenaSwap(EnumOptions* other) {
  5171. if (other == this) return;
  5172. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  5173. InternalSwap(other);
  5174. }
  5175. // implements Message ----------------------------------------------
  5176. EnumOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  5177. return CreateMaybeMessage<EnumOptions>(arena);
  5178. }
  5179. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  5180. void CopyFrom(const EnumOptions& from);
  5181. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  5182. void MergeFrom(const EnumOptions& from);
  5183. private:
  5184. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  5185. public:
  5186. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5187. bool IsInitialized() const final;
  5188. size_t ByteSizeLong() const final;
  5189. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5190. uint8_t* _InternalSerialize(
  5191. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5192. int GetCachedSize() const final { return _cached_size_.Get(); }
  5193. private:
  5194. void SharedCtor();
  5195. void SharedDtor();
  5196. void SetCachedSize(int size) const final;
  5197. void InternalSwap(EnumOptions* other);
  5198. private:
  5199. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5200. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5201. return "google.protobuf.EnumOptions";
  5202. }
  5203. protected:
  5204. explicit EnumOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5205. bool is_message_owned = false);
  5206. private:
  5207. static void ArenaDtor(void* object);
  5208. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5209. public:
  5210. static const ClassData _class_data_;
  5211. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  5212. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5213. // nested types ----------------------------------------------------
  5214. // accessors -------------------------------------------------------
  5215. enum : int {
  5216. kUninterpretedOptionFieldNumber = 999,
  5217. kAllowAliasFieldNumber = 2,
  5218. kDeprecatedFieldNumber = 3,
  5219. };
  5220. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5221. int uninterpreted_option_size() const;
  5222. private:
  5223. int _internal_uninterpreted_option_size() const;
  5224. public:
  5225. void clear_uninterpreted_option();
  5226. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5227. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  5228. mutable_uninterpreted_option();
  5229. private:
  5230. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5231. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5232. public:
  5233. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5234. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5235. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  5236. uninterpreted_option() const;
  5237. // optional bool allow_alias = 2;
  5238. bool has_allow_alias() const;
  5239. private:
  5240. bool _internal_has_allow_alias() const;
  5241. public:
  5242. void clear_allow_alias();
  5243. bool allow_alias() const;
  5244. void set_allow_alias(bool value);
  5245. private:
  5246. bool _internal_allow_alias() const;
  5247. void _internal_set_allow_alias(bool value);
  5248. public:
  5249. // optional bool deprecated = 3 [default = false];
  5250. bool has_deprecated() const;
  5251. private:
  5252. bool _internal_has_deprecated() const;
  5253. public:
  5254. void clear_deprecated();
  5255. bool deprecated() const;
  5256. void set_deprecated(bool value);
  5257. private:
  5258. bool _internal_deprecated() const;
  5259. void _internal_set_deprecated(bool value);
  5260. public:
  5261. template <typename _proto_TypeTraits,
  5262. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5263. bool _is_packed>
  5264. inline bool HasExtension(
  5265. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5266. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5267. return _extensions_.Has(id.number());
  5268. }
  5269. template <typename _proto_TypeTraits,
  5270. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5271. bool _is_packed>
  5272. inline void ClearExtension(
  5273. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5274. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5275. _extensions_.ClearExtension(id.number());
  5276. }
  5277. template <typename _proto_TypeTraits,
  5278. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5279. bool _is_packed>
  5280. inline int ExtensionSize(
  5281. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5282. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5283. return _extensions_.ExtensionSize(id.number());
  5284. }
  5285. template <typename _proto_TypeTraits,
  5286. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5287. bool _is_packed>
  5288. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  5289. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5290. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5291. return _proto_TypeTraits::Get(id.number(), _extensions_,
  5292. id.default_value());
  5293. }
  5294. template <typename _proto_TypeTraits,
  5295. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5296. bool _is_packed>
  5297. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5298. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5299. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5300. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  5301. &_extensions_);
  5302. }
  5303. template <typename _proto_TypeTraits,
  5304. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5305. bool _is_packed>
  5306. inline void SetExtension(
  5307. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5308. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5309. typename _proto_TypeTraits::Singular::ConstType value) {
  5310. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  5311. }
  5312. template <typename _proto_TypeTraits,
  5313. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5314. bool _is_packed>
  5315. inline void SetAllocatedExtension(
  5316. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5317. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5318. typename _proto_TypeTraits::Singular::MutableType value) {
  5319. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  5320. &_extensions_);
  5321. }
  5322. template <typename _proto_TypeTraits,
  5323. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5324. bool _is_packed>
  5325. inline void UnsafeArenaSetAllocatedExtension(
  5326. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5327. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5328. typename _proto_TypeTraits::Singular::MutableType value) {
  5329. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  5330. value, &_extensions_);
  5331. }
  5332. template <typename _proto_TypeTraits,
  5333. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5334. bool _is_packed>
  5335. PROTOBUF_NODISCARD inline
  5336. typename _proto_TypeTraits::Singular::MutableType
  5337. ReleaseExtension(
  5338. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5339. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5340. return _proto_TypeTraits::Release(id.number(), _field_type,
  5341. &_extensions_);
  5342. }
  5343. template <typename _proto_TypeTraits,
  5344. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5345. bool _is_packed>
  5346. inline typename _proto_TypeTraits::Singular::MutableType
  5347. UnsafeArenaReleaseExtension(
  5348. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5349. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5350. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  5351. &_extensions_);
  5352. }
  5353. template <typename _proto_TypeTraits,
  5354. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5355. bool _is_packed>
  5356. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5357. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5358. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5359. int index) const {
  5360. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  5361. }
  5362. template <typename _proto_TypeTraits,
  5363. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5364. bool _is_packed>
  5365. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  5366. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5367. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5368. int index) {
  5369. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  5370. }
  5371. template <typename _proto_TypeTraits,
  5372. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5373. bool _is_packed>
  5374. inline void SetExtension(
  5375. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5376. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5377. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  5378. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  5379. }
  5380. template <typename _proto_TypeTraits,
  5381. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5382. bool _is_packed>
  5383. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  5384. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5385. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5386. typename _proto_TypeTraits::Repeated::MutableType to_add =
  5387. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  5388. return to_add;
  5389. }
  5390. template <typename _proto_TypeTraits,
  5391. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5392. bool _is_packed>
  5393. inline void AddExtension(
  5394. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5395. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5396. typename _proto_TypeTraits::Repeated::ConstType value) {
  5397. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  5398. &_extensions_);
  5399. }
  5400. template <typename _proto_TypeTraits,
  5401. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5402. bool _is_packed>
  5403. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  5404. GetRepeatedExtension(
  5405. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5406. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5407. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  5408. }
  5409. template <typename _proto_TypeTraits,
  5410. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5411. bool _is_packed>
  5412. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  5413. MutableRepeatedExtension(
  5414. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5415. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5416. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  5417. _is_packed, &_extensions_);
  5418. }
  5419. // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
  5420. private:
  5421. class _Internal;
  5422. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5423. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5424. typedef void InternalArenaConstructable_;
  5425. typedef void DestructorSkippable_;
  5426. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5427. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5428. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5429. bool allow_alias_;
  5430. bool deprecated_;
  5431. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5432. };
  5433. // -------------------------------------------------------------------
  5434. class PROTOBUF_EXPORT EnumValueOptions final :
  5435. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueOptions) */ {
  5436. public:
  5437. inline EnumValueOptions() : EnumValueOptions(nullptr) {}
  5438. ~EnumValueOptions() override;
  5439. explicit constexpr EnumValueOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  5440. EnumValueOptions(const EnumValueOptions& from);
  5441. EnumValueOptions(EnumValueOptions&& from) noexcept
  5442. : EnumValueOptions() {
  5443. *this = ::std::move(from);
  5444. }
  5445. inline EnumValueOptions& operator=(const EnumValueOptions& from) {
  5446. CopyFrom(from);
  5447. return *this;
  5448. }
  5449. inline EnumValueOptions& operator=(EnumValueOptions&& from) noexcept {
  5450. if (this == &from) return *this;
  5451. if (GetOwningArena() == from.GetOwningArena()
  5452. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5453. && GetOwningArena() != nullptr
  5454. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5455. ) {
  5456. InternalSwap(&from);
  5457. } else {
  5458. CopyFrom(from);
  5459. }
  5460. return *this;
  5461. }
  5462. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5463. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  5464. }
  5465. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5466. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5467. }
  5468. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5469. return GetDescriptor();
  5470. }
  5471. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5472. return default_instance().GetMetadata().descriptor;
  5473. }
  5474. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5475. return default_instance().GetMetadata().reflection;
  5476. }
  5477. static const EnumValueOptions& default_instance() {
  5478. return *internal_default_instance();
  5479. }
  5480. static inline const EnumValueOptions* internal_default_instance() {
  5481. return reinterpret_cast<const EnumValueOptions*>(
  5482. &_EnumValueOptions_default_instance_);
  5483. }
  5484. static constexpr int kIndexInFileMessages =
  5485. 18;
  5486. friend void swap(EnumValueOptions& a, EnumValueOptions& b) {
  5487. a.Swap(&b);
  5488. }
  5489. inline void Swap(EnumValueOptions* other) {
  5490. if (other == this) return;
  5491. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5492. if (GetOwningArena() != nullptr &&
  5493. GetOwningArena() == other->GetOwningArena()) {
  5494. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5495. if (GetOwningArena() == other->GetOwningArena()) {
  5496. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5497. InternalSwap(other);
  5498. } else {
  5499. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5500. }
  5501. }
  5502. void UnsafeArenaSwap(EnumValueOptions* other) {
  5503. if (other == this) return;
  5504. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  5505. InternalSwap(other);
  5506. }
  5507. // implements Message ----------------------------------------------
  5508. EnumValueOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  5509. return CreateMaybeMessage<EnumValueOptions>(arena);
  5510. }
  5511. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  5512. void CopyFrom(const EnumValueOptions& from);
  5513. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  5514. void MergeFrom(const EnumValueOptions& from);
  5515. private:
  5516. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  5517. public:
  5518. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5519. bool IsInitialized() const final;
  5520. size_t ByteSizeLong() const final;
  5521. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5522. uint8_t* _InternalSerialize(
  5523. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5524. int GetCachedSize() const final { return _cached_size_.Get(); }
  5525. private:
  5526. void SharedCtor();
  5527. void SharedDtor();
  5528. void SetCachedSize(int size) const final;
  5529. void InternalSwap(EnumValueOptions* other);
  5530. private:
  5531. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5532. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5533. return "google.protobuf.EnumValueOptions";
  5534. }
  5535. protected:
  5536. explicit EnumValueOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5537. bool is_message_owned = false);
  5538. private:
  5539. static void ArenaDtor(void* object);
  5540. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5541. public:
  5542. static const ClassData _class_data_;
  5543. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  5544. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5545. // nested types ----------------------------------------------------
  5546. // accessors -------------------------------------------------------
  5547. enum : int {
  5548. kUninterpretedOptionFieldNumber = 999,
  5549. kDeprecatedFieldNumber = 1,
  5550. };
  5551. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5552. int uninterpreted_option_size() const;
  5553. private:
  5554. int _internal_uninterpreted_option_size() const;
  5555. public:
  5556. void clear_uninterpreted_option();
  5557. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5558. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  5559. mutable_uninterpreted_option();
  5560. private:
  5561. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5562. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5563. public:
  5564. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5565. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5566. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  5567. uninterpreted_option() const;
  5568. // optional bool deprecated = 1 [default = false];
  5569. bool has_deprecated() const;
  5570. private:
  5571. bool _internal_has_deprecated() const;
  5572. public:
  5573. void clear_deprecated();
  5574. bool deprecated() const;
  5575. void set_deprecated(bool value);
  5576. private:
  5577. bool _internal_deprecated() const;
  5578. void _internal_set_deprecated(bool value);
  5579. public:
  5580. template <typename _proto_TypeTraits,
  5581. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5582. bool _is_packed>
  5583. inline bool HasExtension(
  5584. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5585. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5586. return _extensions_.Has(id.number());
  5587. }
  5588. template <typename _proto_TypeTraits,
  5589. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5590. bool _is_packed>
  5591. inline void ClearExtension(
  5592. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5593. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5594. _extensions_.ClearExtension(id.number());
  5595. }
  5596. template <typename _proto_TypeTraits,
  5597. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5598. bool _is_packed>
  5599. inline int ExtensionSize(
  5600. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5601. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5602. return _extensions_.ExtensionSize(id.number());
  5603. }
  5604. template <typename _proto_TypeTraits,
  5605. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5606. bool _is_packed>
  5607. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  5608. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5609. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5610. return _proto_TypeTraits::Get(id.number(), _extensions_,
  5611. id.default_value());
  5612. }
  5613. template <typename _proto_TypeTraits,
  5614. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5615. bool _is_packed>
  5616. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5617. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5618. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5619. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  5620. &_extensions_);
  5621. }
  5622. template <typename _proto_TypeTraits,
  5623. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5624. bool _is_packed>
  5625. inline void SetExtension(
  5626. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5627. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5628. typename _proto_TypeTraits::Singular::ConstType value) {
  5629. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  5630. }
  5631. template <typename _proto_TypeTraits,
  5632. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5633. bool _is_packed>
  5634. inline void SetAllocatedExtension(
  5635. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5636. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5637. typename _proto_TypeTraits::Singular::MutableType value) {
  5638. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  5639. &_extensions_);
  5640. }
  5641. template <typename _proto_TypeTraits,
  5642. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5643. bool _is_packed>
  5644. inline void UnsafeArenaSetAllocatedExtension(
  5645. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5646. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5647. typename _proto_TypeTraits::Singular::MutableType value) {
  5648. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  5649. value, &_extensions_);
  5650. }
  5651. template <typename _proto_TypeTraits,
  5652. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5653. bool _is_packed>
  5654. PROTOBUF_NODISCARD inline
  5655. typename _proto_TypeTraits::Singular::MutableType
  5656. ReleaseExtension(
  5657. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5658. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5659. return _proto_TypeTraits::Release(id.number(), _field_type,
  5660. &_extensions_);
  5661. }
  5662. template <typename _proto_TypeTraits,
  5663. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5664. bool _is_packed>
  5665. inline typename _proto_TypeTraits::Singular::MutableType
  5666. UnsafeArenaReleaseExtension(
  5667. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5668. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5669. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  5670. &_extensions_);
  5671. }
  5672. template <typename _proto_TypeTraits,
  5673. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5674. bool _is_packed>
  5675. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5676. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5677. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5678. int index) const {
  5679. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  5680. }
  5681. template <typename _proto_TypeTraits,
  5682. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5683. bool _is_packed>
  5684. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  5685. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5686. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5687. int index) {
  5688. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  5689. }
  5690. template <typename _proto_TypeTraits,
  5691. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5692. bool _is_packed>
  5693. inline void SetExtension(
  5694. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5695. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5696. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  5697. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  5698. }
  5699. template <typename _proto_TypeTraits,
  5700. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5701. bool _is_packed>
  5702. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  5703. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5704. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5705. typename _proto_TypeTraits::Repeated::MutableType to_add =
  5706. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  5707. return to_add;
  5708. }
  5709. template <typename _proto_TypeTraits,
  5710. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5711. bool _is_packed>
  5712. inline void AddExtension(
  5713. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5714. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5715. typename _proto_TypeTraits::Repeated::ConstType value) {
  5716. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  5717. &_extensions_);
  5718. }
  5719. template <typename _proto_TypeTraits,
  5720. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5721. bool _is_packed>
  5722. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  5723. GetRepeatedExtension(
  5724. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5725. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5726. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  5727. }
  5728. template <typename _proto_TypeTraits,
  5729. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5730. bool _is_packed>
  5731. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  5732. MutableRepeatedExtension(
  5733. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5734. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5735. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  5736. _is_packed, &_extensions_);
  5737. }
  5738. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
  5739. private:
  5740. class _Internal;
  5741. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5742. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5743. typedef void InternalArenaConstructable_;
  5744. typedef void DestructorSkippable_;
  5745. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5746. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5747. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5748. bool deprecated_;
  5749. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5750. };
  5751. // -------------------------------------------------------------------
  5752. class PROTOBUF_EXPORT ServiceOptions final :
  5753. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceOptions) */ {
  5754. public:
  5755. inline ServiceOptions() : ServiceOptions(nullptr) {}
  5756. ~ServiceOptions() override;
  5757. explicit constexpr ServiceOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  5758. ServiceOptions(const ServiceOptions& from);
  5759. ServiceOptions(ServiceOptions&& from) noexcept
  5760. : ServiceOptions() {
  5761. *this = ::std::move(from);
  5762. }
  5763. inline ServiceOptions& operator=(const ServiceOptions& from) {
  5764. CopyFrom(from);
  5765. return *this;
  5766. }
  5767. inline ServiceOptions& operator=(ServiceOptions&& from) noexcept {
  5768. if (this == &from) return *this;
  5769. if (GetOwningArena() == from.GetOwningArena()
  5770. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5771. && GetOwningArena() != nullptr
  5772. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5773. ) {
  5774. InternalSwap(&from);
  5775. } else {
  5776. CopyFrom(from);
  5777. }
  5778. return *this;
  5779. }
  5780. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5781. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  5782. }
  5783. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5784. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5785. }
  5786. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5787. return GetDescriptor();
  5788. }
  5789. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5790. return default_instance().GetMetadata().descriptor;
  5791. }
  5792. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5793. return default_instance().GetMetadata().reflection;
  5794. }
  5795. static const ServiceOptions& default_instance() {
  5796. return *internal_default_instance();
  5797. }
  5798. static inline const ServiceOptions* internal_default_instance() {
  5799. return reinterpret_cast<const ServiceOptions*>(
  5800. &_ServiceOptions_default_instance_);
  5801. }
  5802. static constexpr int kIndexInFileMessages =
  5803. 19;
  5804. friend void swap(ServiceOptions& a, ServiceOptions& b) {
  5805. a.Swap(&b);
  5806. }
  5807. inline void Swap(ServiceOptions* other) {
  5808. if (other == this) return;
  5809. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5810. if (GetOwningArena() != nullptr &&
  5811. GetOwningArena() == other->GetOwningArena()) {
  5812. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5813. if (GetOwningArena() == other->GetOwningArena()) {
  5814. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5815. InternalSwap(other);
  5816. } else {
  5817. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5818. }
  5819. }
  5820. void UnsafeArenaSwap(ServiceOptions* other) {
  5821. if (other == this) return;
  5822. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  5823. InternalSwap(other);
  5824. }
  5825. // implements Message ----------------------------------------------
  5826. ServiceOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  5827. return CreateMaybeMessage<ServiceOptions>(arena);
  5828. }
  5829. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  5830. void CopyFrom(const ServiceOptions& from);
  5831. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  5832. void MergeFrom(const ServiceOptions& from);
  5833. private:
  5834. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  5835. public:
  5836. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5837. bool IsInitialized() const final;
  5838. size_t ByteSizeLong() const final;
  5839. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5840. uint8_t* _InternalSerialize(
  5841. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5842. int GetCachedSize() const final { return _cached_size_.Get(); }
  5843. private:
  5844. void SharedCtor();
  5845. void SharedDtor();
  5846. void SetCachedSize(int size) const final;
  5847. void InternalSwap(ServiceOptions* other);
  5848. private:
  5849. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5850. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5851. return "google.protobuf.ServiceOptions";
  5852. }
  5853. protected:
  5854. explicit ServiceOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5855. bool is_message_owned = false);
  5856. private:
  5857. static void ArenaDtor(void* object);
  5858. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5859. public:
  5860. static const ClassData _class_data_;
  5861. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  5862. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5863. // nested types ----------------------------------------------------
  5864. // accessors -------------------------------------------------------
  5865. enum : int {
  5866. kUninterpretedOptionFieldNumber = 999,
  5867. kDeprecatedFieldNumber = 33,
  5868. };
  5869. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5870. int uninterpreted_option_size() const;
  5871. private:
  5872. int _internal_uninterpreted_option_size() const;
  5873. public:
  5874. void clear_uninterpreted_option();
  5875. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5876. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  5877. mutable_uninterpreted_option();
  5878. private:
  5879. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5880. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5881. public:
  5882. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5883. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5884. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  5885. uninterpreted_option() const;
  5886. // optional bool deprecated = 33 [default = false];
  5887. bool has_deprecated() const;
  5888. private:
  5889. bool _internal_has_deprecated() const;
  5890. public:
  5891. void clear_deprecated();
  5892. bool deprecated() const;
  5893. void set_deprecated(bool value);
  5894. private:
  5895. bool _internal_deprecated() const;
  5896. void _internal_set_deprecated(bool value);
  5897. public:
  5898. template <typename _proto_TypeTraits,
  5899. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5900. bool _is_packed>
  5901. inline bool HasExtension(
  5902. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5903. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5904. return _extensions_.Has(id.number());
  5905. }
  5906. template <typename _proto_TypeTraits,
  5907. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5908. bool _is_packed>
  5909. inline void ClearExtension(
  5910. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5911. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5912. _extensions_.ClearExtension(id.number());
  5913. }
  5914. template <typename _proto_TypeTraits,
  5915. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5916. bool _is_packed>
  5917. inline int ExtensionSize(
  5918. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5919. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5920. return _extensions_.ExtensionSize(id.number());
  5921. }
  5922. template <typename _proto_TypeTraits,
  5923. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5924. bool _is_packed>
  5925. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  5926. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5927. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5928. return _proto_TypeTraits::Get(id.number(), _extensions_,
  5929. id.default_value());
  5930. }
  5931. template <typename _proto_TypeTraits,
  5932. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5933. bool _is_packed>
  5934. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5935. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5936. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5937. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  5938. &_extensions_);
  5939. }
  5940. template <typename _proto_TypeTraits,
  5941. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5942. bool _is_packed>
  5943. inline void SetExtension(
  5944. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5945. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5946. typename _proto_TypeTraits::Singular::ConstType value) {
  5947. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  5948. }
  5949. template <typename _proto_TypeTraits,
  5950. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5951. bool _is_packed>
  5952. inline void SetAllocatedExtension(
  5953. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5954. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5955. typename _proto_TypeTraits::Singular::MutableType value) {
  5956. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  5957. &_extensions_);
  5958. }
  5959. template <typename _proto_TypeTraits,
  5960. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5961. bool _is_packed>
  5962. inline void UnsafeArenaSetAllocatedExtension(
  5963. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5964. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5965. typename _proto_TypeTraits::Singular::MutableType value) {
  5966. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  5967. value, &_extensions_);
  5968. }
  5969. template <typename _proto_TypeTraits,
  5970. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5971. bool _is_packed>
  5972. PROTOBUF_NODISCARD inline
  5973. typename _proto_TypeTraits::Singular::MutableType
  5974. ReleaseExtension(
  5975. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5976. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5977. return _proto_TypeTraits::Release(id.number(), _field_type,
  5978. &_extensions_);
  5979. }
  5980. template <typename _proto_TypeTraits,
  5981. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5982. bool _is_packed>
  5983. inline typename _proto_TypeTraits::Singular::MutableType
  5984. UnsafeArenaReleaseExtension(
  5985. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5986. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5987. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  5988. &_extensions_);
  5989. }
  5990. template <typename _proto_TypeTraits,
  5991. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5992. bool _is_packed>
  5993. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5994. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5995. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5996. int index) const {
  5997. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  5998. }
  5999. template <typename _proto_TypeTraits,
  6000. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6001. bool _is_packed>
  6002. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  6003. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6004. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6005. int index) {
  6006. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  6007. }
  6008. template <typename _proto_TypeTraits,
  6009. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6010. bool _is_packed>
  6011. inline void SetExtension(
  6012. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6013. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6014. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  6015. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  6016. }
  6017. template <typename _proto_TypeTraits,
  6018. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6019. bool _is_packed>
  6020. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  6021. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6022. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6023. typename _proto_TypeTraits::Repeated::MutableType to_add =
  6024. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  6025. return to_add;
  6026. }
  6027. template <typename _proto_TypeTraits,
  6028. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6029. bool _is_packed>
  6030. inline void AddExtension(
  6031. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6032. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6033. typename _proto_TypeTraits::Repeated::ConstType value) {
  6034. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  6035. &_extensions_);
  6036. }
  6037. template <typename _proto_TypeTraits,
  6038. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6039. bool _is_packed>
  6040. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  6041. GetRepeatedExtension(
  6042. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6043. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6044. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  6045. }
  6046. template <typename _proto_TypeTraits,
  6047. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6048. bool _is_packed>
  6049. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  6050. MutableRepeatedExtension(
  6051. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6052. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6053. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  6054. _is_packed, &_extensions_);
  6055. }
  6056. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
  6057. private:
  6058. class _Internal;
  6059. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  6060. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6061. typedef void InternalArenaConstructable_;
  6062. typedef void DestructorSkippable_;
  6063. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6064. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6065. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  6066. bool deprecated_;
  6067. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6068. };
  6069. // -------------------------------------------------------------------
  6070. class PROTOBUF_EXPORT MethodOptions final :
  6071. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodOptions) */ {
  6072. public:
  6073. inline MethodOptions() : MethodOptions(nullptr) {}
  6074. ~MethodOptions() override;
  6075. explicit constexpr MethodOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6076. MethodOptions(const MethodOptions& from);
  6077. MethodOptions(MethodOptions&& from) noexcept
  6078. : MethodOptions() {
  6079. *this = ::std::move(from);
  6080. }
  6081. inline MethodOptions& operator=(const MethodOptions& from) {
  6082. CopyFrom(from);
  6083. return *this;
  6084. }
  6085. inline MethodOptions& operator=(MethodOptions&& from) noexcept {
  6086. if (this == &from) return *this;
  6087. if (GetOwningArena() == from.GetOwningArena()
  6088. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6089. && GetOwningArena() != nullptr
  6090. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6091. ) {
  6092. InternalSwap(&from);
  6093. } else {
  6094. CopyFrom(from);
  6095. }
  6096. return *this;
  6097. }
  6098. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6099. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6100. }
  6101. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6102. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6103. }
  6104. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6105. return GetDescriptor();
  6106. }
  6107. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6108. return default_instance().GetMetadata().descriptor;
  6109. }
  6110. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6111. return default_instance().GetMetadata().reflection;
  6112. }
  6113. static const MethodOptions& default_instance() {
  6114. return *internal_default_instance();
  6115. }
  6116. static inline const MethodOptions* internal_default_instance() {
  6117. return reinterpret_cast<const MethodOptions*>(
  6118. &_MethodOptions_default_instance_);
  6119. }
  6120. static constexpr int kIndexInFileMessages =
  6121. 20;
  6122. friend void swap(MethodOptions& a, MethodOptions& b) {
  6123. a.Swap(&b);
  6124. }
  6125. inline void Swap(MethodOptions* other) {
  6126. if (other == this) return;
  6127. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6128. if (GetOwningArena() != nullptr &&
  6129. GetOwningArena() == other->GetOwningArena()) {
  6130. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6131. if (GetOwningArena() == other->GetOwningArena()) {
  6132. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6133. InternalSwap(other);
  6134. } else {
  6135. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6136. }
  6137. }
  6138. void UnsafeArenaSwap(MethodOptions* other) {
  6139. if (other == this) return;
  6140. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6141. InternalSwap(other);
  6142. }
  6143. // implements Message ----------------------------------------------
  6144. MethodOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6145. return CreateMaybeMessage<MethodOptions>(arena);
  6146. }
  6147. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6148. void CopyFrom(const MethodOptions& from);
  6149. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6150. void MergeFrom(const MethodOptions& from);
  6151. private:
  6152. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  6153. public:
  6154. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6155. bool IsInitialized() const final;
  6156. size_t ByteSizeLong() const final;
  6157. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6158. uint8_t* _InternalSerialize(
  6159. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6160. int GetCachedSize() const final { return _cached_size_.Get(); }
  6161. private:
  6162. void SharedCtor();
  6163. void SharedDtor();
  6164. void SetCachedSize(int size) const final;
  6165. void InternalSwap(MethodOptions* other);
  6166. private:
  6167. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6168. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6169. return "google.protobuf.MethodOptions";
  6170. }
  6171. protected:
  6172. explicit MethodOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6173. bool is_message_owned = false);
  6174. private:
  6175. static void ArenaDtor(void* object);
  6176. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6177. public:
  6178. static const ClassData _class_data_;
  6179. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6180. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6181. // nested types ----------------------------------------------------
  6182. typedef MethodOptions_IdempotencyLevel IdempotencyLevel;
  6183. static constexpr IdempotencyLevel IDEMPOTENCY_UNKNOWN =
  6184. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  6185. static constexpr IdempotencyLevel NO_SIDE_EFFECTS =
  6186. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS;
  6187. static constexpr IdempotencyLevel IDEMPOTENT =
  6188. MethodOptions_IdempotencyLevel_IDEMPOTENT;
  6189. static inline bool IdempotencyLevel_IsValid(int value) {
  6190. return MethodOptions_IdempotencyLevel_IsValid(value);
  6191. }
  6192. static constexpr IdempotencyLevel IdempotencyLevel_MIN =
  6193. MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN;
  6194. static constexpr IdempotencyLevel IdempotencyLevel_MAX =
  6195. MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX;
  6196. static constexpr int IdempotencyLevel_ARRAYSIZE =
  6197. MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE;
  6198. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  6199. IdempotencyLevel_descriptor() {
  6200. return MethodOptions_IdempotencyLevel_descriptor();
  6201. }
  6202. template<typename T>
  6203. static inline const std::string& IdempotencyLevel_Name(T enum_t_value) {
  6204. static_assert(::std::is_same<T, IdempotencyLevel>::value ||
  6205. ::std::is_integral<T>::value,
  6206. "Incorrect type passed to function IdempotencyLevel_Name.");
  6207. return MethodOptions_IdempotencyLevel_Name(enum_t_value);
  6208. }
  6209. static inline bool IdempotencyLevel_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  6210. IdempotencyLevel* value) {
  6211. return MethodOptions_IdempotencyLevel_Parse(name, value);
  6212. }
  6213. // accessors -------------------------------------------------------
  6214. enum : int {
  6215. kUninterpretedOptionFieldNumber = 999,
  6216. kDeprecatedFieldNumber = 33,
  6217. kIdempotencyLevelFieldNumber = 34,
  6218. };
  6219. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  6220. int uninterpreted_option_size() const;
  6221. private:
  6222. int _internal_uninterpreted_option_size() const;
  6223. public:
  6224. void clear_uninterpreted_option();
  6225. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  6226. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  6227. mutable_uninterpreted_option();
  6228. private:
  6229. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  6230. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  6231. public:
  6232. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  6233. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  6234. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  6235. uninterpreted_option() const;
  6236. // optional bool deprecated = 33 [default = false];
  6237. bool has_deprecated() const;
  6238. private:
  6239. bool _internal_has_deprecated() const;
  6240. public:
  6241. void clear_deprecated();
  6242. bool deprecated() const;
  6243. void set_deprecated(bool value);
  6244. private:
  6245. bool _internal_deprecated() const;
  6246. void _internal_set_deprecated(bool value);
  6247. public:
  6248. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  6249. bool has_idempotency_level() const;
  6250. private:
  6251. bool _internal_has_idempotency_level() const;
  6252. public:
  6253. void clear_idempotency_level();
  6254. ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel idempotency_level() const;
  6255. void set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value);
  6256. private:
  6257. ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel _internal_idempotency_level() const;
  6258. void _internal_set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value);
  6259. public:
  6260. template <typename _proto_TypeTraits,
  6261. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6262. bool _is_packed>
  6263. inline bool HasExtension(
  6264. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6265. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6266. return _extensions_.Has(id.number());
  6267. }
  6268. template <typename _proto_TypeTraits,
  6269. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6270. bool _is_packed>
  6271. inline void ClearExtension(
  6272. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6273. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6274. _extensions_.ClearExtension(id.number());
  6275. }
  6276. template <typename _proto_TypeTraits,
  6277. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6278. bool _is_packed>
  6279. inline int ExtensionSize(
  6280. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6281. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6282. return _extensions_.ExtensionSize(id.number());
  6283. }
  6284. template <typename _proto_TypeTraits,
  6285. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6286. bool _is_packed>
  6287. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  6288. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6289. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6290. return _proto_TypeTraits::Get(id.number(), _extensions_,
  6291. id.default_value());
  6292. }
  6293. template <typename _proto_TypeTraits,
  6294. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6295. bool _is_packed>
  6296. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  6297. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6298. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6299. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  6300. &_extensions_);
  6301. }
  6302. template <typename _proto_TypeTraits,
  6303. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6304. bool _is_packed>
  6305. inline void SetExtension(
  6306. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6307. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6308. typename _proto_TypeTraits::Singular::ConstType value) {
  6309. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  6310. }
  6311. template <typename _proto_TypeTraits,
  6312. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6313. bool _is_packed>
  6314. inline void SetAllocatedExtension(
  6315. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6316. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6317. typename _proto_TypeTraits::Singular::MutableType value) {
  6318. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  6319. &_extensions_);
  6320. }
  6321. template <typename _proto_TypeTraits,
  6322. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6323. bool _is_packed>
  6324. inline void UnsafeArenaSetAllocatedExtension(
  6325. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6326. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6327. typename _proto_TypeTraits::Singular::MutableType value) {
  6328. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  6329. value, &_extensions_);
  6330. }
  6331. template <typename _proto_TypeTraits,
  6332. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6333. bool _is_packed>
  6334. PROTOBUF_NODISCARD inline
  6335. typename _proto_TypeTraits::Singular::MutableType
  6336. ReleaseExtension(
  6337. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6338. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6339. return _proto_TypeTraits::Release(id.number(), _field_type,
  6340. &_extensions_);
  6341. }
  6342. template <typename _proto_TypeTraits,
  6343. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6344. bool _is_packed>
  6345. inline typename _proto_TypeTraits::Singular::MutableType
  6346. UnsafeArenaReleaseExtension(
  6347. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6348. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6349. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  6350. &_extensions_);
  6351. }
  6352. template <typename _proto_TypeTraits,
  6353. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6354. bool _is_packed>
  6355. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  6356. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6357. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6358. int index) const {
  6359. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  6360. }
  6361. template <typename _proto_TypeTraits,
  6362. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6363. bool _is_packed>
  6364. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  6365. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6366. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6367. int index) {
  6368. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  6369. }
  6370. template <typename _proto_TypeTraits,
  6371. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6372. bool _is_packed>
  6373. inline void SetExtension(
  6374. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6375. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6376. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  6377. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  6378. }
  6379. template <typename _proto_TypeTraits,
  6380. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6381. bool _is_packed>
  6382. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  6383. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6384. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6385. typename _proto_TypeTraits::Repeated::MutableType to_add =
  6386. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  6387. return to_add;
  6388. }
  6389. template <typename _proto_TypeTraits,
  6390. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6391. bool _is_packed>
  6392. inline void AddExtension(
  6393. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6394. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6395. typename _proto_TypeTraits::Repeated::ConstType value) {
  6396. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  6397. &_extensions_);
  6398. }
  6399. template <typename _proto_TypeTraits,
  6400. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6401. bool _is_packed>
  6402. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  6403. GetRepeatedExtension(
  6404. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6405. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6406. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  6407. }
  6408. template <typename _proto_TypeTraits,
  6409. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6410. bool _is_packed>
  6411. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  6412. MutableRepeatedExtension(
  6413. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6414. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6415. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  6416. _is_packed, &_extensions_);
  6417. }
  6418. // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
  6419. private:
  6420. class _Internal;
  6421. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  6422. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6423. typedef void InternalArenaConstructable_;
  6424. typedef void DestructorSkippable_;
  6425. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6426. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6427. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  6428. bool deprecated_;
  6429. int idempotency_level_;
  6430. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6431. };
  6432. // -------------------------------------------------------------------
  6433. class PROTOBUF_EXPORT UninterpretedOption_NamePart final :
  6434. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption.NamePart) */ {
  6435. public:
  6436. inline UninterpretedOption_NamePart() : UninterpretedOption_NamePart(nullptr) {}
  6437. ~UninterpretedOption_NamePart() override;
  6438. explicit constexpr UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6439. UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from);
  6440. UninterpretedOption_NamePart(UninterpretedOption_NamePart&& from) noexcept
  6441. : UninterpretedOption_NamePart() {
  6442. *this = ::std::move(from);
  6443. }
  6444. inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) {
  6445. CopyFrom(from);
  6446. return *this;
  6447. }
  6448. inline UninterpretedOption_NamePart& operator=(UninterpretedOption_NamePart&& from) noexcept {
  6449. if (this == &from) return *this;
  6450. if (GetOwningArena() == from.GetOwningArena()
  6451. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6452. && GetOwningArena() != nullptr
  6453. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6454. ) {
  6455. InternalSwap(&from);
  6456. } else {
  6457. CopyFrom(from);
  6458. }
  6459. return *this;
  6460. }
  6461. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6462. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6463. }
  6464. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6465. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6466. }
  6467. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6468. return GetDescriptor();
  6469. }
  6470. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6471. return default_instance().GetMetadata().descriptor;
  6472. }
  6473. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6474. return default_instance().GetMetadata().reflection;
  6475. }
  6476. static const UninterpretedOption_NamePart& default_instance() {
  6477. return *internal_default_instance();
  6478. }
  6479. static inline const UninterpretedOption_NamePart* internal_default_instance() {
  6480. return reinterpret_cast<const UninterpretedOption_NamePart*>(
  6481. &_UninterpretedOption_NamePart_default_instance_);
  6482. }
  6483. static constexpr int kIndexInFileMessages =
  6484. 21;
  6485. friend void swap(UninterpretedOption_NamePart& a, UninterpretedOption_NamePart& b) {
  6486. a.Swap(&b);
  6487. }
  6488. inline void Swap(UninterpretedOption_NamePart* other) {
  6489. if (other == this) return;
  6490. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6491. if (GetOwningArena() != nullptr &&
  6492. GetOwningArena() == other->GetOwningArena()) {
  6493. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6494. if (GetOwningArena() == other->GetOwningArena()) {
  6495. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6496. InternalSwap(other);
  6497. } else {
  6498. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6499. }
  6500. }
  6501. void UnsafeArenaSwap(UninterpretedOption_NamePart* other) {
  6502. if (other == this) return;
  6503. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6504. InternalSwap(other);
  6505. }
  6506. // implements Message ----------------------------------------------
  6507. UninterpretedOption_NamePart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6508. return CreateMaybeMessage<UninterpretedOption_NamePart>(arena);
  6509. }
  6510. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6511. void CopyFrom(const UninterpretedOption_NamePart& from);
  6512. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6513. void MergeFrom(const UninterpretedOption_NamePart& from);
  6514. private:
  6515. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  6516. public:
  6517. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6518. bool IsInitialized() const final;
  6519. size_t ByteSizeLong() const final;
  6520. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6521. uint8_t* _InternalSerialize(
  6522. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6523. int GetCachedSize() const final { return _cached_size_.Get(); }
  6524. private:
  6525. void SharedCtor();
  6526. void SharedDtor();
  6527. void SetCachedSize(int size) const final;
  6528. void InternalSwap(UninterpretedOption_NamePart* other);
  6529. private:
  6530. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6531. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6532. return "google.protobuf.UninterpretedOption.NamePart";
  6533. }
  6534. protected:
  6535. explicit UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6536. bool is_message_owned = false);
  6537. private:
  6538. static void ArenaDtor(void* object);
  6539. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6540. public:
  6541. static const ClassData _class_data_;
  6542. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6543. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6544. // nested types ----------------------------------------------------
  6545. // accessors -------------------------------------------------------
  6546. enum : int {
  6547. kNamePartFieldNumber = 1,
  6548. kIsExtensionFieldNumber = 2,
  6549. };
  6550. // required string name_part = 1;
  6551. bool has_name_part() const;
  6552. private:
  6553. bool _internal_has_name_part() const;
  6554. public:
  6555. void clear_name_part();
  6556. const std::string& name_part() const;
  6557. template <typename ArgT0 = const std::string&, typename... ArgT>
  6558. void set_name_part(ArgT0&& arg0, ArgT... args);
  6559. std::string* mutable_name_part();
  6560. PROTOBUF_NODISCARD std::string* release_name_part();
  6561. void set_allocated_name_part(std::string* name_part);
  6562. private:
  6563. const std::string& _internal_name_part() const;
  6564. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name_part(const std::string& value);
  6565. std::string* _internal_mutable_name_part();
  6566. public:
  6567. // required bool is_extension = 2;
  6568. bool has_is_extension() const;
  6569. private:
  6570. bool _internal_has_is_extension() const;
  6571. public:
  6572. void clear_is_extension();
  6573. bool is_extension() const;
  6574. void set_is_extension(bool value);
  6575. private:
  6576. bool _internal_is_extension() const;
  6577. void _internal_set_is_extension(bool value);
  6578. public:
  6579. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
  6580. private:
  6581. class _Internal;
  6582. // helper for ByteSizeLong()
  6583. size_t RequiredFieldsByteSizeFallback() const;
  6584. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6585. typedef void InternalArenaConstructable_;
  6586. typedef void DestructorSkippable_;
  6587. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6588. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6589. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_part_;
  6590. bool is_extension_;
  6591. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6592. };
  6593. // -------------------------------------------------------------------
  6594. class PROTOBUF_EXPORT UninterpretedOption final :
  6595. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption) */ {
  6596. public:
  6597. inline UninterpretedOption() : UninterpretedOption(nullptr) {}
  6598. ~UninterpretedOption() override;
  6599. explicit constexpr UninterpretedOption(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6600. UninterpretedOption(const UninterpretedOption& from);
  6601. UninterpretedOption(UninterpretedOption&& from) noexcept
  6602. : UninterpretedOption() {
  6603. *this = ::std::move(from);
  6604. }
  6605. inline UninterpretedOption& operator=(const UninterpretedOption& from) {
  6606. CopyFrom(from);
  6607. return *this;
  6608. }
  6609. inline UninterpretedOption& operator=(UninterpretedOption&& from) noexcept {
  6610. if (this == &from) return *this;
  6611. if (GetOwningArena() == from.GetOwningArena()
  6612. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6613. && GetOwningArena() != nullptr
  6614. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6615. ) {
  6616. InternalSwap(&from);
  6617. } else {
  6618. CopyFrom(from);
  6619. }
  6620. return *this;
  6621. }
  6622. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6623. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6624. }
  6625. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6626. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6627. }
  6628. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6629. return GetDescriptor();
  6630. }
  6631. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6632. return default_instance().GetMetadata().descriptor;
  6633. }
  6634. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6635. return default_instance().GetMetadata().reflection;
  6636. }
  6637. static const UninterpretedOption& default_instance() {
  6638. return *internal_default_instance();
  6639. }
  6640. static inline const UninterpretedOption* internal_default_instance() {
  6641. return reinterpret_cast<const UninterpretedOption*>(
  6642. &_UninterpretedOption_default_instance_);
  6643. }
  6644. static constexpr int kIndexInFileMessages =
  6645. 22;
  6646. friend void swap(UninterpretedOption& a, UninterpretedOption& b) {
  6647. a.Swap(&b);
  6648. }
  6649. inline void Swap(UninterpretedOption* other) {
  6650. if (other == this) return;
  6651. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6652. if (GetOwningArena() != nullptr &&
  6653. GetOwningArena() == other->GetOwningArena()) {
  6654. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6655. if (GetOwningArena() == other->GetOwningArena()) {
  6656. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6657. InternalSwap(other);
  6658. } else {
  6659. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6660. }
  6661. }
  6662. void UnsafeArenaSwap(UninterpretedOption* other) {
  6663. if (other == this) return;
  6664. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6665. InternalSwap(other);
  6666. }
  6667. // implements Message ----------------------------------------------
  6668. UninterpretedOption* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6669. return CreateMaybeMessage<UninterpretedOption>(arena);
  6670. }
  6671. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6672. void CopyFrom(const UninterpretedOption& from);
  6673. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6674. void MergeFrom(const UninterpretedOption& from);
  6675. private:
  6676. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  6677. public:
  6678. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6679. bool IsInitialized() const final;
  6680. size_t ByteSizeLong() const final;
  6681. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6682. uint8_t* _InternalSerialize(
  6683. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6684. int GetCachedSize() const final { return _cached_size_.Get(); }
  6685. private:
  6686. void SharedCtor();
  6687. void SharedDtor();
  6688. void SetCachedSize(int size) const final;
  6689. void InternalSwap(UninterpretedOption* other);
  6690. private:
  6691. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6692. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6693. return "google.protobuf.UninterpretedOption";
  6694. }
  6695. protected:
  6696. explicit UninterpretedOption(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6697. bool is_message_owned = false);
  6698. private:
  6699. static void ArenaDtor(void* object);
  6700. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6701. public:
  6702. static const ClassData _class_data_;
  6703. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6704. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6705. // nested types ----------------------------------------------------
  6706. typedef UninterpretedOption_NamePart NamePart;
  6707. // accessors -------------------------------------------------------
  6708. enum : int {
  6709. kNameFieldNumber = 2,
  6710. kIdentifierValueFieldNumber = 3,
  6711. kStringValueFieldNumber = 7,
  6712. kAggregateValueFieldNumber = 8,
  6713. kPositiveIntValueFieldNumber = 4,
  6714. kNegativeIntValueFieldNumber = 5,
  6715. kDoubleValueFieldNumber = 6,
  6716. };
  6717. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  6718. int name_size() const;
  6719. private:
  6720. int _internal_name_size() const;
  6721. public:
  6722. void clear_name();
  6723. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* mutable_name(int index);
  6724. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >*
  6725. mutable_name();
  6726. private:
  6727. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& _internal_name(int index) const;
  6728. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* _internal_add_name();
  6729. public:
  6730. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& name(int index) const;
  6731. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* add_name();
  6732. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >&
  6733. name() const;
  6734. // optional string identifier_value = 3;
  6735. bool has_identifier_value() const;
  6736. private:
  6737. bool _internal_has_identifier_value() const;
  6738. public:
  6739. void clear_identifier_value();
  6740. const std::string& identifier_value() const;
  6741. template <typename ArgT0 = const std::string&, typename... ArgT>
  6742. void set_identifier_value(ArgT0&& arg0, ArgT... args);
  6743. std::string* mutable_identifier_value();
  6744. PROTOBUF_NODISCARD std::string* release_identifier_value();
  6745. void set_allocated_identifier_value(std::string* identifier_value);
  6746. private:
  6747. const std::string& _internal_identifier_value() const;
  6748. inline PROTOBUF_ALWAYS_INLINE void _internal_set_identifier_value(const std::string& value);
  6749. std::string* _internal_mutable_identifier_value();
  6750. public:
  6751. // optional bytes string_value = 7;
  6752. bool has_string_value() const;
  6753. private:
  6754. bool _internal_has_string_value() const;
  6755. public:
  6756. void clear_string_value();
  6757. const std::string& string_value() const;
  6758. template <typename ArgT0 = const std::string&, typename... ArgT>
  6759. void set_string_value(ArgT0&& arg0, ArgT... args);
  6760. std::string* mutable_string_value();
  6761. PROTOBUF_NODISCARD std::string* release_string_value();
  6762. void set_allocated_string_value(std::string* string_value);
  6763. private:
  6764. const std::string& _internal_string_value() const;
  6765. inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value);
  6766. std::string* _internal_mutable_string_value();
  6767. public:
  6768. // optional string aggregate_value = 8;
  6769. bool has_aggregate_value() const;
  6770. private:
  6771. bool _internal_has_aggregate_value() const;
  6772. public:
  6773. void clear_aggregate_value();
  6774. const std::string& aggregate_value() const;
  6775. template <typename ArgT0 = const std::string&, typename... ArgT>
  6776. void set_aggregate_value(ArgT0&& arg0, ArgT... args);
  6777. std::string* mutable_aggregate_value();
  6778. PROTOBUF_NODISCARD std::string* release_aggregate_value();
  6779. void set_allocated_aggregate_value(std::string* aggregate_value);
  6780. private:
  6781. const std::string& _internal_aggregate_value() const;
  6782. inline PROTOBUF_ALWAYS_INLINE void _internal_set_aggregate_value(const std::string& value);
  6783. std::string* _internal_mutable_aggregate_value();
  6784. public:
  6785. // optional uint64 positive_int_value = 4;
  6786. bool has_positive_int_value() const;
  6787. private:
  6788. bool _internal_has_positive_int_value() const;
  6789. public:
  6790. void clear_positive_int_value();
  6791. uint64_t positive_int_value() const;
  6792. void set_positive_int_value(uint64_t value);
  6793. private:
  6794. uint64_t _internal_positive_int_value() const;
  6795. void _internal_set_positive_int_value(uint64_t value);
  6796. public:
  6797. // optional int64 negative_int_value = 5;
  6798. bool has_negative_int_value() const;
  6799. private:
  6800. bool _internal_has_negative_int_value() const;
  6801. public:
  6802. void clear_negative_int_value();
  6803. int64_t negative_int_value() const;
  6804. void set_negative_int_value(int64_t value);
  6805. private:
  6806. int64_t _internal_negative_int_value() const;
  6807. void _internal_set_negative_int_value(int64_t value);
  6808. public:
  6809. // optional double double_value = 6;
  6810. bool has_double_value() const;
  6811. private:
  6812. bool _internal_has_double_value() const;
  6813. public:
  6814. void clear_double_value();
  6815. double double_value() const;
  6816. void set_double_value(double value);
  6817. private:
  6818. double _internal_double_value() const;
  6819. void _internal_set_double_value(double value);
  6820. public:
  6821. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
  6822. private:
  6823. class _Internal;
  6824. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6825. typedef void InternalArenaConstructable_;
  6826. typedef void DestructorSkippable_;
  6827. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6828. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6829. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart > name_;
  6830. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr identifier_value_;
  6831. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_;
  6832. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr aggregate_value_;
  6833. uint64_t positive_int_value_;
  6834. int64_t negative_int_value_;
  6835. double double_value_;
  6836. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6837. };
  6838. // -------------------------------------------------------------------
  6839. class PROTOBUF_EXPORT SourceCodeInfo_Location final :
  6840. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo.Location) */ {
  6841. public:
  6842. inline SourceCodeInfo_Location() : SourceCodeInfo_Location(nullptr) {}
  6843. ~SourceCodeInfo_Location() override;
  6844. explicit constexpr SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6845. SourceCodeInfo_Location(const SourceCodeInfo_Location& from);
  6846. SourceCodeInfo_Location(SourceCodeInfo_Location&& from) noexcept
  6847. : SourceCodeInfo_Location() {
  6848. *this = ::std::move(from);
  6849. }
  6850. inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) {
  6851. CopyFrom(from);
  6852. return *this;
  6853. }
  6854. inline SourceCodeInfo_Location& operator=(SourceCodeInfo_Location&& from) noexcept {
  6855. if (this == &from) return *this;
  6856. if (GetOwningArena() == from.GetOwningArena()
  6857. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6858. && GetOwningArena() != nullptr
  6859. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6860. ) {
  6861. InternalSwap(&from);
  6862. } else {
  6863. CopyFrom(from);
  6864. }
  6865. return *this;
  6866. }
  6867. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6868. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6869. }
  6870. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6871. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6872. }
  6873. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6874. return GetDescriptor();
  6875. }
  6876. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6877. return default_instance().GetMetadata().descriptor;
  6878. }
  6879. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6880. return default_instance().GetMetadata().reflection;
  6881. }
  6882. static const SourceCodeInfo_Location& default_instance() {
  6883. return *internal_default_instance();
  6884. }
  6885. static inline const SourceCodeInfo_Location* internal_default_instance() {
  6886. return reinterpret_cast<const SourceCodeInfo_Location*>(
  6887. &_SourceCodeInfo_Location_default_instance_);
  6888. }
  6889. static constexpr int kIndexInFileMessages =
  6890. 23;
  6891. friend void swap(SourceCodeInfo_Location& a, SourceCodeInfo_Location& b) {
  6892. a.Swap(&b);
  6893. }
  6894. inline void Swap(SourceCodeInfo_Location* other) {
  6895. if (other == this) return;
  6896. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6897. if (GetOwningArena() != nullptr &&
  6898. GetOwningArena() == other->GetOwningArena()) {
  6899. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6900. if (GetOwningArena() == other->GetOwningArena()) {
  6901. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6902. InternalSwap(other);
  6903. } else {
  6904. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6905. }
  6906. }
  6907. void UnsafeArenaSwap(SourceCodeInfo_Location* other) {
  6908. if (other == this) return;
  6909. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6910. InternalSwap(other);
  6911. }
  6912. // implements Message ----------------------------------------------
  6913. SourceCodeInfo_Location* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6914. return CreateMaybeMessage<SourceCodeInfo_Location>(arena);
  6915. }
  6916. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6917. void CopyFrom(const SourceCodeInfo_Location& from);
  6918. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6919. void MergeFrom(const SourceCodeInfo_Location& from);
  6920. private:
  6921. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  6922. public:
  6923. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6924. bool IsInitialized() const final;
  6925. size_t ByteSizeLong() const final;
  6926. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6927. uint8_t* _InternalSerialize(
  6928. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6929. int GetCachedSize() const final { return _cached_size_.Get(); }
  6930. private:
  6931. void SharedCtor();
  6932. void SharedDtor();
  6933. void SetCachedSize(int size) const final;
  6934. void InternalSwap(SourceCodeInfo_Location* other);
  6935. private:
  6936. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6937. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6938. return "google.protobuf.SourceCodeInfo.Location";
  6939. }
  6940. protected:
  6941. explicit SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6942. bool is_message_owned = false);
  6943. private:
  6944. static void ArenaDtor(void* object);
  6945. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6946. public:
  6947. static const ClassData _class_data_;
  6948. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6949. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6950. // nested types ----------------------------------------------------
  6951. // accessors -------------------------------------------------------
  6952. enum : int {
  6953. kPathFieldNumber = 1,
  6954. kSpanFieldNumber = 2,
  6955. kLeadingDetachedCommentsFieldNumber = 6,
  6956. kLeadingCommentsFieldNumber = 3,
  6957. kTrailingCommentsFieldNumber = 4,
  6958. };
  6959. // repeated int32 path = 1 [packed = true];
  6960. int path_size() const;
  6961. private:
  6962. int _internal_path_size() const;
  6963. public:
  6964. void clear_path();
  6965. private:
  6966. int32_t _internal_path(int index) const;
  6967. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  6968. _internal_path() const;
  6969. void _internal_add_path(int32_t value);
  6970. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  6971. _internal_mutable_path();
  6972. public:
  6973. int32_t path(int index) const;
  6974. void set_path(int index, int32_t value);
  6975. void add_path(int32_t value);
  6976. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  6977. path() const;
  6978. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  6979. mutable_path();
  6980. // repeated int32 span = 2 [packed = true];
  6981. int span_size() const;
  6982. private:
  6983. int _internal_span_size() const;
  6984. public:
  6985. void clear_span();
  6986. private:
  6987. int32_t _internal_span(int index) const;
  6988. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  6989. _internal_span() const;
  6990. void _internal_add_span(int32_t value);
  6991. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  6992. _internal_mutable_span();
  6993. public:
  6994. int32_t span(int index) const;
  6995. void set_span(int index, int32_t value);
  6996. void add_span(int32_t value);
  6997. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  6998. span() const;
  6999. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7000. mutable_span();
  7001. // repeated string leading_detached_comments = 6;
  7002. int leading_detached_comments_size() const;
  7003. private:
  7004. int _internal_leading_detached_comments_size() const;
  7005. public:
  7006. void clear_leading_detached_comments();
  7007. const std::string& leading_detached_comments(int index) const;
  7008. std::string* mutable_leading_detached_comments(int index);
  7009. void set_leading_detached_comments(int index, const std::string& value);
  7010. void set_leading_detached_comments(int index, std::string&& value);
  7011. void set_leading_detached_comments(int index, const char* value);
  7012. void set_leading_detached_comments(int index, const char* value, size_t size);
  7013. std::string* add_leading_detached_comments();
  7014. void add_leading_detached_comments(const std::string& value);
  7015. void add_leading_detached_comments(std::string&& value);
  7016. void add_leading_detached_comments(const char* value);
  7017. void add_leading_detached_comments(const char* value, size_t size);
  7018. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& leading_detached_comments() const;
  7019. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_leading_detached_comments();
  7020. private:
  7021. const std::string& _internal_leading_detached_comments(int index) const;
  7022. std::string* _internal_add_leading_detached_comments();
  7023. public:
  7024. // optional string leading_comments = 3;
  7025. bool has_leading_comments() const;
  7026. private:
  7027. bool _internal_has_leading_comments() const;
  7028. public:
  7029. void clear_leading_comments();
  7030. const std::string& leading_comments() const;
  7031. template <typename ArgT0 = const std::string&, typename... ArgT>
  7032. void set_leading_comments(ArgT0&& arg0, ArgT... args);
  7033. std::string* mutable_leading_comments();
  7034. PROTOBUF_NODISCARD std::string* release_leading_comments();
  7035. void set_allocated_leading_comments(std::string* leading_comments);
  7036. private:
  7037. const std::string& _internal_leading_comments() const;
  7038. inline PROTOBUF_ALWAYS_INLINE void _internal_set_leading_comments(const std::string& value);
  7039. std::string* _internal_mutable_leading_comments();
  7040. public:
  7041. // optional string trailing_comments = 4;
  7042. bool has_trailing_comments() const;
  7043. private:
  7044. bool _internal_has_trailing_comments() const;
  7045. public:
  7046. void clear_trailing_comments();
  7047. const std::string& trailing_comments() const;
  7048. template <typename ArgT0 = const std::string&, typename... ArgT>
  7049. void set_trailing_comments(ArgT0&& arg0, ArgT... args);
  7050. std::string* mutable_trailing_comments();
  7051. PROTOBUF_NODISCARD std::string* release_trailing_comments();
  7052. void set_allocated_trailing_comments(std::string* trailing_comments);
  7053. private:
  7054. const std::string& _internal_trailing_comments() const;
  7055. inline PROTOBUF_ALWAYS_INLINE void _internal_set_trailing_comments(const std::string& value);
  7056. std::string* _internal_mutable_trailing_comments();
  7057. public:
  7058. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location)
  7059. private:
  7060. class _Internal;
  7061. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7062. typedef void InternalArenaConstructable_;
  7063. typedef void DestructorSkippable_;
  7064. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  7065. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7066. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > path_;
  7067. mutable std::atomic<int> _path_cached_byte_size_;
  7068. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > span_;
  7069. mutable std::atomic<int> _span_cached_byte_size_;
  7070. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> leading_detached_comments_;
  7071. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr leading_comments_;
  7072. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trailing_comments_;
  7073. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7074. };
  7075. // -------------------------------------------------------------------
  7076. class PROTOBUF_EXPORT SourceCodeInfo final :
  7077. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo) */ {
  7078. public:
  7079. inline SourceCodeInfo() : SourceCodeInfo(nullptr) {}
  7080. ~SourceCodeInfo() override;
  7081. explicit constexpr SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  7082. SourceCodeInfo(const SourceCodeInfo& from);
  7083. SourceCodeInfo(SourceCodeInfo&& from) noexcept
  7084. : SourceCodeInfo() {
  7085. *this = ::std::move(from);
  7086. }
  7087. inline SourceCodeInfo& operator=(const SourceCodeInfo& from) {
  7088. CopyFrom(from);
  7089. return *this;
  7090. }
  7091. inline SourceCodeInfo& operator=(SourceCodeInfo&& from) noexcept {
  7092. if (this == &from) return *this;
  7093. if (GetOwningArena() == from.GetOwningArena()
  7094. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  7095. && GetOwningArena() != nullptr
  7096. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  7097. ) {
  7098. InternalSwap(&from);
  7099. } else {
  7100. CopyFrom(from);
  7101. }
  7102. return *this;
  7103. }
  7104. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  7105. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  7106. }
  7107. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  7108. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7109. }
  7110. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  7111. return GetDescriptor();
  7112. }
  7113. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  7114. return default_instance().GetMetadata().descriptor;
  7115. }
  7116. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  7117. return default_instance().GetMetadata().reflection;
  7118. }
  7119. static const SourceCodeInfo& default_instance() {
  7120. return *internal_default_instance();
  7121. }
  7122. static inline const SourceCodeInfo* internal_default_instance() {
  7123. return reinterpret_cast<const SourceCodeInfo*>(
  7124. &_SourceCodeInfo_default_instance_);
  7125. }
  7126. static constexpr int kIndexInFileMessages =
  7127. 24;
  7128. friend void swap(SourceCodeInfo& a, SourceCodeInfo& b) {
  7129. a.Swap(&b);
  7130. }
  7131. inline void Swap(SourceCodeInfo* other) {
  7132. if (other == this) return;
  7133. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7134. if (GetOwningArena() != nullptr &&
  7135. GetOwningArena() == other->GetOwningArena()) {
  7136. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7137. if (GetOwningArena() == other->GetOwningArena()) {
  7138. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7139. InternalSwap(other);
  7140. } else {
  7141. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7142. }
  7143. }
  7144. void UnsafeArenaSwap(SourceCodeInfo* other) {
  7145. if (other == this) return;
  7146. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7147. InternalSwap(other);
  7148. }
  7149. // implements Message ----------------------------------------------
  7150. SourceCodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  7151. return CreateMaybeMessage<SourceCodeInfo>(arena);
  7152. }
  7153. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7154. void CopyFrom(const SourceCodeInfo& from);
  7155. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7156. void MergeFrom(const SourceCodeInfo& from);
  7157. private:
  7158. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  7159. public:
  7160. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7161. bool IsInitialized() const final;
  7162. size_t ByteSizeLong() const final;
  7163. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7164. uint8_t* _InternalSerialize(
  7165. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  7166. int GetCachedSize() const final { return _cached_size_.Get(); }
  7167. private:
  7168. void SharedCtor();
  7169. void SharedDtor();
  7170. void SetCachedSize(int size) const final;
  7171. void InternalSwap(SourceCodeInfo* other);
  7172. private:
  7173. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7174. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  7175. return "google.protobuf.SourceCodeInfo";
  7176. }
  7177. protected:
  7178. explicit SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7179. bool is_message_owned = false);
  7180. private:
  7181. static void ArenaDtor(void* object);
  7182. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  7183. public:
  7184. static const ClassData _class_data_;
  7185. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  7186. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7187. // nested types ----------------------------------------------------
  7188. typedef SourceCodeInfo_Location Location;
  7189. // accessors -------------------------------------------------------
  7190. enum : int {
  7191. kLocationFieldNumber = 1,
  7192. };
  7193. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  7194. int location_size() const;
  7195. private:
  7196. int _internal_location_size() const;
  7197. public:
  7198. void clear_location();
  7199. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* mutable_location(int index);
  7200. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >*
  7201. mutable_location();
  7202. private:
  7203. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& _internal_location(int index) const;
  7204. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* _internal_add_location();
  7205. public:
  7206. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& location(int index) const;
  7207. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* add_location();
  7208. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >&
  7209. location() const;
  7210. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo)
  7211. private:
  7212. class _Internal;
  7213. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7214. typedef void InternalArenaConstructable_;
  7215. typedef void DestructorSkippable_;
  7216. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location > location_;
  7217. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7218. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7219. };
  7220. // -------------------------------------------------------------------
  7221. class PROTOBUF_EXPORT GeneratedCodeInfo_Annotation final :
  7222. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo.Annotation) */ {
  7223. public:
  7224. inline GeneratedCodeInfo_Annotation() : GeneratedCodeInfo_Annotation(nullptr) {}
  7225. ~GeneratedCodeInfo_Annotation() override;
  7226. explicit constexpr GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  7227. GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from);
  7228. GeneratedCodeInfo_Annotation(GeneratedCodeInfo_Annotation&& from) noexcept
  7229. : GeneratedCodeInfo_Annotation() {
  7230. *this = ::std::move(from);
  7231. }
  7232. inline GeneratedCodeInfo_Annotation& operator=(const GeneratedCodeInfo_Annotation& from) {
  7233. CopyFrom(from);
  7234. return *this;
  7235. }
  7236. inline GeneratedCodeInfo_Annotation& operator=(GeneratedCodeInfo_Annotation&& from) noexcept {
  7237. if (this == &from) return *this;
  7238. if (GetOwningArena() == from.GetOwningArena()
  7239. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  7240. && GetOwningArena() != nullptr
  7241. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  7242. ) {
  7243. InternalSwap(&from);
  7244. } else {
  7245. CopyFrom(from);
  7246. }
  7247. return *this;
  7248. }
  7249. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  7250. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  7251. }
  7252. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  7253. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7254. }
  7255. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  7256. return GetDescriptor();
  7257. }
  7258. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  7259. return default_instance().GetMetadata().descriptor;
  7260. }
  7261. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  7262. return default_instance().GetMetadata().reflection;
  7263. }
  7264. static const GeneratedCodeInfo_Annotation& default_instance() {
  7265. return *internal_default_instance();
  7266. }
  7267. static inline const GeneratedCodeInfo_Annotation* internal_default_instance() {
  7268. return reinterpret_cast<const GeneratedCodeInfo_Annotation*>(
  7269. &_GeneratedCodeInfo_Annotation_default_instance_);
  7270. }
  7271. static constexpr int kIndexInFileMessages =
  7272. 25;
  7273. friend void swap(GeneratedCodeInfo_Annotation& a, GeneratedCodeInfo_Annotation& b) {
  7274. a.Swap(&b);
  7275. }
  7276. inline void Swap(GeneratedCodeInfo_Annotation* other) {
  7277. if (other == this) return;
  7278. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7279. if (GetOwningArena() != nullptr &&
  7280. GetOwningArena() == other->GetOwningArena()) {
  7281. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7282. if (GetOwningArena() == other->GetOwningArena()) {
  7283. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7284. InternalSwap(other);
  7285. } else {
  7286. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7287. }
  7288. }
  7289. void UnsafeArenaSwap(GeneratedCodeInfo_Annotation* other) {
  7290. if (other == this) return;
  7291. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7292. InternalSwap(other);
  7293. }
  7294. // implements Message ----------------------------------------------
  7295. GeneratedCodeInfo_Annotation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  7296. return CreateMaybeMessage<GeneratedCodeInfo_Annotation>(arena);
  7297. }
  7298. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7299. void CopyFrom(const GeneratedCodeInfo_Annotation& from);
  7300. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7301. void MergeFrom(const GeneratedCodeInfo_Annotation& from);
  7302. private:
  7303. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  7304. public:
  7305. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7306. bool IsInitialized() const final;
  7307. size_t ByteSizeLong() const final;
  7308. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7309. uint8_t* _InternalSerialize(
  7310. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  7311. int GetCachedSize() const final { return _cached_size_.Get(); }
  7312. private:
  7313. void SharedCtor();
  7314. void SharedDtor();
  7315. void SetCachedSize(int size) const final;
  7316. void InternalSwap(GeneratedCodeInfo_Annotation* other);
  7317. private:
  7318. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7319. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  7320. return "google.protobuf.GeneratedCodeInfo.Annotation";
  7321. }
  7322. protected:
  7323. explicit GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7324. bool is_message_owned = false);
  7325. private:
  7326. static void ArenaDtor(void* object);
  7327. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  7328. public:
  7329. static const ClassData _class_data_;
  7330. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  7331. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7332. // nested types ----------------------------------------------------
  7333. // accessors -------------------------------------------------------
  7334. enum : int {
  7335. kPathFieldNumber = 1,
  7336. kSourceFileFieldNumber = 2,
  7337. kBeginFieldNumber = 3,
  7338. kEndFieldNumber = 4,
  7339. };
  7340. // repeated int32 path = 1 [packed = true];
  7341. int path_size() const;
  7342. private:
  7343. int _internal_path_size() const;
  7344. public:
  7345. void clear_path();
  7346. private:
  7347. int32_t _internal_path(int index) const;
  7348. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7349. _internal_path() const;
  7350. void _internal_add_path(int32_t value);
  7351. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7352. _internal_mutable_path();
  7353. public:
  7354. int32_t path(int index) const;
  7355. void set_path(int index, int32_t value);
  7356. void add_path(int32_t value);
  7357. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7358. path() const;
  7359. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7360. mutable_path();
  7361. // optional string source_file = 2;
  7362. bool has_source_file() const;
  7363. private:
  7364. bool _internal_has_source_file() const;
  7365. public:
  7366. void clear_source_file();
  7367. const std::string& source_file() const;
  7368. template <typename ArgT0 = const std::string&, typename... ArgT>
  7369. void set_source_file(ArgT0&& arg0, ArgT... args);
  7370. std::string* mutable_source_file();
  7371. PROTOBUF_NODISCARD std::string* release_source_file();
  7372. void set_allocated_source_file(std::string* source_file);
  7373. private:
  7374. const std::string& _internal_source_file() const;
  7375. inline PROTOBUF_ALWAYS_INLINE void _internal_set_source_file(const std::string& value);
  7376. std::string* _internal_mutable_source_file();
  7377. public:
  7378. // optional int32 begin = 3;
  7379. bool has_begin() const;
  7380. private:
  7381. bool _internal_has_begin() const;
  7382. public:
  7383. void clear_begin();
  7384. int32_t begin() const;
  7385. void set_begin(int32_t value);
  7386. private:
  7387. int32_t _internal_begin() const;
  7388. void _internal_set_begin(int32_t value);
  7389. public:
  7390. // optional int32 end = 4;
  7391. bool has_end() const;
  7392. private:
  7393. bool _internal_has_end() const;
  7394. public:
  7395. void clear_end();
  7396. int32_t end() const;
  7397. void set_end(int32_t value);
  7398. private:
  7399. int32_t _internal_end() const;
  7400. void _internal_set_end(int32_t value);
  7401. public:
  7402. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo.Annotation)
  7403. private:
  7404. class _Internal;
  7405. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7406. typedef void InternalArenaConstructable_;
  7407. typedef void DestructorSkippable_;
  7408. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  7409. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7410. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > path_;
  7411. mutable std::atomic<int> _path_cached_byte_size_;
  7412. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_file_;
  7413. int32_t begin_;
  7414. int32_t end_;
  7415. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7416. };
  7417. // -------------------------------------------------------------------
  7418. class PROTOBUF_EXPORT GeneratedCodeInfo final :
  7419. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo) */ {
  7420. public:
  7421. inline GeneratedCodeInfo() : GeneratedCodeInfo(nullptr) {}
  7422. ~GeneratedCodeInfo() override;
  7423. explicit constexpr GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  7424. GeneratedCodeInfo(const GeneratedCodeInfo& from);
  7425. GeneratedCodeInfo(GeneratedCodeInfo&& from) noexcept
  7426. : GeneratedCodeInfo() {
  7427. *this = ::std::move(from);
  7428. }
  7429. inline GeneratedCodeInfo& operator=(const GeneratedCodeInfo& from) {
  7430. CopyFrom(from);
  7431. return *this;
  7432. }
  7433. inline GeneratedCodeInfo& operator=(GeneratedCodeInfo&& from) noexcept {
  7434. if (this == &from) return *this;
  7435. if (GetOwningArena() == from.GetOwningArena()
  7436. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  7437. && GetOwningArena() != nullptr
  7438. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  7439. ) {
  7440. InternalSwap(&from);
  7441. } else {
  7442. CopyFrom(from);
  7443. }
  7444. return *this;
  7445. }
  7446. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  7447. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  7448. }
  7449. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  7450. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7451. }
  7452. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  7453. return GetDescriptor();
  7454. }
  7455. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  7456. return default_instance().GetMetadata().descriptor;
  7457. }
  7458. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  7459. return default_instance().GetMetadata().reflection;
  7460. }
  7461. static const GeneratedCodeInfo& default_instance() {
  7462. return *internal_default_instance();
  7463. }
  7464. static inline const GeneratedCodeInfo* internal_default_instance() {
  7465. return reinterpret_cast<const GeneratedCodeInfo*>(
  7466. &_GeneratedCodeInfo_default_instance_);
  7467. }
  7468. static constexpr int kIndexInFileMessages =
  7469. 26;
  7470. friend void swap(GeneratedCodeInfo& a, GeneratedCodeInfo& b) {
  7471. a.Swap(&b);
  7472. }
  7473. inline void Swap(GeneratedCodeInfo* other) {
  7474. if (other == this) return;
  7475. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7476. if (GetOwningArena() != nullptr &&
  7477. GetOwningArena() == other->GetOwningArena()) {
  7478. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7479. if (GetOwningArena() == other->GetOwningArena()) {
  7480. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7481. InternalSwap(other);
  7482. } else {
  7483. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7484. }
  7485. }
  7486. void UnsafeArenaSwap(GeneratedCodeInfo* other) {
  7487. if (other == this) return;
  7488. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7489. InternalSwap(other);
  7490. }
  7491. // implements Message ----------------------------------------------
  7492. GeneratedCodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  7493. return CreateMaybeMessage<GeneratedCodeInfo>(arena);
  7494. }
  7495. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7496. void CopyFrom(const GeneratedCodeInfo& from);
  7497. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7498. void MergeFrom(const GeneratedCodeInfo& from);
  7499. private:
  7500. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  7501. public:
  7502. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7503. bool IsInitialized() const final;
  7504. size_t ByteSizeLong() const final;
  7505. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7506. uint8_t* _InternalSerialize(
  7507. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  7508. int GetCachedSize() const final { return _cached_size_.Get(); }
  7509. private:
  7510. void SharedCtor();
  7511. void SharedDtor();
  7512. void SetCachedSize(int size) const final;
  7513. void InternalSwap(GeneratedCodeInfo* other);
  7514. private:
  7515. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7516. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  7517. return "google.protobuf.GeneratedCodeInfo";
  7518. }
  7519. protected:
  7520. explicit GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7521. bool is_message_owned = false);
  7522. private:
  7523. static void ArenaDtor(void* object);
  7524. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  7525. public:
  7526. static const ClassData _class_data_;
  7527. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  7528. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7529. // nested types ----------------------------------------------------
  7530. typedef GeneratedCodeInfo_Annotation Annotation;
  7531. // accessors -------------------------------------------------------
  7532. enum : int {
  7533. kAnnotationFieldNumber = 1,
  7534. };
  7535. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  7536. int annotation_size() const;
  7537. private:
  7538. int _internal_annotation_size() const;
  7539. public:
  7540. void clear_annotation();
  7541. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* mutable_annotation(int index);
  7542. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >*
  7543. mutable_annotation();
  7544. private:
  7545. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& _internal_annotation(int index) const;
  7546. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* _internal_add_annotation();
  7547. public:
  7548. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& annotation(int index) const;
  7549. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* add_annotation();
  7550. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >&
  7551. annotation() const;
  7552. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo)
  7553. private:
  7554. class _Internal;
  7555. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7556. typedef void InternalArenaConstructable_;
  7557. typedef void DestructorSkippable_;
  7558. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation > annotation_;
  7559. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7560. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7561. };
  7562. // ===================================================================
  7563. // ===================================================================
  7564. #ifdef __GNUC__
  7565. #pragma GCC diagnostic push
  7566. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  7567. #endif // __GNUC__
  7568. // FileDescriptorSet
  7569. // repeated .google.protobuf.FileDescriptorProto file = 1;
  7570. inline int FileDescriptorSet::_internal_file_size() const {
  7571. return file_.size();
  7572. }
  7573. inline int FileDescriptorSet::file_size() const {
  7574. return _internal_file_size();
  7575. }
  7576. inline void FileDescriptorSet::clear_file() {
  7577. file_.Clear();
  7578. }
  7579. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
  7580. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
  7581. return file_.Mutable(index);
  7582. }
  7583. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  7584. FileDescriptorSet::mutable_file() {
  7585. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
  7586. return &file_;
  7587. }
  7588. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& FileDescriptorSet::_internal_file(int index) const {
  7589. return file_.Get(index);
  7590. }
  7591. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& FileDescriptorSet::file(int index) const {
  7592. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
  7593. return _internal_file(index);
  7594. }
  7595. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::_internal_add_file() {
  7596. return file_.Add();
  7597. }
  7598. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::add_file() {
  7599. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _add = _internal_add_file();
  7600. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
  7601. return _add;
  7602. }
  7603. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  7604. FileDescriptorSet::file() const {
  7605. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
  7606. return file_;
  7607. }
  7608. // -------------------------------------------------------------------
  7609. // FileDescriptorProto
  7610. // optional string name = 1;
  7611. inline bool FileDescriptorProto::_internal_has_name() const {
  7612. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  7613. return value;
  7614. }
  7615. inline bool FileDescriptorProto::has_name() const {
  7616. return _internal_has_name();
  7617. }
  7618. inline void FileDescriptorProto::clear_name() {
  7619. name_.ClearToEmpty();
  7620. _has_bits_[0] &= ~0x00000001u;
  7621. }
  7622. inline const std::string& FileDescriptorProto::name() const {
  7623. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
  7624. return _internal_name();
  7625. }
  7626. template <typename ArgT0, typename... ArgT>
  7627. inline PROTOBUF_ALWAYS_INLINE
  7628. void FileDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  7629. _has_bits_[0] |= 0x00000001u;
  7630. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  7631. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
  7632. }
  7633. inline std::string* FileDescriptorProto::mutable_name() {
  7634. std::string* _s = _internal_mutable_name();
  7635. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
  7636. return _s;
  7637. }
  7638. inline const std::string& FileDescriptorProto::_internal_name() const {
  7639. return name_.Get();
  7640. }
  7641. inline void FileDescriptorProto::_internal_set_name(const std::string& value) {
  7642. _has_bits_[0] |= 0x00000001u;
  7643. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  7644. }
  7645. inline std::string* FileDescriptorProto::_internal_mutable_name() {
  7646. _has_bits_[0] |= 0x00000001u;
  7647. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  7648. }
  7649. inline std::string* FileDescriptorProto::release_name() {
  7650. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name)
  7651. if (!_internal_has_name()) {
  7652. return nullptr;
  7653. }
  7654. _has_bits_[0] &= ~0x00000001u;
  7655. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  7656. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7657. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  7658. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7659. }
  7660. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7661. return p;
  7662. }
  7663. inline void FileDescriptorProto::set_allocated_name(std::string* name) {
  7664. if (name != nullptr) {
  7665. _has_bits_[0] |= 0x00000001u;
  7666. } else {
  7667. _has_bits_[0] &= ~0x00000001u;
  7668. }
  7669. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  7670. GetArenaForAllocation());
  7671. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7672. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  7673. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7674. }
  7675. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7676. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
  7677. }
  7678. // optional string package = 2;
  7679. inline bool FileDescriptorProto::_internal_has_package() const {
  7680. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  7681. return value;
  7682. }
  7683. inline bool FileDescriptorProto::has_package() const {
  7684. return _internal_has_package();
  7685. }
  7686. inline void FileDescriptorProto::clear_package() {
  7687. package_.ClearToEmpty();
  7688. _has_bits_[0] &= ~0x00000002u;
  7689. }
  7690. inline const std::string& FileDescriptorProto::package() const {
  7691. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
  7692. return _internal_package();
  7693. }
  7694. template <typename ArgT0, typename... ArgT>
  7695. inline PROTOBUF_ALWAYS_INLINE
  7696. void FileDescriptorProto::set_package(ArgT0&& arg0, ArgT... args) {
  7697. _has_bits_[0] |= 0x00000002u;
  7698. package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  7699. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
  7700. }
  7701. inline std::string* FileDescriptorProto::mutable_package() {
  7702. std::string* _s = _internal_mutable_package();
  7703. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
  7704. return _s;
  7705. }
  7706. inline const std::string& FileDescriptorProto::_internal_package() const {
  7707. return package_.Get();
  7708. }
  7709. inline void FileDescriptorProto::_internal_set_package(const std::string& value) {
  7710. _has_bits_[0] |= 0x00000002u;
  7711. package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  7712. }
  7713. inline std::string* FileDescriptorProto::_internal_mutable_package() {
  7714. _has_bits_[0] |= 0x00000002u;
  7715. return package_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  7716. }
  7717. inline std::string* FileDescriptorProto::release_package() {
  7718. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package)
  7719. if (!_internal_has_package()) {
  7720. return nullptr;
  7721. }
  7722. _has_bits_[0] &= ~0x00000002u;
  7723. auto* p = package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  7724. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7725. if (package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  7726. package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7727. }
  7728. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7729. return p;
  7730. }
  7731. inline void FileDescriptorProto::set_allocated_package(std::string* package) {
  7732. if (package != nullptr) {
  7733. _has_bits_[0] |= 0x00000002u;
  7734. } else {
  7735. _has_bits_[0] &= ~0x00000002u;
  7736. }
  7737. package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), package,
  7738. GetArenaForAllocation());
  7739. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7740. if (package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  7741. package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7742. }
  7743. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7744. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
  7745. }
  7746. // repeated string dependency = 3;
  7747. inline int FileDescriptorProto::_internal_dependency_size() const {
  7748. return dependency_.size();
  7749. }
  7750. inline int FileDescriptorProto::dependency_size() const {
  7751. return _internal_dependency_size();
  7752. }
  7753. inline void FileDescriptorProto::clear_dependency() {
  7754. dependency_.Clear();
  7755. }
  7756. inline std::string* FileDescriptorProto::add_dependency() {
  7757. std::string* _s = _internal_add_dependency();
  7758. // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency)
  7759. return _s;
  7760. }
  7761. inline const std::string& FileDescriptorProto::_internal_dependency(int index) const {
  7762. return dependency_.Get(index);
  7763. }
  7764. inline const std::string& FileDescriptorProto::dependency(int index) const {
  7765. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
  7766. return _internal_dependency(index);
  7767. }
  7768. inline std::string* FileDescriptorProto::mutable_dependency(int index) {
  7769. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
  7770. return dependency_.Mutable(index);
  7771. }
  7772. inline void FileDescriptorProto::set_dependency(int index, const std::string& value) {
  7773. dependency_.Mutable(index)->assign(value);
  7774. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  7775. }
  7776. inline void FileDescriptorProto::set_dependency(int index, std::string&& value) {
  7777. dependency_.Mutable(index)->assign(std::move(value));
  7778. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  7779. }
  7780. inline void FileDescriptorProto::set_dependency(int index, const char* value) {
  7781. GOOGLE_DCHECK(value != nullptr);
  7782. dependency_.Mutable(index)->assign(value);
  7783. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
  7784. }
  7785. inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
  7786. dependency_.Mutable(index)->assign(
  7787. reinterpret_cast<const char*>(value), size);
  7788. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
  7789. }
  7790. inline std::string* FileDescriptorProto::_internal_add_dependency() {
  7791. return dependency_.Add();
  7792. }
  7793. inline void FileDescriptorProto::add_dependency(const std::string& value) {
  7794. dependency_.Add()->assign(value);
  7795. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  7796. }
  7797. inline void FileDescriptorProto::add_dependency(std::string&& value) {
  7798. dependency_.Add(std::move(value));
  7799. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  7800. }
  7801. inline void FileDescriptorProto::add_dependency(const char* value) {
  7802. GOOGLE_DCHECK(value != nullptr);
  7803. dependency_.Add()->assign(value);
  7804. // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
  7805. }
  7806. inline void FileDescriptorProto::add_dependency(const char* value, size_t size) {
  7807. dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
  7808. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
  7809. }
  7810. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  7811. FileDescriptorProto::dependency() const {
  7812. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
  7813. return dependency_;
  7814. }
  7815. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  7816. FileDescriptorProto::mutable_dependency() {
  7817. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
  7818. return &dependency_;
  7819. }
  7820. // repeated int32 public_dependency = 10;
  7821. inline int FileDescriptorProto::_internal_public_dependency_size() const {
  7822. return public_dependency_.size();
  7823. }
  7824. inline int FileDescriptorProto::public_dependency_size() const {
  7825. return _internal_public_dependency_size();
  7826. }
  7827. inline void FileDescriptorProto::clear_public_dependency() {
  7828. public_dependency_.Clear();
  7829. }
  7830. inline int32_t FileDescriptorProto::_internal_public_dependency(int index) const {
  7831. return public_dependency_.Get(index);
  7832. }
  7833. inline int32_t FileDescriptorProto::public_dependency(int index) const {
  7834. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
  7835. return _internal_public_dependency(index);
  7836. }
  7837. inline void FileDescriptorProto::set_public_dependency(int index, int32_t value) {
  7838. public_dependency_.Set(index, value);
  7839. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
  7840. }
  7841. inline void FileDescriptorProto::_internal_add_public_dependency(int32_t value) {
  7842. public_dependency_.Add(value);
  7843. }
  7844. inline void FileDescriptorProto::add_public_dependency(int32_t value) {
  7845. _internal_add_public_dependency(value);
  7846. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
  7847. }
  7848. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7849. FileDescriptorProto::_internal_public_dependency() const {
  7850. return public_dependency_;
  7851. }
  7852. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7853. FileDescriptorProto::public_dependency() const {
  7854. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
  7855. return _internal_public_dependency();
  7856. }
  7857. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7858. FileDescriptorProto::_internal_mutable_public_dependency() {
  7859. return &public_dependency_;
  7860. }
  7861. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7862. FileDescriptorProto::mutable_public_dependency() {
  7863. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
  7864. return _internal_mutable_public_dependency();
  7865. }
  7866. // repeated int32 weak_dependency = 11;
  7867. inline int FileDescriptorProto::_internal_weak_dependency_size() const {
  7868. return weak_dependency_.size();
  7869. }
  7870. inline int FileDescriptorProto::weak_dependency_size() const {
  7871. return _internal_weak_dependency_size();
  7872. }
  7873. inline void FileDescriptorProto::clear_weak_dependency() {
  7874. weak_dependency_.Clear();
  7875. }
  7876. inline int32_t FileDescriptorProto::_internal_weak_dependency(int index) const {
  7877. return weak_dependency_.Get(index);
  7878. }
  7879. inline int32_t FileDescriptorProto::weak_dependency(int index) const {
  7880. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
  7881. return _internal_weak_dependency(index);
  7882. }
  7883. inline void FileDescriptorProto::set_weak_dependency(int index, int32_t value) {
  7884. weak_dependency_.Set(index, value);
  7885. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
  7886. }
  7887. inline void FileDescriptorProto::_internal_add_weak_dependency(int32_t value) {
  7888. weak_dependency_.Add(value);
  7889. }
  7890. inline void FileDescriptorProto::add_weak_dependency(int32_t value) {
  7891. _internal_add_weak_dependency(value);
  7892. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
  7893. }
  7894. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7895. FileDescriptorProto::_internal_weak_dependency() const {
  7896. return weak_dependency_;
  7897. }
  7898. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7899. FileDescriptorProto::weak_dependency() const {
  7900. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
  7901. return _internal_weak_dependency();
  7902. }
  7903. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7904. FileDescriptorProto::_internal_mutable_weak_dependency() {
  7905. return &weak_dependency_;
  7906. }
  7907. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7908. FileDescriptorProto::mutable_weak_dependency() {
  7909. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
  7910. return _internal_mutable_weak_dependency();
  7911. }
  7912. // repeated .google.protobuf.DescriptorProto message_type = 4;
  7913. inline int FileDescriptorProto::_internal_message_type_size() const {
  7914. return message_type_.size();
  7915. }
  7916. inline int FileDescriptorProto::message_type_size() const {
  7917. return _internal_message_type_size();
  7918. }
  7919. inline void FileDescriptorProto::clear_message_type() {
  7920. message_type_.Clear();
  7921. }
  7922. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
  7923. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
  7924. return message_type_.Mutable(index);
  7925. }
  7926. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  7927. FileDescriptorProto::mutable_message_type() {
  7928. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
  7929. return &message_type_;
  7930. }
  7931. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& FileDescriptorProto::_internal_message_type(int index) const {
  7932. return message_type_.Get(index);
  7933. }
  7934. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& FileDescriptorProto::message_type(int index) const {
  7935. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
  7936. return _internal_message_type(index);
  7937. }
  7938. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::_internal_add_message_type() {
  7939. return message_type_.Add();
  7940. }
  7941. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::add_message_type() {
  7942. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _add = _internal_add_message_type();
  7943. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
  7944. return _add;
  7945. }
  7946. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  7947. FileDescriptorProto::message_type() const {
  7948. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
  7949. return message_type_;
  7950. }
  7951. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  7952. inline int FileDescriptorProto::_internal_enum_type_size() const {
  7953. return enum_type_.size();
  7954. }
  7955. inline int FileDescriptorProto::enum_type_size() const {
  7956. return _internal_enum_type_size();
  7957. }
  7958. inline void FileDescriptorProto::clear_enum_type() {
  7959. enum_type_.Clear();
  7960. }
  7961. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
  7962. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
  7963. return enum_type_.Mutable(index);
  7964. }
  7965. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  7966. FileDescriptorProto::mutable_enum_type() {
  7967. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
  7968. return &enum_type_;
  7969. }
  7970. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& FileDescriptorProto::_internal_enum_type(int index) const {
  7971. return enum_type_.Get(index);
  7972. }
  7973. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
  7974. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
  7975. return _internal_enum_type(index);
  7976. }
  7977. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::_internal_add_enum_type() {
  7978. return enum_type_.Add();
  7979. }
  7980. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
  7981. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _add = _internal_add_enum_type();
  7982. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
  7983. return _add;
  7984. }
  7985. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  7986. FileDescriptorProto::enum_type() const {
  7987. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
  7988. return enum_type_;
  7989. }
  7990. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  7991. inline int FileDescriptorProto::_internal_service_size() const {
  7992. return service_.size();
  7993. }
  7994. inline int FileDescriptorProto::service_size() const {
  7995. return _internal_service_size();
  7996. }
  7997. inline void FileDescriptorProto::clear_service() {
  7998. service_.Clear();
  7999. }
  8000. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
  8001. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
  8002. return service_.Mutable(index);
  8003. }
  8004. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >*
  8005. FileDescriptorProto::mutable_service() {
  8006. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
  8007. return &service_;
  8008. }
  8009. inline const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& FileDescriptorProto::_internal_service(int index) const {
  8010. return service_.Get(index);
  8011. }
  8012. inline const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
  8013. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
  8014. return _internal_service(index);
  8015. }
  8016. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::_internal_add_service() {
  8017. return service_.Add();
  8018. }
  8019. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::add_service() {
  8020. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* _add = _internal_add_service();
  8021. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
  8022. return _add;
  8023. }
  8024. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >&
  8025. FileDescriptorProto::service() const {
  8026. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
  8027. return service_;
  8028. }
  8029. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  8030. inline int FileDescriptorProto::_internal_extension_size() const {
  8031. return extension_.size();
  8032. }
  8033. inline int FileDescriptorProto::extension_size() const {
  8034. return _internal_extension_size();
  8035. }
  8036. inline void FileDescriptorProto::clear_extension() {
  8037. extension_.Clear();
  8038. }
  8039. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
  8040. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
  8041. return extension_.Mutable(index);
  8042. }
  8043. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  8044. FileDescriptorProto::mutable_extension() {
  8045. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
  8046. return &extension_;
  8047. }
  8048. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& FileDescriptorProto::_internal_extension(int index) const {
  8049. return extension_.Get(index);
  8050. }
  8051. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
  8052. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
  8053. return _internal_extension(index);
  8054. }
  8055. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::_internal_add_extension() {
  8056. return extension_.Add();
  8057. }
  8058. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::add_extension() {
  8059. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_extension();
  8060. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
  8061. return _add;
  8062. }
  8063. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  8064. FileDescriptorProto::extension() const {
  8065. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
  8066. return extension_;
  8067. }
  8068. // optional .google.protobuf.FileOptions options = 8;
  8069. inline bool FileDescriptorProto::_internal_has_options() const {
  8070. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  8071. PROTOBUF_ASSUME(!value || options_ != nullptr);
  8072. return value;
  8073. }
  8074. inline bool FileDescriptorProto::has_options() const {
  8075. return _internal_has_options();
  8076. }
  8077. inline void FileDescriptorProto::clear_options() {
  8078. if (options_ != nullptr) options_->Clear();
  8079. _has_bits_[0] &= ~0x00000008u;
  8080. }
  8081. inline const ::PROTOBUF_NAMESPACE_ID::FileOptions& FileDescriptorProto::_internal_options() const {
  8082. const ::PROTOBUF_NAMESPACE_ID::FileOptions* p = options_;
  8083. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::FileOptions&>(
  8084. ::PROTOBUF_NAMESPACE_ID::_FileOptions_default_instance_);
  8085. }
  8086. inline const ::PROTOBUF_NAMESPACE_ID::FileOptions& FileDescriptorProto::options() const {
  8087. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
  8088. return _internal_options();
  8089. }
  8090. inline void FileDescriptorProto::unsafe_arena_set_allocated_options(
  8091. ::PROTOBUF_NAMESPACE_ID::FileOptions* options) {
  8092. if (GetArenaForAllocation() == nullptr) {
  8093. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  8094. }
  8095. options_ = options;
  8096. if (options) {
  8097. _has_bits_[0] |= 0x00000008u;
  8098. } else {
  8099. _has_bits_[0] &= ~0x00000008u;
  8100. }
  8101. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.options)
  8102. }
  8103. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::release_options() {
  8104. _has_bits_[0] &= ~0x00000008u;
  8105. ::PROTOBUF_NAMESPACE_ID::FileOptions* temp = options_;
  8106. options_ = nullptr;
  8107. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8108. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8109. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8110. if (GetArenaForAllocation() == nullptr) { delete old; }
  8111. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8112. if (GetArenaForAllocation() != nullptr) {
  8113. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8114. }
  8115. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8116. return temp;
  8117. }
  8118. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::unsafe_arena_release_options() {
  8119. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.options)
  8120. _has_bits_[0] &= ~0x00000008u;
  8121. ::PROTOBUF_NAMESPACE_ID::FileOptions* temp = options_;
  8122. options_ = nullptr;
  8123. return temp;
  8124. }
  8125. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::_internal_mutable_options() {
  8126. _has_bits_[0] |= 0x00000008u;
  8127. if (options_ == nullptr) {
  8128. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileOptions>(GetArenaForAllocation());
  8129. options_ = p;
  8130. }
  8131. return options_;
  8132. }
  8133. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::mutable_options() {
  8134. ::PROTOBUF_NAMESPACE_ID::FileOptions* _msg = _internal_mutable_options();
  8135. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
  8136. return _msg;
  8137. }
  8138. inline void FileDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::FileOptions* options) {
  8139. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8140. if (message_arena == nullptr) {
  8141. delete options_;
  8142. }
  8143. if (options) {
  8144. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8145. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::FileOptions>::GetOwningArena(options);
  8146. if (message_arena != submessage_arena) {
  8147. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8148. message_arena, options, submessage_arena);
  8149. }
  8150. _has_bits_[0] |= 0x00000008u;
  8151. } else {
  8152. _has_bits_[0] &= ~0x00000008u;
  8153. }
  8154. options_ = options;
  8155. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
  8156. }
  8157. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  8158. inline bool FileDescriptorProto::_internal_has_source_code_info() const {
  8159. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  8160. PROTOBUF_ASSUME(!value || source_code_info_ != nullptr);
  8161. return value;
  8162. }
  8163. inline bool FileDescriptorProto::has_source_code_info() const {
  8164. return _internal_has_source_code_info();
  8165. }
  8166. inline void FileDescriptorProto::clear_source_code_info() {
  8167. if (source_code_info_ != nullptr) source_code_info_->Clear();
  8168. _has_bits_[0] &= ~0x00000010u;
  8169. }
  8170. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& FileDescriptorProto::_internal_source_code_info() const {
  8171. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* p = source_code_info_;
  8172. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo&>(
  8173. ::PROTOBUF_NAMESPACE_ID::_SourceCodeInfo_default_instance_);
  8174. }
  8175. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
  8176. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
  8177. return _internal_source_code_info();
  8178. }
  8179. inline void FileDescriptorProto::unsafe_arena_set_allocated_source_code_info(
  8180. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info) {
  8181. if (GetArenaForAllocation() == nullptr) {
  8182. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_code_info_);
  8183. }
  8184. source_code_info_ = source_code_info;
  8185. if (source_code_info) {
  8186. _has_bits_[0] |= 0x00000010u;
  8187. } else {
  8188. _has_bits_[0] &= ~0x00000010u;
  8189. }
  8190. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  8191. }
  8192. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
  8193. _has_bits_[0] &= ~0x00000010u;
  8194. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* temp = source_code_info_;
  8195. source_code_info_ = nullptr;
  8196. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8197. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8198. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8199. if (GetArenaForAllocation() == nullptr) { delete old; }
  8200. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8201. if (GetArenaForAllocation() != nullptr) {
  8202. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8203. }
  8204. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8205. return temp;
  8206. }
  8207. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::unsafe_arena_release_source_code_info() {
  8208. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.source_code_info)
  8209. _has_bits_[0] &= ~0x00000010u;
  8210. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* temp = source_code_info_;
  8211. source_code_info_ = nullptr;
  8212. return temp;
  8213. }
  8214. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::_internal_mutable_source_code_info() {
  8215. _has_bits_[0] |= 0x00000010u;
  8216. if (source_code_info_ == nullptr) {
  8217. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo>(GetArenaForAllocation());
  8218. source_code_info_ = p;
  8219. }
  8220. return source_code_info_;
  8221. }
  8222. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
  8223. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* _msg = _internal_mutable_source_code_info();
  8224. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
  8225. return _msg;
  8226. }
  8227. inline void FileDescriptorProto::set_allocated_source_code_info(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info) {
  8228. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8229. if (message_arena == nullptr) {
  8230. delete source_code_info_;
  8231. }
  8232. if (source_code_info) {
  8233. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8234. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo>::GetOwningArena(source_code_info);
  8235. if (message_arena != submessage_arena) {
  8236. source_code_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8237. message_arena, source_code_info, submessage_arena);
  8238. }
  8239. _has_bits_[0] |= 0x00000010u;
  8240. } else {
  8241. _has_bits_[0] &= ~0x00000010u;
  8242. }
  8243. source_code_info_ = source_code_info;
  8244. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  8245. }
  8246. // optional string syntax = 12;
  8247. inline bool FileDescriptorProto::_internal_has_syntax() const {
  8248. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  8249. return value;
  8250. }
  8251. inline bool FileDescriptorProto::has_syntax() const {
  8252. return _internal_has_syntax();
  8253. }
  8254. inline void FileDescriptorProto::clear_syntax() {
  8255. syntax_.ClearToEmpty();
  8256. _has_bits_[0] &= ~0x00000004u;
  8257. }
  8258. inline const std::string& FileDescriptorProto::syntax() const {
  8259. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
  8260. return _internal_syntax();
  8261. }
  8262. template <typename ArgT0, typename... ArgT>
  8263. inline PROTOBUF_ALWAYS_INLINE
  8264. void FileDescriptorProto::set_syntax(ArgT0&& arg0, ArgT... args) {
  8265. _has_bits_[0] |= 0x00000004u;
  8266. syntax_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  8267. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
  8268. }
  8269. inline std::string* FileDescriptorProto::mutable_syntax() {
  8270. std::string* _s = _internal_mutable_syntax();
  8271. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
  8272. return _s;
  8273. }
  8274. inline const std::string& FileDescriptorProto::_internal_syntax() const {
  8275. return syntax_.Get();
  8276. }
  8277. inline void FileDescriptorProto::_internal_set_syntax(const std::string& value) {
  8278. _has_bits_[0] |= 0x00000004u;
  8279. syntax_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  8280. }
  8281. inline std::string* FileDescriptorProto::_internal_mutable_syntax() {
  8282. _has_bits_[0] |= 0x00000004u;
  8283. return syntax_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  8284. }
  8285. inline std::string* FileDescriptorProto::release_syntax() {
  8286. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax)
  8287. if (!_internal_has_syntax()) {
  8288. return nullptr;
  8289. }
  8290. _has_bits_[0] &= ~0x00000004u;
  8291. auto* p = syntax_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  8292. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8293. if (syntax_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  8294. syntax_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8295. }
  8296. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8297. return p;
  8298. }
  8299. inline void FileDescriptorProto::set_allocated_syntax(std::string* syntax) {
  8300. if (syntax != nullptr) {
  8301. _has_bits_[0] |= 0x00000004u;
  8302. } else {
  8303. _has_bits_[0] &= ~0x00000004u;
  8304. }
  8305. syntax_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), syntax,
  8306. GetArenaForAllocation());
  8307. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8308. if (syntax_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  8309. syntax_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8310. }
  8311. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8312. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
  8313. }
  8314. // -------------------------------------------------------------------
  8315. // DescriptorProto_ExtensionRange
  8316. // optional int32 start = 1;
  8317. inline bool DescriptorProto_ExtensionRange::_internal_has_start() const {
  8318. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  8319. return value;
  8320. }
  8321. inline bool DescriptorProto_ExtensionRange::has_start() const {
  8322. return _internal_has_start();
  8323. }
  8324. inline void DescriptorProto_ExtensionRange::clear_start() {
  8325. start_ = 0;
  8326. _has_bits_[0] &= ~0x00000002u;
  8327. }
  8328. inline int32_t DescriptorProto_ExtensionRange::_internal_start() const {
  8329. return start_;
  8330. }
  8331. inline int32_t DescriptorProto_ExtensionRange::start() const {
  8332. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
  8333. return _internal_start();
  8334. }
  8335. inline void DescriptorProto_ExtensionRange::_internal_set_start(int32_t value) {
  8336. _has_bits_[0] |= 0x00000002u;
  8337. start_ = value;
  8338. }
  8339. inline void DescriptorProto_ExtensionRange::set_start(int32_t value) {
  8340. _internal_set_start(value);
  8341. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
  8342. }
  8343. // optional int32 end = 2;
  8344. inline bool DescriptorProto_ExtensionRange::_internal_has_end() const {
  8345. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  8346. return value;
  8347. }
  8348. inline bool DescriptorProto_ExtensionRange::has_end() const {
  8349. return _internal_has_end();
  8350. }
  8351. inline void DescriptorProto_ExtensionRange::clear_end() {
  8352. end_ = 0;
  8353. _has_bits_[0] &= ~0x00000004u;
  8354. }
  8355. inline int32_t DescriptorProto_ExtensionRange::_internal_end() const {
  8356. return end_;
  8357. }
  8358. inline int32_t DescriptorProto_ExtensionRange::end() const {
  8359. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
  8360. return _internal_end();
  8361. }
  8362. inline void DescriptorProto_ExtensionRange::_internal_set_end(int32_t value) {
  8363. _has_bits_[0] |= 0x00000004u;
  8364. end_ = value;
  8365. }
  8366. inline void DescriptorProto_ExtensionRange::set_end(int32_t value) {
  8367. _internal_set_end(value);
  8368. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
  8369. }
  8370. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  8371. inline bool DescriptorProto_ExtensionRange::_internal_has_options() const {
  8372. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  8373. PROTOBUF_ASSUME(!value || options_ != nullptr);
  8374. return value;
  8375. }
  8376. inline bool DescriptorProto_ExtensionRange::has_options() const {
  8377. return _internal_has_options();
  8378. }
  8379. inline void DescriptorProto_ExtensionRange::clear_options() {
  8380. if (options_ != nullptr) options_->Clear();
  8381. _has_bits_[0] &= ~0x00000001u;
  8382. }
  8383. inline const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& DescriptorProto_ExtensionRange::_internal_options() const {
  8384. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* p = options_;
  8385. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions&>(
  8386. ::PROTOBUF_NAMESPACE_ID::_ExtensionRangeOptions_default_instance_);
  8387. }
  8388. inline const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& DescriptorProto_ExtensionRange::options() const {
  8389. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.options)
  8390. return _internal_options();
  8391. }
  8392. inline void DescriptorProto_ExtensionRange::unsafe_arena_set_allocated_options(
  8393. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options) {
  8394. if (GetArenaForAllocation() == nullptr) {
  8395. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  8396. }
  8397. options_ = options;
  8398. if (options) {
  8399. _has_bits_[0] |= 0x00000001u;
  8400. } else {
  8401. _has_bits_[0] &= ~0x00000001u;
  8402. }
  8403. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  8404. }
  8405. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::release_options() {
  8406. _has_bits_[0] &= ~0x00000001u;
  8407. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* temp = options_;
  8408. options_ = nullptr;
  8409. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8410. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8411. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8412. if (GetArenaForAllocation() == nullptr) { delete old; }
  8413. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8414. if (GetArenaForAllocation() != nullptr) {
  8415. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8416. }
  8417. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8418. return temp;
  8419. }
  8420. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::unsafe_arena_release_options() {
  8421. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.ExtensionRange.options)
  8422. _has_bits_[0] &= ~0x00000001u;
  8423. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* temp = options_;
  8424. options_ = nullptr;
  8425. return temp;
  8426. }
  8427. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::_internal_mutable_options() {
  8428. _has_bits_[0] |= 0x00000001u;
  8429. if (options_ == nullptr) {
  8430. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>(GetArenaForAllocation());
  8431. options_ = p;
  8432. }
  8433. return options_;
  8434. }
  8435. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::mutable_options() {
  8436. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* _msg = _internal_mutable_options();
  8437. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.ExtensionRange.options)
  8438. return _msg;
  8439. }
  8440. inline void DescriptorProto_ExtensionRange::set_allocated_options(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options) {
  8441. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8442. if (message_arena == nullptr) {
  8443. delete options_;
  8444. }
  8445. if (options) {
  8446. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8447. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>::GetOwningArena(options);
  8448. if (message_arena != submessage_arena) {
  8449. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8450. message_arena, options, submessage_arena);
  8451. }
  8452. _has_bits_[0] |= 0x00000001u;
  8453. } else {
  8454. _has_bits_[0] &= ~0x00000001u;
  8455. }
  8456. options_ = options;
  8457. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  8458. }
  8459. // -------------------------------------------------------------------
  8460. // DescriptorProto_ReservedRange
  8461. // optional int32 start = 1;
  8462. inline bool DescriptorProto_ReservedRange::_internal_has_start() const {
  8463. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  8464. return value;
  8465. }
  8466. inline bool DescriptorProto_ReservedRange::has_start() const {
  8467. return _internal_has_start();
  8468. }
  8469. inline void DescriptorProto_ReservedRange::clear_start() {
  8470. start_ = 0;
  8471. _has_bits_[0] &= ~0x00000001u;
  8472. }
  8473. inline int32_t DescriptorProto_ReservedRange::_internal_start() const {
  8474. return start_;
  8475. }
  8476. inline int32_t DescriptorProto_ReservedRange::start() const {
  8477. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
  8478. return _internal_start();
  8479. }
  8480. inline void DescriptorProto_ReservedRange::_internal_set_start(int32_t value) {
  8481. _has_bits_[0] |= 0x00000001u;
  8482. start_ = value;
  8483. }
  8484. inline void DescriptorProto_ReservedRange::set_start(int32_t value) {
  8485. _internal_set_start(value);
  8486. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
  8487. }
  8488. // optional int32 end = 2;
  8489. inline bool DescriptorProto_ReservedRange::_internal_has_end() const {
  8490. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  8491. return value;
  8492. }
  8493. inline bool DescriptorProto_ReservedRange::has_end() const {
  8494. return _internal_has_end();
  8495. }
  8496. inline void DescriptorProto_ReservedRange::clear_end() {
  8497. end_ = 0;
  8498. _has_bits_[0] &= ~0x00000002u;
  8499. }
  8500. inline int32_t DescriptorProto_ReservedRange::_internal_end() const {
  8501. return end_;
  8502. }
  8503. inline int32_t DescriptorProto_ReservedRange::end() const {
  8504. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
  8505. return _internal_end();
  8506. }
  8507. inline void DescriptorProto_ReservedRange::_internal_set_end(int32_t value) {
  8508. _has_bits_[0] |= 0x00000002u;
  8509. end_ = value;
  8510. }
  8511. inline void DescriptorProto_ReservedRange::set_end(int32_t value) {
  8512. _internal_set_end(value);
  8513. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
  8514. }
  8515. // -------------------------------------------------------------------
  8516. // DescriptorProto
  8517. // optional string name = 1;
  8518. inline bool DescriptorProto::_internal_has_name() const {
  8519. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  8520. return value;
  8521. }
  8522. inline bool DescriptorProto::has_name() const {
  8523. return _internal_has_name();
  8524. }
  8525. inline void DescriptorProto::clear_name() {
  8526. name_.ClearToEmpty();
  8527. _has_bits_[0] &= ~0x00000001u;
  8528. }
  8529. inline const std::string& DescriptorProto::name() const {
  8530. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
  8531. return _internal_name();
  8532. }
  8533. template <typename ArgT0, typename... ArgT>
  8534. inline PROTOBUF_ALWAYS_INLINE
  8535. void DescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  8536. _has_bits_[0] |= 0x00000001u;
  8537. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  8538. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
  8539. }
  8540. inline std::string* DescriptorProto::mutable_name() {
  8541. std::string* _s = _internal_mutable_name();
  8542. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
  8543. return _s;
  8544. }
  8545. inline const std::string& DescriptorProto::_internal_name() const {
  8546. return name_.Get();
  8547. }
  8548. inline void DescriptorProto::_internal_set_name(const std::string& value) {
  8549. _has_bits_[0] |= 0x00000001u;
  8550. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  8551. }
  8552. inline std::string* DescriptorProto::_internal_mutable_name() {
  8553. _has_bits_[0] |= 0x00000001u;
  8554. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  8555. }
  8556. inline std::string* DescriptorProto::release_name() {
  8557. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name)
  8558. if (!_internal_has_name()) {
  8559. return nullptr;
  8560. }
  8561. _has_bits_[0] &= ~0x00000001u;
  8562. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  8563. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8564. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  8565. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8566. }
  8567. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8568. return p;
  8569. }
  8570. inline void DescriptorProto::set_allocated_name(std::string* name) {
  8571. if (name != nullptr) {
  8572. _has_bits_[0] |= 0x00000001u;
  8573. } else {
  8574. _has_bits_[0] &= ~0x00000001u;
  8575. }
  8576. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  8577. GetArenaForAllocation());
  8578. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8579. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  8580. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8581. }
  8582. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8583. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
  8584. }
  8585. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  8586. inline int DescriptorProto::_internal_field_size() const {
  8587. return field_.size();
  8588. }
  8589. inline int DescriptorProto::field_size() const {
  8590. return _internal_field_size();
  8591. }
  8592. inline void DescriptorProto::clear_field() {
  8593. field_.Clear();
  8594. }
  8595. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
  8596. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
  8597. return field_.Mutable(index);
  8598. }
  8599. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  8600. DescriptorProto::mutable_field() {
  8601. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
  8602. return &field_;
  8603. }
  8604. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::_internal_field(int index) const {
  8605. return field_.Get(index);
  8606. }
  8607. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::field(int index) const {
  8608. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
  8609. return _internal_field(index);
  8610. }
  8611. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::_internal_add_field() {
  8612. return field_.Add();
  8613. }
  8614. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::add_field() {
  8615. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_field();
  8616. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
  8617. return _add;
  8618. }
  8619. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  8620. DescriptorProto::field() const {
  8621. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
  8622. return field_;
  8623. }
  8624. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  8625. inline int DescriptorProto::_internal_extension_size() const {
  8626. return extension_.size();
  8627. }
  8628. inline int DescriptorProto::extension_size() const {
  8629. return _internal_extension_size();
  8630. }
  8631. inline void DescriptorProto::clear_extension() {
  8632. extension_.Clear();
  8633. }
  8634. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
  8635. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
  8636. return extension_.Mutable(index);
  8637. }
  8638. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  8639. DescriptorProto::mutable_extension() {
  8640. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
  8641. return &extension_;
  8642. }
  8643. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::_internal_extension(int index) const {
  8644. return extension_.Get(index);
  8645. }
  8646. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::extension(int index) const {
  8647. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
  8648. return _internal_extension(index);
  8649. }
  8650. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::_internal_add_extension() {
  8651. return extension_.Add();
  8652. }
  8653. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::add_extension() {
  8654. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_extension();
  8655. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
  8656. return _add;
  8657. }
  8658. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  8659. DescriptorProto::extension() const {
  8660. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
  8661. return extension_;
  8662. }
  8663. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  8664. inline int DescriptorProto::_internal_nested_type_size() const {
  8665. return nested_type_.size();
  8666. }
  8667. inline int DescriptorProto::nested_type_size() const {
  8668. return _internal_nested_type_size();
  8669. }
  8670. inline void DescriptorProto::clear_nested_type() {
  8671. nested_type_.Clear();
  8672. }
  8673. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
  8674. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
  8675. return nested_type_.Mutable(index);
  8676. }
  8677. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  8678. DescriptorProto::mutable_nested_type() {
  8679. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
  8680. return &nested_type_;
  8681. }
  8682. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& DescriptorProto::_internal_nested_type(int index) const {
  8683. return nested_type_.Get(index);
  8684. }
  8685. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& DescriptorProto::nested_type(int index) const {
  8686. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
  8687. return _internal_nested_type(index);
  8688. }
  8689. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::_internal_add_nested_type() {
  8690. return nested_type_.Add();
  8691. }
  8692. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::add_nested_type() {
  8693. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _add = _internal_add_nested_type();
  8694. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
  8695. return _add;
  8696. }
  8697. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  8698. DescriptorProto::nested_type() const {
  8699. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
  8700. return nested_type_;
  8701. }
  8702. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  8703. inline int DescriptorProto::_internal_enum_type_size() const {
  8704. return enum_type_.size();
  8705. }
  8706. inline int DescriptorProto::enum_type_size() const {
  8707. return _internal_enum_type_size();
  8708. }
  8709. inline void DescriptorProto::clear_enum_type() {
  8710. enum_type_.Clear();
  8711. }
  8712. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
  8713. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
  8714. return enum_type_.Mutable(index);
  8715. }
  8716. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  8717. DescriptorProto::mutable_enum_type() {
  8718. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
  8719. return &enum_type_;
  8720. }
  8721. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& DescriptorProto::_internal_enum_type(int index) const {
  8722. return enum_type_.Get(index);
  8723. }
  8724. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
  8725. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
  8726. return _internal_enum_type(index);
  8727. }
  8728. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::_internal_add_enum_type() {
  8729. return enum_type_.Add();
  8730. }
  8731. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::add_enum_type() {
  8732. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _add = _internal_add_enum_type();
  8733. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
  8734. return _add;
  8735. }
  8736. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  8737. DescriptorProto::enum_type() const {
  8738. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
  8739. return enum_type_;
  8740. }
  8741. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  8742. inline int DescriptorProto::_internal_extension_range_size() const {
  8743. return extension_range_.size();
  8744. }
  8745. inline int DescriptorProto::extension_range_size() const {
  8746. return _internal_extension_range_size();
  8747. }
  8748. inline void DescriptorProto::clear_extension_range() {
  8749. extension_range_.Clear();
  8750. }
  8751. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
  8752. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
  8753. return extension_range_.Mutable(index);
  8754. }
  8755. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >*
  8756. DescriptorProto::mutable_extension_range() {
  8757. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
  8758. return &extension_range_;
  8759. }
  8760. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& DescriptorProto::_internal_extension_range(int index) const {
  8761. return extension_range_.Get(index);
  8762. }
  8763. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
  8764. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
  8765. return _internal_extension_range(index);
  8766. }
  8767. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::_internal_add_extension_range() {
  8768. return extension_range_.Add();
  8769. }
  8770. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
  8771. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* _add = _internal_add_extension_range();
  8772. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
  8773. return _add;
  8774. }
  8775. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >&
  8776. DescriptorProto::extension_range() const {
  8777. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
  8778. return extension_range_;
  8779. }
  8780. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  8781. inline int DescriptorProto::_internal_oneof_decl_size() const {
  8782. return oneof_decl_.size();
  8783. }
  8784. inline int DescriptorProto::oneof_decl_size() const {
  8785. return _internal_oneof_decl_size();
  8786. }
  8787. inline void DescriptorProto::clear_oneof_decl() {
  8788. oneof_decl_.Clear();
  8789. }
  8790. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
  8791. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
  8792. return oneof_decl_.Mutable(index);
  8793. }
  8794. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >*
  8795. DescriptorProto::mutable_oneof_decl() {
  8796. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
  8797. return &oneof_decl_;
  8798. }
  8799. inline const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& DescriptorProto::_internal_oneof_decl(int index) const {
  8800. return oneof_decl_.Get(index);
  8801. }
  8802. inline const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
  8803. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
  8804. return _internal_oneof_decl(index);
  8805. }
  8806. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::_internal_add_oneof_decl() {
  8807. return oneof_decl_.Add();
  8808. }
  8809. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
  8810. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* _add = _internal_add_oneof_decl();
  8811. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
  8812. return _add;
  8813. }
  8814. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >&
  8815. DescriptorProto::oneof_decl() const {
  8816. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
  8817. return oneof_decl_;
  8818. }
  8819. // optional .google.protobuf.MessageOptions options = 7;
  8820. inline bool DescriptorProto::_internal_has_options() const {
  8821. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  8822. PROTOBUF_ASSUME(!value || options_ != nullptr);
  8823. return value;
  8824. }
  8825. inline bool DescriptorProto::has_options() const {
  8826. return _internal_has_options();
  8827. }
  8828. inline void DescriptorProto::clear_options() {
  8829. if (options_ != nullptr) options_->Clear();
  8830. _has_bits_[0] &= ~0x00000002u;
  8831. }
  8832. inline const ::PROTOBUF_NAMESPACE_ID::MessageOptions& DescriptorProto::_internal_options() const {
  8833. const ::PROTOBUF_NAMESPACE_ID::MessageOptions* p = options_;
  8834. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::MessageOptions&>(
  8835. ::PROTOBUF_NAMESPACE_ID::_MessageOptions_default_instance_);
  8836. }
  8837. inline const ::PROTOBUF_NAMESPACE_ID::MessageOptions& DescriptorProto::options() const {
  8838. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
  8839. return _internal_options();
  8840. }
  8841. inline void DescriptorProto::unsafe_arena_set_allocated_options(
  8842. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options) {
  8843. if (GetArenaForAllocation() == nullptr) {
  8844. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  8845. }
  8846. options_ = options;
  8847. if (options) {
  8848. _has_bits_[0] |= 0x00000002u;
  8849. } else {
  8850. _has_bits_[0] &= ~0x00000002u;
  8851. }
  8852. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.options)
  8853. }
  8854. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::release_options() {
  8855. _has_bits_[0] &= ~0x00000002u;
  8856. ::PROTOBUF_NAMESPACE_ID::MessageOptions* temp = options_;
  8857. options_ = nullptr;
  8858. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8859. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8860. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8861. if (GetArenaForAllocation() == nullptr) { delete old; }
  8862. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8863. if (GetArenaForAllocation() != nullptr) {
  8864. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8865. }
  8866. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8867. return temp;
  8868. }
  8869. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::unsafe_arena_release_options() {
  8870. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.options)
  8871. _has_bits_[0] &= ~0x00000002u;
  8872. ::PROTOBUF_NAMESPACE_ID::MessageOptions* temp = options_;
  8873. options_ = nullptr;
  8874. return temp;
  8875. }
  8876. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::_internal_mutable_options() {
  8877. _has_bits_[0] |= 0x00000002u;
  8878. if (options_ == nullptr) {
  8879. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MessageOptions>(GetArenaForAllocation());
  8880. options_ = p;
  8881. }
  8882. return options_;
  8883. }
  8884. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::mutable_options() {
  8885. ::PROTOBUF_NAMESPACE_ID::MessageOptions* _msg = _internal_mutable_options();
  8886. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
  8887. return _msg;
  8888. }
  8889. inline void DescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::MessageOptions* options) {
  8890. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8891. if (message_arena == nullptr) {
  8892. delete options_;
  8893. }
  8894. if (options) {
  8895. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8896. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::MessageOptions>::GetOwningArena(options);
  8897. if (message_arena != submessage_arena) {
  8898. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8899. message_arena, options, submessage_arena);
  8900. }
  8901. _has_bits_[0] |= 0x00000002u;
  8902. } else {
  8903. _has_bits_[0] &= ~0x00000002u;
  8904. }
  8905. options_ = options;
  8906. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
  8907. }
  8908. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  8909. inline int DescriptorProto::_internal_reserved_range_size() const {
  8910. return reserved_range_.size();
  8911. }
  8912. inline int DescriptorProto::reserved_range_size() const {
  8913. return _internal_reserved_range_size();
  8914. }
  8915. inline void DescriptorProto::clear_reserved_range() {
  8916. reserved_range_.Clear();
  8917. }
  8918. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) {
  8919. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
  8920. return reserved_range_.Mutable(index);
  8921. }
  8922. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >*
  8923. DescriptorProto::mutable_reserved_range() {
  8924. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
  8925. return &reserved_range_;
  8926. }
  8927. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& DescriptorProto::_internal_reserved_range(int index) const {
  8928. return reserved_range_.Get(index);
  8929. }
  8930. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const {
  8931. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
  8932. return _internal_reserved_range(index);
  8933. }
  8934. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::_internal_add_reserved_range() {
  8935. return reserved_range_.Add();
  8936. }
  8937. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() {
  8938. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* _add = _internal_add_reserved_range();
  8939. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
  8940. return _add;
  8941. }
  8942. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >&
  8943. DescriptorProto::reserved_range() const {
  8944. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
  8945. return reserved_range_;
  8946. }
  8947. // repeated string reserved_name = 10;
  8948. inline int DescriptorProto::_internal_reserved_name_size() const {
  8949. return reserved_name_.size();
  8950. }
  8951. inline int DescriptorProto::reserved_name_size() const {
  8952. return _internal_reserved_name_size();
  8953. }
  8954. inline void DescriptorProto::clear_reserved_name() {
  8955. reserved_name_.Clear();
  8956. }
  8957. inline std::string* DescriptorProto::add_reserved_name() {
  8958. std::string* _s = _internal_add_reserved_name();
  8959. // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name)
  8960. return _s;
  8961. }
  8962. inline const std::string& DescriptorProto::_internal_reserved_name(int index) const {
  8963. return reserved_name_.Get(index);
  8964. }
  8965. inline const std::string& DescriptorProto::reserved_name(int index) const {
  8966. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
  8967. return _internal_reserved_name(index);
  8968. }
  8969. inline std::string* DescriptorProto::mutable_reserved_name(int index) {
  8970. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
  8971. return reserved_name_.Mutable(index);
  8972. }
  8973. inline void DescriptorProto::set_reserved_name(int index, const std::string& value) {
  8974. reserved_name_.Mutable(index)->assign(value);
  8975. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  8976. }
  8977. inline void DescriptorProto::set_reserved_name(int index, std::string&& value) {
  8978. reserved_name_.Mutable(index)->assign(std::move(value));
  8979. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  8980. }
  8981. inline void DescriptorProto::set_reserved_name(int index, const char* value) {
  8982. GOOGLE_DCHECK(value != nullptr);
  8983. reserved_name_.Mutable(index)->assign(value);
  8984. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
  8985. }
  8986. inline void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  8987. reserved_name_.Mutable(index)->assign(
  8988. reinterpret_cast<const char*>(value), size);
  8989. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
  8990. }
  8991. inline std::string* DescriptorProto::_internal_add_reserved_name() {
  8992. return reserved_name_.Add();
  8993. }
  8994. inline void DescriptorProto::add_reserved_name(const std::string& value) {
  8995. reserved_name_.Add()->assign(value);
  8996. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  8997. }
  8998. inline void DescriptorProto::add_reserved_name(std::string&& value) {
  8999. reserved_name_.Add(std::move(value));
  9000. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  9001. }
  9002. inline void DescriptorProto::add_reserved_name(const char* value) {
  9003. GOOGLE_DCHECK(value != nullptr);
  9004. reserved_name_.Add()->assign(value);
  9005. // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
  9006. }
  9007. inline void DescriptorProto::add_reserved_name(const char* value, size_t size) {
  9008. reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  9009. // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
  9010. }
  9011. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  9012. DescriptorProto::reserved_name() const {
  9013. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
  9014. return reserved_name_;
  9015. }
  9016. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  9017. DescriptorProto::mutable_reserved_name() {
  9018. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
  9019. return &reserved_name_;
  9020. }
  9021. // -------------------------------------------------------------------
  9022. // ExtensionRangeOptions
  9023. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9024. inline int ExtensionRangeOptions::_internal_uninterpreted_option_size() const {
  9025. return uninterpreted_option_.size();
  9026. }
  9027. inline int ExtensionRangeOptions::uninterpreted_option_size() const {
  9028. return _internal_uninterpreted_option_size();
  9029. }
  9030. inline void ExtensionRangeOptions::clear_uninterpreted_option() {
  9031. uninterpreted_option_.Clear();
  9032. }
  9033. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::mutable_uninterpreted_option(int index) {
  9034. // @@protoc_insertion_point(field_mutable:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9035. return uninterpreted_option_.Mutable(index);
  9036. }
  9037. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  9038. ExtensionRangeOptions::mutable_uninterpreted_option() {
  9039. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9040. return &uninterpreted_option_;
  9041. }
  9042. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ExtensionRangeOptions::_internal_uninterpreted_option(int index) const {
  9043. return uninterpreted_option_.Get(index);
  9044. }
  9045. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ExtensionRangeOptions::uninterpreted_option(int index) const {
  9046. // @@protoc_insertion_point(field_get:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9047. return _internal_uninterpreted_option(index);
  9048. }
  9049. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::_internal_add_uninterpreted_option() {
  9050. return uninterpreted_option_.Add();
  9051. }
  9052. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::add_uninterpreted_option() {
  9053. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  9054. // @@protoc_insertion_point(field_add:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9055. return _add;
  9056. }
  9057. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  9058. ExtensionRangeOptions::uninterpreted_option() const {
  9059. // @@protoc_insertion_point(field_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9060. return uninterpreted_option_;
  9061. }
  9062. // -------------------------------------------------------------------
  9063. // FieldDescriptorProto
  9064. // optional string name = 1;
  9065. inline bool FieldDescriptorProto::_internal_has_name() const {
  9066. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  9067. return value;
  9068. }
  9069. inline bool FieldDescriptorProto::has_name() const {
  9070. return _internal_has_name();
  9071. }
  9072. inline void FieldDescriptorProto::clear_name() {
  9073. name_.ClearToEmpty();
  9074. _has_bits_[0] &= ~0x00000001u;
  9075. }
  9076. inline const std::string& FieldDescriptorProto::name() const {
  9077. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
  9078. return _internal_name();
  9079. }
  9080. template <typename ArgT0, typename... ArgT>
  9081. inline PROTOBUF_ALWAYS_INLINE
  9082. void FieldDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  9083. _has_bits_[0] |= 0x00000001u;
  9084. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9085. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
  9086. }
  9087. inline std::string* FieldDescriptorProto::mutable_name() {
  9088. std::string* _s = _internal_mutable_name();
  9089. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
  9090. return _s;
  9091. }
  9092. inline const std::string& FieldDescriptorProto::_internal_name() const {
  9093. return name_.Get();
  9094. }
  9095. inline void FieldDescriptorProto::_internal_set_name(const std::string& value) {
  9096. _has_bits_[0] |= 0x00000001u;
  9097. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9098. }
  9099. inline std::string* FieldDescriptorProto::_internal_mutable_name() {
  9100. _has_bits_[0] |= 0x00000001u;
  9101. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9102. }
  9103. inline std::string* FieldDescriptorProto::release_name() {
  9104. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name)
  9105. if (!_internal_has_name()) {
  9106. return nullptr;
  9107. }
  9108. _has_bits_[0] &= ~0x00000001u;
  9109. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9110. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9111. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9112. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9113. }
  9114. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9115. return p;
  9116. }
  9117. inline void FieldDescriptorProto::set_allocated_name(std::string* name) {
  9118. if (name != nullptr) {
  9119. _has_bits_[0] |= 0x00000001u;
  9120. } else {
  9121. _has_bits_[0] &= ~0x00000001u;
  9122. }
  9123. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  9124. GetArenaForAllocation());
  9125. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9126. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9127. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9128. }
  9129. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9130. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
  9131. }
  9132. // optional int32 number = 3;
  9133. inline bool FieldDescriptorProto::_internal_has_number() const {
  9134. bool value = (_has_bits_[0] & 0x00000040u) != 0;
  9135. return value;
  9136. }
  9137. inline bool FieldDescriptorProto::has_number() const {
  9138. return _internal_has_number();
  9139. }
  9140. inline void FieldDescriptorProto::clear_number() {
  9141. number_ = 0;
  9142. _has_bits_[0] &= ~0x00000040u;
  9143. }
  9144. inline int32_t FieldDescriptorProto::_internal_number() const {
  9145. return number_;
  9146. }
  9147. inline int32_t FieldDescriptorProto::number() const {
  9148. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
  9149. return _internal_number();
  9150. }
  9151. inline void FieldDescriptorProto::_internal_set_number(int32_t value) {
  9152. _has_bits_[0] |= 0x00000040u;
  9153. number_ = value;
  9154. }
  9155. inline void FieldDescriptorProto::set_number(int32_t value) {
  9156. _internal_set_number(value);
  9157. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
  9158. }
  9159. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  9160. inline bool FieldDescriptorProto::_internal_has_label() const {
  9161. bool value = (_has_bits_[0] & 0x00000200u) != 0;
  9162. return value;
  9163. }
  9164. inline bool FieldDescriptorProto::has_label() const {
  9165. return _internal_has_label();
  9166. }
  9167. inline void FieldDescriptorProto::clear_label() {
  9168. label_ = 1;
  9169. _has_bits_[0] &= ~0x00000200u;
  9170. }
  9171. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label FieldDescriptorProto::_internal_label() const {
  9172. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label >(label_);
  9173. }
  9174. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
  9175. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
  9176. return _internal_label();
  9177. }
  9178. inline void FieldDescriptorProto::_internal_set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value) {
  9179. assert(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_IsValid(value));
  9180. _has_bits_[0] |= 0x00000200u;
  9181. label_ = value;
  9182. }
  9183. inline void FieldDescriptorProto::set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value) {
  9184. _internal_set_label(value);
  9185. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
  9186. }
  9187. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  9188. inline bool FieldDescriptorProto::_internal_has_type() const {
  9189. bool value = (_has_bits_[0] & 0x00000400u) != 0;
  9190. return value;
  9191. }
  9192. inline bool FieldDescriptorProto::has_type() const {
  9193. return _internal_has_type();
  9194. }
  9195. inline void FieldDescriptorProto::clear_type() {
  9196. type_ = 1;
  9197. _has_bits_[0] &= ~0x00000400u;
  9198. }
  9199. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type FieldDescriptorProto::_internal_type() const {
  9200. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type >(type_);
  9201. }
  9202. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
  9203. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
  9204. return _internal_type();
  9205. }
  9206. inline void FieldDescriptorProto::_internal_set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value) {
  9207. assert(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_IsValid(value));
  9208. _has_bits_[0] |= 0x00000400u;
  9209. type_ = value;
  9210. }
  9211. inline void FieldDescriptorProto::set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value) {
  9212. _internal_set_type(value);
  9213. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
  9214. }
  9215. // optional string type_name = 6;
  9216. inline bool FieldDescriptorProto::_internal_has_type_name() const {
  9217. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  9218. return value;
  9219. }
  9220. inline bool FieldDescriptorProto::has_type_name() const {
  9221. return _internal_has_type_name();
  9222. }
  9223. inline void FieldDescriptorProto::clear_type_name() {
  9224. type_name_.ClearToEmpty();
  9225. _has_bits_[0] &= ~0x00000004u;
  9226. }
  9227. inline const std::string& FieldDescriptorProto::type_name() const {
  9228. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
  9229. return _internal_type_name();
  9230. }
  9231. template <typename ArgT0, typename... ArgT>
  9232. inline PROTOBUF_ALWAYS_INLINE
  9233. void FieldDescriptorProto::set_type_name(ArgT0&& arg0, ArgT... args) {
  9234. _has_bits_[0] |= 0x00000004u;
  9235. type_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9236. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
  9237. }
  9238. inline std::string* FieldDescriptorProto::mutable_type_name() {
  9239. std::string* _s = _internal_mutable_type_name();
  9240. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
  9241. return _s;
  9242. }
  9243. inline const std::string& FieldDescriptorProto::_internal_type_name() const {
  9244. return type_name_.Get();
  9245. }
  9246. inline void FieldDescriptorProto::_internal_set_type_name(const std::string& value) {
  9247. _has_bits_[0] |= 0x00000004u;
  9248. type_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9249. }
  9250. inline std::string* FieldDescriptorProto::_internal_mutable_type_name() {
  9251. _has_bits_[0] |= 0x00000004u;
  9252. return type_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9253. }
  9254. inline std::string* FieldDescriptorProto::release_type_name() {
  9255. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name)
  9256. if (!_internal_has_type_name()) {
  9257. return nullptr;
  9258. }
  9259. _has_bits_[0] &= ~0x00000004u;
  9260. auto* p = type_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9261. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9262. if (type_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9263. type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9264. }
  9265. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9266. return p;
  9267. }
  9268. inline void FieldDescriptorProto::set_allocated_type_name(std::string* type_name) {
  9269. if (type_name != nullptr) {
  9270. _has_bits_[0] |= 0x00000004u;
  9271. } else {
  9272. _has_bits_[0] &= ~0x00000004u;
  9273. }
  9274. type_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_name,
  9275. GetArenaForAllocation());
  9276. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9277. if (type_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9278. type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9279. }
  9280. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9281. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  9282. }
  9283. // optional string extendee = 2;
  9284. inline bool FieldDescriptorProto::_internal_has_extendee() const {
  9285. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9286. return value;
  9287. }
  9288. inline bool FieldDescriptorProto::has_extendee() const {
  9289. return _internal_has_extendee();
  9290. }
  9291. inline void FieldDescriptorProto::clear_extendee() {
  9292. extendee_.ClearToEmpty();
  9293. _has_bits_[0] &= ~0x00000002u;
  9294. }
  9295. inline const std::string& FieldDescriptorProto::extendee() const {
  9296. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
  9297. return _internal_extendee();
  9298. }
  9299. template <typename ArgT0, typename... ArgT>
  9300. inline PROTOBUF_ALWAYS_INLINE
  9301. void FieldDescriptorProto::set_extendee(ArgT0&& arg0, ArgT... args) {
  9302. _has_bits_[0] |= 0x00000002u;
  9303. extendee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9304. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
  9305. }
  9306. inline std::string* FieldDescriptorProto::mutable_extendee() {
  9307. std::string* _s = _internal_mutable_extendee();
  9308. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
  9309. return _s;
  9310. }
  9311. inline const std::string& FieldDescriptorProto::_internal_extendee() const {
  9312. return extendee_.Get();
  9313. }
  9314. inline void FieldDescriptorProto::_internal_set_extendee(const std::string& value) {
  9315. _has_bits_[0] |= 0x00000002u;
  9316. extendee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9317. }
  9318. inline std::string* FieldDescriptorProto::_internal_mutable_extendee() {
  9319. _has_bits_[0] |= 0x00000002u;
  9320. return extendee_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9321. }
  9322. inline std::string* FieldDescriptorProto::release_extendee() {
  9323. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee)
  9324. if (!_internal_has_extendee()) {
  9325. return nullptr;
  9326. }
  9327. _has_bits_[0] &= ~0x00000002u;
  9328. auto* p = extendee_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9329. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9330. if (extendee_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9331. extendee_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9332. }
  9333. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9334. return p;
  9335. }
  9336. inline void FieldDescriptorProto::set_allocated_extendee(std::string* extendee) {
  9337. if (extendee != nullptr) {
  9338. _has_bits_[0] |= 0x00000002u;
  9339. } else {
  9340. _has_bits_[0] &= ~0x00000002u;
  9341. }
  9342. extendee_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), extendee,
  9343. GetArenaForAllocation());
  9344. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9345. if (extendee_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9346. extendee_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9347. }
  9348. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9349. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  9350. }
  9351. // optional string default_value = 7;
  9352. inline bool FieldDescriptorProto::_internal_has_default_value() const {
  9353. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  9354. return value;
  9355. }
  9356. inline bool FieldDescriptorProto::has_default_value() const {
  9357. return _internal_has_default_value();
  9358. }
  9359. inline void FieldDescriptorProto::clear_default_value() {
  9360. default_value_.ClearToEmpty();
  9361. _has_bits_[0] &= ~0x00000008u;
  9362. }
  9363. inline const std::string& FieldDescriptorProto::default_value() const {
  9364. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
  9365. return _internal_default_value();
  9366. }
  9367. template <typename ArgT0, typename... ArgT>
  9368. inline PROTOBUF_ALWAYS_INLINE
  9369. void FieldDescriptorProto::set_default_value(ArgT0&& arg0, ArgT... args) {
  9370. _has_bits_[0] |= 0x00000008u;
  9371. default_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9372. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
  9373. }
  9374. inline std::string* FieldDescriptorProto::mutable_default_value() {
  9375. std::string* _s = _internal_mutable_default_value();
  9376. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
  9377. return _s;
  9378. }
  9379. inline const std::string& FieldDescriptorProto::_internal_default_value() const {
  9380. return default_value_.Get();
  9381. }
  9382. inline void FieldDescriptorProto::_internal_set_default_value(const std::string& value) {
  9383. _has_bits_[0] |= 0x00000008u;
  9384. default_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9385. }
  9386. inline std::string* FieldDescriptorProto::_internal_mutable_default_value() {
  9387. _has_bits_[0] |= 0x00000008u;
  9388. return default_value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9389. }
  9390. inline std::string* FieldDescriptorProto::release_default_value() {
  9391. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value)
  9392. if (!_internal_has_default_value()) {
  9393. return nullptr;
  9394. }
  9395. _has_bits_[0] &= ~0x00000008u;
  9396. auto* p = default_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9397. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9398. if (default_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9399. default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9400. }
  9401. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9402. return p;
  9403. }
  9404. inline void FieldDescriptorProto::set_allocated_default_value(std::string* default_value) {
  9405. if (default_value != nullptr) {
  9406. _has_bits_[0] |= 0x00000008u;
  9407. } else {
  9408. _has_bits_[0] &= ~0x00000008u;
  9409. }
  9410. default_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), default_value,
  9411. GetArenaForAllocation());
  9412. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9413. if (default_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9414. default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9415. }
  9416. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9417. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  9418. }
  9419. // optional int32 oneof_index = 9;
  9420. inline bool FieldDescriptorProto::_internal_has_oneof_index() const {
  9421. bool value = (_has_bits_[0] & 0x00000080u) != 0;
  9422. return value;
  9423. }
  9424. inline bool FieldDescriptorProto::has_oneof_index() const {
  9425. return _internal_has_oneof_index();
  9426. }
  9427. inline void FieldDescriptorProto::clear_oneof_index() {
  9428. oneof_index_ = 0;
  9429. _has_bits_[0] &= ~0x00000080u;
  9430. }
  9431. inline int32_t FieldDescriptorProto::_internal_oneof_index() const {
  9432. return oneof_index_;
  9433. }
  9434. inline int32_t FieldDescriptorProto::oneof_index() const {
  9435. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
  9436. return _internal_oneof_index();
  9437. }
  9438. inline void FieldDescriptorProto::_internal_set_oneof_index(int32_t value) {
  9439. _has_bits_[0] |= 0x00000080u;
  9440. oneof_index_ = value;
  9441. }
  9442. inline void FieldDescriptorProto::set_oneof_index(int32_t value) {
  9443. _internal_set_oneof_index(value);
  9444. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
  9445. }
  9446. // optional string json_name = 10;
  9447. inline bool FieldDescriptorProto::_internal_has_json_name() const {
  9448. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  9449. return value;
  9450. }
  9451. inline bool FieldDescriptorProto::has_json_name() const {
  9452. return _internal_has_json_name();
  9453. }
  9454. inline void FieldDescriptorProto::clear_json_name() {
  9455. json_name_.ClearToEmpty();
  9456. _has_bits_[0] &= ~0x00000010u;
  9457. }
  9458. inline const std::string& FieldDescriptorProto::json_name() const {
  9459. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name)
  9460. return _internal_json_name();
  9461. }
  9462. template <typename ArgT0, typename... ArgT>
  9463. inline PROTOBUF_ALWAYS_INLINE
  9464. void FieldDescriptorProto::set_json_name(ArgT0&& arg0, ArgT... args) {
  9465. _has_bits_[0] |= 0x00000010u;
  9466. json_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9467. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name)
  9468. }
  9469. inline std::string* FieldDescriptorProto::mutable_json_name() {
  9470. std::string* _s = _internal_mutable_json_name();
  9471. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name)
  9472. return _s;
  9473. }
  9474. inline const std::string& FieldDescriptorProto::_internal_json_name() const {
  9475. return json_name_.Get();
  9476. }
  9477. inline void FieldDescriptorProto::_internal_set_json_name(const std::string& value) {
  9478. _has_bits_[0] |= 0x00000010u;
  9479. json_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9480. }
  9481. inline std::string* FieldDescriptorProto::_internal_mutable_json_name() {
  9482. _has_bits_[0] |= 0x00000010u;
  9483. return json_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9484. }
  9485. inline std::string* FieldDescriptorProto::release_json_name() {
  9486. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name)
  9487. if (!_internal_has_json_name()) {
  9488. return nullptr;
  9489. }
  9490. _has_bits_[0] &= ~0x00000010u;
  9491. auto* p = json_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9492. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9493. if (json_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9494. json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9495. }
  9496. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9497. return p;
  9498. }
  9499. inline void FieldDescriptorProto::set_allocated_json_name(std::string* json_name) {
  9500. if (json_name != nullptr) {
  9501. _has_bits_[0] |= 0x00000010u;
  9502. } else {
  9503. _has_bits_[0] &= ~0x00000010u;
  9504. }
  9505. json_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json_name,
  9506. GetArenaForAllocation());
  9507. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9508. if (json_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9509. json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9510. }
  9511. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9512. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
  9513. }
  9514. // optional .google.protobuf.FieldOptions options = 8;
  9515. inline bool FieldDescriptorProto::_internal_has_options() const {
  9516. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  9517. PROTOBUF_ASSUME(!value || options_ != nullptr);
  9518. return value;
  9519. }
  9520. inline bool FieldDescriptorProto::has_options() const {
  9521. return _internal_has_options();
  9522. }
  9523. inline void FieldDescriptorProto::clear_options() {
  9524. if (options_ != nullptr) options_->Clear();
  9525. _has_bits_[0] &= ~0x00000020u;
  9526. }
  9527. inline const ::PROTOBUF_NAMESPACE_ID::FieldOptions& FieldDescriptorProto::_internal_options() const {
  9528. const ::PROTOBUF_NAMESPACE_ID::FieldOptions* p = options_;
  9529. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::FieldOptions&>(
  9530. ::PROTOBUF_NAMESPACE_ID::_FieldOptions_default_instance_);
  9531. }
  9532. inline const ::PROTOBUF_NAMESPACE_ID::FieldOptions& FieldDescriptorProto::options() const {
  9533. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
  9534. return _internal_options();
  9535. }
  9536. inline void FieldDescriptorProto::unsafe_arena_set_allocated_options(
  9537. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options) {
  9538. if (GetArenaForAllocation() == nullptr) {
  9539. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  9540. }
  9541. options_ = options;
  9542. if (options) {
  9543. _has_bits_[0] |= 0x00000020u;
  9544. } else {
  9545. _has_bits_[0] &= ~0x00000020u;
  9546. }
  9547. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.options)
  9548. }
  9549. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::release_options() {
  9550. _has_bits_[0] &= ~0x00000020u;
  9551. ::PROTOBUF_NAMESPACE_ID::FieldOptions* temp = options_;
  9552. options_ = nullptr;
  9553. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9554. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  9555. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9556. if (GetArenaForAllocation() == nullptr) { delete old; }
  9557. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9558. if (GetArenaForAllocation() != nullptr) {
  9559. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9560. }
  9561. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  9562. return temp;
  9563. }
  9564. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::unsafe_arena_release_options() {
  9565. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.options)
  9566. _has_bits_[0] &= ~0x00000020u;
  9567. ::PROTOBUF_NAMESPACE_ID::FieldOptions* temp = options_;
  9568. options_ = nullptr;
  9569. return temp;
  9570. }
  9571. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::_internal_mutable_options() {
  9572. _has_bits_[0] |= 0x00000020u;
  9573. if (options_ == nullptr) {
  9574. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldOptions>(GetArenaForAllocation());
  9575. options_ = p;
  9576. }
  9577. return options_;
  9578. }
  9579. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::mutable_options() {
  9580. ::PROTOBUF_NAMESPACE_ID::FieldOptions* _msg = _internal_mutable_options();
  9581. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
  9582. return _msg;
  9583. }
  9584. inline void FieldDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::FieldOptions* options) {
  9585. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  9586. if (message_arena == nullptr) {
  9587. delete options_;
  9588. }
  9589. if (options) {
  9590. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9591. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::FieldOptions>::GetOwningArena(options);
  9592. if (message_arena != submessage_arena) {
  9593. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9594. message_arena, options, submessage_arena);
  9595. }
  9596. _has_bits_[0] |= 0x00000020u;
  9597. } else {
  9598. _has_bits_[0] &= ~0x00000020u;
  9599. }
  9600. options_ = options;
  9601. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
  9602. }
  9603. // optional bool proto3_optional = 17;
  9604. inline bool FieldDescriptorProto::_internal_has_proto3_optional() const {
  9605. bool value = (_has_bits_[0] & 0x00000100u) != 0;
  9606. return value;
  9607. }
  9608. inline bool FieldDescriptorProto::has_proto3_optional() const {
  9609. return _internal_has_proto3_optional();
  9610. }
  9611. inline void FieldDescriptorProto::clear_proto3_optional() {
  9612. proto3_optional_ = false;
  9613. _has_bits_[0] &= ~0x00000100u;
  9614. }
  9615. inline bool FieldDescriptorProto::_internal_proto3_optional() const {
  9616. return proto3_optional_;
  9617. }
  9618. inline bool FieldDescriptorProto::proto3_optional() const {
  9619. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.proto3_optional)
  9620. return _internal_proto3_optional();
  9621. }
  9622. inline void FieldDescriptorProto::_internal_set_proto3_optional(bool value) {
  9623. _has_bits_[0] |= 0x00000100u;
  9624. proto3_optional_ = value;
  9625. }
  9626. inline void FieldDescriptorProto::set_proto3_optional(bool value) {
  9627. _internal_set_proto3_optional(value);
  9628. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.proto3_optional)
  9629. }
  9630. // -------------------------------------------------------------------
  9631. // OneofDescriptorProto
  9632. // optional string name = 1;
  9633. inline bool OneofDescriptorProto::_internal_has_name() const {
  9634. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  9635. return value;
  9636. }
  9637. inline bool OneofDescriptorProto::has_name() const {
  9638. return _internal_has_name();
  9639. }
  9640. inline void OneofDescriptorProto::clear_name() {
  9641. name_.ClearToEmpty();
  9642. _has_bits_[0] &= ~0x00000001u;
  9643. }
  9644. inline const std::string& OneofDescriptorProto::name() const {
  9645. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
  9646. return _internal_name();
  9647. }
  9648. template <typename ArgT0, typename... ArgT>
  9649. inline PROTOBUF_ALWAYS_INLINE
  9650. void OneofDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  9651. _has_bits_[0] |= 0x00000001u;
  9652. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9653. // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
  9654. }
  9655. inline std::string* OneofDescriptorProto::mutable_name() {
  9656. std::string* _s = _internal_mutable_name();
  9657. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
  9658. return _s;
  9659. }
  9660. inline const std::string& OneofDescriptorProto::_internal_name() const {
  9661. return name_.Get();
  9662. }
  9663. inline void OneofDescriptorProto::_internal_set_name(const std::string& value) {
  9664. _has_bits_[0] |= 0x00000001u;
  9665. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9666. }
  9667. inline std::string* OneofDescriptorProto::_internal_mutable_name() {
  9668. _has_bits_[0] |= 0x00000001u;
  9669. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9670. }
  9671. inline std::string* OneofDescriptorProto::release_name() {
  9672. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.name)
  9673. if (!_internal_has_name()) {
  9674. return nullptr;
  9675. }
  9676. _has_bits_[0] &= ~0x00000001u;
  9677. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9678. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9679. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9680. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9681. }
  9682. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9683. return p;
  9684. }
  9685. inline void OneofDescriptorProto::set_allocated_name(std::string* name) {
  9686. if (name != nullptr) {
  9687. _has_bits_[0] |= 0x00000001u;
  9688. } else {
  9689. _has_bits_[0] &= ~0x00000001u;
  9690. }
  9691. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  9692. GetArenaForAllocation());
  9693. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9694. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9695. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9696. }
  9697. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9698. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
  9699. }
  9700. // optional .google.protobuf.OneofOptions options = 2;
  9701. inline bool OneofDescriptorProto::_internal_has_options() const {
  9702. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9703. PROTOBUF_ASSUME(!value || options_ != nullptr);
  9704. return value;
  9705. }
  9706. inline bool OneofDescriptorProto::has_options() const {
  9707. return _internal_has_options();
  9708. }
  9709. inline void OneofDescriptorProto::clear_options() {
  9710. if (options_ != nullptr) options_->Clear();
  9711. _has_bits_[0] &= ~0x00000002u;
  9712. }
  9713. inline const ::PROTOBUF_NAMESPACE_ID::OneofOptions& OneofDescriptorProto::_internal_options() const {
  9714. const ::PROTOBUF_NAMESPACE_ID::OneofOptions* p = options_;
  9715. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::OneofOptions&>(
  9716. ::PROTOBUF_NAMESPACE_ID::_OneofOptions_default_instance_);
  9717. }
  9718. inline const ::PROTOBUF_NAMESPACE_ID::OneofOptions& OneofDescriptorProto::options() const {
  9719. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.options)
  9720. return _internal_options();
  9721. }
  9722. inline void OneofDescriptorProto::unsafe_arena_set_allocated_options(
  9723. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options) {
  9724. if (GetArenaForAllocation() == nullptr) {
  9725. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  9726. }
  9727. options_ = options;
  9728. if (options) {
  9729. _has_bits_[0] |= 0x00000002u;
  9730. } else {
  9731. _has_bits_[0] &= ~0x00000002u;
  9732. }
  9733. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.OneofDescriptorProto.options)
  9734. }
  9735. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::release_options() {
  9736. _has_bits_[0] &= ~0x00000002u;
  9737. ::PROTOBUF_NAMESPACE_ID::OneofOptions* temp = options_;
  9738. options_ = nullptr;
  9739. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9740. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  9741. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9742. if (GetArenaForAllocation() == nullptr) { delete old; }
  9743. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9744. if (GetArenaForAllocation() != nullptr) {
  9745. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9746. }
  9747. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  9748. return temp;
  9749. }
  9750. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::unsafe_arena_release_options() {
  9751. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.options)
  9752. _has_bits_[0] &= ~0x00000002u;
  9753. ::PROTOBUF_NAMESPACE_ID::OneofOptions* temp = options_;
  9754. options_ = nullptr;
  9755. return temp;
  9756. }
  9757. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::_internal_mutable_options() {
  9758. _has_bits_[0] |= 0x00000002u;
  9759. if (options_ == nullptr) {
  9760. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofOptions>(GetArenaForAllocation());
  9761. options_ = p;
  9762. }
  9763. return options_;
  9764. }
  9765. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::mutable_options() {
  9766. ::PROTOBUF_NAMESPACE_ID::OneofOptions* _msg = _internal_mutable_options();
  9767. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.options)
  9768. return _msg;
  9769. }
  9770. inline void OneofDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::OneofOptions* options) {
  9771. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  9772. if (message_arena == nullptr) {
  9773. delete options_;
  9774. }
  9775. if (options) {
  9776. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9777. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::OneofOptions>::GetOwningArena(options);
  9778. if (message_arena != submessage_arena) {
  9779. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9780. message_arena, options, submessage_arena);
  9781. }
  9782. _has_bits_[0] |= 0x00000002u;
  9783. } else {
  9784. _has_bits_[0] &= ~0x00000002u;
  9785. }
  9786. options_ = options;
  9787. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.options)
  9788. }
  9789. // -------------------------------------------------------------------
  9790. // EnumDescriptorProto_EnumReservedRange
  9791. // optional int32 start = 1;
  9792. inline bool EnumDescriptorProto_EnumReservedRange::_internal_has_start() const {
  9793. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  9794. return value;
  9795. }
  9796. inline bool EnumDescriptorProto_EnumReservedRange::has_start() const {
  9797. return _internal_has_start();
  9798. }
  9799. inline void EnumDescriptorProto_EnumReservedRange::clear_start() {
  9800. start_ = 0;
  9801. _has_bits_[0] &= ~0x00000001u;
  9802. }
  9803. inline int32_t EnumDescriptorProto_EnumReservedRange::_internal_start() const {
  9804. return start_;
  9805. }
  9806. inline int32_t EnumDescriptorProto_EnumReservedRange::start() const {
  9807. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  9808. return _internal_start();
  9809. }
  9810. inline void EnumDescriptorProto_EnumReservedRange::_internal_set_start(int32_t value) {
  9811. _has_bits_[0] |= 0x00000001u;
  9812. start_ = value;
  9813. }
  9814. inline void EnumDescriptorProto_EnumReservedRange::set_start(int32_t value) {
  9815. _internal_set_start(value);
  9816. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  9817. }
  9818. // optional int32 end = 2;
  9819. inline bool EnumDescriptorProto_EnumReservedRange::_internal_has_end() const {
  9820. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9821. return value;
  9822. }
  9823. inline bool EnumDescriptorProto_EnumReservedRange::has_end() const {
  9824. return _internal_has_end();
  9825. }
  9826. inline void EnumDescriptorProto_EnumReservedRange::clear_end() {
  9827. end_ = 0;
  9828. _has_bits_[0] &= ~0x00000002u;
  9829. }
  9830. inline int32_t EnumDescriptorProto_EnumReservedRange::_internal_end() const {
  9831. return end_;
  9832. }
  9833. inline int32_t EnumDescriptorProto_EnumReservedRange::end() const {
  9834. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  9835. return _internal_end();
  9836. }
  9837. inline void EnumDescriptorProto_EnumReservedRange::_internal_set_end(int32_t value) {
  9838. _has_bits_[0] |= 0x00000002u;
  9839. end_ = value;
  9840. }
  9841. inline void EnumDescriptorProto_EnumReservedRange::set_end(int32_t value) {
  9842. _internal_set_end(value);
  9843. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  9844. }
  9845. // -------------------------------------------------------------------
  9846. // EnumDescriptorProto
  9847. // optional string name = 1;
  9848. inline bool EnumDescriptorProto::_internal_has_name() const {
  9849. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  9850. return value;
  9851. }
  9852. inline bool EnumDescriptorProto::has_name() const {
  9853. return _internal_has_name();
  9854. }
  9855. inline void EnumDescriptorProto::clear_name() {
  9856. name_.ClearToEmpty();
  9857. _has_bits_[0] &= ~0x00000001u;
  9858. }
  9859. inline const std::string& EnumDescriptorProto::name() const {
  9860. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
  9861. return _internal_name();
  9862. }
  9863. template <typename ArgT0, typename... ArgT>
  9864. inline PROTOBUF_ALWAYS_INLINE
  9865. void EnumDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  9866. _has_bits_[0] |= 0x00000001u;
  9867. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9868. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
  9869. }
  9870. inline std::string* EnumDescriptorProto::mutable_name() {
  9871. std::string* _s = _internal_mutable_name();
  9872. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
  9873. return _s;
  9874. }
  9875. inline const std::string& EnumDescriptorProto::_internal_name() const {
  9876. return name_.Get();
  9877. }
  9878. inline void EnumDescriptorProto::_internal_set_name(const std::string& value) {
  9879. _has_bits_[0] |= 0x00000001u;
  9880. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9881. }
  9882. inline std::string* EnumDescriptorProto::_internal_mutable_name() {
  9883. _has_bits_[0] |= 0x00000001u;
  9884. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9885. }
  9886. inline std::string* EnumDescriptorProto::release_name() {
  9887. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.name)
  9888. if (!_internal_has_name()) {
  9889. return nullptr;
  9890. }
  9891. _has_bits_[0] &= ~0x00000001u;
  9892. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9893. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9894. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9895. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9896. }
  9897. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9898. return p;
  9899. }
  9900. inline void EnumDescriptorProto::set_allocated_name(std::string* name) {
  9901. if (name != nullptr) {
  9902. _has_bits_[0] |= 0x00000001u;
  9903. } else {
  9904. _has_bits_[0] &= ~0x00000001u;
  9905. }
  9906. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  9907. GetArenaForAllocation());
  9908. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9909. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9910. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9911. }
  9912. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9913. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
  9914. }
  9915. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  9916. inline int EnumDescriptorProto::_internal_value_size() const {
  9917. return value_.size();
  9918. }
  9919. inline int EnumDescriptorProto::value_size() const {
  9920. return _internal_value_size();
  9921. }
  9922. inline void EnumDescriptorProto::clear_value() {
  9923. value_.Clear();
  9924. }
  9925. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
  9926. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
  9927. return value_.Mutable(index);
  9928. }
  9929. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >*
  9930. EnumDescriptorProto::mutable_value() {
  9931. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
  9932. return &value_;
  9933. }
  9934. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& EnumDescriptorProto::_internal_value(int index) const {
  9935. return value_.Get(index);
  9936. }
  9937. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
  9938. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
  9939. return _internal_value(index);
  9940. }
  9941. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::_internal_add_value() {
  9942. return value_.Add();
  9943. }
  9944. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
  9945. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* _add = _internal_add_value();
  9946. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
  9947. return _add;
  9948. }
  9949. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >&
  9950. EnumDescriptorProto::value() const {
  9951. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
  9952. return value_;
  9953. }
  9954. // optional .google.protobuf.EnumOptions options = 3;
  9955. inline bool EnumDescriptorProto::_internal_has_options() const {
  9956. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9957. PROTOBUF_ASSUME(!value || options_ != nullptr);
  9958. return value;
  9959. }
  9960. inline bool EnumDescriptorProto::has_options() const {
  9961. return _internal_has_options();
  9962. }
  9963. inline void EnumDescriptorProto::clear_options() {
  9964. if (options_ != nullptr) options_->Clear();
  9965. _has_bits_[0] &= ~0x00000002u;
  9966. }
  9967. inline const ::PROTOBUF_NAMESPACE_ID::EnumOptions& EnumDescriptorProto::_internal_options() const {
  9968. const ::PROTOBUF_NAMESPACE_ID::EnumOptions* p = options_;
  9969. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::EnumOptions&>(
  9970. ::PROTOBUF_NAMESPACE_ID::_EnumOptions_default_instance_);
  9971. }
  9972. inline const ::PROTOBUF_NAMESPACE_ID::EnumOptions& EnumDescriptorProto::options() const {
  9973. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
  9974. return _internal_options();
  9975. }
  9976. inline void EnumDescriptorProto::unsafe_arena_set_allocated_options(
  9977. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options) {
  9978. if (GetArenaForAllocation() == nullptr) {
  9979. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  9980. }
  9981. options_ = options;
  9982. if (options) {
  9983. _has_bits_[0] |= 0x00000002u;
  9984. } else {
  9985. _has_bits_[0] &= ~0x00000002u;
  9986. }
  9987. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumDescriptorProto.options)
  9988. }
  9989. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::release_options() {
  9990. _has_bits_[0] &= ~0x00000002u;
  9991. ::PROTOBUF_NAMESPACE_ID::EnumOptions* temp = options_;
  9992. options_ = nullptr;
  9993. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9994. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  9995. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9996. if (GetArenaForAllocation() == nullptr) { delete old; }
  9997. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9998. if (GetArenaForAllocation() != nullptr) {
  9999. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10000. }
  10001. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10002. return temp;
  10003. }
  10004. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::unsafe_arena_release_options() {
  10005. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.options)
  10006. _has_bits_[0] &= ~0x00000002u;
  10007. ::PROTOBUF_NAMESPACE_ID::EnumOptions* temp = options_;
  10008. options_ = nullptr;
  10009. return temp;
  10010. }
  10011. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::_internal_mutable_options() {
  10012. _has_bits_[0] |= 0x00000002u;
  10013. if (options_ == nullptr) {
  10014. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumOptions>(GetArenaForAllocation());
  10015. options_ = p;
  10016. }
  10017. return options_;
  10018. }
  10019. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::mutable_options() {
  10020. ::PROTOBUF_NAMESPACE_ID::EnumOptions* _msg = _internal_mutable_options();
  10021. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
  10022. return _msg;
  10023. }
  10024. inline void EnumDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumOptions* options) {
  10025. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10026. if (message_arena == nullptr) {
  10027. delete options_;
  10028. }
  10029. if (options) {
  10030. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10031. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::EnumOptions>::GetOwningArena(options);
  10032. if (message_arena != submessage_arena) {
  10033. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10034. message_arena, options, submessage_arena);
  10035. }
  10036. _has_bits_[0] |= 0x00000002u;
  10037. } else {
  10038. _has_bits_[0] &= ~0x00000002u;
  10039. }
  10040. options_ = options;
  10041. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
  10042. }
  10043. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  10044. inline int EnumDescriptorProto::_internal_reserved_range_size() const {
  10045. return reserved_range_.size();
  10046. }
  10047. inline int EnumDescriptorProto::reserved_range_size() const {
  10048. return _internal_reserved_range_size();
  10049. }
  10050. inline void EnumDescriptorProto::clear_reserved_range() {
  10051. reserved_range_.Clear();
  10052. }
  10053. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::mutable_reserved_range(int index) {
  10054. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_range)
  10055. return reserved_range_.Mutable(index);
  10056. }
  10057. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >*
  10058. EnumDescriptorProto::mutable_reserved_range() {
  10059. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_range)
  10060. return &reserved_range_;
  10061. }
  10062. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::_internal_reserved_range(int index) const {
  10063. return reserved_range_.Get(index);
  10064. }
  10065. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::reserved_range(int index) const {
  10066. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_range)
  10067. return _internal_reserved_range(index);
  10068. }
  10069. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::_internal_add_reserved_range() {
  10070. return reserved_range_.Add();
  10071. }
  10072. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::add_reserved_range() {
  10073. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* _add = _internal_add_reserved_range();
  10074. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_range)
  10075. return _add;
  10076. }
  10077. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >&
  10078. EnumDescriptorProto::reserved_range() const {
  10079. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_range)
  10080. return reserved_range_;
  10081. }
  10082. // repeated string reserved_name = 5;
  10083. inline int EnumDescriptorProto::_internal_reserved_name_size() const {
  10084. return reserved_name_.size();
  10085. }
  10086. inline int EnumDescriptorProto::reserved_name_size() const {
  10087. return _internal_reserved_name_size();
  10088. }
  10089. inline void EnumDescriptorProto::clear_reserved_name() {
  10090. reserved_name_.Clear();
  10091. }
  10092. inline std::string* EnumDescriptorProto::add_reserved_name() {
  10093. std::string* _s = _internal_add_reserved_name();
  10094. // @@protoc_insertion_point(field_add_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  10095. return _s;
  10096. }
  10097. inline const std::string& EnumDescriptorProto::_internal_reserved_name(int index) const {
  10098. return reserved_name_.Get(index);
  10099. }
  10100. inline const std::string& EnumDescriptorProto::reserved_name(int index) const {
  10101. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_name)
  10102. return _internal_reserved_name(index);
  10103. }
  10104. inline std::string* EnumDescriptorProto::mutable_reserved_name(int index) {
  10105. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  10106. return reserved_name_.Mutable(index);
  10107. }
  10108. inline void EnumDescriptorProto::set_reserved_name(int index, const std::string& value) {
  10109. reserved_name_.Mutable(index)->assign(value);
  10110. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  10111. }
  10112. inline void EnumDescriptorProto::set_reserved_name(int index, std::string&& value) {
  10113. reserved_name_.Mutable(index)->assign(std::move(value));
  10114. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  10115. }
  10116. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value) {
  10117. GOOGLE_DCHECK(value != nullptr);
  10118. reserved_name_.Mutable(index)->assign(value);
  10119. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.reserved_name)
  10120. }
  10121. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  10122. reserved_name_.Mutable(index)->assign(
  10123. reinterpret_cast<const char*>(value), size);
  10124. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  10125. }
  10126. inline std::string* EnumDescriptorProto::_internal_add_reserved_name() {
  10127. return reserved_name_.Add();
  10128. }
  10129. inline void EnumDescriptorProto::add_reserved_name(const std::string& value) {
  10130. reserved_name_.Add()->assign(value);
  10131. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  10132. }
  10133. inline void EnumDescriptorProto::add_reserved_name(std::string&& value) {
  10134. reserved_name_.Add(std::move(value));
  10135. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  10136. }
  10137. inline void EnumDescriptorProto::add_reserved_name(const char* value) {
  10138. GOOGLE_DCHECK(value != nullptr);
  10139. reserved_name_.Add()->assign(value);
  10140. // @@protoc_insertion_point(field_add_char:google.protobuf.EnumDescriptorProto.reserved_name)
  10141. }
  10142. inline void EnumDescriptorProto::add_reserved_name(const char* value, size_t size) {
  10143. reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  10144. // @@protoc_insertion_point(field_add_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  10145. }
  10146. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  10147. EnumDescriptorProto::reserved_name() const {
  10148. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_name)
  10149. return reserved_name_;
  10150. }
  10151. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  10152. EnumDescriptorProto::mutable_reserved_name() {
  10153. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_name)
  10154. return &reserved_name_;
  10155. }
  10156. // -------------------------------------------------------------------
  10157. // EnumValueDescriptorProto
  10158. // optional string name = 1;
  10159. inline bool EnumValueDescriptorProto::_internal_has_name() const {
  10160. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  10161. return value;
  10162. }
  10163. inline bool EnumValueDescriptorProto::has_name() const {
  10164. return _internal_has_name();
  10165. }
  10166. inline void EnumValueDescriptorProto::clear_name() {
  10167. name_.ClearToEmpty();
  10168. _has_bits_[0] &= ~0x00000001u;
  10169. }
  10170. inline const std::string& EnumValueDescriptorProto::name() const {
  10171. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
  10172. return _internal_name();
  10173. }
  10174. template <typename ArgT0, typename... ArgT>
  10175. inline PROTOBUF_ALWAYS_INLINE
  10176. void EnumValueDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  10177. _has_bits_[0] |= 0x00000001u;
  10178. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10179. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
  10180. }
  10181. inline std::string* EnumValueDescriptorProto::mutable_name() {
  10182. std::string* _s = _internal_mutable_name();
  10183. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
  10184. return _s;
  10185. }
  10186. inline const std::string& EnumValueDescriptorProto::_internal_name() const {
  10187. return name_.Get();
  10188. }
  10189. inline void EnumValueDescriptorProto::_internal_set_name(const std::string& value) {
  10190. _has_bits_[0] |= 0x00000001u;
  10191. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10192. }
  10193. inline std::string* EnumValueDescriptorProto::_internal_mutable_name() {
  10194. _has_bits_[0] |= 0x00000001u;
  10195. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10196. }
  10197. inline std::string* EnumValueDescriptorProto::release_name() {
  10198. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.name)
  10199. if (!_internal_has_name()) {
  10200. return nullptr;
  10201. }
  10202. _has_bits_[0] &= ~0x00000001u;
  10203. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10204. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10205. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10206. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10207. }
  10208. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10209. return p;
  10210. }
  10211. inline void EnumValueDescriptorProto::set_allocated_name(std::string* name) {
  10212. if (name != nullptr) {
  10213. _has_bits_[0] |= 0x00000001u;
  10214. } else {
  10215. _has_bits_[0] &= ~0x00000001u;
  10216. }
  10217. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  10218. GetArenaForAllocation());
  10219. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10220. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10221. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10222. }
  10223. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10224. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  10225. }
  10226. // optional int32 number = 2;
  10227. inline bool EnumValueDescriptorProto::_internal_has_number() const {
  10228. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  10229. return value;
  10230. }
  10231. inline bool EnumValueDescriptorProto::has_number() const {
  10232. return _internal_has_number();
  10233. }
  10234. inline void EnumValueDescriptorProto::clear_number() {
  10235. number_ = 0;
  10236. _has_bits_[0] &= ~0x00000004u;
  10237. }
  10238. inline int32_t EnumValueDescriptorProto::_internal_number() const {
  10239. return number_;
  10240. }
  10241. inline int32_t EnumValueDescriptorProto::number() const {
  10242. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
  10243. return _internal_number();
  10244. }
  10245. inline void EnumValueDescriptorProto::_internal_set_number(int32_t value) {
  10246. _has_bits_[0] |= 0x00000004u;
  10247. number_ = value;
  10248. }
  10249. inline void EnumValueDescriptorProto::set_number(int32_t value) {
  10250. _internal_set_number(value);
  10251. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
  10252. }
  10253. // optional .google.protobuf.EnumValueOptions options = 3;
  10254. inline bool EnumValueDescriptorProto::_internal_has_options() const {
  10255. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  10256. PROTOBUF_ASSUME(!value || options_ != nullptr);
  10257. return value;
  10258. }
  10259. inline bool EnumValueDescriptorProto::has_options() const {
  10260. return _internal_has_options();
  10261. }
  10262. inline void EnumValueDescriptorProto::clear_options() {
  10263. if (options_ != nullptr) options_->Clear();
  10264. _has_bits_[0] &= ~0x00000002u;
  10265. }
  10266. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& EnumValueDescriptorProto::_internal_options() const {
  10267. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* p = options_;
  10268. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions&>(
  10269. ::PROTOBUF_NAMESPACE_ID::_EnumValueOptions_default_instance_);
  10270. }
  10271. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& EnumValueDescriptorProto::options() const {
  10272. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
  10273. return _internal_options();
  10274. }
  10275. inline void EnumValueDescriptorProto::unsafe_arena_set_allocated_options(
  10276. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options) {
  10277. if (GetArenaForAllocation() == nullptr) {
  10278. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  10279. }
  10280. options_ = options;
  10281. if (options) {
  10282. _has_bits_[0] |= 0x00000002u;
  10283. } else {
  10284. _has_bits_[0] &= ~0x00000002u;
  10285. }
  10286. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  10287. }
  10288. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::release_options() {
  10289. _has_bits_[0] &= ~0x00000002u;
  10290. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* temp = options_;
  10291. options_ = nullptr;
  10292. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10293. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10294. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10295. if (GetArenaForAllocation() == nullptr) { delete old; }
  10296. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10297. if (GetArenaForAllocation() != nullptr) {
  10298. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10299. }
  10300. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10301. return temp;
  10302. }
  10303. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::unsafe_arena_release_options() {
  10304. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.options)
  10305. _has_bits_[0] &= ~0x00000002u;
  10306. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* temp = options_;
  10307. options_ = nullptr;
  10308. return temp;
  10309. }
  10310. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::_internal_mutable_options() {
  10311. _has_bits_[0] |= 0x00000002u;
  10312. if (options_ == nullptr) {
  10313. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueOptions>(GetArenaForAllocation());
  10314. options_ = p;
  10315. }
  10316. return options_;
  10317. }
  10318. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
  10319. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* _msg = _internal_mutable_options();
  10320. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
  10321. return _msg;
  10322. }
  10323. inline void EnumValueDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options) {
  10324. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10325. if (message_arena == nullptr) {
  10326. delete options_;
  10327. }
  10328. if (options) {
  10329. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10330. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::EnumValueOptions>::GetOwningArena(options);
  10331. if (message_arena != submessage_arena) {
  10332. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10333. message_arena, options, submessage_arena);
  10334. }
  10335. _has_bits_[0] |= 0x00000002u;
  10336. } else {
  10337. _has_bits_[0] &= ~0x00000002u;
  10338. }
  10339. options_ = options;
  10340. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  10341. }
  10342. // -------------------------------------------------------------------
  10343. // ServiceDescriptorProto
  10344. // optional string name = 1;
  10345. inline bool ServiceDescriptorProto::_internal_has_name() const {
  10346. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  10347. return value;
  10348. }
  10349. inline bool ServiceDescriptorProto::has_name() const {
  10350. return _internal_has_name();
  10351. }
  10352. inline void ServiceDescriptorProto::clear_name() {
  10353. name_.ClearToEmpty();
  10354. _has_bits_[0] &= ~0x00000001u;
  10355. }
  10356. inline const std::string& ServiceDescriptorProto::name() const {
  10357. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
  10358. return _internal_name();
  10359. }
  10360. template <typename ArgT0, typename... ArgT>
  10361. inline PROTOBUF_ALWAYS_INLINE
  10362. void ServiceDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  10363. _has_bits_[0] |= 0x00000001u;
  10364. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10365. // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
  10366. }
  10367. inline std::string* ServiceDescriptorProto::mutable_name() {
  10368. std::string* _s = _internal_mutable_name();
  10369. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
  10370. return _s;
  10371. }
  10372. inline const std::string& ServiceDescriptorProto::_internal_name() const {
  10373. return name_.Get();
  10374. }
  10375. inline void ServiceDescriptorProto::_internal_set_name(const std::string& value) {
  10376. _has_bits_[0] |= 0x00000001u;
  10377. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10378. }
  10379. inline std::string* ServiceDescriptorProto::_internal_mutable_name() {
  10380. _has_bits_[0] |= 0x00000001u;
  10381. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10382. }
  10383. inline std::string* ServiceDescriptorProto::release_name() {
  10384. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.name)
  10385. if (!_internal_has_name()) {
  10386. return nullptr;
  10387. }
  10388. _has_bits_[0] &= ~0x00000001u;
  10389. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10390. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10391. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10392. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10393. }
  10394. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10395. return p;
  10396. }
  10397. inline void ServiceDescriptorProto::set_allocated_name(std::string* name) {
  10398. if (name != nullptr) {
  10399. _has_bits_[0] |= 0x00000001u;
  10400. } else {
  10401. _has_bits_[0] &= ~0x00000001u;
  10402. }
  10403. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  10404. GetArenaForAllocation());
  10405. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10406. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10407. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10408. }
  10409. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10410. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  10411. }
  10412. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  10413. inline int ServiceDescriptorProto::_internal_method_size() const {
  10414. return method_.size();
  10415. }
  10416. inline int ServiceDescriptorProto::method_size() const {
  10417. return _internal_method_size();
  10418. }
  10419. inline void ServiceDescriptorProto::clear_method() {
  10420. method_.Clear();
  10421. }
  10422. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
  10423. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
  10424. return method_.Mutable(index);
  10425. }
  10426. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >*
  10427. ServiceDescriptorProto::mutable_method() {
  10428. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
  10429. return &method_;
  10430. }
  10431. inline const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& ServiceDescriptorProto::_internal_method(int index) const {
  10432. return method_.Get(index);
  10433. }
  10434. inline const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
  10435. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
  10436. return _internal_method(index);
  10437. }
  10438. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::_internal_add_method() {
  10439. return method_.Add();
  10440. }
  10441. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
  10442. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* _add = _internal_add_method();
  10443. // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
  10444. return _add;
  10445. }
  10446. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >&
  10447. ServiceDescriptorProto::method() const {
  10448. // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
  10449. return method_;
  10450. }
  10451. // optional .google.protobuf.ServiceOptions options = 3;
  10452. inline bool ServiceDescriptorProto::_internal_has_options() const {
  10453. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  10454. PROTOBUF_ASSUME(!value || options_ != nullptr);
  10455. return value;
  10456. }
  10457. inline bool ServiceDescriptorProto::has_options() const {
  10458. return _internal_has_options();
  10459. }
  10460. inline void ServiceDescriptorProto::clear_options() {
  10461. if (options_ != nullptr) options_->Clear();
  10462. _has_bits_[0] &= ~0x00000002u;
  10463. }
  10464. inline const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& ServiceDescriptorProto::_internal_options() const {
  10465. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions* p = options_;
  10466. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::ServiceOptions&>(
  10467. ::PROTOBUF_NAMESPACE_ID::_ServiceOptions_default_instance_);
  10468. }
  10469. inline const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& ServiceDescriptorProto::options() const {
  10470. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
  10471. return _internal_options();
  10472. }
  10473. inline void ServiceDescriptorProto::unsafe_arena_set_allocated_options(
  10474. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options) {
  10475. if (GetArenaForAllocation() == nullptr) {
  10476. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  10477. }
  10478. options_ = options;
  10479. if (options) {
  10480. _has_bits_[0] |= 0x00000002u;
  10481. } else {
  10482. _has_bits_[0] &= ~0x00000002u;
  10483. }
  10484. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  10485. }
  10486. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::release_options() {
  10487. _has_bits_[0] &= ~0x00000002u;
  10488. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* temp = options_;
  10489. options_ = nullptr;
  10490. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10491. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10492. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10493. if (GetArenaForAllocation() == nullptr) { delete old; }
  10494. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10495. if (GetArenaForAllocation() != nullptr) {
  10496. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10497. }
  10498. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10499. return temp;
  10500. }
  10501. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::unsafe_arena_release_options() {
  10502. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.options)
  10503. _has_bits_[0] &= ~0x00000002u;
  10504. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* temp = options_;
  10505. options_ = nullptr;
  10506. return temp;
  10507. }
  10508. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::_internal_mutable_options() {
  10509. _has_bits_[0] |= 0x00000002u;
  10510. if (options_ == nullptr) {
  10511. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceOptions>(GetArenaForAllocation());
  10512. options_ = p;
  10513. }
  10514. return options_;
  10515. }
  10516. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::mutable_options() {
  10517. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* _msg = _internal_mutable_options();
  10518. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
  10519. return _msg;
  10520. }
  10521. inline void ServiceDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::ServiceOptions* options) {
  10522. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10523. if (message_arena == nullptr) {
  10524. delete options_;
  10525. }
  10526. if (options) {
  10527. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10528. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::ServiceOptions>::GetOwningArena(options);
  10529. if (message_arena != submessage_arena) {
  10530. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10531. message_arena, options, submessage_arena);
  10532. }
  10533. _has_bits_[0] |= 0x00000002u;
  10534. } else {
  10535. _has_bits_[0] &= ~0x00000002u;
  10536. }
  10537. options_ = options;
  10538. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  10539. }
  10540. // -------------------------------------------------------------------
  10541. // MethodDescriptorProto
  10542. // optional string name = 1;
  10543. inline bool MethodDescriptorProto::_internal_has_name() const {
  10544. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  10545. return value;
  10546. }
  10547. inline bool MethodDescriptorProto::has_name() const {
  10548. return _internal_has_name();
  10549. }
  10550. inline void MethodDescriptorProto::clear_name() {
  10551. name_.ClearToEmpty();
  10552. _has_bits_[0] &= ~0x00000001u;
  10553. }
  10554. inline const std::string& MethodDescriptorProto::name() const {
  10555. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
  10556. return _internal_name();
  10557. }
  10558. template <typename ArgT0, typename... ArgT>
  10559. inline PROTOBUF_ALWAYS_INLINE
  10560. void MethodDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  10561. _has_bits_[0] |= 0x00000001u;
  10562. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10563. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
  10564. }
  10565. inline std::string* MethodDescriptorProto::mutable_name() {
  10566. std::string* _s = _internal_mutable_name();
  10567. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
  10568. return _s;
  10569. }
  10570. inline const std::string& MethodDescriptorProto::_internal_name() const {
  10571. return name_.Get();
  10572. }
  10573. inline void MethodDescriptorProto::_internal_set_name(const std::string& value) {
  10574. _has_bits_[0] |= 0x00000001u;
  10575. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10576. }
  10577. inline std::string* MethodDescriptorProto::_internal_mutable_name() {
  10578. _has_bits_[0] |= 0x00000001u;
  10579. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10580. }
  10581. inline std::string* MethodDescriptorProto::release_name() {
  10582. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.name)
  10583. if (!_internal_has_name()) {
  10584. return nullptr;
  10585. }
  10586. _has_bits_[0] &= ~0x00000001u;
  10587. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10588. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10589. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10590. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10591. }
  10592. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10593. return p;
  10594. }
  10595. inline void MethodDescriptorProto::set_allocated_name(std::string* name) {
  10596. if (name != nullptr) {
  10597. _has_bits_[0] |= 0x00000001u;
  10598. } else {
  10599. _has_bits_[0] &= ~0x00000001u;
  10600. }
  10601. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  10602. GetArenaForAllocation());
  10603. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10604. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10605. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10606. }
  10607. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10608. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
  10609. }
  10610. // optional string input_type = 2;
  10611. inline bool MethodDescriptorProto::_internal_has_input_type() const {
  10612. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  10613. return value;
  10614. }
  10615. inline bool MethodDescriptorProto::has_input_type() const {
  10616. return _internal_has_input_type();
  10617. }
  10618. inline void MethodDescriptorProto::clear_input_type() {
  10619. input_type_.ClearToEmpty();
  10620. _has_bits_[0] &= ~0x00000002u;
  10621. }
  10622. inline const std::string& MethodDescriptorProto::input_type() const {
  10623. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
  10624. return _internal_input_type();
  10625. }
  10626. template <typename ArgT0, typename... ArgT>
  10627. inline PROTOBUF_ALWAYS_INLINE
  10628. void MethodDescriptorProto::set_input_type(ArgT0&& arg0, ArgT... args) {
  10629. _has_bits_[0] |= 0x00000002u;
  10630. input_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10631. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
  10632. }
  10633. inline std::string* MethodDescriptorProto::mutable_input_type() {
  10634. std::string* _s = _internal_mutable_input_type();
  10635. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
  10636. return _s;
  10637. }
  10638. inline const std::string& MethodDescriptorProto::_internal_input_type() const {
  10639. return input_type_.Get();
  10640. }
  10641. inline void MethodDescriptorProto::_internal_set_input_type(const std::string& value) {
  10642. _has_bits_[0] |= 0x00000002u;
  10643. input_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10644. }
  10645. inline std::string* MethodDescriptorProto::_internal_mutable_input_type() {
  10646. _has_bits_[0] |= 0x00000002u;
  10647. return input_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10648. }
  10649. inline std::string* MethodDescriptorProto::release_input_type() {
  10650. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.input_type)
  10651. if (!_internal_has_input_type()) {
  10652. return nullptr;
  10653. }
  10654. _has_bits_[0] &= ~0x00000002u;
  10655. auto* p = input_type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10656. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10657. if (input_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10658. input_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10659. }
  10660. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10661. return p;
  10662. }
  10663. inline void MethodDescriptorProto::set_allocated_input_type(std::string* input_type) {
  10664. if (input_type != nullptr) {
  10665. _has_bits_[0] |= 0x00000002u;
  10666. } else {
  10667. _has_bits_[0] &= ~0x00000002u;
  10668. }
  10669. input_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), input_type,
  10670. GetArenaForAllocation());
  10671. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10672. if (input_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10673. input_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10674. }
  10675. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10676. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  10677. }
  10678. // optional string output_type = 3;
  10679. inline bool MethodDescriptorProto::_internal_has_output_type() const {
  10680. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  10681. return value;
  10682. }
  10683. inline bool MethodDescriptorProto::has_output_type() const {
  10684. return _internal_has_output_type();
  10685. }
  10686. inline void MethodDescriptorProto::clear_output_type() {
  10687. output_type_.ClearToEmpty();
  10688. _has_bits_[0] &= ~0x00000004u;
  10689. }
  10690. inline const std::string& MethodDescriptorProto::output_type() const {
  10691. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
  10692. return _internal_output_type();
  10693. }
  10694. template <typename ArgT0, typename... ArgT>
  10695. inline PROTOBUF_ALWAYS_INLINE
  10696. void MethodDescriptorProto::set_output_type(ArgT0&& arg0, ArgT... args) {
  10697. _has_bits_[0] |= 0x00000004u;
  10698. output_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10699. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
  10700. }
  10701. inline std::string* MethodDescriptorProto::mutable_output_type() {
  10702. std::string* _s = _internal_mutable_output_type();
  10703. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
  10704. return _s;
  10705. }
  10706. inline const std::string& MethodDescriptorProto::_internal_output_type() const {
  10707. return output_type_.Get();
  10708. }
  10709. inline void MethodDescriptorProto::_internal_set_output_type(const std::string& value) {
  10710. _has_bits_[0] |= 0x00000004u;
  10711. output_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10712. }
  10713. inline std::string* MethodDescriptorProto::_internal_mutable_output_type() {
  10714. _has_bits_[0] |= 0x00000004u;
  10715. return output_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10716. }
  10717. inline std::string* MethodDescriptorProto::release_output_type() {
  10718. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.output_type)
  10719. if (!_internal_has_output_type()) {
  10720. return nullptr;
  10721. }
  10722. _has_bits_[0] &= ~0x00000004u;
  10723. auto* p = output_type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10724. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10725. if (output_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10726. output_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10727. }
  10728. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10729. return p;
  10730. }
  10731. inline void MethodDescriptorProto::set_allocated_output_type(std::string* output_type) {
  10732. if (output_type != nullptr) {
  10733. _has_bits_[0] |= 0x00000004u;
  10734. } else {
  10735. _has_bits_[0] &= ~0x00000004u;
  10736. }
  10737. output_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), output_type,
  10738. GetArenaForAllocation());
  10739. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10740. if (output_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10741. output_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10742. }
  10743. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10744. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  10745. }
  10746. // optional .google.protobuf.MethodOptions options = 4;
  10747. inline bool MethodDescriptorProto::_internal_has_options() const {
  10748. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  10749. PROTOBUF_ASSUME(!value || options_ != nullptr);
  10750. return value;
  10751. }
  10752. inline bool MethodDescriptorProto::has_options() const {
  10753. return _internal_has_options();
  10754. }
  10755. inline void MethodDescriptorProto::clear_options() {
  10756. if (options_ != nullptr) options_->Clear();
  10757. _has_bits_[0] &= ~0x00000008u;
  10758. }
  10759. inline const ::PROTOBUF_NAMESPACE_ID::MethodOptions& MethodDescriptorProto::_internal_options() const {
  10760. const ::PROTOBUF_NAMESPACE_ID::MethodOptions* p = options_;
  10761. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::MethodOptions&>(
  10762. ::PROTOBUF_NAMESPACE_ID::_MethodOptions_default_instance_);
  10763. }
  10764. inline const ::PROTOBUF_NAMESPACE_ID::MethodOptions& MethodDescriptorProto::options() const {
  10765. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
  10766. return _internal_options();
  10767. }
  10768. inline void MethodDescriptorProto::unsafe_arena_set_allocated_options(
  10769. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options) {
  10770. if (GetArenaForAllocation() == nullptr) {
  10771. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  10772. }
  10773. options_ = options;
  10774. if (options) {
  10775. _has_bits_[0] |= 0x00000008u;
  10776. } else {
  10777. _has_bits_[0] &= ~0x00000008u;
  10778. }
  10779. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.options)
  10780. }
  10781. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::release_options() {
  10782. _has_bits_[0] &= ~0x00000008u;
  10783. ::PROTOBUF_NAMESPACE_ID::MethodOptions* temp = options_;
  10784. options_ = nullptr;
  10785. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10786. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10787. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10788. if (GetArenaForAllocation() == nullptr) { delete old; }
  10789. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10790. if (GetArenaForAllocation() != nullptr) {
  10791. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10792. }
  10793. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10794. return temp;
  10795. }
  10796. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::unsafe_arena_release_options() {
  10797. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.options)
  10798. _has_bits_[0] &= ~0x00000008u;
  10799. ::PROTOBUF_NAMESPACE_ID::MethodOptions* temp = options_;
  10800. options_ = nullptr;
  10801. return temp;
  10802. }
  10803. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::_internal_mutable_options() {
  10804. _has_bits_[0] |= 0x00000008u;
  10805. if (options_ == nullptr) {
  10806. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodOptions>(GetArenaForAllocation());
  10807. options_ = p;
  10808. }
  10809. return options_;
  10810. }
  10811. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::mutable_options() {
  10812. ::PROTOBUF_NAMESPACE_ID::MethodOptions* _msg = _internal_mutable_options();
  10813. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
  10814. return _msg;
  10815. }
  10816. inline void MethodDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::MethodOptions* options) {
  10817. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10818. if (message_arena == nullptr) {
  10819. delete options_;
  10820. }
  10821. if (options) {
  10822. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10823. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::MethodOptions>::GetOwningArena(options);
  10824. if (message_arena != submessage_arena) {
  10825. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10826. message_arena, options, submessage_arena);
  10827. }
  10828. _has_bits_[0] |= 0x00000008u;
  10829. } else {
  10830. _has_bits_[0] &= ~0x00000008u;
  10831. }
  10832. options_ = options;
  10833. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
  10834. }
  10835. // optional bool client_streaming = 5 [default = false];
  10836. inline bool MethodDescriptorProto::_internal_has_client_streaming() const {
  10837. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  10838. return value;
  10839. }
  10840. inline bool MethodDescriptorProto::has_client_streaming() const {
  10841. return _internal_has_client_streaming();
  10842. }
  10843. inline void MethodDescriptorProto::clear_client_streaming() {
  10844. client_streaming_ = false;
  10845. _has_bits_[0] &= ~0x00000010u;
  10846. }
  10847. inline bool MethodDescriptorProto::_internal_client_streaming() const {
  10848. return client_streaming_;
  10849. }
  10850. inline bool MethodDescriptorProto::client_streaming() const {
  10851. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming)
  10852. return _internal_client_streaming();
  10853. }
  10854. inline void MethodDescriptorProto::_internal_set_client_streaming(bool value) {
  10855. _has_bits_[0] |= 0x00000010u;
  10856. client_streaming_ = value;
  10857. }
  10858. inline void MethodDescriptorProto::set_client_streaming(bool value) {
  10859. _internal_set_client_streaming(value);
  10860. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming)
  10861. }
  10862. // optional bool server_streaming = 6 [default = false];
  10863. inline bool MethodDescriptorProto::_internal_has_server_streaming() const {
  10864. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  10865. return value;
  10866. }
  10867. inline bool MethodDescriptorProto::has_server_streaming() const {
  10868. return _internal_has_server_streaming();
  10869. }
  10870. inline void MethodDescriptorProto::clear_server_streaming() {
  10871. server_streaming_ = false;
  10872. _has_bits_[0] &= ~0x00000020u;
  10873. }
  10874. inline bool MethodDescriptorProto::_internal_server_streaming() const {
  10875. return server_streaming_;
  10876. }
  10877. inline bool MethodDescriptorProto::server_streaming() const {
  10878. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming)
  10879. return _internal_server_streaming();
  10880. }
  10881. inline void MethodDescriptorProto::_internal_set_server_streaming(bool value) {
  10882. _has_bits_[0] |= 0x00000020u;
  10883. server_streaming_ = value;
  10884. }
  10885. inline void MethodDescriptorProto::set_server_streaming(bool value) {
  10886. _internal_set_server_streaming(value);
  10887. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming)
  10888. }
  10889. // -------------------------------------------------------------------
  10890. // FileOptions
  10891. // optional string java_package = 1;
  10892. inline bool FileOptions::_internal_has_java_package() const {
  10893. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  10894. return value;
  10895. }
  10896. inline bool FileOptions::has_java_package() const {
  10897. return _internal_has_java_package();
  10898. }
  10899. inline void FileOptions::clear_java_package() {
  10900. java_package_.ClearToEmpty();
  10901. _has_bits_[0] &= ~0x00000001u;
  10902. }
  10903. inline const std::string& FileOptions::java_package() const {
  10904. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
  10905. return _internal_java_package();
  10906. }
  10907. template <typename ArgT0, typename... ArgT>
  10908. inline PROTOBUF_ALWAYS_INLINE
  10909. void FileOptions::set_java_package(ArgT0&& arg0, ArgT... args) {
  10910. _has_bits_[0] |= 0x00000001u;
  10911. java_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10912. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
  10913. }
  10914. inline std::string* FileOptions::mutable_java_package() {
  10915. std::string* _s = _internal_mutable_java_package();
  10916. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
  10917. return _s;
  10918. }
  10919. inline const std::string& FileOptions::_internal_java_package() const {
  10920. return java_package_.Get();
  10921. }
  10922. inline void FileOptions::_internal_set_java_package(const std::string& value) {
  10923. _has_bits_[0] |= 0x00000001u;
  10924. java_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10925. }
  10926. inline std::string* FileOptions::_internal_mutable_java_package() {
  10927. _has_bits_[0] |= 0x00000001u;
  10928. return java_package_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10929. }
  10930. inline std::string* FileOptions::release_java_package() {
  10931. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_package)
  10932. if (!_internal_has_java_package()) {
  10933. return nullptr;
  10934. }
  10935. _has_bits_[0] &= ~0x00000001u;
  10936. auto* p = java_package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10937. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10938. if (java_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10939. java_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10940. }
  10941. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10942. return p;
  10943. }
  10944. inline void FileOptions::set_allocated_java_package(std::string* java_package) {
  10945. if (java_package != nullptr) {
  10946. _has_bits_[0] |= 0x00000001u;
  10947. } else {
  10948. _has_bits_[0] &= ~0x00000001u;
  10949. }
  10950. java_package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), java_package,
  10951. GetArenaForAllocation());
  10952. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10953. if (java_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10954. java_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10955. }
  10956. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10957. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
  10958. }
  10959. // optional string java_outer_classname = 8;
  10960. inline bool FileOptions::_internal_has_java_outer_classname() const {
  10961. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  10962. return value;
  10963. }
  10964. inline bool FileOptions::has_java_outer_classname() const {
  10965. return _internal_has_java_outer_classname();
  10966. }
  10967. inline void FileOptions::clear_java_outer_classname() {
  10968. java_outer_classname_.ClearToEmpty();
  10969. _has_bits_[0] &= ~0x00000002u;
  10970. }
  10971. inline const std::string& FileOptions::java_outer_classname() const {
  10972. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
  10973. return _internal_java_outer_classname();
  10974. }
  10975. template <typename ArgT0, typename... ArgT>
  10976. inline PROTOBUF_ALWAYS_INLINE
  10977. void FileOptions::set_java_outer_classname(ArgT0&& arg0, ArgT... args) {
  10978. _has_bits_[0] |= 0x00000002u;
  10979. java_outer_classname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10980. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
  10981. }
  10982. inline std::string* FileOptions::mutable_java_outer_classname() {
  10983. std::string* _s = _internal_mutable_java_outer_classname();
  10984. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
  10985. return _s;
  10986. }
  10987. inline const std::string& FileOptions::_internal_java_outer_classname() const {
  10988. return java_outer_classname_.Get();
  10989. }
  10990. inline void FileOptions::_internal_set_java_outer_classname(const std::string& value) {
  10991. _has_bits_[0] |= 0x00000002u;
  10992. java_outer_classname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10993. }
  10994. inline std::string* FileOptions::_internal_mutable_java_outer_classname() {
  10995. _has_bits_[0] |= 0x00000002u;
  10996. return java_outer_classname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10997. }
  10998. inline std::string* FileOptions::release_java_outer_classname() {
  10999. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_outer_classname)
  11000. if (!_internal_has_java_outer_classname()) {
  11001. return nullptr;
  11002. }
  11003. _has_bits_[0] &= ~0x00000002u;
  11004. auto* p = java_outer_classname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11005. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11006. if (java_outer_classname_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11007. java_outer_classname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11008. }
  11009. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11010. return p;
  11011. }
  11012. inline void FileOptions::set_allocated_java_outer_classname(std::string* java_outer_classname) {
  11013. if (java_outer_classname != nullptr) {
  11014. _has_bits_[0] |= 0x00000002u;
  11015. } else {
  11016. _has_bits_[0] &= ~0x00000002u;
  11017. }
  11018. java_outer_classname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), java_outer_classname,
  11019. GetArenaForAllocation());
  11020. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11021. if (java_outer_classname_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11022. java_outer_classname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11023. }
  11024. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11025. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  11026. }
  11027. // optional bool java_multiple_files = 10 [default = false];
  11028. inline bool FileOptions::_internal_has_java_multiple_files() const {
  11029. bool value = (_has_bits_[0] & 0x00000400u) != 0;
  11030. return value;
  11031. }
  11032. inline bool FileOptions::has_java_multiple_files() const {
  11033. return _internal_has_java_multiple_files();
  11034. }
  11035. inline void FileOptions::clear_java_multiple_files() {
  11036. java_multiple_files_ = false;
  11037. _has_bits_[0] &= ~0x00000400u;
  11038. }
  11039. inline bool FileOptions::_internal_java_multiple_files() const {
  11040. return java_multiple_files_;
  11041. }
  11042. inline bool FileOptions::java_multiple_files() const {
  11043. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
  11044. return _internal_java_multiple_files();
  11045. }
  11046. inline void FileOptions::_internal_set_java_multiple_files(bool value) {
  11047. _has_bits_[0] |= 0x00000400u;
  11048. java_multiple_files_ = value;
  11049. }
  11050. inline void FileOptions::set_java_multiple_files(bool value) {
  11051. _internal_set_java_multiple_files(value);
  11052. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
  11053. }
  11054. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  11055. inline bool FileOptions::_internal_has_java_generate_equals_and_hash() const {
  11056. bool value = (_has_bits_[0] & 0x00000800u) != 0;
  11057. return value;
  11058. }
  11059. inline bool FileOptions::has_java_generate_equals_and_hash() const {
  11060. return _internal_has_java_generate_equals_and_hash();
  11061. }
  11062. inline void FileOptions::clear_java_generate_equals_and_hash() {
  11063. java_generate_equals_and_hash_ = false;
  11064. _has_bits_[0] &= ~0x00000800u;
  11065. }
  11066. inline bool FileOptions::_internal_java_generate_equals_and_hash() const {
  11067. return java_generate_equals_and_hash_;
  11068. }
  11069. inline bool FileOptions::java_generate_equals_and_hash() const {
  11070. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
  11071. return _internal_java_generate_equals_and_hash();
  11072. }
  11073. inline void FileOptions::_internal_set_java_generate_equals_and_hash(bool value) {
  11074. _has_bits_[0] |= 0x00000800u;
  11075. java_generate_equals_and_hash_ = value;
  11076. }
  11077. inline void FileOptions::set_java_generate_equals_and_hash(bool value) {
  11078. _internal_set_java_generate_equals_and_hash(value);
  11079. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
  11080. }
  11081. // optional bool java_string_check_utf8 = 27 [default = false];
  11082. inline bool FileOptions::_internal_has_java_string_check_utf8() const {
  11083. bool value = (_has_bits_[0] & 0x00001000u) != 0;
  11084. return value;
  11085. }
  11086. inline bool FileOptions::has_java_string_check_utf8() const {
  11087. return _internal_has_java_string_check_utf8();
  11088. }
  11089. inline void FileOptions::clear_java_string_check_utf8() {
  11090. java_string_check_utf8_ = false;
  11091. _has_bits_[0] &= ~0x00001000u;
  11092. }
  11093. inline bool FileOptions::_internal_java_string_check_utf8() const {
  11094. return java_string_check_utf8_;
  11095. }
  11096. inline bool FileOptions::java_string_check_utf8() const {
  11097. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
  11098. return _internal_java_string_check_utf8();
  11099. }
  11100. inline void FileOptions::_internal_set_java_string_check_utf8(bool value) {
  11101. _has_bits_[0] |= 0x00001000u;
  11102. java_string_check_utf8_ = value;
  11103. }
  11104. inline void FileOptions::set_java_string_check_utf8(bool value) {
  11105. _internal_set_java_string_check_utf8(value);
  11106. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
  11107. }
  11108. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  11109. inline bool FileOptions::_internal_has_optimize_for() const {
  11110. bool value = (_has_bits_[0] & 0x00040000u) != 0;
  11111. return value;
  11112. }
  11113. inline bool FileOptions::has_optimize_for() const {
  11114. return _internal_has_optimize_for();
  11115. }
  11116. inline void FileOptions::clear_optimize_for() {
  11117. optimize_for_ = 1;
  11118. _has_bits_[0] &= ~0x00040000u;
  11119. }
  11120. inline ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode FileOptions::_internal_optimize_for() const {
  11121. return static_cast< ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode >(optimize_for_);
  11122. }
  11123. inline ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode FileOptions::optimize_for() const {
  11124. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
  11125. return _internal_optimize_for();
  11126. }
  11127. inline void FileOptions::_internal_set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value) {
  11128. assert(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_IsValid(value));
  11129. _has_bits_[0] |= 0x00040000u;
  11130. optimize_for_ = value;
  11131. }
  11132. inline void FileOptions::set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value) {
  11133. _internal_set_optimize_for(value);
  11134. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
  11135. }
  11136. // optional string go_package = 11;
  11137. inline bool FileOptions::_internal_has_go_package() const {
  11138. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  11139. return value;
  11140. }
  11141. inline bool FileOptions::has_go_package() const {
  11142. return _internal_has_go_package();
  11143. }
  11144. inline void FileOptions::clear_go_package() {
  11145. go_package_.ClearToEmpty();
  11146. _has_bits_[0] &= ~0x00000004u;
  11147. }
  11148. inline const std::string& FileOptions::go_package() const {
  11149. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
  11150. return _internal_go_package();
  11151. }
  11152. template <typename ArgT0, typename... ArgT>
  11153. inline PROTOBUF_ALWAYS_INLINE
  11154. void FileOptions::set_go_package(ArgT0&& arg0, ArgT... args) {
  11155. _has_bits_[0] |= 0x00000004u;
  11156. go_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11157. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
  11158. }
  11159. inline std::string* FileOptions::mutable_go_package() {
  11160. std::string* _s = _internal_mutable_go_package();
  11161. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
  11162. return _s;
  11163. }
  11164. inline const std::string& FileOptions::_internal_go_package() const {
  11165. return go_package_.Get();
  11166. }
  11167. inline void FileOptions::_internal_set_go_package(const std::string& value) {
  11168. _has_bits_[0] |= 0x00000004u;
  11169. go_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11170. }
  11171. inline std::string* FileOptions::_internal_mutable_go_package() {
  11172. _has_bits_[0] |= 0x00000004u;
  11173. return go_package_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11174. }
  11175. inline std::string* FileOptions::release_go_package() {
  11176. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_package)
  11177. if (!_internal_has_go_package()) {
  11178. return nullptr;
  11179. }
  11180. _has_bits_[0] &= ~0x00000004u;
  11181. auto* p = go_package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11182. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11183. if (go_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11184. go_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11185. }
  11186. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11187. return p;
  11188. }
  11189. inline void FileOptions::set_allocated_go_package(std::string* go_package) {
  11190. if (go_package != nullptr) {
  11191. _has_bits_[0] |= 0x00000004u;
  11192. } else {
  11193. _has_bits_[0] &= ~0x00000004u;
  11194. }
  11195. go_package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), go_package,
  11196. GetArenaForAllocation());
  11197. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11198. if (go_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11199. go_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11200. }
  11201. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11202. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
  11203. }
  11204. // optional bool cc_generic_services = 16 [default = false];
  11205. inline bool FileOptions::_internal_has_cc_generic_services() const {
  11206. bool value = (_has_bits_[0] & 0x00002000u) != 0;
  11207. return value;
  11208. }
  11209. inline bool FileOptions::has_cc_generic_services() const {
  11210. return _internal_has_cc_generic_services();
  11211. }
  11212. inline void FileOptions::clear_cc_generic_services() {
  11213. cc_generic_services_ = false;
  11214. _has_bits_[0] &= ~0x00002000u;
  11215. }
  11216. inline bool FileOptions::_internal_cc_generic_services() const {
  11217. return cc_generic_services_;
  11218. }
  11219. inline bool FileOptions::cc_generic_services() const {
  11220. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
  11221. return _internal_cc_generic_services();
  11222. }
  11223. inline void FileOptions::_internal_set_cc_generic_services(bool value) {
  11224. _has_bits_[0] |= 0x00002000u;
  11225. cc_generic_services_ = value;
  11226. }
  11227. inline void FileOptions::set_cc_generic_services(bool value) {
  11228. _internal_set_cc_generic_services(value);
  11229. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
  11230. }
  11231. // optional bool java_generic_services = 17 [default = false];
  11232. inline bool FileOptions::_internal_has_java_generic_services() const {
  11233. bool value = (_has_bits_[0] & 0x00004000u) != 0;
  11234. return value;
  11235. }
  11236. inline bool FileOptions::has_java_generic_services() const {
  11237. return _internal_has_java_generic_services();
  11238. }
  11239. inline void FileOptions::clear_java_generic_services() {
  11240. java_generic_services_ = false;
  11241. _has_bits_[0] &= ~0x00004000u;
  11242. }
  11243. inline bool FileOptions::_internal_java_generic_services() const {
  11244. return java_generic_services_;
  11245. }
  11246. inline bool FileOptions::java_generic_services() const {
  11247. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
  11248. return _internal_java_generic_services();
  11249. }
  11250. inline void FileOptions::_internal_set_java_generic_services(bool value) {
  11251. _has_bits_[0] |= 0x00004000u;
  11252. java_generic_services_ = value;
  11253. }
  11254. inline void FileOptions::set_java_generic_services(bool value) {
  11255. _internal_set_java_generic_services(value);
  11256. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
  11257. }
  11258. // optional bool py_generic_services = 18 [default = false];
  11259. inline bool FileOptions::_internal_has_py_generic_services() const {
  11260. bool value = (_has_bits_[0] & 0x00008000u) != 0;
  11261. return value;
  11262. }
  11263. inline bool FileOptions::has_py_generic_services() const {
  11264. return _internal_has_py_generic_services();
  11265. }
  11266. inline void FileOptions::clear_py_generic_services() {
  11267. py_generic_services_ = false;
  11268. _has_bits_[0] &= ~0x00008000u;
  11269. }
  11270. inline bool FileOptions::_internal_py_generic_services() const {
  11271. return py_generic_services_;
  11272. }
  11273. inline bool FileOptions::py_generic_services() const {
  11274. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
  11275. return _internal_py_generic_services();
  11276. }
  11277. inline void FileOptions::_internal_set_py_generic_services(bool value) {
  11278. _has_bits_[0] |= 0x00008000u;
  11279. py_generic_services_ = value;
  11280. }
  11281. inline void FileOptions::set_py_generic_services(bool value) {
  11282. _internal_set_py_generic_services(value);
  11283. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
  11284. }
  11285. // optional bool php_generic_services = 42 [default = false];
  11286. inline bool FileOptions::_internal_has_php_generic_services() const {
  11287. bool value = (_has_bits_[0] & 0x00010000u) != 0;
  11288. return value;
  11289. }
  11290. inline bool FileOptions::has_php_generic_services() const {
  11291. return _internal_has_php_generic_services();
  11292. }
  11293. inline void FileOptions::clear_php_generic_services() {
  11294. php_generic_services_ = false;
  11295. _has_bits_[0] &= ~0x00010000u;
  11296. }
  11297. inline bool FileOptions::_internal_php_generic_services() const {
  11298. return php_generic_services_;
  11299. }
  11300. inline bool FileOptions::php_generic_services() const {
  11301. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_generic_services)
  11302. return _internal_php_generic_services();
  11303. }
  11304. inline void FileOptions::_internal_set_php_generic_services(bool value) {
  11305. _has_bits_[0] |= 0x00010000u;
  11306. php_generic_services_ = value;
  11307. }
  11308. inline void FileOptions::set_php_generic_services(bool value) {
  11309. _internal_set_php_generic_services(value);
  11310. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_generic_services)
  11311. }
  11312. // optional bool deprecated = 23 [default = false];
  11313. inline bool FileOptions::_internal_has_deprecated() const {
  11314. bool value = (_has_bits_[0] & 0x00020000u) != 0;
  11315. return value;
  11316. }
  11317. inline bool FileOptions::has_deprecated() const {
  11318. return _internal_has_deprecated();
  11319. }
  11320. inline void FileOptions::clear_deprecated() {
  11321. deprecated_ = false;
  11322. _has_bits_[0] &= ~0x00020000u;
  11323. }
  11324. inline bool FileOptions::_internal_deprecated() const {
  11325. return deprecated_;
  11326. }
  11327. inline bool FileOptions::deprecated() const {
  11328. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
  11329. return _internal_deprecated();
  11330. }
  11331. inline void FileOptions::_internal_set_deprecated(bool value) {
  11332. _has_bits_[0] |= 0x00020000u;
  11333. deprecated_ = value;
  11334. }
  11335. inline void FileOptions::set_deprecated(bool value) {
  11336. _internal_set_deprecated(value);
  11337. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
  11338. }
  11339. // optional bool cc_enable_arenas = 31 [default = true];
  11340. inline bool FileOptions::_internal_has_cc_enable_arenas() const {
  11341. bool value = (_has_bits_[0] & 0x00080000u) != 0;
  11342. return value;
  11343. }
  11344. inline bool FileOptions::has_cc_enable_arenas() const {
  11345. return _internal_has_cc_enable_arenas();
  11346. }
  11347. inline void FileOptions::clear_cc_enable_arenas() {
  11348. cc_enable_arenas_ = true;
  11349. _has_bits_[0] &= ~0x00080000u;
  11350. }
  11351. inline bool FileOptions::_internal_cc_enable_arenas() const {
  11352. return cc_enable_arenas_;
  11353. }
  11354. inline bool FileOptions::cc_enable_arenas() const {
  11355. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas)
  11356. return _internal_cc_enable_arenas();
  11357. }
  11358. inline void FileOptions::_internal_set_cc_enable_arenas(bool value) {
  11359. _has_bits_[0] |= 0x00080000u;
  11360. cc_enable_arenas_ = value;
  11361. }
  11362. inline void FileOptions::set_cc_enable_arenas(bool value) {
  11363. _internal_set_cc_enable_arenas(value);
  11364. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas)
  11365. }
  11366. // optional string objc_class_prefix = 36;
  11367. inline bool FileOptions::_internal_has_objc_class_prefix() const {
  11368. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  11369. return value;
  11370. }
  11371. inline bool FileOptions::has_objc_class_prefix() const {
  11372. return _internal_has_objc_class_prefix();
  11373. }
  11374. inline void FileOptions::clear_objc_class_prefix() {
  11375. objc_class_prefix_.ClearToEmpty();
  11376. _has_bits_[0] &= ~0x00000008u;
  11377. }
  11378. inline const std::string& FileOptions::objc_class_prefix() const {
  11379. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix)
  11380. return _internal_objc_class_prefix();
  11381. }
  11382. template <typename ArgT0, typename... ArgT>
  11383. inline PROTOBUF_ALWAYS_INLINE
  11384. void FileOptions::set_objc_class_prefix(ArgT0&& arg0, ArgT... args) {
  11385. _has_bits_[0] |= 0x00000008u;
  11386. objc_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11387. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix)
  11388. }
  11389. inline std::string* FileOptions::mutable_objc_class_prefix() {
  11390. std::string* _s = _internal_mutable_objc_class_prefix();
  11391. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix)
  11392. return _s;
  11393. }
  11394. inline const std::string& FileOptions::_internal_objc_class_prefix() const {
  11395. return objc_class_prefix_.Get();
  11396. }
  11397. inline void FileOptions::_internal_set_objc_class_prefix(const std::string& value) {
  11398. _has_bits_[0] |= 0x00000008u;
  11399. objc_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11400. }
  11401. inline std::string* FileOptions::_internal_mutable_objc_class_prefix() {
  11402. _has_bits_[0] |= 0x00000008u;
  11403. return objc_class_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11404. }
  11405. inline std::string* FileOptions::release_objc_class_prefix() {
  11406. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_class_prefix)
  11407. if (!_internal_has_objc_class_prefix()) {
  11408. return nullptr;
  11409. }
  11410. _has_bits_[0] &= ~0x00000008u;
  11411. auto* p = objc_class_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11412. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11413. if (objc_class_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11414. objc_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11415. }
  11416. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11417. return p;
  11418. }
  11419. inline void FileOptions::set_allocated_objc_class_prefix(std::string* objc_class_prefix) {
  11420. if (objc_class_prefix != nullptr) {
  11421. _has_bits_[0] |= 0x00000008u;
  11422. } else {
  11423. _has_bits_[0] &= ~0x00000008u;
  11424. }
  11425. objc_class_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), objc_class_prefix,
  11426. GetArenaForAllocation());
  11427. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11428. if (objc_class_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11429. objc_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11430. }
  11431. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11432. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
  11433. }
  11434. // optional string csharp_namespace = 37;
  11435. inline bool FileOptions::_internal_has_csharp_namespace() const {
  11436. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  11437. return value;
  11438. }
  11439. inline bool FileOptions::has_csharp_namespace() const {
  11440. return _internal_has_csharp_namespace();
  11441. }
  11442. inline void FileOptions::clear_csharp_namespace() {
  11443. csharp_namespace_.ClearToEmpty();
  11444. _has_bits_[0] &= ~0x00000010u;
  11445. }
  11446. inline const std::string& FileOptions::csharp_namespace() const {
  11447. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace)
  11448. return _internal_csharp_namespace();
  11449. }
  11450. template <typename ArgT0, typename... ArgT>
  11451. inline PROTOBUF_ALWAYS_INLINE
  11452. void FileOptions::set_csharp_namespace(ArgT0&& arg0, ArgT... args) {
  11453. _has_bits_[0] |= 0x00000010u;
  11454. csharp_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11455. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace)
  11456. }
  11457. inline std::string* FileOptions::mutable_csharp_namespace() {
  11458. std::string* _s = _internal_mutable_csharp_namespace();
  11459. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace)
  11460. return _s;
  11461. }
  11462. inline const std::string& FileOptions::_internal_csharp_namespace() const {
  11463. return csharp_namespace_.Get();
  11464. }
  11465. inline void FileOptions::_internal_set_csharp_namespace(const std::string& value) {
  11466. _has_bits_[0] |= 0x00000010u;
  11467. csharp_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11468. }
  11469. inline std::string* FileOptions::_internal_mutable_csharp_namespace() {
  11470. _has_bits_[0] |= 0x00000010u;
  11471. return csharp_namespace_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11472. }
  11473. inline std::string* FileOptions::release_csharp_namespace() {
  11474. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_namespace)
  11475. if (!_internal_has_csharp_namespace()) {
  11476. return nullptr;
  11477. }
  11478. _has_bits_[0] &= ~0x00000010u;
  11479. auto* p = csharp_namespace_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11480. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11481. if (csharp_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11482. csharp_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11483. }
  11484. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11485. return p;
  11486. }
  11487. inline void FileOptions::set_allocated_csharp_namespace(std::string* csharp_namespace) {
  11488. if (csharp_namespace != nullptr) {
  11489. _has_bits_[0] |= 0x00000010u;
  11490. } else {
  11491. _has_bits_[0] &= ~0x00000010u;
  11492. }
  11493. csharp_namespace_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), csharp_namespace,
  11494. GetArenaForAllocation());
  11495. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11496. if (csharp_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11497. csharp_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11498. }
  11499. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11500. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
  11501. }
  11502. // optional string swift_prefix = 39;
  11503. inline bool FileOptions::_internal_has_swift_prefix() const {
  11504. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  11505. return value;
  11506. }
  11507. inline bool FileOptions::has_swift_prefix() const {
  11508. return _internal_has_swift_prefix();
  11509. }
  11510. inline void FileOptions::clear_swift_prefix() {
  11511. swift_prefix_.ClearToEmpty();
  11512. _has_bits_[0] &= ~0x00000020u;
  11513. }
  11514. inline const std::string& FileOptions::swift_prefix() const {
  11515. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.swift_prefix)
  11516. return _internal_swift_prefix();
  11517. }
  11518. template <typename ArgT0, typename... ArgT>
  11519. inline PROTOBUF_ALWAYS_INLINE
  11520. void FileOptions::set_swift_prefix(ArgT0&& arg0, ArgT... args) {
  11521. _has_bits_[0] |= 0x00000020u;
  11522. swift_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11523. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.swift_prefix)
  11524. }
  11525. inline std::string* FileOptions::mutable_swift_prefix() {
  11526. std::string* _s = _internal_mutable_swift_prefix();
  11527. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.swift_prefix)
  11528. return _s;
  11529. }
  11530. inline const std::string& FileOptions::_internal_swift_prefix() const {
  11531. return swift_prefix_.Get();
  11532. }
  11533. inline void FileOptions::_internal_set_swift_prefix(const std::string& value) {
  11534. _has_bits_[0] |= 0x00000020u;
  11535. swift_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11536. }
  11537. inline std::string* FileOptions::_internal_mutable_swift_prefix() {
  11538. _has_bits_[0] |= 0x00000020u;
  11539. return swift_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11540. }
  11541. inline std::string* FileOptions::release_swift_prefix() {
  11542. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.swift_prefix)
  11543. if (!_internal_has_swift_prefix()) {
  11544. return nullptr;
  11545. }
  11546. _has_bits_[0] &= ~0x00000020u;
  11547. auto* p = swift_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11548. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11549. if (swift_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11550. swift_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11551. }
  11552. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11553. return p;
  11554. }
  11555. inline void FileOptions::set_allocated_swift_prefix(std::string* swift_prefix) {
  11556. if (swift_prefix != nullptr) {
  11557. _has_bits_[0] |= 0x00000020u;
  11558. } else {
  11559. _has_bits_[0] &= ~0x00000020u;
  11560. }
  11561. swift_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), swift_prefix,
  11562. GetArenaForAllocation());
  11563. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11564. if (swift_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11565. swift_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11566. }
  11567. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11568. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.swift_prefix)
  11569. }
  11570. // optional string php_class_prefix = 40;
  11571. inline bool FileOptions::_internal_has_php_class_prefix() const {
  11572. bool value = (_has_bits_[0] & 0x00000040u) != 0;
  11573. return value;
  11574. }
  11575. inline bool FileOptions::has_php_class_prefix() const {
  11576. return _internal_has_php_class_prefix();
  11577. }
  11578. inline void FileOptions::clear_php_class_prefix() {
  11579. php_class_prefix_.ClearToEmpty();
  11580. _has_bits_[0] &= ~0x00000040u;
  11581. }
  11582. inline const std::string& FileOptions::php_class_prefix() const {
  11583. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_class_prefix)
  11584. return _internal_php_class_prefix();
  11585. }
  11586. template <typename ArgT0, typename... ArgT>
  11587. inline PROTOBUF_ALWAYS_INLINE
  11588. void FileOptions::set_php_class_prefix(ArgT0&& arg0, ArgT... args) {
  11589. _has_bits_[0] |= 0x00000040u;
  11590. php_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11591. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_class_prefix)
  11592. }
  11593. inline std::string* FileOptions::mutable_php_class_prefix() {
  11594. std::string* _s = _internal_mutable_php_class_prefix();
  11595. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_class_prefix)
  11596. return _s;
  11597. }
  11598. inline const std::string& FileOptions::_internal_php_class_prefix() const {
  11599. return php_class_prefix_.Get();
  11600. }
  11601. inline void FileOptions::_internal_set_php_class_prefix(const std::string& value) {
  11602. _has_bits_[0] |= 0x00000040u;
  11603. php_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11604. }
  11605. inline std::string* FileOptions::_internal_mutable_php_class_prefix() {
  11606. _has_bits_[0] |= 0x00000040u;
  11607. return php_class_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11608. }
  11609. inline std::string* FileOptions::release_php_class_prefix() {
  11610. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_class_prefix)
  11611. if (!_internal_has_php_class_prefix()) {
  11612. return nullptr;
  11613. }
  11614. _has_bits_[0] &= ~0x00000040u;
  11615. auto* p = php_class_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11616. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11617. if (php_class_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11618. php_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11619. }
  11620. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11621. return p;
  11622. }
  11623. inline void FileOptions::set_allocated_php_class_prefix(std::string* php_class_prefix) {
  11624. if (php_class_prefix != nullptr) {
  11625. _has_bits_[0] |= 0x00000040u;
  11626. } else {
  11627. _has_bits_[0] &= ~0x00000040u;
  11628. }
  11629. php_class_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), php_class_prefix,
  11630. GetArenaForAllocation());
  11631. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11632. if (php_class_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11633. php_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11634. }
  11635. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11636. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_class_prefix)
  11637. }
  11638. // optional string php_namespace = 41;
  11639. inline bool FileOptions::_internal_has_php_namespace() const {
  11640. bool value = (_has_bits_[0] & 0x00000080u) != 0;
  11641. return value;
  11642. }
  11643. inline bool FileOptions::has_php_namespace() const {
  11644. return _internal_has_php_namespace();
  11645. }
  11646. inline void FileOptions::clear_php_namespace() {
  11647. php_namespace_.ClearToEmpty();
  11648. _has_bits_[0] &= ~0x00000080u;
  11649. }
  11650. inline const std::string& FileOptions::php_namespace() const {
  11651. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_namespace)
  11652. return _internal_php_namespace();
  11653. }
  11654. template <typename ArgT0, typename... ArgT>
  11655. inline PROTOBUF_ALWAYS_INLINE
  11656. void FileOptions::set_php_namespace(ArgT0&& arg0, ArgT... args) {
  11657. _has_bits_[0] |= 0x00000080u;
  11658. php_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11659. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_namespace)
  11660. }
  11661. inline std::string* FileOptions::mutable_php_namespace() {
  11662. std::string* _s = _internal_mutable_php_namespace();
  11663. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_namespace)
  11664. return _s;
  11665. }
  11666. inline const std::string& FileOptions::_internal_php_namespace() const {
  11667. return php_namespace_.Get();
  11668. }
  11669. inline void FileOptions::_internal_set_php_namespace(const std::string& value) {
  11670. _has_bits_[0] |= 0x00000080u;
  11671. php_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11672. }
  11673. inline std::string* FileOptions::_internal_mutable_php_namespace() {
  11674. _has_bits_[0] |= 0x00000080u;
  11675. return php_namespace_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11676. }
  11677. inline std::string* FileOptions::release_php_namespace() {
  11678. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_namespace)
  11679. if (!_internal_has_php_namespace()) {
  11680. return nullptr;
  11681. }
  11682. _has_bits_[0] &= ~0x00000080u;
  11683. auto* p = php_namespace_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11684. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11685. if (php_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11686. php_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11687. }
  11688. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11689. return p;
  11690. }
  11691. inline void FileOptions::set_allocated_php_namespace(std::string* php_namespace) {
  11692. if (php_namespace != nullptr) {
  11693. _has_bits_[0] |= 0x00000080u;
  11694. } else {
  11695. _has_bits_[0] &= ~0x00000080u;
  11696. }
  11697. php_namespace_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), php_namespace,
  11698. GetArenaForAllocation());
  11699. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11700. if (php_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11701. php_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11702. }
  11703. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11704. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_namespace)
  11705. }
  11706. // optional string php_metadata_namespace = 44;
  11707. inline bool FileOptions::_internal_has_php_metadata_namespace() const {
  11708. bool value = (_has_bits_[0] & 0x00000100u) != 0;
  11709. return value;
  11710. }
  11711. inline bool FileOptions::has_php_metadata_namespace() const {
  11712. return _internal_has_php_metadata_namespace();
  11713. }
  11714. inline void FileOptions::clear_php_metadata_namespace() {
  11715. php_metadata_namespace_.ClearToEmpty();
  11716. _has_bits_[0] &= ~0x00000100u;
  11717. }
  11718. inline const std::string& FileOptions::php_metadata_namespace() const {
  11719. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_metadata_namespace)
  11720. return _internal_php_metadata_namespace();
  11721. }
  11722. template <typename ArgT0, typename... ArgT>
  11723. inline PROTOBUF_ALWAYS_INLINE
  11724. void FileOptions::set_php_metadata_namespace(ArgT0&& arg0, ArgT... args) {
  11725. _has_bits_[0] |= 0x00000100u;
  11726. php_metadata_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11727. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_metadata_namespace)
  11728. }
  11729. inline std::string* FileOptions::mutable_php_metadata_namespace() {
  11730. std::string* _s = _internal_mutable_php_metadata_namespace();
  11731. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_metadata_namespace)
  11732. return _s;
  11733. }
  11734. inline const std::string& FileOptions::_internal_php_metadata_namespace() const {
  11735. return php_metadata_namespace_.Get();
  11736. }
  11737. inline void FileOptions::_internal_set_php_metadata_namespace(const std::string& value) {
  11738. _has_bits_[0] |= 0x00000100u;
  11739. php_metadata_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11740. }
  11741. inline std::string* FileOptions::_internal_mutable_php_metadata_namespace() {
  11742. _has_bits_[0] |= 0x00000100u;
  11743. return php_metadata_namespace_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11744. }
  11745. inline std::string* FileOptions::release_php_metadata_namespace() {
  11746. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_metadata_namespace)
  11747. if (!_internal_has_php_metadata_namespace()) {
  11748. return nullptr;
  11749. }
  11750. _has_bits_[0] &= ~0x00000100u;
  11751. auto* p = php_metadata_namespace_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11752. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11753. if (php_metadata_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11754. php_metadata_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11755. }
  11756. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11757. return p;
  11758. }
  11759. inline void FileOptions::set_allocated_php_metadata_namespace(std::string* php_metadata_namespace) {
  11760. if (php_metadata_namespace != nullptr) {
  11761. _has_bits_[0] |= 0x00000100u;
  11762. } else {
  11763. _has_bits_[0] &= ~0x00000100u;
  11764. }
  11765. php_metadata_namespace_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), php_metadata_namespace,
  11766. GetArenaForAllocation());
  11767. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11768. if (php_metadata_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11769. php_metadata_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11770. }
  11771. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11772. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
  11773. }
  11774. // optional string ruby_package = 45;
  11775. inline bool FileOptions::_internal_has_ruby_package() const {
  11776. bool value = (_has_bits_[0] & 0x00000200u) != 0;
  11777. return value;
  11778. }
  11779. inline bool FileOptions::has_ruby_package() const {
  11780. return _internal_has_ruby_package();
  11781. }
  11782. inline void FileOptions::clear_ruby_package() {
  11783. ruby_package_.ClearToEmpty();
  11784. _has_bits_[0] &= ~0x00000200u;
  11785. }
  11786. inline const std::string& FileOptions::ruby_package() const {
  11787. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.ruby_package)
  11788. return _internal_ruby_package();
  11789. }
  11790. template <typename ArgT0, typename... ArgT>
  11791. inline PROTOBUF_ALWAYS_INLINE
  11792. void FileOptions::set_ruby_package(ArgT0&& arg0, ArgT... args) {
  11793. _has_bits_[0] |= 0x00000200u;
  11794. ruby_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11795. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.ruby_package)
  11796. }
  11797. inline std::string* FileOptions::mutable_ruby_package() {
  11798. std::string* _s = _internal_mutable_ruby_package();
  11799. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.ruby_package)
  11800. return _s;
  11801. }
  11802. inline const std::string& FileOptions::_internal_ruby_package() const {
  11803. return ruby_package_.Get();
  11804. }
  11805. inline void FileOptions::_internal_set_ruby_package(const std::string& value) {
  11806. _has_bits_[0] |= 0x00000200u;
  11807. ruby_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11808. }
  11809. inline std::string* FileOptions::_internal_mutable_ruby_package() {
  11810. _has_bits_[0] |= 0x00000200u;
  11811. return ruby_package_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11812. }
  11813. inline std::string* FileOptions::release_ruby_package() {
  11814. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.ruby_package)
  11815. if (!_internal_has_ruby_package()) {
  11816. return nullptr;
  11817. }
  11818. _has_bits_[0] &= ~0x00000200u;
  11819. auto* p = ruby_package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11820. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11821. if (ruby_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11822. ruby_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11823. }
  11824. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11825. return p;
  11826. }
  11827. inline void FileOptions::set_allocated_ruby_package(std::string* ruby_package) {
  11828. if (ruby_package != nullptr) {
  11829. _has_bits_[0] |= 0x00000200u;
  11830. } else {
  11831. _has_bits_[0] &= ~0x00000200u;
  11832. }
  11833. ruby_package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ruby_package,
  11834. GetArenaForAllocation());
  11835. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11836. if (ruby_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11837. ruby_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11838. }
  11839. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11840. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ruby_package)
  11841. }
  11842. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11843. inline int FileOptions::_internal_uninterpreted_option_size() const {
  11844. return uninterpreted_option_.size();
  11845. }
  11846. inline int FileOptions::uninterpreted_option_size() const {
  11847. return _internal_uninterpreted_option_size();
  11848. }
  11849. inline void FileOptions::clear_uninterpreted_option() {
  11850. uninterpreted_option_.Clear();
  11851. }
  11852. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
  11853. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
  11854. return uninterpreted_option_.Mutable(index);
  11855. }
  11856. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  11857. FileOptions::mutable_uninterpreted_option() {
  11858. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
  11859. return &uninterpreted_option_;
  11860. }
  11861. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FileOptions::_internal_uninterpreted_option(int index) const {
  11862. return uninterpreted_option_.Get(index);
  11863. }
  11864. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
  11865. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
  11866. return _internal_uninterpreted_option(index);
  11867. }
  11868. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::_internal_add_uninterpreted_option() {
  11869. return uninterpreted_option_.Add();
  11870. }
  11871. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::add_uninterpreted_option() {
  11872. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  11873. // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
  11874. return _add;
  11875. }
  11876. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  11877. FileOptions::uninterpreted_option() const {
  11878. // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
  11879. return uninterpreted_option_;
  11880. }
  11881. // -------------------------------------------------------------------
  11882. // MessageOptions
  11883. // optional bool message_set_wire_format = 1 [default = false];
  11884. inline bool MessageOptions::_internal_has_message_set_wire_format() const {
  11885. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  11886. return value;
  11887. }
  11888. inline bool MessageOptions::has_message_set_wire_format() const {
  11889. return _internal_has_message_set_wire_format();
  11890. }
  11891. inline void MessageOptions::clear_message_set_wire_format() {
  11892. message_set_wire_format_ = false;
  11893. _has_bits_[0] &= ~0x00000001u;
  11894. }
  11895. inline bool MessageOptions::_internal_message_set_wire_format() const {
  11896. return message_set_wire_format_;
  11897. }
  11898. inline bool MessageOptions::message_set_wire_format() const {
  11899. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
  11900. return _internal_message_set_wire_format();
  11901. }
  11902. inline void MessageOptions::_internal_set_message_set_wire_format(bool value) {
  11903. _has_bits_[0] |= 0x00000001u;
  11904. message_set_wire_format_ = value;
  11905. }
  11906. inline void MessageOptions::set_message_set_wire_format(bool value) {
  11907. _internal_set_message_set_wire_format(value);
  11908. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
  11909. }
  11910. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  11911. inline bool MessageOptions::_internal_has_no_standard_descriptor_accessor() const {
  11912. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  11913. return value;
  11914. }
  11915. inline bool MessageOptions::has_no_standard_descriptor_accessor() const {
  11916. return _internal_has_no_standard_descriptor_accessor();
  11917. }
  11918. inline void MessageOptions::clear_no_standard_descriptor_accessor() {
  11919. no_standard_descriptor_accessor_ = false;
  11920. _has_bits_[0] &= ~0x00000002u;
  11921. }
  11922. inline bool MessageOptions::_internal_no_standard_descriptor_accessor() const {
  11923. return no_standard_descriptor_accessor_;
  11924. }
  11925. inline bool MessageOptions::no_standard_descriptor_accessor() const {
  11926. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  11927. return _internal_no_standard_descriptor_accessor();
  11928. }
  11929. inline void MessageOptions::_internal_set_no_standard_descriptor_accessor(bool value) {
  11930. _has_bits_[0] |= 0x00000002u;
  11931. no_standard_descriptor_accessor_ = value;
  11932. }
  11933. inline void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
  11934. _internal_set_no_standard_descriptor_accessor(value);
  11935. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  11936. }
  11937. // optional bool deprecated = 3 [default = false];
  11938. inline bool MessageOptions::_internal_has_deprecated() const {
  11939. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  11940. return value;
  11941. }
  11942. inline bool MessageOptions::has_deprecated() const {
  11943. return _internal_has_deprecated();
  11944. }
  11945. inline void MessageOptions::clear_deprecated() {
  11946. deprecated_ = false;
  11947. _has_bits_[0] &= ~0x00000004u;
  11948. }
  11949. inline bool MessageOptions::_internal_deprecated() const {
  11950. return deprecated_;
  11951. }
  11952. inline bool MessageOptions::deprecated() const {
  11953. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
  11954. return _internal_deprecated();
  11955. }
  11956. inline void MessageOptions::_internal_set_deprecated(bool value) {
  11957. _has_bits_[0] |= 0x00000004u;
  11958. deprecated_ = value;
  11959. }
  11960. inline void MessageOptions::set_deprecated(bool value) {
  11961. _internal_set_deprecated(value);
  11962. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
  11963. }
  11964. // optional bool map_entry = 7;
  11965. inline bool MessageOptions::_internal_has_map_entry() const {
  11966. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  11967. return value;
  11968. }
  11969. inline bool MessageOptions::has_map_entry() const {
  11970. return _internal_has_map_entry();
  11971. }
  11972. inline void MessageOptions::clear_map_entry() {
  11973. map_entry_ = false;
  11974. _has_bits_[0] &= ~0x00000008u;
  11975. }
  11976. inline bool MessageOptions::_internal_map_entry() const {
  11977. return map_entry_;
  11978. }
  11979. inline bool MessageOptions::map_entry() const {
  11980. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
  11981. return _internal_map_entry();
  11982. }
  11983. inline void MessageOptions::_internal_set_map_entry(bool value) {
  11984. _has_bits_[0] |= 0x00000008u;
  11985. map_entry_ = value;
  11986. }
  11987. inline void MessageOptions::set_map_entry(bool value) {
  11988. _internal_set_map_entry(value);
  11989. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry)
  11990. }
  11991. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11992. inline int MessageOptions::_internal_uninterpreted_option_size() const {
  11993. return uninterpreted_option_.size();
  11994. }
  11995. inline int MessageOptions::uninterpreted_option_size() const {
  11996. return _internal_uninterpreted_option_size();
  11997. }
  11998. inline void MessageOptions::clear_uninterpreted_option() {
  11999. uninterpreted_option_.Clear();
  12000. }
  12001. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
  12002. // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
  12003. return uninterpreted_option_.Mutable(index);
  12004. }
  12005. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12006. MessageOptions::mutable_uninterpreted_option() {
  12007. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
  12008. return &uninterpreted_option_;
  12009. }
  12010. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MessageOptions::_internal_uninterpreted_option(int index) const {
  12011. return uninterpreted_option_.Get(index);
  12012. }
  12013. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
  12014. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
  12015. return _internal_uninterpreted_option(index);
  12016. }
  12017. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::_internal_add_uninterpreted_option() {
  12018. return uninterpreted_option_.Add();
  12019. }
  12020. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
  12021. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12022. // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
  12023. return _add;
  12024. }
  12025. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12026. MessageOptions::uninterpreted_option() const {
  12027. // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
  12028. return uninterpreted_option_;
  12029. }
  12030. // -------------------------------------------------------------------
  12031. // FieldOptions
  12032. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  12033. inline bool FieldOptions::_internal_has_ctype() const {
  12034. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12035. return value;
  12036. }
  12037. inline bool FieldOptions::has_ctype() const {
  12038. return _internal_has_ctype();
  12039. }
  12040. inline void FieldOptions::clear_ctype() {
  12041. ctype_ = 0;
  12042. _has_bits_[0] &= ~0x00000001u;
  12043. }
  12044. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType FieldOptions::_internal_ctype() const {
  12045. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType >(ctype_);
  12046. }
  12047. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType FieldOptions::ctype() const {
  12048. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
  12049. return _internal_ctype();
  12050. }
  12051. inline void FieldOptions::_internal_set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value) {
  12052. assert(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType_IsValid(value));
  12053. _has_bits_[0] |= 0x00000001u;
  12054. ctype_ = value;
  12055. }
  12056. inline void FieldOptions::set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value) {
  12057. _internal_set_ctype(value);
  12058. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
  12059. }
  12060. // optional bool packed = 2;
  12061. inline bool FieldOptions::_internal_has_packed() const {
  12062. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12063. return value;
  12064. }
  12065. inline bool FieldOptions::has_packed() const {
  12066. return _internal_has_packed();
  12067. }
  12068. inline void FieldOptions::clear_packed() {
  12069. packed_ = false;
  12070. _has_bits_[0] &= ~0x00000002u;
  12071. }
  12072. inline bool FieldOptions::_internal_packed() const {
  12073. return packed_;
  12074. }
  12075. inline bool FieldOptions::packed() const {
  12076. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
  12077. return _internal_packed();
  12078. }
  12079. inline void FieldOptions::_internal_set_packed(bool value) {
  12080. _has_bits_[0] |= 0x00000002u;
  12081. packed_ = value;
  12082. }
  12083. inline void FieldOptions::set_packed(bool value) {
  12084. _internal_set_packed(value);
  12085. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
  12086. }
  12087. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  12088. inline bool FieldOptions::_internal_has_jstype() const {
  12089. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  12090. return value;
  12091. }
  12092. inline bool FieldOptions::has_jstype() const {
  12093. return _internal_has_jstype();
  12094. }
  12095. inline void FieldOptions::clear_jstype() {
  12096. jstype_ = 0;
  12097. _has_bits_[0] &= ~0x00000020u;
  12098. }
  12099. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType FieldOptions::_internal_jstype() const {
  12100. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType >(jstype_);
  12101. }
  12102. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType FieldOptions::jstype() const {
  12103. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
  12104. return _internal_jstype();
  12105. }
  12106. inline void FieldOptions::_internal_set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value) {
  12107. assert(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_IsValid(value));
  12108. _has_bits_[0] |= 0x00000020u;
  12109. jstype_ = value;
  12110. }
  12111. inline void FieldOptions::set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value) {
  12112. _internal_set_jstype(value);
  12113. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
  12114. }
  12115. // optional bool lazy = 5 [default = false];
  12116. inline bool FieldOptions::_internal_has_lazy() const {
  12117. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  12118. return value;
  12119. }
  12120. inline bool FieldOptions::has_lazy() const {
  12121. return _internal_has_lazy();
  12122. }
  12123. inline void FieldOptions::clear_lazy() {
  12124. lazy_ = false;
  12125. _has_bits_[0] &= ~0x00000004u;
  12126. }
  12127. inline bool FieldOptions::_internal_lazy() const {
  12128. return lazy_;
  12129. }
  12130. inline bool FieldOptions::lazy() const {
  12131. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
  12132. return _internal_lazy();
  12133. }
  12134. inline void FieldOptions::_internal_set_lazy(bool value) {
  12135. _has_bits_[0] |= 0x00000004u;
  12136. lazy_ = value;
  12137. }
  12138. inline void FieldOptions::set_lazy(bool value) {
  12139. _internal_set_lazy(value);
  12140. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
  12141. }
  12142. // optional bool deprecated = 3 [default = false];
  12143. inline bool FieldOptions::_internal_has_deprecated() const {
  12144. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  12145. return value;
  12146. }
  12147. inline bool FieldOptions::has_deprecated() const {
  12148. return _internal_has_deprecated();
  12149. }
  12150. inline void FieldOptions::clear_deprecated() {
  12151. deprecated_ = false;
  12152. _has_bits_[0] &= ~0x00000008u;
  12153. }
  12154. inline bool FieldOptions::_internal_deprecated() const {
  12155. return deprecated_;
  12156. }
  12157. inline bool FieldOptions::deprecated() const {
  12158. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
  12159. return _internal_deprecated();
  12160. }
  12161. inline void FieldOptions::_internal_set_deprecated(bool value) {
  12162. _has_bits_[0] |= 0x00000008u;
  12163. deprecated_ = value;
  12164. }
  12165. inline void FieldOptions::set_deprecated(bool value) {
  12166. _internal_set_deprecated(value);
  12167. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
  12168. }
  12169. // optional bool weak = 10 [default = false];
  12170. inline bool FieldOptions::_internal_has_weak() const {
  12171. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  12172. return value;
  12173. }
  12174. inline bool FieldOptions::has_weak() const {
  12175. return _internal_has_weak();
  12176. }
  12177. inline void FieldOptions::clear_weak() {
  12178. weak_ = false;
  12179. _has_bits_[0] &= ~0x00000010u;
  12180. }
  12181. inline bool FieldOptions::_internal_weak() const {
  12182. return weak_;
  12183. }
  12184. inline bool FieldOptions::weak() const {
  12185. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
  12186. return _internal_weak();
  12187. }
  12188. inline void FieldOptions::_internal_set_weak(bool value) {
  12189. _has_bits_[0] |= 0x00000010u;
  12190. weak_ = value;
  12191. }
  12192. inline void FieldOptions::set_weak(bool value) {
  12193. _internal_set_weak(value);
  12194. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
  12195. }
  12196. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12197. inline int FieldOptions::_internal_uninterpreted_option_size() const {
  12198. return uninterpreted_option_.size();
  12199. }
  12200. inline int FieldOptions::uninterpreted_option_size() const {
  12201. return _internal_uninterpreted_option_size();
  12202. }
  12203. inline void FieldOptions::clear_uninterpreted_option() {
  12204. uninterpreted_option_.Clear();
  12205. }
  12206. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
  12207. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
  12208. return uninterpreted_option_.Mutable(index);
  12209. }
  12210. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12211. FieldOptions::mutable_uninterpreted_option() {
  12212. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
  12213. return &uninterpreted_option_;
  12214. }
  12215. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FieldOptions::_internal_uninterpreted_option(int index) const {
  12216. return uninterpreted_option_.Get(index);
  12217. }
  12218. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
  12219. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
  12220. return _internal_uninterpreted_option(index);
  12221. }
  12222. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::_internal_add_uninterpreted_option() {
  12223. return uninterpreted_option_.Add();
  12224. }
  12225. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
  12226. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12227. // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
  12228. return _add;
  12229. }
  12230. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12231. FieldOptions::uninterpreted_option() const {
  12232. // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
  12233. return uninterpreted_option_;
  12234. }
  12235. // -------------------------------------------------------------------
  12236. // OneofOptions
  12237. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12238. inline int OneofOptions::_internal_uninterpreted_option_size() const {
  12239. return uninterpreted_option_.size();
  12240. }
  12241. inline int OneofOptions::uninterpreted_option_size() const {
  12242. return _internal_uninterpreted_option_size();
  12243. }
  12244. inline void OneofOptions::clear_uninterpreted_option() {
  12245. uninterpreted_option_.Clear();
  12246. }
  12247. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::mutable_uninterpreted_option(int index) {
  12248. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninterpreted_option)
  12249. return uninterpreted_option_.Mutable(index);
  12250. }
  12251. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12252. OneofOptions::mutable_uninterpreted_option() {
  12253. // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.uninterpreted_option)
  12254. return &uninterpreted_option_;
  12255. }
  12256. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& OneofOptions::_internal_uninterpreted_option(int index) const {
  12257. return uninterpreted_option_.Get(index);
  12258. }
  12259. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& OneofOptions::uninterpreted_option(int index) const {
  12260. // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpreted_option)
  12261. return _internal_uninterpreted_option(index);
  12262. }
  12263. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::_internal_add_uninterpreted_option() {
  12264. return uninterpreted_option_.Add();
  12265. }
  12266. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::add_uninterpreted_option() {
  12267. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12268. // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpreted_option)
  12269. return _add;
  12270. }
  12271. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12272. OneofOptions::uninterpreted_option() const {
  12273. // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpreted_option)
  12274. return uninterpreted_option_;
  12275. }
  12276. // -------------------------------------------------------------------
  12277. // EnumOptions
  12278. // optional bool allow_alias = 2;
  12279. inline bool EnumOptions::_internal_has_allow_alias() const {
  12280. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12281. return value;
  12282. }
  12283. inline bool EnumOptions::has_allow_alias() const {
  12284. return _internal_has_allow_alias();
  12285. }
  12286. inline void EnumOptions::clear_allow_alias() {
  12287. allow_alias_ = false;
  12288. _has_bits_[0] &= ~0x00000001u;
  12289. }
  12290. inline bool EnumOptions::_internal_allow_alias() const {
  12291. return allow_alias_;
  12292. }
  12293. inline bool EnumOptions::allow_alias() const {
  12294. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
  12295. return _internal_allow_alias();
  12296. }
  12297. inline void EnumOptions::_internal_set_allow_alias(bool value) {
  12298. _has_bits_[0] |= 0x00000001u;
  12299. allow_alias_ = value;
  12300. }
  12301. inline void EnumOptions::set_allow_alias(bool value) {
  12302. _internal_set_allow_alias(value);
  12303. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
  12304. }
  12305. // optional bool deprecated = 3 [default = false];
  12306. inline bool EnumOptions::_internal_has_deprecated() const {
  12307. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12308. return value;
  12309. }
  12310. inline bool EnumOptions::has_deprecated() const {
  12311. return _internal_has_deprecated();
  12312. }
  12313. inline void EnumOptions::clear_deprecated() {
  12314. deprecated_ = false;
  12315. _has_bits_[0] &= ~0x00000002u;
  12316. }
  12317. inline bool EnumOptions::_internal_deprecated() const {
  12318. return deprecated_;
  12319. }
  12320. inline bool EnumOptions::deprecated() const {
  12321. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
  12322. return _internal_deprecated();
  12323. }
  12324. inline void EnumOptions::_internal_set_deprecated(bool value) {
  12325. _has_bits_[0] |= 0x00000002u;
  12326. deprecated_ = value;
  12327. }
  12328. inline void EnumOptions::set_deprecated(bool value) {
  12329. _internal_set_deprecated(value);
  12330. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
  12331. }
  12332. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12333. inline int EnumOptions::_internal_uninterpreted_option_size() const {
  12334. return uninterpreted_option_.size();
  12335. }
  12336. inline int EnumOptions::uninterpreted_option_size() const {
  12337. return _internal_uninterpreted_option_size();
  12338. }
  12339. inline void EnumOptions::clear_uninterpreted_option() {
  12340. uninterpreted_option_.Clear();
  12341. }
  12342. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
  12343. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
  12344. return uninterpreted_option_.Mutable(index);
  12345. }
  12346. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12347. EnumOptions::mutable_uninterpreted_option() {
  12348. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
  12349. return &uninterpreted_option_;
  12350. }
  12351. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumOptions::_internal_uninterpreted_option(int index) const {
  12352. return uninterpreted_option_.Get(index);
  12353. }
  12354. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
  12355. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
  12356. return _internal_uninterpreted_option(index);
  12357. }
  12358. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::_internal_add_uninterpreted_option() {
  12359. return uninterpreted_option_.Add();
  12360. }
  12361. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
  12362. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12363. // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
  12364. return _add;
  12365. }
  12366. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12367. EnumOptions::uninterpreted_option() const {
  12368. // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
  12369. return uninterpreted_option_;
  12370. }
  12371. // -------------------------------------------------------------------
  12372. // EnumValueOptions
  12373. // optional bool deprecated = 1 [default = false];
  12374. inline bool EnumValueOptions::_internal_has_deprecated() const {
  12375. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12376. return value;
  12377. }
  12378. inline bool EnumValueOptions::has_deprecated() const {
  12379. return _internal_has_deprecated();
  12380. }
  12381. inline void EnumValueOptions::clear_deprecated() {
  12382. deprecated_ = false;
  12383. _has_bits_[0] &= ~0x00000001u;
  12384. }
  12385. inline bool EnumValueOptions::_internal_deprecated() const {
  12386. return deprecated_;
  12387. }
  12388. inline bool EnumValueOptions::deprecated() const {
  12389. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
  12390. return _internal_deprecated();
  12391. }
  12392. inline void EnumValueOptions::_internal_set_deprecated(bool value) {
  12393. _has_bits_[0] |= 0x00000001u;
  12394. deprecated_ = value;
  12395. }
  12396. inline void EnumValueOptions::set_deprecated(bool value) {
  12397. _internal_set_deprecated(value);
  12398. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
  12399. }
  12400. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12401. inline int EnumValueOptions::_internal_uninterpreted_option_size() const {
  12402. return uninterpreted_option_.size();
  12403. }
  12404. inline int EnumValueOptions::uninterpreted_option_size() const {
  12405. return _internal_uninterpreted_option_size();
  12406. }
  12407. inline void EnumValueOptions::clear_uninterpreted_option() {
  12408. uninterpreted_option_.Clear();
  12409. }
  12410. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
  12411. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
  12412. return uninterpreted_option_.Mutable(index);
  12413. }
  12414. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12415. EnumValueOptions::mutable_uninterpreted_option() {
  12416. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  12417. return &uninterpreted_option_;
  12418. }
  12419. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumValueOptions::_internal_uninterpreted_option(int index) const {
  12420. return uninterpreted_option_.Get(index);
  12421. }
  12422. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
  12423. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
  12424. return _internal_uninterpreted_option(index);
  12425. }
  12426. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::_internal_add_uninterpreted_option() {
  12427. return uninterpreted_option_.Add();
  12428. }
  12429. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
  12430. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12431. // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
  12432. return _add;
  12433. }
  12434. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12435. EnumValueOptions::uninterpreted_option() const {
  12436. // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  12437. return uninterpreted_option_;
  12438. }
  12439. // -------------------------------------------------------------------
  12440. // ServiceOptions
  12441. // optional bool deprecated = 33 [default = false];
  12442. inline bool ServiceOptions::_internal_has_deprecated() const {
  12443. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12444. return value;
  12445. }
  12446. inline bool ServiceOptions::has_deprecated() const {
  12447. return _internal_has_deprecated();
  12448. }
  12449. inline void ServiceOptions::clear_deprecated() {
  12450. deprecated_ = false;
  12451. _has_bits_[0] &= ~0x00000001u;
  12452. }
  12453. inline bool ServiceOptions::_internal_deprecated() const {
  12454. return deprecated_;
  12455. }
  12456. inline bool ServiceOptions::deprecated() const {
  12457. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
  12458. return _internal_deprecated();
  12459. }
  12460. inline void ServiceOptions::_internal_set_deprecated(bool value) {
  12461. _has_bits_[0] |= 0x00000001u;
  12462. deprecated_ = value;
  12463. }
  12464. inline void ServiceOptions::set_deprecated(bool value) {
  12465. _internal_set_deprecated(value);
  12466. // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
  12467. }
  12468. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12469. inline int ServiceOptions::_internal_uninterpreted_option_size() const {
  12470. return uninterpreted_option_.size();
  12471. }
  12472. inline int ServiceOptions::uninterpreted_option_size() const {
  12473. return _internal_uninterpreted_option_size();
  12474. }
  12475. inline void ServiceOptions::clear_uninterpreted_option() {
  12476. uninterpreted_option_.Clear();
  12477. }
  12478. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
  12479. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
  12480. return uninterpreted_option_.Mutable(index);
  12481. }
  12482. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12483. ServiceOptions::mutable_uninterpreted_option() {
  12484. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
  12485. return &uninterpreted_option_;
  12486. }
  12487. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ServiceOptions::_internal_uninterpreted_option(int index) const {
  12488. return uninterpreted_option_.Get(index);
  12489. }
  12490. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
  12491. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
  12492. return _internal_uninterpreted_option(index);
  12493. }
  12494. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::_internal_add_uninterpreted_option() {
  12495. return uninterpreted_option_.Add();
  12496. }
  12497. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
  12498. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12499. // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
  12500. return _add;
  12501. }
  12502. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12503. ServiceOptions::uninterpreted_option() const {
  12504. // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
  12505. return uninterpreted_option_;
  12506. }
  12507. // -------------------------------------------------------------------
  12508. // MethodOptions
  12509. // optional bool deprecated = 33 [default = false];
  12510. inline bool MethodOptions::_internal_has_deprecated() const {
  12511. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12512. return value;
  12513. }
  12514. inline bool MethodOptions::has_deprecated() const {
  12515. return _internal_has_deprecated();
  12516. }
  12517. inline void MethodOptions::clear_deprecated() {
  12518. deprecated_ = false;
  12519. _has_bits_[0] &= ~0x00000001u;
  12520. }
  12521. inline bool MethodOptions::_internal_deprecated() const {
  12522. return deprecated_;
  12523. }
  12524. inline bool MethodOptions::deprecated() const {
  12525. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
  12526. return _internal_deprecated();
  12527. }
  12528. inline void MethodOptions::_internal_set_deprecated(bool value) {
  12529. _has_bits_[0] |= 0x00000001u;
  12530. deprecated_ = value;
  12531. }
  12532. inline void MethodOptions::set_deprecated(bool value) {
  12533. _internal_set_deprecated(value);
  12534. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
  12535. }
  12536. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  12537. inline bool MethodOptions::_internal_has_idempotency_level() const {
  12538. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12539. return value;
  12540. }
  12541. inline bool MethodOptions::has_idempotency_level() const {
  12542. return _internal_has_idempotency_level();
  12543. }
  12544. inline void MethodOptions::clear_idempotency_level() {
  12545. idempotency_level_ = 0;
  12546. _has_bits_[0] &= ~0x00000002u;
  12547. }
  12548. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel MethodOptions::_internal_idempotency_level() const {
  12549. return static_cast< ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel >(idempotency_level_);
  12550. }
  12551. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel MethodOptions::idempotency_level() const {
  12552. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.idempotency_level)
  12553. return _internal_idempotency_level();
  12554. }
  12555. inline void MethodOptions::_internal_set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value) {
  12556. assert(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_IsValid(value));
  12557. _has_bits_[0] |= 0x00000002u;
  12558. idempotency_level_ = value;
  12559. }
  12560. inline void MethodOptions::set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value) {
  12561. _internal_set_idempotency_level(value);
  12562. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.idempotency_level)
  12563. }
  12564. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12565. inline int MethodOptions::_internal_uninterpreted_option_size() const {
  12566. return uninterpreted_option_.size();
  12567. }
  12568. inline int MethodOptions::uninterpreted_option_size() const {
  12569. return _internal_uninterpreted_option_size();
  12570. }
  12571. inline void MethodOptions::clear_uninterpreted_option() {
  12572. uninterpreted_option_.Clear();
  12573. }
  12574. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
  12575. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
  12576. return uninterpreted_option_.Mutable(index);
  12577. }
  12578. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12579. MethodOptions::mutable_uninterpreted_option() {
  12580. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
  12581. return &uninterpreted_option_;
  12582. }
  12583. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MethodOptions::_internal_uninterpreted_option(int index) const {
  12584. return uninterpreted_option_.Get(index);
  12585. }
  12586. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
  12587. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
  12588. return _internal_uninterpreted_option(index);
  12589. }
  12590. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::_internal_add_uninterpreted_option() {
  12591. return uninterpreted_option_.Add();
  12592. }
  12593. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
  12594. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12595. // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
  12596. return _add;
  12597. }
  12598. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12599. MethodOptions::uninterpreted_option() const {
  12600. // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
  12601. return uninterpreted_option_;
  12602. }
  12603. // -------------------------------------------------------------------
  12604. // UninterpretedOption_NamePart
  12605. // required string name_part = 1;
  12606. inline bool UninterpretedOption_NamePart::_internal_has_name_part() const {
  12607. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12608. return value;
  12609. }
  12610. inline bool UninterpretedOption_NamePart::has_name_part() const {
  12611. return _internal_has_name_part();
  12612. }
  12613. inline void UninterpretedOption_NamePart::clear_name_part() {
  12614. name_part_.ClearToEmpty();
  12615. _has_bits_[0] &= ~0x00000001u;
  12616. }
  12617. inline const std::string& UninterpretedOption_NamePart::name_part() const {
  12618. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
  12619. return _internal_name_part();
  12620. }
  12621. template <typename ArgT0, typename... ArgT>
  12622. inline PROTOBUF_ALWAYS_INLINE
  12623. void UninterpretedOption_NamePart::set_name_part(ArgT0&& arg0, ArgT... args) {
  12624. _has_bits_[0] |= 0x00000001u;
  12625. name_part_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  12626. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
  12627. }
  12628. inline std::string* UninterpretedOption_NamePart::mutable_name_part() {
  12629. std::string* _s = _internal_mutable_name_part();
  12630. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
  12631. return _s;
  12632. }
  12633. inline const std::string& UninterpretedOption_NamePart::_internal_name_part() const {
  12634. return name_part_.Get();
  12635. }
  12636. inline void UninterpretedOption_NamePart::_internal_set_name_part(const std::string& value) {
  12637. _has_bits_[0] |= 0x00000001u;
  12638. name_part_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  12639. }
  12640. inline std::string* UninterpretedOption_NamePart::_internal_mutable_name_part() {
  12641. _has_bits_[0] |= 0x00000001u;
  12642. return name_part_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  12643. }
  12644. inline std::string* UninterpretedOption_NamePart::release_name_part() {
  12645. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.NamePart.name_part)
  12646. if (!_internal_has_name_part()) {
  12647. return nullptr;
  12648. }
  12649. _has_bits_[0] &= ~0x00000001u;
  12650. auto* p = name_part_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  12651. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12652. if (name_part_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12653. name_part_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12654. }
  12655. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12656. return p;
  12657. }
  12658. inline void UninterpretedOption_NamePart::set_allocated_name_part(std::string* name_part) {
  12659. if (name_part != nullptr) {
  12660. _has_bits_[0] |= 0x00000001u;
  12661. } else {
  12662. _has_bits_[0] &= ~0x00000001u;
  12663. }
  12664. name_part_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name_part,
  12665. GetArenaForAllocation());
  12666. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12667. if (name_part_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12668. name_part_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12669. }
  12670. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12671. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  12672. }
  12673. // required bool is_extension = 2;
  12674. inline bool UninterpretedOption_NamePart::_internal_has_is_extension() const {
  12675. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12676. return value;
  12677. }
  12678. inline bool UninterpretedOption_NamePart::has_is_extension() const {
  12679. return _internal_has_is_extension();
  12680. }
  12681. inline void UninterpretedOption_NamePart::clear_is_extension() {
  12682. is_extension_ = false;
  12683. _has_bits_[0] &= ~0x00000002u;
  12684. }
  12685. inline bool UninterpretedOption_NamePart::_internal_is_extension() const {
  12686. return is_extension_;
  12687. }
  12688. inline bool UninterpretedOption_NamePart::is_extension() const {
  12689. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
  12690. return _internal_is_extension();
  12691. }
  12692. inline void UninterpretedOption_NamePart::_internal_set_is_extension(bool value) {
  12693. _has_bits_[0] |= 0x00000002u;
  12694. is_extension_ = value;
  12695. }
  12696. inline void UninterpretedOption_NamePart::set_is_extension(bool value) {
  12697. _internal_set_is_extension(value);
  12698. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
  12699. }
  12700. // -------------------------------------------------------------------
  12701. // UninterpretedOption
  12702. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  12703. inline int UninterpretedOption::_internal_name_size() const {
  12704. return name_.size();
  12705. }
  12706. inline int UninterpretedOption::name_size() const {
  12707. return _internal_name_size();
  12708. }
  12709. inline void UninterpretedOption::clear_name() {
  12710. name_.Clear();
  12711. }
  12712. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
  12713. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
  12714. return name_.Mutable(index);
  12715. }
  12716. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >*
  12717. UninterpretedOption::mutable_name() {
  12718. // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
  12719. return &name_;
  12720. }
  12721. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& UninterpretedOption::_internal_name(int index) const {
  12722. return name_.Get(index);
  12723. }
  12724. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
  12725. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
  12726. return _internal_name(index);
  12727. }
  12728. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::_internal_add_name() {
  12729. return name_.Add();
  12730. }
  12731. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
  12732. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* _add = _internal_add_name();
  12733. // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
  12734. return _add;
  12735. }
  12736. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >&
  12737. UninterpretedOption::name() const {
  12738. // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
  12739. return name_;
  12740. }
  12741. // optional string identifier_value = 3;
  12742. inline bool UninterpretedOption::_internal_has_identifier_value() const {
  12743. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12744. return value;
  12745. }
  12746. inline bool UninterpretedOption::has_identifier_value() const {
  12747. return _internal_has_identifier_value();
  12748. }
  12749. inline void UninterpretedOption::clear_identifier_value() {
  12750. identifier_value_.ClearToEmpty();
  12751. _has_bits_[0] &= ~0x00000001u;
  12752. }
  12753. inline const std::string& UninterpretedOption::identifier_value() const {
  12754. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
  12755. return _internal_identifier_value();
  12756. }
  12757. template <typename ArgT0, typename... ArgT>
  12758. inline PROTOBUF_ALWAYS_INLINE
  12759. void UninterpretedOption::set_identifier_value(ArgT0&& arg0, ArgT... args) {
  12760. _has_bits_[0] |= 0x00000001u;
  12761. identifier_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  12762. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
  12763. }
  12764. inline std::string* UninterpretedOption::mutable_identifier_value() {
  12765. std::string* _s = _internal_mutable_identifier_value();
  12766. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
  12767. return _s;
  12768. }
  12769. inline const std::string& UninterpretedOption::_internal_identifier_value() const {
  12770. return identifier_value_.Get();
  12771. }
  12772. inline void UninterpretedOption::_internal_set_identifier_value(const std::string& value) {
  12773. _has_bits_[0] |= 0x00000001u;
  12774. identifier_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  12775. }
  12776. inline std::string* UninterpretedOption::_internal_mutable_identifier_value() {
  12777. _has_bits_[0] |= 0x00000001u;
  12778. return identifier_value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  12779. }
  12780. inline std::string* UninterpretedOption::release_identifier_value() {
  12781. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.identifier_value)
  12782. if (!_internal_has_identifier_value()) {
  12783. return nullptr;
  12784. }
  12785. _has_bits_[0] &= ~0x00000001u;
  12786. auto* p = identifier_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  12787. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12788. if (identifier_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12789. identifier_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12790. }
  12791. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12792. return p;
  12793. }
  12794. inline void UninterpretedOption::set_allocated_identifier_value(std::string* identifier_value) {
  12795. if (identifier_value != nullptr) {
  12796. _has_bits_[0] |= 0x00000001u;
  12797. } else {
  12798. _has_bits_[0] &= ~0x00000001u;
  12799. }
  12800. identifier_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), identifier_value,
  12801. GetArenaForAllocation());
  12802. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12803. if (identifier_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12804. identifier_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12805. }
  12806. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12807. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  12808. }
  12809. // optional uint64 positive_int_value = 4;
  12810. inline bool UninterpretedOption::_internal_has_positive_int_value() const {
  12811. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  12812. return value;
  12813. }
  12814. inline bool UninterpretedOption::has_positive_int_value() const {
  12815. return _internal_has_positive_int_value();
  12816. }
  12817. inline void UninterpretedOption::clear_positive_int_value() {
  12818. positive_int_value_ = uint64_t{0u};
  12819. _has_bits_[0] &= ~0x00000008u;
  12820. }
  12821. inline uint64_t UninterpretedOption::_internal_positive_int_value() const {
  12822. return positive_int_value_;
  12823. }
  12824. inline uint64_t UninterpretedOption::positive_int_value() const {
  12825. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
  12826. return _internal_positive_int_value();
  12827. }
  12828. inline void UninterpretedOption::_internal_set_positive_int_value(uint64_t value) {
  12829. _has_bits_[0] |= 0x00000008u;
  12830. positive_int_value_ = value;
  12831. }
  12832. inline void UninterpretedOption::set_positive_int_value(uint64_t value) {
  12833. _internal_set_positive_int_value(value);
  12834. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
  12835. }
  12836. // optional int64 negative_int_value = 5;
  12837. inline bool UninterpretedOption::_internal_has_negative_int_value() const {
  12838. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  12839. return value;
  12840. }
  12841. inline bool UninterpretedOption::has_negative_int_value() const {
  12842. return _internal_has_negative_int_value();
  12843. }
  12844. inline void UninterpretedOption::clear_negative_int_value() {
  12845. negative_int_value_ = int64_t{0};
  12846. _has_bits_[0] &= ~0x00000010u;
  12847. }
  12848. inline int64_t UninterpretedOption::_internal_negative_int_value() const {
  12849. return negative_int_value_;
  12850. }
  12851. inline int64_t UninterpretedOption::negative_int_value() const {
  12852. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
  12853. return _internal_negative_int_value();
  12854. }
  12855. inline void UninterpretedOption::_internal_set_negative_int_value(int64_t value) {
  12856. _has_bits_[0] |= 0x00000010u;
  12857. negative_int_value_ = value;
  12858. }
  12859. inline void UninterpretedOption::set_negative_int_value(int64_t value) {
  12860. _internal_set_negative_int_value(value);
  12861. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
  12862. }
  12863. // optional double double_value = 6;
  12864. inline bool UninterpretedOption::_internal_has_double_value() const {
  12865. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  12866. return value;
  12867. }
  12868. inline bool UninterpretedOption::has_double_value() const {
  12869. return _internal_has_double_value();
  12870. }
  12871. inline void UninterpretedOption::clear_double_value() {
  12872. double_value_ = 0;
  12873. _has_bits_[0] &= ~0x00000020u;
  12874. }
  12875. inline double UninterpretedOption::_internal_double_value() const {
  12876. return double_value_;
  12877. }
  12878. inline double UninterpretedOption::double_value() const {
  12879. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
  12880. return _internal_double_value();
  12881. }
  12882. inline void UninterpretedOption::_internal_set_double_value(double value) {
  12883. _has_bits_[0] |= 0x00000020u;
  12884. double_value_ = value;
  12885. }
  12886. inline void UninterpretedOption::set_double_value(double value) {
  12887. _internal_set_double_value(value);
  12888. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
  12889. }
  12890. // optional bytes string_value = 7;
  12891. inline bool UninterpretedOption::_internal_has_string_value() const {
  12892. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12893. return value;
  12894. }
  12895. inline bool UninterpretedOption::has_string_value() const {
  12896. return _internal_has_string_value();
  12897. }
  12898. inline void UninterpretedOption::clear_string_value() {
  12899. string_value_.ClearToEmpty();
  12900. _has_bits_[0] &= ~0x00000002u;
  12901. }
  12902. inline const std::string& UninterpretedOption::string_value() const {
  12903. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
  12904. return _internal_string_value();
  12905. }
  12906. template <typename ArgT0, typename... ArgT>
  12907. inline PROTOBUF_ALWAYS_INLINE
  12908. void UninterpretedOption::set_string_value(ArgT0&& arg0, ArgT... args) {
  12909. _has_bits_[0] |= 0x00000002u;
  12910. string_value_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  12911. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
  12912. }
  12913. inline std::string* UninterpretedOption::mutable_string_value() {
  12914. std::string* _s = _internal_mutable_string_value();
  12915. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
  12916. return _s;
  12917. }
  12918. inline const std::string& UninterpretedOption::_internal_string_value() const {
  12919. return string_value_.Get();
  12920. }
  12921. inline void UninterpretedOption::_internal_set_string_value(const std::string& value) {
  12922. _has_bits_[0] |= 0x00000002u;
  12923. string_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  12924. }
  12925. inline std::string* UninterpretedOption::_internal_mutable_string_value() {
  12926. _has_bits_[0] |= 0x00000002u;
  12927. return string_value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  12928. }
  12929. inline std::string* UninterpretedOption::release_string_value() {
  12930. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.string_value)
  12931. if (!_internal_has_string_value()) {
  12932. return nullptr;
  12933. }
  12934. _has_bits_[0] &= ~0x00000002u;
  12935. auto* p = string_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  12936. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12937. if (string_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12938. string_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12939. }
  12940. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12941. return p;
  12942. }
  12943. inline void UninterpretedOption::set_allocated_string_value(std::string* string_value) {
  12944. if (string_value != nullptr) {
  12945. _has_bits_[0] |= 0x00000002u;
  12946. } else {
  12947. _has_bits_[0] &= ~0x00000002u;
  12948. }
  12949. string_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), string_value,
  12950. GetArenaForAllocation());
  12951. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12952. if (string_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12953. string_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12954. }
  12955. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12956. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
  12957. }
  12958. // optional string aggregate_value = 8;
  12959. inline bool UninterpretedOption::_internal_has_aggregate_value() const {
  12960. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  12961. return value;
  12962. }
  12963. inline bool UninterpretedOption::has_aggregate_value() const {
  12964. return _internal_has_aggregate_value();
  12965. }
  12966. inline void UninterpretedOption::clear_aggregate_value() {
  12967. aggregate_value_.ClearToEmpty();
  12968. _has_bits_[0] &= ~0x00000004u;
  12969. }
  12970. inline const std::string& UninterpretedOption::aggregate_value() const {
  12971. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
  12972. return _internal_aggregate_value();
  12973. }
  12974. template <typename ArgT0, typename... ArgT>
  12975. inline PROTOBUF_ALWAYS_INLINE
  12976. void UninterpretedOption::set_aggregate_value(ArgT0&& arg0, ArgT... args) {
  12977. _has_bits_[0] |= 0x00000004u;
  12978. aggregate_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  12979. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
  12980. }
  12981. inline std::string* UninterpretedOption::mutable_aggregate_value() {
  12982. std::string* _s = _internal_mutable_aggregate_value();
  12983. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
  12984. return _s;
  12985. }
  12986. inline const std::string& UninterpretedOption::_internal_aggregate_value() const {
  12987. return aggregate_value_.Get();
  12988. }
  12989. inline void UninterpretedOption::_internal_set_aggregate_value(const std::string& value) {
  12990. _has_bits_[0] |= 0x00000004u;
  12991. aggregate_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  12992. }
  12993. inline std::string* UninterpretedOption::_internal_mutable_aggregate_value() {
  12994. _has_bits_[0] |= 0x00000004u;
  12995. return aggregate_value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  12996. }
  12997. inline std::string* UninterpretedOption::release_aggregate_value() {
  12998. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.aggregate_value)
  12999. if (!_internal_has_aggregate_value()) {
  13000. return nullptr;
  13001. }
  13002. _has_bits_[0] &= ~0x00000004u;
  13003. auto* p = aggregate_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  13004. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13005. if (aggregate_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13006. aggregate_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13007. }
  13008. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13009. return p;
  13010. }
  13011. inline void UninterpretedOption::set_allocated_aggregate_value(std::string* aggregate_value) {
  13012. if (aggregate_value != nullptr) {
  13013. _has_bits_[0] |= 0x00000004u;
  13014. } else {
  13015. _has_bits_[0] &= ~0x00000004u;
  13016. }
  13017. aggregate_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), aggregate_value,
  13018. GetArenaForAllocation());
  13019. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13020. if (aggregate_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13021. aggregate_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13022. }
  13023. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13024. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  13025. }
  13026. // -------------------------------------------------------------------
  13027. // SourceCodeInfo_Location
  13028. // repeated int32 path = 1 [packed = true];
  13029. inline int SourceCodeInfo_Location::_internal_path_size() const {
  13030. return path_.size();
  13031. }
  13032. inline int SourceCodeInfo_Location::path_size() const {
  13033. return _internal_path_size();
  13034. }
  13035. inline void SourceCodeInfo_Location::clear_path() {
  13036. path_.Clear();
  13037. }
  13038. inline int32_t SourceCodeInfo_Location::_internal_path(int index) const {
  13039. return path_.Get(index);
  13040. }
  13041. inline int32_t SourceCodeInfo_Location::path(int index) const {
  13042. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
  13043. return _internal_path(index);
  13044. }
  13045. inline void SourceCodeInfo_Location::set_path(int index, int32_t value) {
  13046. path_.Set(index, value);
  13047. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
  13048. }
  13049. inline void SourceCodeInfo_Location::_internal_add_path(int32_t value) {
  13050. path_.Add(value);
  13051. }
  13052. inline void SourceCodeInfo_Location::add_path(int32_t value) {
  13053. _internal_add_path(value);
  13054. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
  13055. }
  13056. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13057. SourceCodeInfo_Location::_internal_path() const {
  13058. return path_;
  13059. }
  13060. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13061. SourceCodeInfo_Location::path() const {
  13062. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
  13063. return _internal_path();
  13064. }
  13065. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13066. SourceCodeInfo_Location::_internal_mutable_path() {
  13067. return &path_;
  13068. }
  13069. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13070. SourceCodeInfo_Location::mutable_path() {
  13071. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
  13072. return _internal_mutable_path();
  13073. }
  13074. // repeated int32 span = 2 [packed = true];
  13075. inline int SourceCodeInfo_Location::_internal_span_size() const {
  13076. return span_.size();
  13077. }
  13078. inline int SourceCodeInfo_Location::span_size() const {
  13079. return _internal_span_size();
  13080. }
  13081. inline void SourceCodeInfo_Location::clear_span() {
  13082. span_.Clear();
  13083. }
  13084. inline int32_t SourceCodeInfo_Location::_internal_span(int index) const {
  13085. return span_.Get(index);
  13086. }
  13087. inline int32_t SourceCodeInfo_Location::span(int index) const {
  13088. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
  13089. return _internal_span(index);
  13090. }
  13091. inline void SourceCodeInfo_Location::set_span(int index, int32_t value) {
  13092. span_.Set(index, value);
  13093. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
  13094. }
  13095. inline void SourceCodeInfo_Location::_internal_add_span(int32_t value) {
  13096. span_.Add(value);
  13097. }
  13098. inline void SourceCodeInfo_Location::add_span(int32_t value) {
  13099. _internal_add_span(value);
  13100. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
  13101. }
  13102. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13103. SourceCodeInfo_Location::_internal_span() const {
  13104. return span_;
  13105. }
  13106. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13107. SourceCodeInfo_Location::span() const {
  13108. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
  13109. return _internal_span();
  13110. }
  13111. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13112. SourceCodeInfo_Location::_internal_mutable_span() {
  13113. return &span_;
  13114. }
  13115. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13116. SourceCodeInfo_Location::mutable_span() {
  13117. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
  13118. return _internal_mutable_span();
  13119. }
  13120. // optional string leading_comments = 3;
  13121. inline bool SourceCodeInfo_Location::_internal_has_leading_comments() const {
  13122. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  13123. return value;
  13124. }
  13125. inline bool SourceCodeInfo_Location::has_leading_comments() const {
  13126. return _internal_has_leading_comments();
  13127. }
  13128. inline void SourceCodeInfo_Location::clear_leading_comments() {
  13129. leading_comments_.ClearToEmpty();
  13130. _has_bits_[0] &= ~0x00000001u;
  13131. }
  13132. inline const std::string& SourceCodeInfo_Location::leading_comments() const {
  13133. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13134. return _internal_leading_comments();
  13135. }
  13136. template <typename ArgT0, typename... ArgT>
  13137. inline PROTOBUF_ALWAYS_INLINE
  13138. void SourceCodeInfo_Location::set_leading_comments(ArgT0&& arg0, ArgT... args) {
  13139. _has_bits_[0] |= 0x00000001u;
  13140. leading_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  13141. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13142. }
  13143. inline std::string* SourceCodeInfo_Location::mutable_leading_comments() {
  13144. std::string* _s = _internal_mutable_leading_comments();
  13145. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13146. return _s;
  13147. }
  13148. inline const std::string& SourceCodeInfo_Location::_internal_leading_comments() const {
  13149. return leading_comments_.Get();
  13150. }
  13151. inline void SourceCodeInfo_Location::_internal_set_leading_comments(const std::string& value) {
  13152. _has_bits_[0] |= 0x00000001u;
  13153. leading_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  13154. }
  13155. inline std::string* SourceCodeInfo_Location::_internal_mutable_leading_comments() {
  13156. _has_bits_[0] |= 0x00000001u;
  13157. return leading_comments_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  13158. }
  13159. inline std::string* SourceCodeInfo_Location::release_leading_comments() {
  13160. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13161. if (!_internal_has_leading_comments()) {
  13162. return nullptr;
  13163. }
  13164. _has_bits_[0] &= ~0x00000001u;
  13165. auto* p = leading_comments_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  13166. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13167. if (leading_comments_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13168. leading_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13169. }
  13170. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13171. return p;
  13172. }
  13173. inline void SourceCodeInfo_Location::set_allocated_leading_comments(std::string* leading_comments) {
  13174. if (leading_comments != nullptr) {
  13175. _has_bits_[0] |= 0x00000001u;
  13176. } else {
  13177. _has_bits_[0] &= ~0x00000001u;
  13178. }
  13179. leading_comments_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), leading_comments,
  13180. GetArenaForAllocation());
  13181. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13182. if (leading_comments_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13183. leading_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13184. }
  13185. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13186. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13187. }
  13188. // optional string trailing_comments = 4;
  13189. inline bool SourceCodeInfo_Location::_internal_has_trailing_comments() const {
  13190. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  13191. return value;
  13192. }
  13193. inline bool SourceCodeInfo_Location::has_trailing_comments() const {
  13194. return _internal_has_trailing_comments();
  13195. }
  13196. inline void SourceCodeInfo_Location::clear_trailing_comments() {
  13197. trailing_comments_.ClearToEmpty();
  13198. _has_bits_[0] &= ~0x00000002u;
  13199. }
  13200. inline const std::string& SourceCodeInfo_Location::trailing_comments() const {
  13201. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13202. return _internal_trailing_comments();
  13203. }
  13204. template <typename ArgT0, typename... ArgT>
  13205. inline PROTOBUF_ALWAYS_INLINE
  13206. void SourceCodeInfo_Location::set_trailing_comments(ArgT0&& arg0, ArgT... args) {
  13207. _has_bits_[0] |= 0x00000002u;
  13208. trailing_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  13209. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13210. }
  13211. inline std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
  13212. std::string* _s = _internal_mutable_trailing_comments();
  13213. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13214. return _s;
  13215. }
  13216. inline const std::string& SourceCodeInfo_Location::_internal_trailing_comments() const {
  13217. return trailing_comments_.Get();
  13218. }
  13219. inline void SourceCodeInfo_Location::_internal_set_trailing_comments(const std::string& value) {
  13220. _has_bits_[0] |= 0x00000002u;
  13221. trailing_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  13222. }
  13223. inline std::string* SourceCodeInfo_Location::_internal_mutable_trailing_comments() {
  13224. _has_bits_[0] |= 0x00000002u;
  13225. return trailing_comments_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  13226. }
  13227. inline std::string* SourceCodeInfo_Location::release_trailing_comments() {
  13228. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13229. if (!_internal_has_trailing_comments()) {
  13230. return nullptr;
  13231. }
  13232. _has_bits_[0] &= ~0x00000002u;
  13233. auto* p = trailing_comments_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  13234. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13235. if (trailing_comments_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13236. trailing_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13237. }
  13238. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13239. return p;
  13240. }
  13241. inline void SourceCodeInfo_Location::set_allocated_trailing_comments(std::string* trailing_comments) {
  13242. if (trailing_comments != nullptr) {
  13243. _has_bits_[0] |= 0x00000002u;
  13244. } else {
  13245. _has_bits_[0] &= ~0x00000002u;
  13246. }
  13247. trailing_comments_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), trailing_comments,
  13248. GetArenaForAllocation());
  13249. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13250. if (trailing_comments_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13251. trailing_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13252. }
  13253. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13254. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13255. }
  13256. // repeated string leading_detached_comments = 6;
  13257. inline int SourceCodeInfo_Location::_internal_leading_detached_comments_size() const {
  13258. return leading_detached_comments_.size();
  13259. }
  13260. inline int SourceCodeInfo_Location::leading_detached_comments_size() const {
  13261. return _internal_leading_detached_comments_size();
  13262. }
  13263. inline void SourceCodeInfo_Location::clear_leading_detached_comments() {
  13264. leading_detached_comments_.Clear();
  13265. }
  13266. inline std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
  13267. std::string* _s = _internal_add_leading_detached_comments();
  13268. // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13269. return _s;
  13270. }
  13271. inline const std::string& SourceCodeInfo_Location::_internal_leading_detached_comments(int index) const {
  13272. return leading_detached_comments_.Get(index);
  13273. }
  13274. inline const std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const {
  13275. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13276. return _internal_leading_detached_comments(index);
  13277. }
  13278. inline std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) {
  13279. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13280. return leading_detached_comments_.Mutable(index);
  13281. }
  13282. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const std::string& value) {
  13283. leading_detached_comments_.Mutable(index)->assign(value);
  13284. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13285. }
  13286. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, std::string&& value) {
  13287. leading_detached_comments_.Mutable(index)->assign(std::move(value));
  13288. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13289. }
  13290. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) {
  13291. GOOGLE_DCHECK(value != nullptr);
  13292. leading_detached_comments_.Mutable(index)->assign(value);
  13293. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13294. }
  13295. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) {
  13296. leading_detached_comments_.Mutable(index)->assign(
  13297. reinterpret_cast<const char*>(value), size);
  13298. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13299. }
  13300. inline std::string* SourceCodeInfo_Location::_internal_add_leading_detached_comments() {
  13301. return leading_detached_comments_.Add();
  13302. }
  13303. inline void SourceCodeInfo_Location::add_leading_detached_comments(const std::string& value) {
  13304. leading_detached_comments_.Add()->assign(value);
  13305. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13306. }
  13307. inline void SourceCodeInfo_Location::add_leading_detached_comments(std::string&& value) {
  13308. leading_detached_comments_.Add(std::move(value));
  13309. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13310. }
  13311. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
  13312. GOOGLE_DCHECK(value != nullptr);
  13313. leading_detached_comments_.Add()->assign(value);
  13314. // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13315. }
  13316. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) {
  13317. leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
  13318. // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13319. }
  13320. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  13321. SourceCodeInfo_Location::leading_detached_comments() const {
  13322. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13323. return leading_detached_comments_;
  13324. }
  13325. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  13326. SourceCodeInfo_Location::mutable_leading_detached_comments() {
  13327. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13328. return &leading_detached_comments_;
  13329. }
  13330. // -------------------------------------------------------------------
  13331. // SourceCodeInfo
  13332. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  13333. inline int SourceCodeInfo::_internal_location_size() const {
  13334. return location_.size();
  13335. }
  13336. inline int SourceCodeInfo::location_size() const {
  13337. return _internal_location_size();
  13338. }
  13339. inline void SourceCodeInfo::clear_location() {
  13340. location_.Clear();
  13341. }
  13342. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
  13343. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
  13344. return location_.Mutable(index);
  13345. }
  13346. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >*
  13347. SourceCodeInfo::mutable_location() {
  13348. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
  13349. return &location_;
  13350. }
  13351. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& SourceCodeInfo::_internal_location(int index) const {
  13352. return location_.Get(index);
  13353. }
  13354. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
  13355. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
  13356. return _internal_location(index);
  13357. }
  13358. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::_internal_add_location() {
  13359. return location_.Add();
  13360. }
  13361. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
  13362. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* _add = _internal_add_location();
  13363. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
  13364. return _add;
  13365. }
  13366. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >&
  13367. SourceCodeInfo::location() const {
  13368. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
  13369. return location_;
  13370. }
  13371. // -------------------------------------------------------------------
  13372. // GeneratedCodeInfo_Annotation
  13373. // repeated int32 path = 1 [packed = true];
  13374. inline int GeneratedCodeInfo_Annotation::_internal_path_size() const {
  13375. return path_.size();
  13376. }
  13377. inline int GeneratedCodeInfo_Annotation::path_size() const {
  13378. return _internal_path_size();
  13379. }
  13380. inline void GeneratedCodeInfo_Annotation::clear_path() {
  13381. path_.Clear();
  13382. }
  13383. inline int32_t GeneratedCodeInfo_Annotation::_internal_path(int index) const {
  13384. return path_.Get(index);
  13385. }
  13386. inline int32_t GeneratedCodeInfo_Annotation::path(int index) const {
  13387. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13388. return _internal_path(index);
  13389. }
  13390. inline void GeneratedCodeInfo_Annotation::set_path(int index, int32_t value) {
  13391. path_.Set(index, value);
  13392. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13393. }
  13394. inline void GeneratedCodeInfo_Annotation::_internal_add_path(int32_t value) {
  13395. path_.Add(value);
  13396. }
  13397. inline void GeneratedCodeInfo_Annotation::add_path(int32_t value) {
  13398. _internal_add_path(value);
  13399. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13400. }
  13401. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13402. GeneratedCodeInfo_Annotation::_internal_path() const {
  13403. return path_;
  13404. }
  13405. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13406. GeneratedCodeInfo_Annotation::path() const {
  13407. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13408. return _internal_path();
  13409. }
  13410. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13411. GeneratedCodeInfo_Annotation::_internal_mutable_path() {
  13412. return &path_;
  13413. }
  13414. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13415. GeneratedCodeInfo_Annotation::mutable_path() {
  13416. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13417. return _internal_mutable_path();
  13418. }
  13419. // optional string source_file = 2;
  13420. inline bool GeneratedCodeInfo_Annotation::_internal_has_source_file() const {
  13421. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  13422. return value;
  13423. }
  13424. inline bool GeneratedCodeInfo_Annotation::has_source_file() const {
  13425. return _internal_has_source_file();
  13426. }
  13427. inline void GeneratedCodeInfo_Annotation::clear_source_file() {
  13428. source_file_.ClearToEmpty();
  13429. _has_bits_[0] &= ~0x00000001u;
  13430. }
  13431. inline const std::string& GeneratedCodeInfo_Annotation::source_file() const {
  13432. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13433. return _internal_source_file();
  13434. }
  13435. template <typename ArgT0, typename... ArgT>
  13436. inline PROTOBUF_ALWAYS_INLINE
  13437. void GeneratedCodeInfo_Annotation::set_source_file(ArgT0&& arg0, ArgT... args) {
  13438. _has_bits_[0] |= 0x00000001u;
  13439. source_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  13440. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13441. }
  13442. inline std::string* GeneratedCodeInfo_Annotation::mutable_source_file() {
  13443. std::string* _s = _internal_mutable_source_file();
  13444. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13445. return _s;
  13446. }
  13447. inline const std::string& GeneratedCodeInfo_Annotation::_internal_source_file() const {
  13448. return source_file_.Get();
  13449. }
  13450. inline void GeneratedCodeInfo_Annotation::_internal_set_source_file(const std::string& value) {
  13451. _has_bits_[0] |= 0x00000001u;
  13452. source_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  13453. }
  13454. inline std::string* GeneratedCodeInfo_Annotation::_internal_mutable_source_file() {
  13455. _has_bits_[0] |= 0x00000001u;
  13456. return source_file_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  13457. }
  13458. inline std::string* GeneratedCodeInfo_Annotation::release_source_file() {
  13459. // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13460. if (!_internal_has_source_file()) {
  13461. return nullptr;
  13462. }
  13463. _has_bits_[0] &= ~0x00000001u;
  13464. auto* p = source_file_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  13465. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13466. if (source_file_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13467. source_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13468. }
  13469. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13470. return p;
  13471. }
  13472. inline void GeneratedCodeInfo_Annotation::set_allocated_source_file(std::string* source_file) {
  13473. if (source_file != nullptr) {
  13474. _has_bits_[0] |= 0x00000001u;
  13475. } else {
  13476. _has_bits_[0] &= ~0x00000001u;
  13477. }
  13478. source_file_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_file,
  13479. GetArenaForAllocation());
  13480. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13481. if (source_file_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13482. source_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13483. }
  13484. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13485. // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13486. }
  13487. // optional int32 begin = 3;
  13488. inline bool GeneratedCodeInfo_Annotation::_internal_has_begin() const {
  13489. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  13490. return value;
  13491. }
  13492. inline bool GeneratedCodeInfo_Annotation::has_begin() const {
  13493. return _internal_has_begin();
  13494. }
  13495. inline void GeneratedCodeInfo_Annotation::clear_begin() {
  13496. begin_ = 0;
  13497. _has_bits_[0] &= ~0x00000002u;
  13498. }
  13499. inline int32_t GeneratedCodeInfo_Annotation::_internal_begin() const {
  13500. return begin_;
  13501. }
  13502. inline int32_t GeneratedCodeInfo_Annotation::begin() const {
  13503. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  13504. return _internal_begin();
  13505. }
  13506. inline void GeneratedCodeInfo_Annotation::_internal_set_begin(int32_t value) {
  13507. _has_bits_[0] |= 0x00000002u;
  13508. begin_ = value;
  13509. }
  13510. inline void GeneratedCodeInfo_Annotation::set_begin(int32_t value) {
  13511. _internal_set_begin(value);
  13512. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  13513. }
  13514. // optional int32 end = 4;
  13515. inline bool GeneratedCodeInfo_Annotation::_internal_has_end() const {
  13516. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  13517. return value;
  13518. }
  13519. inline bool GeneratedCodeInfo_Annotation::has_end() const {
  13520. return _internal_has_end();
  13521. }
  13522. inline void GeneratedCodeInfo_Annotation::clear_end() {
  13523. end_ = 0;
  13524. _has_bits_[0] &= ~0x00000004u;
  13525. }
  13526. inline int32_t GeneratedCodeInfo_Annotation::_internal_end() const {
  13527. return end_;
  13528. }
  13529. inline int32_t GeneratedCodeInfo_Annotation::end() const {
  13530. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end)
  13531. return _internal_end();
  13532. }
  13533. inline void GeneratedCodeInfo_Annotation::_internal_set_end(int32_t value) {
  13534. _has_bits_[0] |= 0x00000004u;
  13535. end_ = value;
  13536. }
  13537. inline void GeneratedCodeInfo_Annotation::set_end(int32_t value) {
  13538. _internal_set_end(value);
  13539. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end)
  13540. }
  13541. // -------------------------------------------------------------------
  13542. // GeneratedCodeInfo
  13543. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  13544. inline int GeneratedCodeInfo::_internal_annotation_size() const {
  13545. return annotation_.size();
  13546. }
  13547. inline int GeneratedCodeInfo::annotation_size() const {
  13548. return _internal_annotation_size();
  13549. }
  13550. inline void GeneratedCodeInfo::clear_annotation() {
  13551. annotation_.Clear();
  13552. }
  13553. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::mutable_annotation(int index) {
  13554. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.annotation)
  13555. return annotation_.Mutable(index);
  13556. }
  13557. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >*
  13558. GeneratedCodeInfo::mutable_annotation() {
  13559. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.annotation)
  13560. return &annotation_;
  13561. }
  13562. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::_internal_annotation(int index) const {
  13563. return annotation_.Get(index);
  13564. }
  13565. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annotation(int index) const {
  13566. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.annotation)
  13567. return _internal_annotation(index);
  13568. }
  13569. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::_internal_add_annotation() {
  13570. return annotation_.Add();
  13571. }
  13572. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::add_annotation() {
  13573. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* _add = _internal_add_annotation();
  13574. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.annotation)
  13575. return _add;
  13576. }
  13577. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >&
  13578. GeneratedCodeInfo::annotation() const {
  13579. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.annotation)
  13580. return annotation_;
  13581. }
  13582. #ifdef __GNUC__
  13583. #pragma GCC diagnostic pop
  13584. #endif // __GNUC__
  13585. // -------------------------------------------------------------------
  13586. // -------------------------------------------------------------------
  13587. // -------------------------------------------------------------------
  13588. // -------------------------------------------------------------------
  13589. // -------------------------------------------------------------------
  13590. // -------------------------------------------------------------------
  13591. // -------------------------------------------------------------------
  13592. // -------------------------------------------------------------------
  13593. // -------------------------------------------------------------------
  13594. // -------------------------------------------------------------------
  13595. // -------------------------------------------------------------------
  13596. // -------------------------------------------------------------------
  13597. // -------------------------------------------------------------------
  13598. // -------------------------------------------------------------------
  13599. // -------------------------------------------------------------------
  13600. // -------------------------------------------------------------------
  13601. // -------------------------------------------------------------------
  13602. // -------------------------------------------------------------------
  13603. // -------------------------------------------------------------------
  13604. // -------------------------------------------------------------------
  13605. // -------------------------------------------------------------------
  13606. // -------------------------------------------------------------------
  13607. // -------------------------------------------------------------------
  13608. // -------------------------------------------------------------------
  13609. // -------------------------------------------------------------------
  13610. // -------------------------------------------------------------------
  13611. // @@protoc_insertion_point(namespace_scope)
  13612. PROTOBUF_NAMESPACE_CLOSE
  13613. PROTOBUF_NAMESPACE_OPEN
  13614. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type> : ::std::true_type {};
  13615. template <>
  13616. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type>() {
  13617. return ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_descriptor();
  13618. }
  13619. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label> : ::std::true_type {};
  13620. template <>
  13621. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label>() {
  13622. return ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_descriptor();
  13623. }
  13624. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode> : ::std::true_type {};
  13625. template <>
  13626. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode>() {
  13627. return ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_descriptor();
  13628. }
  13629. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType> : ::std::true_type {};
  13630. template <>
  13631. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType>() {
  13632. return ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType_descriptor();
  13633. }
  13634. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType> : ::std::true_type {};
  13635. template <>
  13636. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType>() {
  13637. return ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_descriptor();
  13638. }
  13639. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel> : ::std::true_type {};
  13640. template <>
  13641. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel>() {
  13642. return ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_descriptor();
  13643. }
  13644. PROTOBUF_NAMESPACE_CLOSE
  13645. // @@protoc_insertion_point(global_scope)
  13646. #include <google/protobuf/port_undef.inc>
  13647. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto