descriptor.pb.h 485 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/generated_enum_reflection.h>
  28. #include <google/protobuf/unknown_field_set.h>
  29. // @@protoc_insertion_point(includes)
  30. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto LIBPROTOBUF_EXPORT
  31. namespace protobuf_google_2fprotobuf_2fdescriptor_2eproto {
  32. // Internal implementation detail -- do not use these members.
  33. struct LIBPROTOBUF_EXPORT TableStruct {
  34. static const ::google::protobuf::internal::ParseTableField entries[];
  35. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  36. static const ::google::protobuf::internal::ParseTable schema[27];
  37. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  38. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  39. static const ::google::protobuf::uint32 offsets[];
  40. };
  41. void LIBPROTOBUF_EXPORT AddDescriptors();
  42. } // namespace protobuf_google_2fprotobuf_2fdescriptor_2eproto
  43. namespace google {
  44. namespace protobuf {
  45. class DescriptorProto;
  46. class DescriptorProtoDefaultTypeInternal;
  47. LIBPROTOBUF_EXPORT extern DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_;
  48. class DescriptorProto_ExtensionRange;
  49. class DescriptorProto_ExtensionRangeDefaultTypeInternal;
  50. LIBPROTOBUF_EXPORT extern DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_;
  51. class DescriptorProto_ReservedRange;
  52. class DescriptorProto_ReservedRangeDefaultTypeInternal;
  53. LIBPROTOBUF_EXPORT extern DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_;
  54. class EnumDescriptorProto;
  55. class EnumDescriptorProtoDefaultTypeInternal;
  56. LIBPROTOBUF_EXPORT extern EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_;
  57. class EnumDescriptorProto_EnumReservedRange;
  58. class EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal;
  59. LIBPROTOBUF_EXPORT extern EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal _EnumDescriptorProto_EnumReservedRange_default_instance_;
  60. class EnumOptions;
  61. class EnumOptionsDefaultTypeInternal;
  62. LIBPROTOBUF_EXPORT extern EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_;
  63. class EnumValueDescriptorProto;
  64. class EnumValueDescriptorProtoDefaultTypeInternal;
  65. LIBPROTOBUF_EXPORT extern EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_;
  66. class EnumValueOptions;
  67. class EnumValueOptionsDefaultTypeInternal;
  68. LIBPROTOBUF_EXPORT extern EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_;
  69. class ExtensionRangeOptions;
  70. class ExtensionRangeOptionsDefaultTypeInternal;
  71. LIBPROTOBUF_EXPORT extern ExtensionRangeOptionsDefaultTypeInternal _ExtensionRangeOptions_default_instance_;
  72. class FieldDescriptorProto;
  73. class FieldDescriptorProtoDefaultTypeInternal;
  74. LIBPROTOBUF_EXPORT extern FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_;
  75. class FieldOptions;
  76. class FieldOptionsDefaultTypeInternal;
  77. LIBPROTOBUF_EXPORT extern FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_;
  78. class FileDescriptorProto;
  79. class FileDescriptorProtoDefaultTypeInternal;
  80. LIBPROTOBUF_EXPORT extern FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_;
  81. class FileDescriptorSet;
  82. class FileDescriptorSetDefaultTypeInternal;
  83. LIBPROTOBUF_EXPORT extern FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_;
  84. class FileOptions;
  85. class FileOptionsDefaultTypeInternal;
  86. LIBPROTOBUF_EXPORT extern FileOptionsDefaultTypeInternal _FileOptions_default_instance_;
  87. class GeneratedCodeInfo;
  88. class GeneratedCodeInfoDefaultTypeInternal;
  89. LIBPROTOBUF_EXPORT extern GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_;
  90. class GeneratedCodeInfo_Annotation;
  91. class GeneratedCodeInfo_AnnotationDefaultTypeInternal;
  92. LIBPROTOBUF_EXPORT extern GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_;
  93. class MessageOptions;
  94. class MessageOptionsDefaultTypeInternal;
  95. LIBPROTOBUF_EXPORT extern MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_;
  96. class MethodDescriptorProto;
  97. class MethodDescriptorProtoDefaultTypeInternal;
  98. LIBPROTOBUF_EXPORT extern MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_;
  99. class MethodOptions;
  100. class MethodOptionsDefaultTypeInternal;
  101. LIBPROTOBUF_EXPORT extern MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_;
  102. class OneofDescriptorProto;
  103. class OneofDescriptorProtoDefaultTypeInternal;
  104. LIBPROTOBUF_EXPORT extern OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_;
  105. class OneofOptions;
  106. class OneofOptionsDefaultTypeInternal;
  107. LIBPROTOBUF_EXPORT extern OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_;
  108. class ServiceDescriptorProto;
  109. class ServiceDescriptorProtoDefaultTypeInternal;
  110. LIBPROTOBUF_EXPORT extern ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_;
  111. class ServiceOptions;
  112. class ServiceOptionsDefaultTypeInternal;
  113. LIBPROTOBUF_EXPORT extern ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_;
  114. class SourceCodeInfo;
  115. class SourceCodeInfoDefaultTypeInternal;
  116. LIBPROTOBUF_EXPORT extern SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_;
  117. class SourceCodeInfo_Location;
  118. class SourceCodeInfo_LocationDefaultTypeInternal;
  119. LIBPROTOBUF_EXPORT extern SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_;
  120. class UninterpretedOption;
  121. class UninterpretedOptionDefaultTypeInternal;
  122. LIBPROTOBUF_EXPORT extern UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_;
  123. class UninterpretedOption_NamePart;
  124. class UninterpretedOption_NamePartDefaultTypeInternal;
  125. LIBPROTOBUF_EXPORT extern UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_;
  126. } // namespace protobuf
  127. } // namespace google
  128. namespace google {
  129. namespace protobuf {
  130. template<> LIBPROTOBUF_EXPORT ::google::protobuf::DescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::DescriptorProto>(Arena*);
  131. template<> LIBPROTOBUF_EXPORT ::google::protobuf::DescriptorProto_ExtensionRange* Arena::CreateMaybeMessage<::google::protobuf::DescriptorProto_ExtensionRange>(Arena*);
  132. template<> LIBPROTOBUF_EXPORT ::google::protobuf::DescriptorProto_ReservedRange* Arena::CreateMaybeMessage<::google::protobuf::DescriptorProto_ReservedRange>(Arena*);
  133. template<> LIBPROTOBUF_EXPORT ::google::protobuf::EnumDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::EnumDescriptorProto>(Arena*);
  134. template<> LIBPROTOBUF_EXPORT ::google::protobuf::EnumDescriptorProto_EnumReservedRange* Arena::CreateMaybeMessage<::google::protobuf::EnumDescriptorProto_EnumReservedRange>(Arena*);
  135. template<> LIBPROTOBUF_EXPORT ::google::protobuf::EnumOptions* Arena::CreateMaybeMessage<::google::protobuf::EnumOptions>(Arena*);
  136. template<> LIBPROTOBUF_EXPORT ::google::protobuf::EnumValueDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::EnumValueDescriptorProto>(Arena*);
  137. template<> LIBPROTOBUF_EXPORT ::google::protobuf::EnumValueOptions* Arena::CreateMaybeMessage<::google::protobuf::EnumValueOptions>(Arena*);
  138. template<> LIBPROTOBUF_EXPORT ::google::protobuf::ExtensionRangeOptions* Arena::CreateMaybeMessage<::google::protobuf::ExtensionRangeOptions>(Arena*);
  139. template<> LIBPROTOBUF_EXPORT ::google::protobuf::FieldDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::FieldDescriptorProto>(Arena*);
  140. template<> LIBPROTOBUF_EXPORT ::google::protobuf::FieldOptions* Arena::CreateMaybeMessage<::google::protobuf::FieldOptions>(Arena*);
  141. template<> LIBPROTOBUF_EXPORT ::google::protobuf::FileDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::FileDescriptorProto>(Arena*);
  142. template<> LIBPROTOBUF_EXPORT ::google::protobuf::FileDescriptorSet* Arena::CreateMaybeMessage<::google::protobuf::FileDescriptorSet>(Arena*);
  143. template<> LIBPROTOBUF_EXPORT ::google::protobuf::FileOptions* Arena::CreateMaybeMessage<::google::protobuf::FileOptions>(Arena*);
  144. template<> LIBPROTOBUF_EXPORT ::google::protobuf::GeneratedCodeInfo* Arena::CreateMaybeMessage<::google::protobuf::GeneratedCodeInfo>(Arena*);
  145. template<> LIBPROTOBUF_EXPORT ::google::protobuf::GeneratedCodeInfo_Annotation* Arena::CreateMaybeMessage<::google::protobuf::GeneratedCodeInfo_Annotation>(Arena*);
  146. template<> LIBPROTOBUF_EXPORT ::google::protobuf::MessageOptions* Arena::CreateMaybeMessage<::google::protobuf::MessageOptions>(Arena*);
  147. template<> LIBPROTOBUF_EXPORT ::google::protobuf::MethodDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::MethodDescriptorProto>(Arena*);
  148. template<> LIBPROTOBUF_EXPORT ::google::protobuf::MethodOptions* Arena::CreateMaybeMessage<::google::protobuf::MethodOptions>(Arena*);
  149. template<> LIBPROTOBUF_EXPORT ::google::protobuf::OneofDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::OneofDescriptorProto>(Arena*);
  150. template<> LIBPROTOBUF_EXPORT ::google::protobuf::OneofOptions* Arena::CreateMaybeMessage<::google::protobuf::OneofOptions>(Arena*);
  151. template<> LIBPROTOBUF_EXPORT ::google::protobuf::ServiceDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::ServiceDescriptorProto>(Arena*);
  152. template<> LIBPROTOBUF_EXPORT ::google::protobuf::ServiceOptions* Arena::CreateMaybeMessage<::google::protobuf::ServiceOptions>(Arena*);
  153. template<> LIBPROTOBUF_EXPORT ::google::protobuf::SourceCodeInfo* Arena::CreateMaybeMessage<::google::protobuf::SourceCodeInfo>(Arena*);
  154. template<> LIBPROTOBUF_EXPORT ::google::protobuf::SourceCodeInfo_Location* Arena::CreateMaybeMessage<::google::protobuf::SourceCodeInfo_Location>(Arena*);
  155. template<> LIBPROTOBUF_EXPORT ::google::protobuf::UninterpretedOption* Arena::CreateMaybeMessage<::google::protobuf::UninterpretedOption>(Arena*);
  156. template<> LIBPROTOBUF_EXPORT ::google::protobuf::UninterpretedOption_NamePart* Arena::CreateMaybeMessage<::google::protobuf::UninterpretedOption_NamePart>(Arena*);
  157. } // namespace protobuf
  158. } // namespace google
  159. namespace google {
  160. namespace protobuf {
  161. enum FieldDescriptorProto_Type {
  162. FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
  163. FieldDescriptorProto_Type_TYPE_FLOAT = 2,
  164. FieldDescriptorProto_Type_TYPE_INT64 = 3,
  165. FieldDescriptorProto_Type_TYPE_UINT64 = 4,
  166. FieldDescriptorProto_Type_TYPE_INT32 = 5,
  167. FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
  168. FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
  169. FieldDescriptorProto_Type_TYPE_BOOL = 8,
  170. FieldDescriptorProto_Type_TYPE_STRING = 9,
  171. FieldDescriptorProto_Type_TYPE_GROUP = 10,
  172. FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
  173. FieldDescriptorProto_Type_TYPE_BYTES = 12,
  174. FieldDescriptorProto_Type_TYPE_UINT32 = 13,
  175. FieldDescriptorProto_Type_TYPE_ENUM = 14,
  176. FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
  177. FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
  178. FieldDescriptorProto_Type_TYPE_SINT32 = 17,
  179. FieldDescriptorProto_Type_TYPE_SINT64 = 18
  180. };
  181. LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
  182. const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
  183. const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
  184. const int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
  185. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
  186. inline const ::std::string& FieldDescriptorProto_Type_Name(FieldDescriptorProto_Type value) {
  187. return ::google::protobuf::internal::NameOfEnum(
  188. FieldDescriptorProto_Type_descriptor(), value);
  189. }
  190. inline bool FieldDescriptorProto_Type_Parse(
  191. const ::std::string& name, FieldDescriptorProto_Type* value) {
  192. return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
  193. FieldDescriptorProto_Type_descriptor(), name, value);
  194. }
  195. enum FieldDescriptorProto_Label {
  196. FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
  197. FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
  198. FieldDescriptorProto_Label_LABEL_REPEATED = 3
  199. };
  200. LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
  201. const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  202. const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
  203. const int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
  204. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
  205. inline const ::std::string& FieldDescriptorProto_Label_Name(FieldDescriptorProto_Label value) {
  206. return ::google::protobuf::internal::NameOfEnum(
  207. FieldDescriptorProto_Label_descriptor(), value);
  208. }
  209. inline bool FieldDescriptorProto_Label_Parse(
  210. const ::std::string& name, FieldDescriptorProto_Label* value) {
  211. return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
  212. FieldDescriptorProto_Label_descriptor(), name, value);
  213. }
  214. enum FileOptions_OptimizeMode {
  215. FileOptions_OptimizeMode_SPEED = 1,
  216. FileOptions_OptimizeMode_CODE_SIZE = 2,
  217. FileOptions_OptimizeMode_LITE_RUNTIME = 3
  218. };
  219. LIBPROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
  220. const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
  221. const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
  222. const int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
  223. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
  224. inline const ::std::string& FileOptions_OptimizeMode_Name(FileOptions_OptimizeMode value) {
  225. return ::google::protobuf::internal::NameOfEnum(
  226. FileOptions_OptimizeMode_descriptor(), value);
  227. }
  228. inline bool FileOptions_OptimizeMode_Parse(
  229. const ::std::string& name, FileOptions_OptimizeMode* value) {
  230. return ::google::protobuf::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
  231. FileOptions_OptimizeMode_descriptor(), name, value);
  232. }
  233. enum FieldOptions_CType {
  234. FieldOptions_CType_STRING = 0,
  235. FieldOptions_CType_CORD = 1,
  236. FieldOptions_CType_STRING_PIECE = 2
  237. };
  238. LIBPROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
  239. const FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
  240. const FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
  241. const int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
  242. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor();
  243. inline const ::std::string& FieldOptions_CType_Name(FieldOptions_CType value) {
  244. return ::google::protobuf::internal::NameOfEnum(
  245. FieldOptions_CType_descriptor(), value);
  246. }
  247. inline bool FieldOptions_CType_Parse(
  248. const ::std::string& name, FieldOptions_CType* value) {
  249. return ::google::protobuf::internal::ParseNamedEnum<FieldOptions_CType>(
  250. FieldOptions_CType_descriptor(), name, value);
  251. }
  252. enum FieldOptions_JSType {
  253. FieldOptions_JSType_JS_NORMAL = 0,
  254. FieldOptions_JSType_JS_STRING = 1,
  255. FieldOptions_JSType_JS_NUMBER = 2
  256. };
  257. LIBPROTOBUF_EXPORT bool FieldOptions_JSType_IsValid(int value);
  258. const FieldOptions_JSType FieldOptions_JSType_JSType_MIN = FieldOptions_JSType_JS_NORMAL;
  259. const FieldOptions_JSType FieldOptions_JSType_JSType_MAX = FieldOptions_JSType_JS_NUMBER;
  260. const int FieldOptions_JSType_JSType_ARRAYSIZE = FieldOptions_JSType_JSType_MAX + 1;
  261. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor();
  262. inline const ::std::string& FieldOptions_JSType_Name(FieldOptions_JSType value) {
  263. return ::google::protobuf::internal::NameOfEnum(
  264. FieldOptions_JSType_descriptor(), value);
  265. }
  266. inline bool FieldOptions_JSType_Parse(
  267. const ::std::string& name, FieldOptions_JSType* value) {
  268. return ::google::protobuf::internal::ParseNamedEnum<FieldOptions_JSType>(
  269. FieldOptions_JSType_descriptor(), name, value);
  270. }
  271. enum MethodOptions_IdempotencyLevel {
  272. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN = 0,
  273. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS = 1,
  274. MethodOptions_IdempotencyLevel_IDEMPOTENT = 2
  275. };
  276. LIBPROTOBUF_EXPORT bool MethodOptions_IdempotencyLevel_IsValid(int value);
  277. const MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN = MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  278. const MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX = MethodOptions_IdempotencyLevel_IDEMPOTENT;
  279. const int MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE = MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX + 1;
  280. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* MethodOptions_IdempotencyLevel_descriptor();
  281. inline const ::std::string& MethodOptions_IdempotencyLevel_Name(MethodOptions_IdempotencyLevel value) {
  282. return ::google::protobuf::internal::NameOfEnum(
  283. MethodOptions_IdempotencyLevel_descriptor(), value);
  284. }
  285. inline bool MethodOptions_IdempotencyLevel_Parse(
  286. const ::std::string& name, MethodOptions_IdempotencyLevel* value) {
  287. return ::google::protobuf::internal::ParseNamedEnum<MethodOptions_IdempotencyLevel>(
  288. MethodOptions_IdempotencyLevel_descriptor(), name, value);
  289. }
  290. // ===================================================================
  291. class LIBPROTOBUF_EXPORT FileDescriptorSet : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorSet) */ {
  292. public:
  293. FileDescriptorSet();
  294. virtual ~FileDescriptorSet();
  295. FileDescriptorSet(const FileDescriptorSet& from);
  296. inline FileDescriptorSet& operator=(const FileDescriptorSet& from) {
  297. CopyFrom(from);
  298. return *this;
  299. }
  300. #if LANG_CXX11
  301. FileDescriptorSet(FileDescriptorSet&& from) noexcept
  302. : FileDescriptorSet() {
  303. *this = ::std::move(from);
  304. }
  305. inline FileDescriptorSet& operator=(FileDescriptorSet&& from) noexcept {
  306. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  307. if (this != &from) InternalSwap(&from);
  308. } else {
  309. CopyFrom(from);
  310. }
  311. return *this;
  312. }
  313. #endif
  314. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  315. return _internal_metadata_.unknown_fields();
  316. }
  317. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  318. return _internal_metadata_.mutable_unknown_fields();
  319. }
  320. inline ::google::protobuf::Arena* GetArena() const final {
  321. return GetArenaNoVirtual();
  322. }
  323. inline void* GetMaybeArenaPointer() const final {
  324. return MaybeArenaPtr();
  325. }
  326. static const ::google::protobuf::Descriptor* descriptor();
  327. static const FileDescriptorSet& default_instance();
  328. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  329. static inline const FileDescriptorSet* internal_default_instance() {
  330. return reinterpret_cast<const FileDescriptorSet*>(
  331. &_FileDescriptorSet_default_instance_);
  332. }
  333. static constexpr int kIndexInFileMessages =
  334. 0;
  335. void UnsafeArenaSwap(FileDescriptorSet* other);
  336. void Swap(FileDescriptorSet* other);
  337. friend void swap(FileDescriptorSet& a, FileDescriptorSet& b) {
  338. a.Swap(&b);
  339. }
  340. // implements Message ----------------------------------------------
  341. inline FileDescriptorSet* New() const final {
  342. return CreateMaybeMessage<FileDescriptorSet>(NULL);
  343. }
  344. FileDescriptorSet* New(::google::protobuf::Arena* arena) const final {
  345. return CreateMaybeMessage<FileDescriptorSet>(arena);
  346. }
  347. void CopyFrom(const ::google::protobuf::Message& from) final;
  348. void MergeFrom(const ::google::protobuf::Message& from) final;
  349. void CopyFrom(const FileDescriptorSet& from);
  350. void MergeFrom(const FileDescriptorSet& from);
  351. void Clear() final;
  352. bool IsInitialized() const final;
  353. size_t ByteSizeLong() const final;
  354. bool MergePartialFromCodedStream(
  355. ::google::protobuf::io::CodedInputStream* input) final;
  356. void SerializeWithCachedSizes(
  357. ::google::protobuf::io::CodedOutputStream* output) const final;
  358. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  359. bool deterministic, ::google::protobuf::uint8* target) const final;
  360. int GetCachedSize() const final { return _cached_size_.Get(); }
  361. private:
  362. void SharedCtor();
  363. void SharedDtor();
  364. void SetCachedSize(int size) const final;
  365. void InternalSwap(FileDescriptorSet* other);
  366. protected:
  367. explicit FileDescriptorSet(::google::protobuf::Arena* arena);
  368. private:
  369. static void ArenaDtor(void* object);
  370. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  371. private:
  372. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  373. return _internal_metadata_.arena();
  374. }
  375. inline void* MaybeArenaPtr() const {
  376. return _internal_metadata_.raw_arena_ptr();
  377. }
  378. public:
  379. ::google::protobuf::Metadata GetMetadata() const final;
  380. // nested types ----------------------------------------------------
  381. // accessors -------------------------------------------------------
  382. // repeated .google.protobuf.FileDescriptorProto file = 1;
  383. int file_size() const;
  384. void clear_file();
  385. static const int kFileFieldNumber = 1;
  386. ::google::protobuf::FileDescriptorProto* mutable_file(int index);
  387. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  388. mutable_file();
  389. const ::google::protobuf::FileDescriptorProto& file(int index) const;
  390. ::google::protobuf::FileDescriptorProto* add_file();
  391. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  392. file() const;
  393. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
  394. private:
  395. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  396. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  397. typedef void InternalArenaConstructable_;
  398. typedef void DestructorSkippable_;
  399. ::google::protobuf::internal::HasBits<1> _has_bits_;
  400. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  401. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_;
  402. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  403. };
  404. // -------------------------------------------------------------------
  405. class LIBPROTOBUF_EXPORT FileDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorProto) */ {
  406. public:
  407. FileDescriptorProto();
  408. virtual ~FileDescriptorProto();
  409. FileDescriptorProto(const FileDescriptorProto& from);
  410. inline FileDescriptorProto& operator=(const FileDescriptorProto& from) {
  411. CopyFrom(from);
  412. return *this;
  413. }
  414. #if LANG_CXX11
  415. FileDescriptorProto(FileDescriptorProto&& from) noexcept
  416. : FileDescriptorProto() {
  417. *this = ::std::move(from);
  418. }
  419. inline FileDescriptorProto& operator=(FileDescriptorProto&& from) noexcept {
  420. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  421. if (this != &from) InternalSwap(&from);
  422. } else {
  423. CopyFrom(from);
  424. }
  425. return *this;
  426. }
  427. #endif
  428. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  429. return _internal_metadata_.unknown_fields();
  430. }
  431. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  432. return _internal_metadata_.mutable_unknown_fields();
  433. }
  434. inline ::google::protobuf::Arena* GetArena() const final {
  435. return GetArenaNoVirtual();
  436. }
  437. inline void* GetMaybeArenaPointer() const final {
  438. return MaybeArenaPtr();
  439. }
  440. static const ::google::protobuf::Descriptor* descriptor();
  441. static const FileDescriptorProto& default_instance();
  442. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  443. static inline const FileDescriptorProto* internal_default_instance() {
  444. return reinterpret_cast<const FileDescriptorProto*>(
  445. &_FileDescriptorProto_default_instance_);
  446. }
  447. static constexpr int kIndexInFileMessages =
  448. 1;
  449. void UnsafeArenaSwap(FileDescriptorProto* other);
  450. void Swap(FileDescriptorProto* other);
  451. friend void swap(FileDescriptorProto& a, FileDescriptorProto& b) {
  452. a.Swap(&b);
  453. }
  454. // implements Message ----------------------------------------------
  455. inline FileDescriptorProto* New() const final {
  456. return CreateMaybeMessage<FileDescriptorProto>(NULL);
  457. }
  458. FileDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  459. return CreateMaybeMessage<FileDescriptorProto>(arena);
  460. }
  461. void CopyFrom(const ::google::protobuf::Message& from) final;
  462. void MergeFrom(const ::google::protobuf::Message& from) final;
  463. void CopyFrom(const FileDescriptorProto& from);
  464. void MergeFrom(const FileDescriptorProto& from);
  465. void Clear() final;
  466. bool IsInitialized() const final;
  467. size_t ByteSizeLong() const final;
  468. bool MergePartialFromCodedStream(
  469. ::google::protobuf::io::CodedInputStream* input) final;
  470. void SerializeWithCachedSizes(
  471. ::google::protobuf::io::CodedOutputStream* output) const final;
  472. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  473. bool deterministic, ::google::protobuf::uint8* target) const final;
  474. int GetCachedSize() const final { return _cached_size_.Get(); }
  475. private:
  476. void SharedCtor();
  477. void SharedDtor();
  478. void SetCachedSize(int size) const final;
  479. void InternalSwap(FileDescriptorProto* other);
  480. protected:
  481. explicit FileDescriptorProto(::google::protobuf::Arena* arena);
  482. private:
  483. static void ArenaDtor(void* object);
  484. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  485. private:
  486. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  487. return _internal_metadata_.arena();
  488. }
  489. inline void* MaybeArenaPtr() const {
  490. return _internal_metadata_.raw_arena_ptr();
  491. }
  492. public:
  493. ::google::protobuf::Metadata GetMetadata() const final;
  494. // nested types ----------------------------------------------------
  495. // accessors -------------------------------------------------------
  496. // repeated string dependency = 3;
  497. int dependency_size() const;
  498. void clear_dependency();
  499. static const int kDependencyFieldNumber = 3;
  500. const ::std::string& dependency(int index) const;
  501. ::std::string* mutable_dependency(int index);
  502. void set_dependency(int index, const ::std::string& value);
  503. #if LANG_CXX11
  504. void set_dependency(int index, ::std::string&& value);
  505. #endif
  506. void set_dependency(int index, const char* value);
  507. void set_dependency(int index, const char* value, size_t size);
  508. ::std::string* add_dependency();
  509. void add_dependency(const ::std::string& value);
  510. #if LANG_CXX11
  511. void add_dependency(::std::string&& value);
  512. #endif
  513. void add_dependency(const char* value);
  514. void add_dependency(const char* value, size_t size);
  515. const ::google::protobuf::RepeatedPtrField< ::std::string>& dependency() const;
  516. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dependency();
  517. // repeated .google.protobuf.DescriptorProto message_type = 4;
  518. int message_type_size() const;
  519. void clear_message_type();
  520. static const int kMessageTypeFieldNumber = 4;
  521. ::google::protobuf::DescriptorProto* mutable_message_type(int index);
  522. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  523. mutable_message_type();
  524. const ::google::protobuf::DescriptorProto& message_type(int index) const;
  525. ::google::protobuf::DescriptorProto* add_message_type();
  526. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  527. message_type() const;
  528. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  529. int enum_type_size() const;
  530. void clear_enum_type();
  531. static const int kEnumTypeFieldNumber = 5;
  532. ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
  533. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  534. mutable_enum_type();
  535. const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
  536. ::google::protobuf::EnumDescriptorProto* add_enum_type();
  537. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  538. enum_type() const;
  539. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  540. int service_size() const;
  541. void clear_service();
  542. static const int kServiceFieldNumber = 6;
  543. ::google::protobuf::ServiceDescriptorProto* mutable_service(int index);
  544. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
  545. mutable_service();
  546. const ::google::protobuf::ServiceDescriptorProto& service(int index) const;
  547. ::google::protobuf::ServiceDescriptorProto* add_service();
  548. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
  549. service() const;
  550. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  551. int extension_size() const;
  552. void clear_extension();
  553. static const int kExtensionFieldNumber = 7;
  554. ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
  555. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  556. mutable_extension();
  557. const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
  558. ::google::protobuf::FieldDescriptorProto* add_extension();
  559. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  560. extension() const;
  561. // repeated int32 public_dependency = 10;
  562. int public_dependency_size() const;
  563. void clear_public_dependency();
  564. static const int kPublicDependencyFieldNumber = 10;
  565. ::google::protobuf::int32 public_dependency(int index) const;
  566. void set_public_dependency(int index, ::google::protobuf::int32 value);
  567. void add_public_dependency(::google::protobuf::int32 value);
  568. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  569. public_dependency() const;
  570. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  571. mutable_public_dependency();
  572. // repeated int32 weak_dependency = 11;
  573. int weak_dependency_size() const;
  574. void clear_weak_dependency();
  575. static const int kWeakDependencyFieldNumber = 11;
  576. ::google::protobuf::int32 weak_dependency(int index) const;
  577. void set_weak_dependency(int index, ::google::protobuf::int32 value);
  578. void add_weak_dependency(::google::protobuf::int32 value);
  579. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  580. weak_dependency() const;
  581. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  582. mutable_weak_dependency();
  583. // optional string name = 1;
  584. bool has_name() const;
  585. void clear_name();
  586. static const int kNameFieldNumber = 1;
  587. const ::std::string& name() const;
  588. void set_name(const ::std::string& value);
  589. #if LANG_CXX11
  590. void set_name(::std::string&& value);
  591. #endif
  592. void set_name(const char* value);
  593. void set_name(const char* value, size_t size);
  594. ::std::string* mutable_name();
  595. ::std::string* release_name();
  596. void set_allocated_name(::std::string* name);
  597. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  598. " string fields are deprecated and will be removed in a"
  599. " future release.")
  600. ::std::string* unsafe_arena_release_name();
  601. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  602. " string fields are deprecated and will be removed in a"
  603. " future release.")
  604. void unsafe_arena_set_allocated_name(
  605. ::std::string* name);
  606. // optional string package = 2;
  607. bool has_package() const;
  608. void clear_package();
  609. static const int kPackageFieldNumber = 2;
  610. const ::std::string& package() const;
  611. void set_package(const ::std::string& value);
  612. #if LANG_CXX11
  613. void set_package(::std::string&& value);
  614. #endif
  615. void set_package(const char* value);
  616. void set_package(const char* value, size_t size);
  617. ::std::string* mutable_package();
  618. ::std::string* release_package();
  619. void set_allocated_package(::std::string* package);
  620. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  621. " string fields are deprecated and will be removed in a"
  622. " future release.")
  623. ::std::string* unsafe_arena_release_package();
  624. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  625. " string fields are deprecated and will be removed in a"
  626. " future release.")
  627. void unsafe_arena_set_allocated_package(
  628. ::std::string* package);
  629. // optional string syntax = 12;
  630. bool has_syntax() const;
  631. void clear_syntax();
  632. static const int kSyntaxFieldNumber = 12;
  633. const ::std::string& syntax() const;
  634. void set_syntax(const ::std::string& value);
  635. #if LANG_CXX11
  636. void set_syntax(::std::string&& value);
  637. #endif
  638. void set_syntax(const char* value);
  639. void set_syntax(const char* value, size_t size);
  640. ::std::string* mutable_syntax();
  641. ::std::string* release_syntax();
  642. void set_allocated_syntax(::std::string* syntax);
  643. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  644. " string fields are deprecated and will be removed in a"
  645. " future release.")
  646. ::std::string* unsafe_arena_release_syntax();
  647. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  648. " string fields are deprecated and will be removed in a"
  649. " future release.")
  650. void unsafe_arena_set_allocated_syntax(
  651. ::std::string* syntax);
  652. // optional .google.protobuf.FileOptions options = 8;
  653. bool has_options() const;
  654. void clear_options();
  655. static const int kOptionsFieldNumber = 8;
  656. private:
  657. const ::google::protobuf::FileOptions& _internal_options() const;
  658. public:
  659. const ::google::protobuf::FileOptions& options() const;
  660. ::google::protobuf::FileOptions* release_options();
  661. ::google::protobuf::FileOptions* mutable_options();
  662. void set_allocated_options(::google::protobuf::FileOptions* options);
  663. void unsafe_arena_set_allocated_options(
  664. ::google::protobuf::FileOptions* options);
  665. ::google::protobuf::FileOptions* unsafe_arena_release_options();
  666. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  667. bool has_source_code_info() const;
  668. void clear_source_code_info();
  669. static const int kSourceCodeInfoFieldNumber = 9;
  670. private:
  671. const ::google::protobuf::SourceCodeInfo& _internal_source_code_info() const;
  672. public:
  673. const ::google::protobuf::SourceCodeInfo& source_code_info() const;
  674. ::google::protobuf::SourceCodeInfo* release_source_code_info();
  675. ::google::protobuf::SourceCodeInfo* mutable_source_code_info();
  676. void set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info);
  677. void unsafe_arena_set_allocated_source_code_info(
  678. ::google::protobuf::SourceCodeInfo* source_code_info);
  679. ::google::protobuf::SourceCodeInfo* unsafe_arena_release_source_code_info();
  680. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
  681. private:
  682. void set_has_name();
  683. void clear_has_name();
  684. void set_has_package();
  685. void clear_has_package();
  686. void set_has_options();
  687. void clear_has_options();
  688. void set_has_source_code_info();
  689. void clear_has_source_code_info();
  690. void set_has_syntax();
  691. void clear_has_syntax();
  692. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  693. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  694. typedef void InternalArenaConstructable_;
  695. typedef void DestructorSkippable_;
  696. ::google::protobuf::internal::HasBits<1> _has_bits_;
  697. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  698. ::google::protobuf::RepeatedPtrField< ::std::string> dependency_;
  699. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > message_type_;
  700. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
  701. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto > service_;
  702. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
  703. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > public_dependency_;
  704. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > weak_dependency_;
  705. ::google::protobuf::internal::ArenaStringPtr name_;
  706. ::google::protobuf::internal::ArenaStringPtr package_;
  707. ::google::protobuf::internal::ArenaStringPtr syntax_;
  708. ::google::protobuf::FileOptions* options_;
  709. ::google::protobuf::SourceCodeInfo* source_code_info_;
  710. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  711. };
  712. // -------------------------------------------------------------------
  713. class LIBPROTOBUF_EXPORT DescriptorProto_ExtensionRange : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ExtensionRange) */ {
  714. public:
  715. DescriptorProto_ExtensionRange();
  716. virtual ~DescriptorProto_ExtensionRange();
  717. DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from);
  718. inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) {
  719. CopyFrom(from);
  720. return *this;
  721. }
  722. #if LANG_CXX11
  723. DescriptorProto_ExtensionRange(DescriptorProto_ExtensionRange&& from) noexcept
  724. : DescriptorProto_ExtensionRange() {
  725. *this = ::std::move(from);
  726. }
  727. inline DescriptorProto_ExtensionRange& operator=(DescriptorProto_ExtensionRange&& from) noexcept {
  728. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  729. if (this != &from) InternalSwap(&from);
  730. } else {
  731. CopyFrom(from);
  732. }
  733. return *this;
  734. }
  735. #endif
  736. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  737. return _internal_metadata_.unknown_fields();
  738. }
  739. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  740. return _internal_metadata_.mutable_unknown_fields();
  741. }
  742. inline ::google::protobuf::Arena* GetArena() const final {
  743. return GetArenaNoVirtual();
  744. }
  745. inline void* GetMaybeArenaPointer() const final {
  746. return MaybeArenaPtr();
  747. }
  748. static const ::google::protobuf::Descriptor* descriptor();
  749. static const DescriptorProto_ExtensionRange& default_instance();
  750. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  751. static inline const DescriptorProto_ExtensionRange* internal_default_instance() {
  752. return reinterpret_cast<const DescriptorProto_ExtensionRange*>(
  753. &_DescriptorProto_ExtensionRange_default_instance_);
  754. }
  755. static constexpr int kIndexInFileMessages =
  756. 2;
  757. void UnsafeArenaSwap(DescriptorProto_ExtensionRange* other);
  758. void Swap(DescriptorProto_ExtensionRange* other);
  759. friend void swap(DescriptorProto_ExtensionRange& a, DescriptorProto_ExtensionRange& b) {
  760. a.Swap(&b);
  761. }
  762. // implements Message ----------------------------------------------
  763. inline DescriptorProto_ExtensionRange* New() const final {
  764. return CreateMaybeMessage<DescriptorProto_ExtensionRange>(NULL);
  765. }
  766. DescriptorProto_ExtensionRange* New(::google::protobuf::Arena* arena) const final {
  767. return CreateMaybeMessage<DescriptorProto_ExtensionRange>(arena);
  768. }
  769. void CopyFrom(const ::google::protobuf::Message& from) final;
  770. void MergeFrom(const ::google::protobuf::Message& from) final;
  771. void CopyFrom(const DescriptorProto_ExtensionRange& from);
  772. void MergeFrom(const DescriptorProto_ExtensionRange& from);
  773. void Clear() final;
  774. bool IsInitialized() const final;
  775. size_t ByteSizeLong() const final;
  776. bool MergePartialFromCodedStream(
  777. ::google::protobuf::io::CodedInputStream* input) final;
  778. void SerializeWithCachedSizes(
  779. ::google::protobuf::io::CodedOutputStream* output) const final;
  780. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  781. bool deterministic, ::google::protobuf::uint8* target) const final;
  782. int GetCachedSize() const final { return _cached_size_.Get(); }
  783. private:
  784. void SharedCtor();
  785. void SharedDtor();
  786. void SetCachedSize(int size) const final;
  787. void InternalSwap(DescriptorProto_ExtensionRange* other);
  788. protected:
  789. explicit DescriptorProto_ExtensionRange(::google::protobuf::Arena* arena);
  790. private:
  791. static void ArenaDtor(void* object);
  792. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  793. private:
  794. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  795. return _internal_metadata_.arena();
  796. }
  797. inline void* MaybeArenaPtr() const {
  798. return _internal_metadata_.raw_arena_ptr();
  799. }
  800. public:
  801. ::google::protobuf::Metadata GetMetadata() const final;
  802. // nested types ----------------------------------------------------
  803. // accessors -------------------------------------------------------
  804. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  805. bool has_options() const;
  806. void clear_options();
  807. static const int kOptionsFieldNumber = 3;
  808. private:
  809. const ::google::protobuf::ExtensionRangeOptions& _internal_options() const;
  810. public:
  811. const ::google::protobuf::ExtensionRangeOptions& options() const;
  812. ::google::protobuf::ExtensionRangeOptions* release_options();
  813. ::google::protobuf::ExtensionRangeOptions* mutable_options();
  814. void set_allocated_options(::google::protobuf::ExtensionRangeOptions* options);
  815. void unsafe_arena_set_allocated_options(
  816. ::google::protobuf::ExtensionRangeOptions* options);
  817. ::google::protobuf::ExtensionRangeOptions* unsafe_arena_release_options();
  818. // optional int32 start = 1;
  819. bool has_start() const;
  820. void clear_start();
  821. static const int kStartFieldNumber = 1;
  822. ::google::protobuf::int32 start() const;
  823. void set_start(::google::protobuf::int32 value);
  824. // optional int32 end = 2;
  825. bool has_end() const;
  826. void clear_end();
  827. static const int kEndFieldNumber = 2;
  828. ::google::protobuf::int32 end() const;
  829. void set_end(::google::protobuf::int32 value);
  830. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
  831. private:
  832. void set_has_start();
  833. void clear_has_start();
  834. void set_has_end();
  835. void clear_has_end();
  836. void set_has_options();
  837. void clear_has_options();
  838. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  839. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  840. typedef void InternalArenaConstructable_;
  841. typedef void DestructorSkippable_;
  842. ::google::protobuf::internal::HasBits<1> _has_bits_;
  843. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  844. ::google::protobuf::ExtensionRangeOptions* options_;
  845. ::google::protobuf::int32 start_;
  846. ::google::protobuf::int32 end_;
  847. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  848. };
  849. // -------------------------------------------------------------------
  850. class LIBPROTOBUF_EXPORT DescriptorProto_ReservedRange : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ReservedRange) */ {
  851. public:
  852. DescriptorProto_ReservedRange();
  853. virtual ~DescriptorProto_ReservedRange();
  854. DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from);
  855. inline DescriptorProto_ReservedRange& operator=(const DescriptorProto_ReservedRange& from) {
  856. CopyFrom(from);
  857. return *this;
  858. }
  859. #if LANG_CXX11
  860. DescriptorProto_ReservedRange(DescriptorProto_ReservedRange&& from) noexcept
  861. : DescriptorProto_ReservedRange() {
  862. *this = ::std::move(from);
  863. }
  864. inline DescriptorProto_ReservedRange& operator=(DescriptorProto_ReservedRange&& from) noexcept {
  865. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  866. if (this != &from) InternalSwap(&from);
  867. } else {
  868. CopyFrom(from);
  869. }
  870. return *this;
  871. }
  872. #endif
  873. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  874. return _internal_metadata_.unknown_fields();
  875. }
  876. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  877. return _internal_metadata_.mutable_unknown_fields();
  878. }
  879. inline ::google::protobuf::Arena* GetArena() const final {
  880. return GetArenaNoVirtual();
  881. }
  882. inline void* GetMaybeArenaPointer() const final {
  883. return MaybeArenaPtr();
  884. }
  885. static const ::google::protobuf::Descriptor* descriptor();
  886. static const DescriptorProto_ReservedRange& default_instance();
  887. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  888. static inline const DescriptorProto_ReservedRange* internal_default_instance() {
  889. return reinterpret_cast<const DescriptorProto_ReservedRange*>(
  890. &_DescriptorProto_ReservedRange_default_instance_);
  891. }
  892. static constexpr int kIndexInFileMessages =
  893. 3;
  894. void UnsafeArenaSwap(DescriptorProto_ReservedRange* other);
  895. void Swap(DescriptorProto_ReservedRange* other);
  896. friend void swap(DescriptorProto_ReservedRange& a, DescriptorProto_ReservedRange& b) {
  897. a.Swap(&b);
  898. }
  899. // implements Message ----------------------------------------------
  900. inline DescriptorProto_ReservedRange* New() const final {
  901. return CreateMaybeMessage<DescriptorProto_ReservedRange>(NULL);
  902. }
  903. DescriptorProto_ReservedRange* New(::google::protobuf::Arena* arena) const final {
  904. return CreateMaybeMessage<DescriptorProto_ReservedRange>(arena);
  905. }
  906. void CopyFrom(const ::google::protobuf::Message& from) final;
  907. void MergeFrom(const ::google::protobuf::Message& from) final;
  908. void CopyFrom(const DescriptorProto_ReservedRange& from);
  909. void MergeFrom(const DescriptorProto_ReservedRange& from);
  910. void Clear() final;
  911. bool IsInitialized() const final;
  912. size_t ByteSizeLong() const final;
  913. bool MergePartialFromCodedStream(
  914. ::google::protobuf::io::CodedInputStream* input) final;
  915. void SerializeWithCachedSizes(
  916. ::google::protobuf::io::CodedOutputStream* output) const final;
  917. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  918. bool deterministic, ::google::protobuf::uint8* target) const final;
  919. int GetCachedSize() const final { return _cached_size_.Get(); }
  920. private:
  921. void SharedCtor();
  922. void SharedDtor();
  923. void SetCachedSize(int size) const final;
  924. void InternalSwap(DescriptorProto_ReservedRange* other);
  925. protected:
  926. explicit DescriptorProto_ReservedRange(::google::protobuf::Arena* arena);
  927. private:
  928. static void ArenaDtor(void* object);
  929. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  930. private:
  931. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  932. return _internal_metadata_.arena();
  933. }
  934. inline void* MaybeArenaPtr() const {
  935. return _internal_metadata_.raw_arena_ptr();
  936. }
  937. public:
  938. ::google::protobuf::Metadata GetMetadata() const final;
  939. // nested types ----------------------------------------------------
  940. // accessors -------------------------------------------------------
  941. // optional int32 start = 1;
  942. bool has_start() const;
  943. void clear_start();
  944. static const int kStartFieldNumber = 1;
  945. ::google::protobuf::int32 start() const;
  946. void set_start(::google::protobuf::int32 value);
  947. // optional int32 end = 2;
  948. bool has_end() const;
  949. void clear_end();
  950. static const int kEndFieldNumber = 2;
  951. ::google::protobuf::int32 end() const;
  952. void set_end(::google::protobuf::int32 value);
  953. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ReservedRange)
  954. private:
  955. void set_has_start();
  956. void clear_has_start();
  957. void set_has_end();
  958. void clear_has_end();
  959. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  960. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  961. typedef void InternalArenaConstructable_;
  962. typedef void DestructorSkippable_;
  963. ::google::protobuf::internal::HasBits<1> _has_bits_;
  964. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  965. ::google::protobuf::int32 start_;
  966. ::google::protobuf::int32 end_;
  967. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  968. };
  969. // -------------------------------------------------------------------
  970. class LIBPROTOBUF_EXPORT DescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto) */ {
  971. public:
  972. DescriptorProto();
  973. virtual ~DescriptorProto();
  974. DescriptorProto(const DescriptorProto& from);
  975. inline DescriptorProto& operator=(const DescriptorProto& from) {
  976. CopyFrom(from);
  977. return *this;
  978. }
  979. #if LANG_CXX11
  980. DescriptorProto(DescriptorProto&& from) noexcept
  981. : DescriptorProto() {
  982. *this = ::std::move(from);
  983. }
  984. inline DescriptorProto& operator=(DescriptorProto&& from) noexcept {
  985. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  986. if (this != &from) InternalSwap(&from);
  987. } else {
  988. CopyFrom(from);
  989. }
  990. return *this;
  991. }
  992. #endif
  993. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  994. return _internal_metadata_.unknown_fields();
  995. }
  996. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  997. return _internal_metadata_.mutable_unknown_fields();
  998. }
  999. inline ::google::protobuf::Arena* GetArena() const final {
  1000. return GetArenaNoVirtual();
  1001. }
  1002. inline void* GetMaybeArenaPointer() const final {
  1003. return MaybeArenaPtr();
  1004. }
  1005. static const ::google::protobuf::Descriptor* descriptor();
  1006. static const DescriptorProto& default_instance();
  1007. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1008. static inline const DescriptorProto* internal_default_instance() {
  1009. return reinterpret_cast<const DescriptorProto*>(
  1010. &_DescriptorProto_default_instance_);
  1011. }
  1012. static constexpr int kIndexInFileMessages =
  1013. 4;
  1014. void UnsafeArenaSwap(DescriptorProto* other);
  1015. void Swap(DescriptorProto* other);
  1016. friend void swap(DescriptorProto& a, DescriptorProto& b) {
  1017. a.Swap(&b);
  1018. }
  1019. // implements Message ----------------------------------------------
  1020. inline DescriptorProto* New() const final {
  1021. return CreateMaybeMessage<DescriptorProto>(NULL);
  1022. }
  1023. DescriptorProto* New(::google::protobuf::Arena* arena) const final {
  1024. return CreateMaybeMessage<DescriptorProto>(arena);
  1025. }
  1026. void CopyFrom(const ::google::protobuf::Message& from) final;
  1027. void MergeFrom(const ::google::protobuf::Message& from) final;
  1028. void CopyFrom(const DescriptorProto& from);
  1029. void MergeFrom(const DescriptorProto& from);
  1030. void Clear() final;
  1031. bool IsInitialized() const final;
  1032. size_t ByteSizeLong() const final;
  1033. bool MergePartialFromCodedStream(
  1034. ::google::protobuf::io::CodedInputStream* input) final;
  1035. void SerializeWithCachedSizes(
  1036. ::google::protobuf::io::CodedOutputStream* output) const final;
  1037. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1038. bool deterministic, ::google::protobuf::uint8* target) const final;
  1039. int GetCachedSize() const final { return _cached_size_.Get(); }
  1040. private:
  1041. void SharedCtor();
  1042. void SharedDtor();
  1043. void SetCachedSize(int size) const final;
  1044. void InternalSwap(DescriptorProto* other);
  1045. protected:
  1046. explicit DescriptorProto(::google::protobuf::Arena* arena);
  1047. private:
  1048. static void ArenaDtor(void* object);
  1049. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1050. private:
  1051. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1052. return _internal_metadata_.arena();
  1053. }
  1054. inline void* MaybeArenaPtr() const {
  1055. return _internal_metadata_.raw_arena_ptr();
  1056. }
  1057. public:
  1058. ::google::protobuf::Metadata GetMetadata() const final;
  1059. // nested types ----------------------------------------------------
  1060. typedef DescriptorProto_ExtensionRange ExtensionRange;
  1061. typedef DescriptorProto_ReservedRange ReservedRange;
  1062. // accessors -------------------------------------------------------
  1063. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1064. int field_size() const;
  1065. void clear_field();
  1066. static const int kFieldFieldNumber = 2;
  1067. ::google::protobuf::FieldDescriptorProto* mutable_field(int index);
  1068. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  1069. mutable_field();
  1070. const ::google::protobuf::FieldDescriptorProto& field(int index) const;
  1071. ::google::protobuf::FieldDescriptorProto* add_field();
  1072. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  1073. field() const;
  1074. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1075. int nested_type_size() const;
  1076. void clear_nested_type();
  1077. static const int kNestedTypeFieldNumber = 3;
  1078. ::google::protobuf::DescriptorProto* mutable_nested_type(int index);
  1079. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  1080. mutable_nested_type();
  1081. const ::google::protobuf::DescriptorProto& nested_type(int index) const;
  1082. ::google::protobuf::DescriptorProto* add_nested_type();
  1083. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  1084. nested_type() const;
  1085. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1086. int enum_type_size() const;
  1087. void clear_enum_type();
  1088. static const int kEnumTypeFieldNumber = 4;
  1089. ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
  1090. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  1091. mutable_enum_type();
  1092. const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
  1093. ::google::protobuf::EnumDescriptorProto* add_enum_type();
  1094. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  1095. enum_type() const;
  1096. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1097. int extension_range_size() const;
  1098. void clear_extension_range();
  1099. static const int kExtensionRangeFieldNumber = 5;
  1100. ::google::protobuf::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
  1101. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
  1102. mutable_extension_range();
  1103. const ::google::protobuf::DescriptorProto_ExtensionRange& extension_range(int index) const;
  1104. ::google::protobuf::DescriptorProto_ExtensionRange* add_extension_range();
  1105. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
  1106. extension_range() const;
  1107. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1108. int extension_size() const;
  1109. void clear_extension();
  1110. static const int kExtensionFieldNumber = 6;
  1111. ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
  1112. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  1113. mutable_extension();
  1114. const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
  1115. ::google::protobuf::FieldDescriptorProto* add_extension();
  1116. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  1117. extension() const;
  1118. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  1119. int oneof_decl_size() const;
  1120. void clear_oneof_decl();
  1121. static const int kOneofDeclFieldNumber = 8;
  1122. ::google::protobuf::OneofDescriptorProto* mutable_oneof_decl(int index);
  1123. ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
  1124. mutable_oneof_decl();
  1125. const ::google::protobuf::OneofDescriptorProto& oneof_decl(int index) const;
  1126. ::google::protobuf::OneofDescriptorProto* add_oneof_decl();
  1127. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
  1128. oneof_decl() const;
  1129. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  1130. int reserved_range_size() const;
  1131. void clear_reserved_range();
  1132. static const int kReservedRangeFieldNumber = 9;
  1133. ::google::protobuf::DescriptorProto_ReservedRange* mutable_reserved_range(int index);
  1134. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >*
  1135. mutable_reserved_range();
  1136. const ::google::protobuf::DescriptorProto_ReservedRange& reserved_range(int index) const;
  1137. ::google::protobuf::DescriptorProto_ReservedRange* add_reserved_range();
  1138. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >&
  1139. reserved_range() const;
  1140. // repeated string reserved_name = 10;
  1141. int reserved_name_size() const;
  1142. void clear_reserved_name();
  1143. static const int kReservedNameFieldNumber = 10;
  1144. const ::std::string& reserved_name(int index) const;
  1145. ::std::string* mutable_reserved_name(int index);
  1146. void set_reserved_name(int index, const ::std::string& value);
  1147. #if LANG_CXX11
  1148. void set_reserved_name(int index, ::std::string&& value);
  1149. #endif
  1150. void set_reserved_name(int index, const char* value);
  1151. void set_reserved_name(int index, const char* value, size_t size);
  1152. ::std::string* add_reserved_name();
  1153. void add_reserved_name(const ::std::string& value);
  1154. #if LANG_CXX11
  1155. void add_reserved_name(::std::string&& value);
  1156. #endif
  1157. void add_reserved_name(const char* value);
  1158. void add_reserved_name(const char* value, size_t size);
  1159. const ::google::protobuf::RepeatedPtrField< ::std::string>& reserved_name() const;
  1160. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_reserved_name();
  1161. // optional string name = 1;
  1162. bool has_name() const;
  1163. void clear_name();
  1164. static const int kNameFieldNumber = 1;
  1165. const ::std::string& name() const;
  1166. void set_name(const ::std::string& value);
  1167. #if LANG_CXX11
  1168. void set_name(::std::string&& value);
  1169. #endif
  1170. void set_name(const char* value);
  1171. void set_name(const char* value, size_t size);
  1172. ::std::string* mutable_name();
  1173. ::std::string* release_name();
  1174. void set_allocated_name(::std::string* name);
  1175. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1176. " string fields are deprecated and will be removed in a"
  1177. " future release.")
  1178. ::std::string* unsafe_arena_release_name();
  1179. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1180. " string fields are deprecated and will be removed in a"
  1181. " future release.")
  1182. void unsafe_arena_set_allocated_name(
  1183. ::std::string* name);
  1184. // optional .google.protobuf.MessageOptions options = 7;
  1185. bool has_options() const;
  1186. void clear_options();
  1187. static const int kOptionsFieldNumber = 7;
  1188. private:
  1189. const ::google::protobuf::MessageOptions& _internal_options() const;
  1190. public:
  1191. const ::google::protobuf::MessageOptions& options() const;
  1192. ::google::protobuf::MessageOptions* release_options();
  1193. ::google::protobuf::MessageOptions* mutable_options();
  1194. void set_allocated_options(::google::protobuf::MessageOptions* options);
  1195. void unsafe_arena_set_allocated_options(
  1196. ::google::protobuf::MessageOptions* options);
  1197. ::google::protobuf::MessageOptions* unsafe_arena_release_options();
  1198. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
  1199. private:
  1200. void set_has_name();
  1201. void clear_has_name();
  1202. void set_has_options();
  1203. void clear_has_options();
  1204. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1205. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1206. typedef void InternalArenaConstructable_;
  1207. typedef void DestructorSkippable_;
  1208. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1209. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1210. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > field_;
  1211. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > nested_type_;
  1212. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
  1213. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange > extension_range_;
  1214. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
  1215. ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto > oneof_decl_;
  1216. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange > reserved_range_;
  1217. ::google::protobuf::RepeatedPtrField< ::std::string> reserved_name_;
  1218. ::google::protobuf::internal::ArenaStringPtr name_;
  1219. ::google::protobuf::MessageOptions* options_;
  1220. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  1221. };
  1222. // -------------------------------------------------------------------
  1223. class LIBPROTOBUF_EXPORT ExtensionRangeOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ExtensionRangeOptions) */ {
  1224. public:
  1225. ExtensionRangeOptions();
  1226. virtual ~ExtensionRangeOptions();
  1227. ExtensionRangeOptions(const ExtensionRangeOptions& from);
  1228. inline ExtensionRangeOptions& operator=(const ExtensionRangeOptions& from) {
  1229. CopyFrom(from);
  1230. return *this;
  1231. }
  1232. #if LANG_CXX11
  1233. ExtensionRangeOptions(ExtensionRangeOptions&& from) noexcept
  1234. : ExtensionRangeOptions() {
  1235. *this = ::std::move(from);
  1236. }
  1237. inline ExtensionRangeOptions& operator=(ExtensionRangeOptions&& from) noexcept {
  1238. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1239. if (this != &from) InternalSwap(&from);
  1240. } else {
  1241. CopyFrom(from);
  1242. }
  1243. return *this;
  1244. }
  1245. #endif
  1246. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1247. return _internal_metadata_.unknown_fields();
  1248. }
  1249. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1250. return _internal_metadata_.mutable_unknown_fields();
  1251. }
  1252. inline ::google::protobuf::Arena* GetArena() const final {
  1253. return GetArenaNoVirtual();
  1254. }
  1255. inline void* GetMaybeArenaPointer() const final {
  1256. return MaybeArenaPtr();
  1257. }
  1258. static const ::google::protobuf::Descriptor* descriptor();
  1259. static const ExtensionRangeOptions& default_instance();
  1260. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1261. static inline const ExtensionRangeOptions* internal_default_instance() {
  1262. return reinterpret_cast<const ExtensionRangeOptions*>(
  1263. &_ExtensionRangeOptions_default_instance_);
  1264. }
  1265. static constexpr int kIndexInFileMessages =
  1266. 5;
  1267. void UnsafeArenaSwap(ExtensionRangeOptions* other);
  1268. void Swap(ExtensionRangeOptions* other);
  1269. friend void swap(ExtensionRangeOptions& a, ExtensionRangeOptions& b) {
  1270. a.Swap(&b);
  1271. }
  1272. // implements Message ----------------------------------------------
  1273. inline ExtensionRangeOptions* New() const final {
  1274. return CreateMaybeMessage<ExtensionRangeOptions>(NULL);
  1275. }
  1276. ExtensionRangeOptions* New(::google::protobuf::Arena* arena) const final {
  1277. return CreateMaybeMessage<ExtensionRangeOptions>(arena);
  1278. }
  1279. void CopyFrom(const ::google::protobuf::Message& from) final;
  1280. void MergeFrom(const ::google::protobuf::Message& from) final;
  1281. void CopyFrom(const ExtensionRangeOptions& from);
  1282. void MergeFrom(const ExtensionRangeOptions& from);
  1283. void Clear() final;
  1284. bool IsInitialized() const final;
  1285. size_t ByteSizeLong() const final;
  1286. bool MergePartialFromCodedStream(
  1287. ::google::protobuf::io::CodedInputStream* input) final;
  1288. void SerializeWithCachedSizes(
  1289. ::google::protobuf::io::CodedOutputStream* output) const final;
  1290. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1291. bool deterministic, ::google::protobuf::uint8* target) const final;
  1292. int GetCachedSize() const final { return _cached_size_.Get(); }
  1293. private:
  1294. void SharedCtor();
  1295. void SharedDtor();
  1296. void SetCachedSize(int size) const final;
  1297. void InternalSwap(ExtensionRangeOptions* other);
  1298. protected:
  1299. explicit ExtensionRangeOptions(::google::protobuf::Arena* arena);
  1300. private:
  1301. static void ArenaDtor(void* object);
  1302. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1303. private:
  1304. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1305. return _internal_metadata_.arena();
  1306. }
  1307. inline void* MaybeArenaPtr() const {
  1308. return _internal_metadata_.raw_arena_ptr();
  1309. }
  1310. public:
  1311. ::google::protobuf::Metadata GetMetadata() const final;
  1312. // nested types ----------------------------------------------------
  1313. // accessors -------------------------------------------------------
  1314. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1315. int uninterpreted_option_size() const;
  1316. void clear_uninterpreted_option();
  1317. static const int kUninterpretedOptionFieldNumber = 999;
  1318. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1319. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1320. mutable_uninterpreted_option();
  1321. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1322. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1323. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1324. uninterpreted_option() const;
  1325. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ExtensionRangeOptions)
  1326. // @@protoc_insertion_point(class_scope:google.protobuf.ExtensionRangeOptions)
  1327. private:
  1328. ::google::protobuf::internal::ExtensionSet _extensions_;
  1329. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1330. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1331. typedef void InternalArenaConstructable_;
  1332. typedef void DestructorSkippable_;
  1333. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1334. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1335. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1336. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  1337. };
  1338. // -------------------------------------------------------------------
  1339. class LIBPROTOBUF_EXPORT FieldDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldDescriptorProto) */ {
  1340. public:
  1341. FieldDescriptorProto();
  1342. virtual ~FieldDescriptorProto();
  1343. FieldDescriptorProto(const FieldDescriptorProto& from);
  1344. inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) {
  1345. CopyFrom(from);
  1346. return *this;
  1347. }
  1348. #if LANG_CXX11
  1349. FieldDescriptorProto(FieldDescriptorProto&& from) noexcept
  1350. : FieldDescriptorProto() {
  1351. *this = ::std::move(from);
  1352. }
  1353. inline FieldDescriptorProto& operator=(FieldDescriptorProto&& from) noexcept {
  1354. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1355. if (this != &from) InternalSwap(&from);
  1356. } else {
  1357. CopyFrom(from);
  1358. }
  1359. return *this;
  1360. }
  1361. #endif
  1362. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1363. return _internal_metadata_.unknown_fields();
  1364. }
  1365. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1366. return _internal_metadata_.mutable_unknown_fields();
  1367. }
  1368. inline ::google::protobuf::Arena* GetArena() const final {
  1369. return GetArenaNoVirtual();
  1370. }
  1371. inline void* GetMaybeArenaPointer() const final {
  1372. return MaybeArenaPtr();
  1373. }
  1374. static const ::google::protobuf::Descriptor* descriptor();
  1375. static const FieldDescriptorProto& default_instance();
  1376. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1377. static inline const FieldDescriptorProto* internal_default_instance() {
  1378. return reinterpret_cast<const FieldDescriptorProto*>(
  1379. &_FieldDescriptorProto_default_instance_);
  1380. }
  1381. static constexpr int kIndexInFileMessages =
  1382. 6;
  1383. void UnsafeArenaSwap(FieldDescriptorProto* other);
  1384. void Swap(FieldDescriptorProto* other);
  1385. friend void swap(FieldDescriptorProto& a, FieldDescriptorProto& b) {
  1386. a.Swap(&b);
  1387. }
  1388. // implements Message ----------------------------------------------
  1389. inline FieldDescriptorProto* New() const final {
  1390. return CreateMaybeMessage<FieldDescriptorProto>(NULL);
  1391. }
  1392. FieldDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  1393. return CreateMaybeMessage<FieldDescriptorProto>(arena);
  1394. }
  1395. void CopyFrom(const ::google::protobuf::Message& from) final;
  1396. void MergeFrom(const ::google::protobuf::Message& from) final;
  1397. void CopyFrom(const FieldDescriptorProto& from);
  1398. void MergeFrom(const FieldDescriptorProto& from);
  1399. void Clear() final;
  1400. bool IsInitialized() const final;
  1401. size_t ByteSizeLong() const final;
  1402. bool MergePartialFromCodedStream(
  1403. ::google::protobuf::io::CodedInputStream* input) final;
  1404. void SerializeWithCachedSizes(
  1405. ::google::protobuf::io::CodedOutputStream* output) const final;
  1406. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1407. bool deterministic, ::google::protobuf::uint8* target) const final;
  1408. int GetCachedSize() const final { return _cached_size_.Get(); }
  1409. private:
  1410. void SharedCtor();
  1411. void SharedDtor();
  1412. void SetCachedSize(int size) const final;
  1413. void InternalSwap(FieldDescriptorProto* other);
  1414. protected:
  1415. explicit FieldDescriptorProto(::google::protobuf::Arena* arena);
  1416. private:
  1417. static void ArenaDtor(void* object);
  1418. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1419. private:
  1420. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1421. return _internal_metadata_.arena();
  1422. }
  1423. inline void* MaybeArenaPtr() const {
  1424. return _internal_metadata_.raw_arena_ptr();
  1425. }
  1426. public:
  1427. ::google::protobuf::Metadata GetMetadata() const final;
  1428. // nested types ----------------------------------------------------
  1429. typedef FieldDescriptorProto_Type Type;
  1430. static const Type TYPE_DOUBLE =
  1431. FieldDescriptorProto_Type_TYPE_DOUBLE;
  1432. static const Type TYPE_FLOAT =
  1433. FieldDescriptorProto_Type_TYPE_FLOAT;
  1434. static const Type TYPE_INT64 =
  1435. FieldDescriptorProto_Type_TYPE_INT64;
  1436. static const Type TYPE_UINT64 =
  1437. FieldDescriptorProto_Type_TYPE_UINT64;
  1438. static const Type TYPE_INT32 =
  1439. FieldDescriptorProto_Type_TYPE_INT32;
  1440. static const Type TYPE_FIXED64 =
  1441. FieldDescriptorProto_Type_TYPE_FIXED64;
  1442. static const Type TYPE_FIXED32 =
  1443. FieldDescriptorProto_Type_TYPE_FIXED32;
  1444. static const Type TYPE_BOOL =
  1445. FieldDescriptorProto_Type_TYPE_BOOL;
  1446. static const Type TYPE_STRING =
  1447. FieldDescriptorProto_Type_TYPE_STRING;
  1448. static const Type TYPE_GROUP =
  1449. FieldDescriptorProto_Type_TYPE_GROUP;
  1450. static const Type TYPE_MESSAGE =
  1451. FieldDescriptorProto_Type_TYPE_MESSAGE;
  1452. static const Type TYPE_BYTES =
  1453. FieldDescriptorProto_Type_TYPE_BYTES;
  1454. static const Type TYPE_UINT32 =
  1455. FieldDescriptorProto_Type_TYPE_UINT32;
  1456. static const Type TYPE_ENUM =
  1457. FieldDescriptorProto_Type_TYPE_ENUM;
  1458. static const Type TYPE_SFIXED32 =
  1459. FieldDescriptorProto_Type_TYPE_SFIXED32;
  1460. static const Type TYPE_SFIXED64 =
  1461. FieldDescriptorProto_Type_TYPE_SFIXED64;
  1462. static const Type TYPE_SINT32 =
  1463. FieldDescriptorProto_Type_TYPE_SINT32;
  1464. static const Type TYPE_SINT64 =
  1465. FieldDescriptorProto_Type_TYPE_SINT64;
  1466. static inline bool Type_IsValid(int value) {
  1467. return FieldDescriptorProto_Type_IsValid(value);
  1468. }
  1469. static const Type Type_MIN =
  1470. FieldDescriptorProto_Type_Type_MIN;
  1471. static const Type Type_MAX =
  1472. FieldDescriptorProto_Type_Type_MAX;
  1473. static const int Type_ARRAYSIZE =
  1474. FieldDescriptorProto_Type_Type_ARRAYSIZE;
  1475. static inline const ::google::protobuf::EnumDescriptor*
  1476. Type_descriptor() {
  1477. return FieldDescriptorProto_Type_descriptor();
  1478. }
  1479. static inline const ::std::string& Type_Name(Type value) {
  1480. return FieldDescriptorProto_Type_Name(value);
  1481. }
  1482. static inline bool Type_Parse(const ::std::string& name,
  1483. Type* value) {
  1484. return FieldDescriptorProto_Type_Parse(name, value);
  1485. }
  1486. typedef FieldDescriptorProto_Label Label;
  1487. static const Label LABEL_OPTIONAL =
  1488. FieldDescriptorProto_Label_LABEL_OPTIONAL;
  1489. static const Label LABEL_REQUIRED =
  1490. FieldDescriptorProto_Label_LABEL_REQUIRED;
  1491. static const Label LABEL_REPEATED =
  1492. FieldDescriptorProto_Label_LABEL_REPEATED;
  1493. static inline bool Label_IsValid(int value) {
  1494. return FieldDescriptorProto_Label_IsValid(value);
  1495. }
  1496. static const Label Label_MIN =
  1497. FieldDescriptorProto_Label_Label_MIN;
  1498. static const Label Label_MAX =
  1499. FieldDescriptorProto_Label_Label_MAX;
  1500. static const int Label_ARRAYSIZE =
  1501. FieldDescriptorProto_Label_Label_ARRAYSIZE;
  1502. static inline const ::google::protobuf::EnumDescriptor*
  1503. Label_descriptor() {
  1504. return FieldDescriptorProto_Label_descriptor();
  1505. }
  1506. static inline const ::std::string& Label_Name(Label value) {
  1507. return FieldDescriptorProto_Label_Name(value);
  1508. }
  1509. static inline bool Label_Parse(const ::std::string& name,
  1510. Label* value) {
  1511. return FieldDescriptorProto_Label_Parse(name, value);
  1512. }
  1513. // accessors -------------------------------------------------------
  1514. // optional string name = 1;
  1515. bool has_name() const;
  1516. void clear_name();
  1517. static const int kNameFieldNumber = 1;
  1518. const ::std::string& name() const;
  1519. void set_name(const ::std::string& value);
  1520. #if LANG_CXX11
  1521. void set_name(::std::string&& value);
  1522. #endif
  1523. void set_name(const char* value);
  1524. void set_name(const char* value, size_t size);
  1525. ::std::string* mutable_name();
  1526. ::std::string* release_name();
  1527. void set_allocated_name(::std::string* name);
  1528. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1529. " string fields are deprecated and will be removed in a"
  1530. " future release.")
  1531. ::std::string* unsafe_arena_release_name();
  1532. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1533. " string fields are deprecated and will be removed in a"
  1534. " future release.")
  1535. void unsafe_arena_set_allocated_name(
  1536. ::std::string* name);
  1537. // optional string extendee = 2;
  1538. bool has_extendee() const;
  1539. void clear_extendee();
  1540. static const int kExtendeeFieldNumber = 2;
  1541. const ::std::string& extendee() const;
  1542. void set_extendee(const ::std::string& value);
  1543. #if LANG_CXX11
  1544. void set_extendee(::std::string&& value);
  1545. #endif
  1546. void set_extendee(const char* value);
  1547. void set_extendee(const char* value, size_t size);
  1548. ::std::string* mutable_extendee();
  1549. ::std::string* release_extendee();
  1550. void set_allocated_extendee(::std::string* extendee);
  1551. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1552. " string fields are deprecated and will be removed in a"
  1553. " future release.")
  1554. ::std::string* unsafe_arena_release_extendee();
  1555. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1556. " string fields are deprecated and will be removed in a"
  1557. " future release.")
  1558. void unsafe_arena_set_allocated_extendee(
  1559. ::std::string* extendee);
  1560. // optional string type_name = 6;
  1561. bool has_type_name() const;
  1562. void clear_type_name();
  1563. static const int kTypeNameFieldNumber = 6;
  1564. const ::std::string& type_name() const;
  1565. void set_type_name(const ::std::string& value);
  1566. #if LANG_CXX11
  1567. void set_type_name(::std::string&& value);
  1568. #endif
  1569. void set_type_name(const char* value);
  1570. void set_type_name(const char* value, size_t size);
  1571. ::std::string* mutable_type_name();
  1572. ::std::string* release_type_name();
  1573. void set_allocated_type_name(::std::string* type_name);
  1574. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1575. " string fields are deprecated and will be removed in a"
  1576. " future release.")
  1577. ::std::string* unsafe_arena_release_type_name();
  1578. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1579. " string fields are deprecated and will be removed in a"
  1580. " future release.")
  1581. void unsafe_arena_set_allocated_type_name(
  1582. ::std::string* type_name);
  1583. // optional string default_value = 7;
  1584. bool has_default_value() const;
  1585. void clear_default_value();
  1586. static const int kDefaultValueFieldNumber = 7;
  1587. const ::std::string& default_value() const;
  1588. void set_default_value(const ::std::string& value);
  1589. #if LANG_CXX11
  1590. void set_default_value(::std::string&& value);
  1591. #endif
  1592. void set_default_value(const char* value);
  1593. void set_default_value(const char* value, size_t size);
  1594. ::std::string* mutable_default_value();
  1595. ::std::string* release_default_value();
  1596. void set_allocated_default_value(::std::string* default_value);
  1597. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1598. " string fields are deprecated and will be removed in a"
  1599. " future release.")
  1600. ::std::string* unsafe_arena_release_default_value();
  1601. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1602. " string fields are deprecated and will be removed in a"
  1603. " future release.")
  1604. void unsafe_arena_set_allocated_default_value(
  1605. ::std::string* default_value);
  1606. // optional string json_name = 10;
  1607. bool has_json_name() const;
  1608. void clear_json_name();
  1609. static const int kJsonNameFieldNumber = 10;
  1610. const ::std::string& json_name() const;
  1611. void set_json_name(const ::std::string& value);
  1612. #if LANG_CXX11
  1613. void set_json_name(::std::string&& value);
  1614. #endif
  1615. void set_json_name(const char* value);
  1616. void set_json_name(const char* value, size_t size);
  1617. ::std::string* mutable_json_name();
  1618. ::std::string* release_json_name();
  1619. void set_allocated_json_name(::std::string* json_name);
  1620. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1621. " string fields are deprecated and will be removed in a"
  1622. " future release.")
  1623. ::std::string* unsafe_arena_release_json_name();
  1624. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1625. " string fields are deprecated and will be removed in a"
  1626. " future release.")
  1627. void unsafe_arena_set_allocated_json_name(
  1628. ::std::string* json_name);
  1629. // optional .google.protobuf.FieldOptions options = 8;
  1630. bool has_options() const;
  1631. void clear_options();
  1632. static const int kOptionsFieldNumber = 8;
  1633. private:
  1634. const ::google::protobuf::FieldOptions& _internal_options() const;
  1635. public:
  1636. const ::google::protobuf::FieldOptions& options() const;
  1637. ::google::protobuf::FieldOptions* release_options();
  1638. ::google::protobuf::FieldOptions* mutable_options();
  1639. void set_allocated_options(::google::protobuf::FieldOptions* options);
  1640. void unsafe_arena_set_allocated_options(
  1641. ::google::protobuf::FieldOptions* options);
  1642. ::google::protobuf::FieldOptions* unsafe_arena_release_options();
  1643. // optional int32 number = 3;
  1644. bool has_number() const;
  1645. void clear_number();
  1646. static const int kNumberFieldNumber = 3;
  1647. ::google::protobuf::int32 number() const;
  1648. void set_number(::google::protobuf::int32 value);
  1649. // optional int32 oneof_index = 9;
  1650. bool has_oneof_index() const;
  1651. void clear_oneof_index();
  1652. static const int kOneofIndexFieldNumber = 9;
  1653. ::google::protobuf::int32 oneof_index() const;
  1654. void set_oneof_index(::google::protobuf::int32 value);
  1655. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  1656. bool has_label() const;
  1657. void clear_label();
  1658. static const int kLabelFieldNumber = 4;
  1659. ::google::protobuf::FieldDescriptorProto_Label label() const;
  1660. void set_label(::google::protobuf::FieldDescriptorProto_Label value);
  1661. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  1662. bool has_type() const;
  1663. void clear_type();
  1664. static const int kTypeFieldNumber = 5;
  1665. ::google::protobuf::FieldDescriptorProto_Type type() const;
  1666. void set_type(::google::protobuf::FieldDescriptorProto_Type value);
  1667. // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
  1668. private:
  1669. void set_has_name();
  1670. void clear_has_name();
  1671. void set_has_number();
  1672. void clear_has_number();
  1673. void set_has_label();
  1674. void clear_has_label();
  1675. void set_has_type();
  1676. void clear_has_type();
  1677. void set_has_type_name();
  1678. void clear_has_type_name();
  1679. void set_has_extendee();
  1680. void clear_has_extendee();
  1681. void set_has_default_value();
  1682. void clear_has_default_value();
  1683. void set_has_oneof_index();
  1684. void clear_has_oneof_index();
  1685. void set_has_json_name();
  1686. void clear_has_json_name();
  1687. void set_has_options();
  1688. void clear_has_options();
  1689. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1690. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1691. typedef void InternalArenaConstructable_;
  1692. typedef void DestructorSkippable_;
  1693. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1694. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1695. ::google::protobuf::internal::ArenaStringPtr name_;
  1696. ::google::protobuf::internal::ArenaStringPtr extendee_;
  1697. ::google::protobuf::internal::ArenaStringPtr type_name_;
  1698. ::google::protobuf::internal::ArenaStringPtr default_value_;
  1699. ::google::protobuf::internal::ArenaStringPtr json_name_;
  1700. ::google::protobuf::FieldOptions* options_;
  1701. ::google::protobuf::int32 number_;
  1702. ::google::protobuf::int32 oneof_index_;
  1703. int label_;
  1704. int type_;
  1705. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  1706. };
  1707. // -------------------------------------------------------------------
  1708. class LIBPROTOBUF_EXPORT OneofDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofDescriptorProto) */ {
  1709. public:
  1710. OneofDescriptorProto();
  1711. virtual ~OneofDescriptorProto();
  1712. OneofDescriptorProto(const OneofDescriptorProto& from);
  1713. inline OneofDescriptorProto& operator=(const OneofDescriptorProto& from) {
  1714. CopyFrom(from);
  1715. return *this;
  1716. }
  1717. #if LANG_CXX11
  1718. OneofDescriptorProto(OneofDescriptorProto&& from) noexcept
  1719. : OneofDescriptorProto() {
  1720. *this = ::std::move(from);
  1721. }
  1722. inline OneofDescriptorProto& operator=(OneofDescriptorProto&& from) noexcept {
  1723. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1724. if (this != &from) InternalSwap(&from);
  1725. } else {
  1726. CopyFrom(from);
  1727. }
  1728. return *this;
  1729. }
  1730. #endif
  1731. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1732. return _internal_metadata_.unknown_fields();
  1733. }
  1734. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1735. return _internal_metadata_.mutable_unknown_fields();
  1736. }
  1737. inline ::google::protobuf::Arena* GetArena() const final {
  1738. return GetArenaNoVirtual();
  1739. }
  1740. inline void* GetMaybeArenaPointer() const final {
  1741. return MaybeArenaPtr();
  1742. }
  1743. static const ::google::protobuf::Descriptor* descriptor();
  1744. static const OneofDescriptorProto& default_instance();
  1745. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1746. static inline const OneofDescriptorProto* internal_default_instance() {
  1747. return reinterpret_cast<const OneofDescriptorProto*>(
  1748. &_OneofDescriptorProto_default_instance_);
  1749. }
  1750. static constexpr int kIndexInFileMessages =
  1751. 7;
  1752. void UnsafeArenaSwap(OneofDescriptorProto* other);
  1753. void Swap(OneofDescriptorProto* other);
  1754. friend void swap(OneofDescriptorProto& a, OneofDescriptorProto& b) {
  1755. a.Swap(&b);
  1756. }
  1757. // implements Message ----------------------------------------------
  1758. inline OneofDescriptorProto* New() const final {
  1759. return CreateMaybeMessage<OneofDescriptorProto>(NULL);
  1760. }
  1761. OneofDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  1762. return CreateMaybeMessage<OneofDescriptorProto>(arena);
  1763. }
  1764. void CopyFrom(const ::google::protobuf::Message& from) final;
  1765. void MergeFrom(const ::google::protobuf::Message& from) final;
  1766. void CopyFrom(const OneofDescriptorProto& from);
  1767. void MergeFrom(const OneofDescriptorProto& from);
  1768. void Clear() final;
  1769. bool IsInitialized() const final;
  1770. size_t ByteSizeLong() const final;
  1771. bool MergePartialFromCodedStream(
  1772. ::google::protobuf::io::CodedInputStream* input) final;
  1773. void SerializeWithCachedSizes(
  1774. ::google::protobuf::io::CodedOutputStream* output) const final;
  1775. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1776. bool deterministic, ::google::protobuf::uint8* target) const final;
  1777. int GetCachedSize() const final { return _cached_size_.Get(); }
  1778. private:
  1779. void SharedCtor();
  1780. void SharedDtor();
  1781. void SetCachedSize(int size) const final;
  1782. void InternalSwap(OneofDescriptorProto* other);
  1783. protected:
  1784. explicit OneofDescriptorProto(::google::protobuf::Arena* arena);
  1785. private:
  1786. static void ArenaDtor(void* object);
  1787. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1788. private:
  1789. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1790. return _internal_metadata_.arena();
  1791. }
  1792. inline void* MaybeArenaPtr() const {
  1793. return _internal_metadata_.raw_arena_ptr();
  1794. }
  1795. public:
  1796. ::google::protobuf::Metadata GetMetadata() const final;
  1797. // nested types ----------------------------------------------------
  1798. // accessors -------------------------------------------------------
  1799. // optional string name = 1;
  1800. bool has_name() const;
  1801. void clear_name();
  1802. static const int kNameFieldNumber = 1;
  1803. const ::std::string& name() const;
  1804. void set_name(const ::std::string& value);
  1805. #if LANG_CXX11
  1806. void set_name(::std::string&& value);
  1807. #endif
  1808. void set_name(const char* value);
  1809. void set_name(const char* value, size_t size);
  1810. ::std::string* mutable_name();
  1811. ::std::string* release_name();
  1812. void set_allocated_name(::std::string* name);
  1813. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1814. " string fields are deprecated and will be removed in a"
  1815. " future release.")
  1816. ::std::string* unsafe_arena_release_name();
  1817. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1818. " string fields are deprecated and will be removed in a"
  1819. " future release.")
  1820. void unsafe_arena_set_allocated_name(
  1821. ::std::string* name);
  1822. // optional .google.protobuf.OneofOptions options = 2;
  1823. bool has_options() const;
  1824. void clear_options();
  1825. static const int kOptionsFieldNumber = 2;
  1826. private:
  1827. const ::google::protobuf::OneofOptions& _internal_options() const;
  1828. public:
  1829. const ::google::protobuf::OneofOptions& options() const;
  1830. ::google::protobuf::OneofOptions* release_options();
  1831. ::google::protobuf::OneofOptions* mutable_options();
  1832. void set_allocated_options(::google::protobuf::OneofOptions* options);
  1833. void unsafe_arena_set_allocated_options(
  1834. ::google::protobuf::OneofOptions* options);
  1835. ::google::protobuf::OneofOptions* unsafe_arena_release_options();
  1836. // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto)
  1837. private:
  1838. void set_has_name();
  1839. void clear_has_name();
  1840. void set_has_options();
  1841. void clear_has_options();
  1842. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1843. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1844. typedef void InternalArenaConstructable_;
  1845. typedef void DestructorSkippable_;
  1846. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1847. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1848. ::google::protobuf::internal::ArenaStringPtr name_;
  1849. ::google::protobuf::OneofOptions* options_;
  1850. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  1851. };
  1852. // -------------------------------------------------------------------
  1853. class LIBPROTOBUF_EXPORT EnumDescriptorProto_EnumReservedRange : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto.EnumReservedRange) */ {
  1854. public:
  1855. EnumDescriptorProto_EnumReservedRange();
  1856. virtual ~EnumDescriptorProto_EnumReservedRange();
  1857. EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from);
  1858. inline EnumDescriptorProto_EnumReservedRange& operator=(const EnumDescriptorProto_EnumReservedRange& from) {
  1859. CopyFrom(from);
  1860. return *this;
  1861. }
  1862. #if LANG_CXX11
  1863. EnumDescriptorProto_EnumReservedRange(EnumDescriptorProto_EnumReservedRange&& from) noexcept
  1864. : EnumDescriptorProto_EnumReservedRange() {
  1865. *this = ::std::move(from);
  1866. }
  1867. inline EnumDescriptorProto_EnumReservedRange& operator=(EnumDescriptorProto_EnumReservedRange&& from) noexcept {
  1868. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1869. if (this != &from) InternalSwap(&from);
  1870. } else {
  1871. CopyFrom(from);
  1872. }
  1873. return *this;
  1874. }
  1875. #endif
  1876. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1877. return _internal_metadata_.unknown_fields();
  1878. }
  1879. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1880. return _internal_metadata_.mutable_unknown_fields();
  1881. }
  1882. inline ::google::protobuf::Arena* GetArena() const final {
  1883. return GetArenaNoVirtual();
  1884. }
  1885. inline void* GetMaybeArenaPointer() const final {
  1886. return MaybeArenaPtr();
  1887. }
  1888. static const ::google::protobuf::Descriptor* descriptor();
  1889. static const EnumDescriptorProto_EnumReservedRange& default_instance();
  1890. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1891. static inline const EnumDescriptorProto_EnumReservedRange* internal_default_instance() {
  1892. return reinterpret_cast<const EnumDescriptorProto_EnumReservedRange*>(
  1893. &_EnumDescriptorProto_EnumReservedRange_default_instance_);
  1894. }
  1895. static constexpr int kIndexInFileMessages =
  1896. 8;
  1897. void UnsafeArenaSwap(EnumDescriptorProto_EnumReservedRange* other);
  1898. void Swap(EnumDescriptorProto_EnumReservedRange* other);
  1899. friend void swap(EnumDescriptorProto_EnumReservedRange& a, EnumDescriptorProto_EnumReservedRange& b) {
  1900. a.Swap(&b);
  1901. }
  1902. // implements Message ----------------------------------------------
  1903. inline EnumDescriptorProto_EnumReservedRange* New() const final {
  1904. return CreateMaybeMessage<EnumDescriptorProto_EnumReservedRange>(NULL);
  1905. }
  1906. EnumDescriptorProto_EnumReservedRange* New(::google::protobuf::Arena* arena) const final {
  1907. return CreateMaybeMessage<EnumDescriptorProto_EnumReservedRange>(arena);
  1908. }
  1909. void CopyFrom(const ::google::protobuf::Message& from) final;
  1910. void MergeFrom(const ::google::protobuf::Message& from) final;
  1911. void CopyFrom(const EnumDescriptorProto_EnumReservedRange& from);
  1912. void MergeFrom(const EnumDescriptorProto_EnumReservedRange& from);
  1913. void Clear() final;
  1914. bool IsInitialized() const final;
  1915. size_t ByteSizeLong() const final;
  1916. bool MergePartialFromCodedStream(
  1917. ::google::protobuf::io::CodedInputStream* input) final;
  1918. void SerializeWithCachedSizes(
  1919. ::google::protobuf::io::CodedOutputStream* output) const final;
  1920. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1921. bool deterministic, ::google::protobuf::uint8* target) const final;
  1922. int GetCachedSize() const final { return _cached_size_.Get(); }
  1923. private:
  1924. void SharedCtor();
  1925. void SharedDtor();
  1926. void SetCachedSize(int size) const final;
  1927. void InternalSwap(EnumDescriptorProto_EnumReservedRange* other);
  1928. protected:
  1929. explicit EnumDescriptorProto_EnumReservedRange(::google::protobuf::Arena* arena);
  1930. private:
  1931. static void ArenaDtor(void* object);
  1932. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1933. private:
  1934. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1935. return _internal_metadata_.arena();
  1936. }
  1937. inline void* MaybeArenaPtr() const {
  1938. return _internal_metadata_.raw_arena_ptr();
  1939. }
  1940. public:
  1941. ::google::protobuf::Metadata GetMetadata() const final;
  1942. // nested types ----------------------------------------------------
  1943. // accessors -------------------------------------------------------
  1944. // optional int32 start = 1;
  1945. bool has_start() const;
  1946. void clear_start();
  1947. static const int kStartFieldNumber = 1;
  1948. ::google::protobuf::int32 start() const;
  1949. void set_start(::google::protobuf::int32 value);
  1950. // optional int32 end = 2;
  1951. bool has_end() const;
  1952. void clear_end();
  1953. static const int kEndFieldNumber = 2;
  1954. ::google::protobuf::int32 end() const;
  1955. void set_end(::google::protobuf::int32 value);
  1956. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  1957. private:
  1958. void set_has_start();
  1959. void clear_has_start();
  1960. void set_has_end();
  1961. void clear_has_end();
  1962. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1963. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1964. typedef void InternalArenaConstructable_;
  1965. typedef void DestructorSkippable_;
  1966. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1967. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1968. ::google::protobuf::int32 start_;
  1969. ::google::protobuf::int32 end_;
  1970. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  1971. };
  1972. // -------------------------------------------------------------------
  1973. class LIBPROTOBUF_EXPORT EnumDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto) */ {
  1974. public:
  1975. EnumDescriptorProto();
  1976. virtual ~EnumDescriptorProto();
  1977. EnumDescriptorProto(const EnumDescriptorProto& from);
  1978. inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) {
  1979. CopyFrom(from);
  1980. return *this;
  1981. }
  1982. #if LANG_CXX11
  1983. EnumDescriptorProto(EnumDescriptorProto&& from) noexcept
  1984. : EnumDescriptorProto() {
  1985. *this = ::std::move(from);
  1986. }
  1987. inline EnumDescriptorProto& operator=(EnumDescriptorProto&& from) noexcept {
  1988. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1989. if (this != &from) InternalSwap(&from);
  1990. } else {
  1991. CopyFrom(from);
  1992. }
  1993. return *this;
  1994. }
  1995. #endif
  1996. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1997. return _internal_metadata_.unknown_fields();
  1998. }
  1999. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2000. return _internal_metadata_.mutable_unknown_fields();
  2001. }
  2002. inline ::google::protobuf::Arena* GetArena() const final {
  2003. return GetArenaNoVirtual();
  2004. }
  2005. inline void* GetMaybeArenaPointer() const final {
  2006. return MaybeArenaPtr();
  2007. }
  2008. static const ::google::protobuf::Descriptor* descriptor();
  2009. static const EnumDescriptorProto& default_instance();
  2010. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2011. static inline const EnumDescriptorProto* internal_default_instance() {
  2012. return reinterpret_cast<const EnumDescriptorProto*>(
  2013. &_EnumDescriptorProto_default_instance_);
  2014. }
  2015. static constexpr int kIndexInFileMessages =
  2016. 9;
  2017. void UnsafeArenaSwap(EnumDescriptorProto* other);
  2018. void Swap(EnumDescriptorProto* other);
  2019. friend void swap(EnumDescriptorProto& a, EnumDescriptorProto& b) {
  2020. a.Swap(&b);
  2021. }
  2022. // implements Message ----------------------------------------------
  2023. inline EnumDescriptorProto* New() const final {
  2024. return CreateMaybeMessage<EnumDescriptorProto>(NULL);
  2025. }
  2026. EnumDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  2027. return CreateMaybeMessage<EnumDescriptorProto>(arena);
  2028. }
  2029. void CopyFrom(const ::google::protobuf::Message& from) final;
  2030. void MergeFrom(const ::google::protobuf::Message& from) final;
  2031. void CopyFrom(const EnumDescriptorProto& from);
  2032. void MergeFrom(const EnumDescriptorProto& from);
  2033. void Clear() final;
  2034. bool IsInitialized() const final;
  2035. size_t ByteSizeLong() const final;
  2036. bool MergePartialFromCodedStream(
  2037. ::google::protobuf::io::CodedInputStream* input) final;
  2038. void SerializeWithCachedSizes(
  2039. ::google::protobuf::io::CodedOutputStream* output) const final;
  2040. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2041. bool deterministic, ::google::protobuf::uint8* target) const final;
  2042. int GetCachedSize() const final { return _cached_size_.Get(); }
  2043. private:
  2044. void SharedCtor();
  2045. void SharedDtor();
  2046. void SetCachedSize(int size) const final;
  2047. void InternalSwap(EnumDescriptorProto* other);
  2048. protected:
  2049. explicit EnumDescriptorProto(::google::protobuf::Arena* arena);
  2050. private:
  2051. static void ArenaDtor(void* object);
  2052. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2053. private:
  2054. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2055. return _internal_metadata_.arena();
  2056. }
  2057. inline void* MaybeArenaPtr() const {
  2058. return _internal_metadata_.raw_arena_ptr();
  2059. }
  2060. public:
  2061. ::google::protobuf::Metadata GetMetadata() const final;
  2062. // nested types ----------------------------------------------------
  2063. typedef EnumDescriptorProto_EnumReservedRange EnumReservedRange;
  2064. // accessors -------------------------------------------------------
  2065. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2066. int value_size() const;
  2067. void clear_value();
  2068. static const int kValueFieldNumber = 2;
  2069. ::google::protobuf::EnumValueDescriptorProto* mutable_value(int index);
  2070. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
  2071. mutable_value();
  2072. const ::google::protobuf::EnumValueDescriptorProto& value(int index) const;
  2073. ::google::protobuf::EnumValueDescriptorProto* add_value();
  2074. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
  2075. value() const;
  2076. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  2077. int reserved_range_size() const;
  2078. void clear_reserved_range();
  2079. static const int kReservedRangeFieldNumber = 4;
  2080. ::google::protobuf::EnumDescriptorProto_EnumReservedRange* mutable_reserved_range(int index);
  2081. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto_EnumReservedRange >*
  2082. mutable_reserved_range();
  2083. const ::google::protobuf::EnumDescriptorProto_EnumReservedRange& reserved_range(int index) const;
  2084. ::google::protobuf::EnumDescriptorProto_EnumReservedRange* add_reserved_range();
  2085. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto_EnumReservedRange >&
  2086. reserved_range() const;
  2087. // repeated string reserved_name = 5;
  2088. int reserved_name_size() const;
  2089. void clear_reserved_name();
  2090. static const int kReservedNameFieldNumber = 5;
  2091. const ::std::string& reserved_name(int index) const;
  2092. ::std::string* mutable_reserved_name(int index);
  2093. void set_reserved_name(int index, const ::std::string& value);
  2094. #if LANG_CXX11
  2095. void set_reserved_name(int index, ::std::string&& value);
  2096. #endif
  2097. void set_reserved_name(int index, const char* value);
  2098. void set_reserved_name(int index, const char* value, size_t size);
  2099. ::std::string* add_reserved_name();
  2100. void add_reserved_name(const ::std::string& value);
  2101. #if LANG_CXX11
  2102. void add_reserved_name(::std::string&& value);
  2103. #endif
  2104. void add_reserved_name(const char* value);
  2105. void add_reserved_name(const char* value, size_t size);
  2106. const ::google::protobuf::RepeatedPtrField< ::std::string>& reserved_name() const;
  2107. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_reserved_name();
  2108. // optional string name = 1;
  2109. bool has_name() const;
  2110. void clear_name();
  2111. static const int kNameFieldNumber = 1;
  2112. const ::std::string& name() const;
  2113. void set_name(const ::std::string& value);
  2114. #if LANG_CXX11
  2115. void set_name(::std::string&& value);
  2116. #endif
  2117. void set_name(const char* value);
  2118. void set_name(const char* value, size_t size);
  2119. ::std::string* mutable_name();
  2120. ::std::string* release_name();
  2121. void set_allocated_name(::std::string* name);
  2122. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2123. " string fields are deprecated and will be removed in a"
  2124. " future release.")
  2125. ::std::string* unsafe_arena_release_name();
  2126. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2127. " string fields are deprecated and will be removed in a"
  2128. " future release.")
  2129. void unsafe_arena_set_allocated_name(
  2130. ::std::string* name);
  2131. // optional .google.protobuf.EnumOptions options = 3;
  2132. bool has_options() const;
  2133. void clear_options();
  2134. static const int kOptionsFieldNumber = 3;
  2135. private:
  2136. const ::google::protobuf::EnumOptions& _internal_options() const;
  2137. public:
  2138. const ::google::protobuf::EnumOptions& options() const;
  2139. ::google::protobuf::EnumOptions* release_options();
  2140. ::google::protobuf::EnumOptions* mutable_options();
  2141. void set_allocated_options(::google::protobuf::EnumOptions* options);
  2142. void unsafe_arena_set_allocated_options(
  2143. ::google::protobuf::EnumOptions* options);
  2144. ::google::protobuf::EnumOptions* unsafe_arena_release_options();
  2145. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
  2146. private:
  2147. void set_has_name();
  2148. void clear_has_name();
  2149. void set_has_options();
  2150. void clear_has_options();
  2151. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2152. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2153. typedef void InternalArenaConstructable_;
  2154. typedef void DestructorSkippable_;
  2155. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2156. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2157. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_;
  2158. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto_EnumReservedRange > reserved_range_;
  2159. ::google::protobuf::RepeatedPtrField< ::std::string> reserved_name_;
  2160. ::google::protobuf::internal::ArenaStringPtr name_;
  2161. ::google::protobuf::EnumOptions* options_;
  2162. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  2163. };
  2164. // -------------------------------------------------------------------
  2165. class LIBPROTOBUF_EXPORT EnumValueDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueDescriptorProto) */ {
  2166. public:
  2167. EnumValueDescriptorProto();
  2168. virtual ~EnumValueDescriptorProto();
  2169. EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
  2170. inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) {
  2171. CopyFrom(from);
  2172. return *this;
  2173. }
  2174. #if LANG_CXX11
  2175. EnumValueDescriptorProto(EnumValueDescriptorProto&& from) noexcept
  2176. : EnumValueDescriptorProto() {
  2177. *this = ::std::move(from);
  2178. }
  2179. inline EnumValueDescriptorProto& operator=(EnumValueDescriptorProto&& from) noexcept {
  2180. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2181. if (this != &from) InternalSwap(&from);
  2182. } else {
  2183. CopyFrom(from);
  2184. }
  2185. return *this;
  2186. }
  2187. #endif
  2188. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2189. return _internal_metadata_.unknown_fields();
  2190. }
  2191. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2192. return _internal_metadata_.mutable_unknown_fields();
  2193. }
  2194. inline ::google::protobuf::Arena* GetArena() const final {
  2195. return GetArenaNoVirtual();
  2196. }
  2197. inline void* GetMaybeArenaPointer() const final {
  2198. return MaybeArenaPtr();
  2199. }
  2200. static const ::google::protobuf::Descriptor* descriptor();
  2201. static const EnumValueDescriptorProto& default_instance();
  2202. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2203. static inline const EnumValueDescriptorProto* internal_default_instance() {
  2204. return reinterpret_cast<const EnumValueDescriptorProto*>(
  2205. &_EnumValueDescriptorProto_default_instance_);
  2206. }
  2207. static constexpr int kIndexInFileMessages =
  2208. 10;
  2209. void UnsafeArenaSwap(EnumValueDescriptorProto* other);
  2210. void Swap(EnumValueDescriptorProto* other);
  2211. friend void swap(EnumValueDescriptorProto& a, EnumValueDescriptorProto& b) {
  2212. a.Swap(&b);
  2213. }
  2214. // implements Message ----------------------------------------------
  2215. inline EnumValueDescriptorProto* New() const final {
  2216. return CreateMaybeMessage<EnumValueDescriptorProto>(NULL);
  2217. }
  2218. EnumValueDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  2219. return CreateMaybeMessage<EnumValueDescriptorProto>(arena);
  2220. }
  2221. void CopyFrom(const ::google::protobuf::Message& from) final;
  2222. void MergeFrom(const ::google::protobuf::Message& from) final;
  2223. void CopyFrom(const EnumValueDescriptorProto& from);
  2224. void MergeFrom(const EnumValueDescriptorProto& from);
  2225. void Clear() final;
  2226. bool IsInitialized() const final;
  2227. size_t ByteSizeLong() const final;
  2228. bool MergePartialFromCodedStream(
  2229. ::google::protobuf::io::CodedInputStream* input) final;
  2230. void SerializeWithCachedSizes(
  2231. ::google::protobuf::io::CodedOutputStream* output) const final;
  2232. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2233. bool deterministic, ::google::protobuf::uint8* target) const final;
  2234. int GetCachedSize() const final { return _cached_size_.Get(); }
  2235. private:
  2236. void SharedCtor();
  2237. void SharedDtor();
  2238. void SetCachedSize(int size) const final;
  2239. void InternalSwap(EnumValueDescriptorProto* other);
  2240. protected:
  2241. explicit EnumValueDescriptorProto(::google::protobuf::Arena* arena);
  2242. private:
  2243. static void ArenaDtor(void* object);
  2244. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2245. private:
  2246. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2247. return _internal_metadata_.arena();
  2248. }
  2249. inline void* MaybeArenaPtr() const {
  2250. return _internal_metadata_.raw_arena_ptr();
  2251. }
  2252. public:
  2253. ::google::protobuf::Metadata GetMetadata() const final;
  2254. // nested types ----------------------------------------------------
  2255. // accessors -------------------------------------------------------
  2256. // optional string name = 1;
  2257. bool has_name() const;
  2258. void clear_name();
  2259. static const int kNameFieldNumber = 1;
  2260. const ::std::string& name() const;
  2261. void set_name(const ::std::string& value);
  2262. #if LANG_CXX11
  2263. void set_name(::std::string&& value);
  2264. #endif
  2265. void set_name(const char* value);
  2266. void set_name(const char* value, size_t size);
  2267. ::std::string* mutable_name();
  2268. ::std::string* release_name();
  2269. void set_allocated_name(::std::string* name);
  2270. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2271. " string fields are deprecated and will be removed in a"
  2272. " future release.")
  2273. ::std::string* unsafe_arena_release_name();
  2274. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2275. " string fields are deprecated and will be removed in a"
  2276. " future release.")
  2277. void unsafe_arena_set_allocated_name(
  2278. ::std::string* name);
  2279. // optional .google.protobuf.EnumValueOptions options = 3;
  2280. bool has_options() const;
  2281. void clear_options();
  2282. static const int kOptionsFieldNumber = 3;
  2283. private:
  2284. const ::google::protobuf::EnumValueOptions& _internal_options() const;
  2285. public:
  2286. const ::google::protobuf::EnumValueOptions& options() const;
  2287. ::google::protobuf::EnumValueOptions* release_options();
  2288. ::google::protobuf::EnumValueOptions* mutable_options();
  2289. void set_allocated_options(::google::protobuf::EnumValueOptions* options);
  2290. void unsafe_arena_set_allocated_options(
  2291. ::google::protobuf::EnumValueOptions* options);
  2292. ::google::protobuf::EnumValueOptions* unsafe_arena_release_options();
  2293. // optional int32 number = 2;
  2294. bool has_number() const;
  2295. void clear_number();
  2296. static const int kNumberFieldNumber = 2;
  2297. ::google::protobuf::int32 number() const;
  2298. void set_number(::google::protobuf::int32 value);
  2299. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
  2300. private:
  2301. void set_has_name();
  2302. void clear_has_name();
  2303. void set_has_number();
  2304. void clear_has_number();
  2305. void set_has_options();
  2306. void clear_has_options();
  2307. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2308. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2309. typedef void InternalArenaConstructable_;
  2310. typedef void DestructorSkippable_;
  2311. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2312. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2313. ::google::protobuf::internal::ArenaStringPtr name_;
  2314. ::google::protobuf::EnumValueOptions* options_;
  2315. ::google::protobuf::int32 number_;
  2316. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  2317. };
  2318. // -------------------------------------------------------------------
  2319. class LIBPROTOBUF_EXPORT ServiceDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceDescriptorProto) */ {
  2320. public:
  2321. ServiceDescriptorProto();
  2322. virtual ~ServiceDescriptorProto();
  2323. ServiceDescriptorProto(const ServiceDescriptorProto& from);
  2324. inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) {
  2325. CopyFrom(from);
  2326. return *this;
  2327. }
  2328. #if LANG_CXX11
  2329. ServiceDescriptorProto(ServiceDescriptorProto&& from) noexcept
  2330. : ServiceDescriptorProto() {
  2331. *this = ::std::move(from);
  2332. }
  2333. inline ServiceDescriptorProto& operator=(ServiceDescriptorProto&& from) noexcept {
  2334. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2335. if (this != &from) InternalSwap(&from);
  2336. } else {
  2337. CopyFrom(from);
  2338. }
  2339. return *this;
  2340. }
  2341. #endif
  2342. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2343. return _internal_metadata_.unknown_fields();
  2344. }
  2345. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2346. return _internal_metadata_.mutable_unknown_fields();
  2347. }
  2348. inline ::google::protobuf::Arena* GetArena() const final {
  2349. return GetArenaNoVirtual();
  2350. }
  2351. inline void* GetMaybeArenaPointer() const final {
  2352. return MaybeArenaPtr();
  2353. }
  2354. static const ::google::protobuf::Descriptor* descriptor();
  2355. static const ServiceDescriptorProto& default_instance();
  2356. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2357. static inline const ServiceDescriptorProto* internal_default_instance() {
  2358. return reinterpret_cast<const ServiceDescriptorProto*>(
  2359. &_ServiceDescriptorProto_default_instance_);
  2360. }
  2361. static constexpr int kIndexInFileMessages =
  2362. 11;
  2363. void UnsafeArenaSwap(ServiceDescriptorProto* other);
  2364. void Swap(ServiceDescriptorProto* other);
  2365. friend void swap(ServiceDescriptorProto& a, ServiceDescriptorProto& b) {
  2366. a.Swap(&b);
  2367. }
  2368. // implements Message ----------------------------------------------
  2369. inline ServiceDescriptorProto* New() const final {
  2370. return CreateMaybeMessage<ServiceDescriptorProto>(NULL);
  2371. }
  2372. ServiceDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  2373. return CreateMaybeMessage<ServiceDescriptorProto>(arena);
  2374. }
  2375. void CopyFrom(const ::google::protobuf::Message& from) final;
  2376. void MergeFrom(const ::google::protobuf::Message& from) final;
  2377. void CopyFrom(const ServiceDescriptorProto& from);
  2378. void MergeFrom(const ServiceDescriptorProto& from);
  2379. void Clear() final;
  2380. bool IsInitialized() const final;
  2381. size_t ByteSizeLong() const final;
  2382. bool MergePartialFromCodedStream(
  2383. ::google::protobuf::io::CodedInputStream* input) final;
  2384. void SerializeWithCachedSizes(
  2385. ::google::protobuf::io::CodedOutputStream* output) const final;
  2386. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2387. bool deterministic, ::google::protobuf::uint8* target) const final;
  2388. int GetCachedSize() const final { return _cached_size_.Get(); }
  2389. private:
  2390. void SharedCtor();
  2391. void SharedDtor();
  2392. void SetCachedSize(int size) const final;
  2393. void InternalSwap(ServiceDescriptorProto* other);
  2394. protected:
  2395. explicit ServiceDescriptorProto(::google::protobuf::Arena* arena);
  2396. private:
  2397. static void ArenaDtor(void* object);
  2398. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2399. private:
  2400. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2401. return _internal_metadata_.arena();
  2402. }
  2403. inline void* MaybeArenaPtr() const {
  2404. return _internal_metadata_.raw_arena_ptr();
  2405. }
  2406. public:
  2407. ::google::protobuf::Metadata GetMetadata() const final;
  2408. // nested types ----------------------------------------------------
  2409. // accessors -------------------------------------------------------
  2410. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  2411. int method_size() const;
  2412. void clear_method();
  2413. static const int kMethodFieldNumber = 2;
  2414. ::google::protobuf::MethodDescriptorProto* mutable_method(int index);
  2415. ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
  2416. mutable_method();
  2417. const ::google::protobuf::MethodDescriptorProto& method(int index) const;
  2418. ::google::protobuf::MethodDescriptorProto* add_method();
  2419. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
  2420. method() const;
  2421. // optional string name = 1;
  2422. bool has_name() const;
  2423. void clear_name();
  2424. static const int kNameFieldNumber = 1;
  2425. const ::std::string& name() const;
  2426. void set_name(const ::std::string& value);
  2427. #if LANG_CXX11
  2428. void set_name(::std::string&& value);
  2429. #endif
  2430. void set_name(const char* value);
  2431. void set_name(const char* value, size_t size);
  2432. ::std::string* mutable_name();
  2433. ::std::string* release_name();
  2434. void set_allocated_name(::std::string* name);
  2435. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2436. " string fields are deprecated and will be removed in a"
  2437. " future release.")
  2438. ::std::string* unsafe_arena_release_name();
  2439. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2440. " string fields are deprecated and will be removed in a"
  2441. " future release.")
  2442. void unsafe_arena_set_allocated_name(
  2443. ::std::string* name);
  2444. // optional .google.protobuf.ServiceOptions options = 3;
  2445. bool has_options() const;
  2446. void clear_options();
  2447. static const int kOptionsFieldNumber = 3;
  2448. private:
  2449. const ::google::protobuf::ServiceOptions& _internal_options() const;
  2450. public:
  2451. const ::google::protobuf::ServiceOptions& options() const;
  2452. ::google::protobuf::ServiceOptions* release_options();
  2453. ::google::protobuf::ServiceOptions* mutable_options();
  2454. void set_allocated_options(::google::protobuf::ServiceOptions* options);
  2455. void unsafe_arena_set_allocated_options(
  2456. ::google::protobuf::ServiceOptions* options);
  2457. ::google::protobuf::ServiceOptions* unsafe_arena_release_options();
  2458. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
  2459. private:
  2460. void set_has_name();
  2461. void clear_has_name();
  2462. void set_has_options();
  2463. void clear_has_options();
  2464. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2465. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2466. typedef void InternalArenaConstructable_;
  2467. typedef void DestructorSkippable_;
  2468. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2469. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2470. ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto > method_;
  2471. ::google::protobuf::internal::ArenaStringPtr name_;
  2472. ::google::protobuf::ServiceOptions* options_;
  2473. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  2474. };
  2475. // -------------------------------------------------------------------
  2476. class LIBPROTOBUF_EXPORT MethodDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodDescriptorProto) */ {
  2477. public:
  2478. MethodDescriptorProto();
  2479. virtual ~MethodDescriptorProto();
  2480. MethodDescriptorProto(const MethodDescriptorProto& from);
  2481. inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) {
  2482. CopyFrom(from);
  2483. return *this;
  2484. }
  2485. #if LANG_CXX11
  2486. MethodDescriptorProto(MethodDescriptorProto&& from) noexcept
  2487. : MethodDescriptorProto() {
  2488. *this = ::std::move(from);
  2489. }
  2490. inline MethodDescriptorProto& operator=(MethodDescriptorProto&& from) noexcept {
  2491. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2492. if (this != &from) InternalSwap(&from);
  2493. } else {
  2494. CopyFrom(from);
  2495. }
  2496. return *this;
  2497. }
  2498. #endif
  2499. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2500. return _internal_metadata_.unknown_fields();
  2501. }
  2502. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2503. return _internal_metadata_.mutable_unknown_fields();
  2504. }
  2505. inline ::google::protobuf::Arena* GetArena() const final {
  2506. return GetArenaNoVirtual();
  2507. }
  2508. inline void* GetMaybeArenaPointer() const final {
  2509. return MaybeArenaPtr();
  2510. }
  2511. static const ::google::protobuf::Descriptor* descriptor();
  2512. static const MethodDescriptorProto& default_instance();
  2513. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2514. static inline const MethodDescriptorProto* internal_default_instance() {
  2515. return reinterpret_cast<const MethodDescriptorProto*>(
  2516. &_MethodDescriptorProto_default_instance_);
  2517. }
  2518. static constexpr int kIndexInFileMessages =
  2519. 12;
  2520. void UnsafeArenaSwap(MethodDescriptorProto* other);
  2521. void Swap(MethodDescriptorProto* other);
  2522. friend void swap(MethodDescriptorProto& a, MethodDescriptorProto& b) {
  2523. a.Swap(&b);
  2524. }
  2525. // implements Message ----------------------------------------------
  2526. inline MethodDescriptorProto* New() const final {
  2527. return CreateMaybeMessage<MethodDescriptorProto>(NULL);
  2528. }
  2529. MethodDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  2530. return CreateMaybeMessage<MethodDescriptorProto>(arena);
  2531. }
  2532. void CopyFrom(const ::google::protobuf::Message& from) final;
  2533. void MergeFrom(const ::google::protobuf::Message& from) final;
  2534. void CopyFrom(const MethodDescriptorProto& from);
  2535. void MergeFrom(const MethodDescriptorProto& from);
  2536. void Clear() final;
  2537. bool IsInitialized() const final;
  2538. size_t ByteSizeLong() const final;
  2539. bool MergePartialFromCodedStream(
  2540. ::google::protobuf::io::CodedInputStream* input) final;
  2541. void SerializeWithCachedSizes(
  2542. ::google::protobuf::io::CodedOutputStream* output) const final;
  2543. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2544. bool deterministic, ::google::protobuf::uint8* target) const final;
  2545. int GetCachedSize() const final { return _cached_size_.Get(); }
  2546. private:
  2547. void SharedCtor();
  2548. void SharedDtor();
  2549. void SetCachedSize(int size) const final;
  2550. void InternalSwap(MethodDescriptorProto* other);
  2551. protected:
  2552. explicit MethodDescriptorProto(::google::protobuf::Arena* arena);
  2553. private:
  2554. static void ArenaDtor(void* object);
  2555. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2556. private:
  2557. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2558. return _internal_metadata_.arena();
  2559. }
  2560. inline void* MaybeArenaPtr() const {
  2561. return _internal_metadata_.raw_arena_ptr();
  2562. }
  2563. public:
  2564. ::google::protobuf::Metadata GetMetadata() const final;
  2565. // nested types ----------------------------------------------------
  2566. // accessors -------------------------------------------------------
  2567. // optional string name = 1;
  2568. bool has_name() const;
  2569. void clear_name();
  2570. static const int kNameFieldNumber = 1;
  2571. const ::std::string& name() const;
  2572. void set_name(const ::std::string& value);
  2573. #if LANG_CXX11
  2574. void set_name(::std::string&& value);
  2575. #endif
  2576. void set_name(const char* value);
  2577. void set_name(const char* value, size_t size);
  2578. ::std::string* mutable_name();
  2579. ::std::string* release_name();
  2580. void set_allocated_name(::std::string* name);
  2581. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2582. " string fields are deprecated and will be removed in a"
  2583. " future release.")
  2584. ::std::string* unsafe_arena_release_name();
  2585. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2586. " string fields are deprecated and will be removed in a"
  2587. " future release.")
  2588. void unsafe_arena_set_allocated_name(
  2589. ::std::string* name);
  2590. // optional string input_type = 2;
  2591. bool has_input_type() const;
  2592. void clear_input_type();
  2593. static const int kInputTypeFieldNumber = 2;
  2594. const ::std::string& input_type() const;
  2595. void set_input_type(const ::std::string& value);
  2596. #if LANG_CXX11
  2597. void set_input_type(::std::string&& value);
  2598. #endif
  2599. void set_input_type(const char* value);
  2600. void set_input_type(const char* value, size_t size);
  2601. ::std::string* mutable_input_type();
  2602. ::std::string* release_input_type();
  2603. void set_allocated_input_type(::std::string* input_type);
  2604. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2605. " string fields are deprecated and will be removed in a"
  2606. " future release.")
  2607. ::std::string* unsafe_arena_release_input_type();
  2608. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2609. " string fields are deprecated and will be removed in a"
  2610. " future release.")
  2611. void unsafe_arena_set_allocated_input_type(
  2612. ::std::string* input_type);
  2613. // optional string output_type = 3;
  2614. bool has_output_type() const;
  2615. void clear_output_type();
  2616. static const int kOutputTypeFieldNumber = 3;
  2617. const ::std::string& output_type() const;
  2618. void set_output_type(const ::std::string& value);
  2619. #if LANG_CXX11
  2620. void set_output_type(::std::string&& value);
  2621. #endif
  2622. void set_output_type(const char* value);
  2623. void set_output_type(const char* value, size_t size);
  2624. ::std::string* mutable_output_type();
  2625. ::std::string* release_output_type();
  2626. void set_allocated_output_type(::std::string* output_type);
  2627. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2628. " string fields are deprecated and will be removed in a"
  2629. " future release.")
  2630. ::std::string* unsafe_arena_release_output_type();
  2631. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2632. " string fields are deprecated and will be removed in a"
  2633. " future release.")
  2634. void unsafe_arena_set_allocated_output_type(
  2635. ::std::string* output_type);
  2636. // optional .google.protobuf.MethodOptions options = 4;
  2637. bool has_options() const;
  2638. void clear_options();
  2639. static const int kOptionsFieldNumber = 4;
  2640. private:
  2641. const ::google::protobuf::MethodOptions& _internal_options() const;
  2642. public:
  2643. const ::google::protobuf::MethodOptions& options() const;
  2644. ::google::protobuf::MethodOptions* release_options();
  2645. ::google::protobuf::MethodOptions* mutable_options();
  2646. void set_allocated_options(::google::protobuf::MethodOptions* options);
  2647. void unsafe_arena_set_allocated_options(
  2648. ::google::protobuf::MethodOptions* options);
  2649. ::google::protobuf::MethodOptions* unsafe_arena_release_options();
  2650. // optional bool client_streaming = 5 [default = false];
  2651. bool has_client_streaming() const;
  2652. void clear_client_streaming();
  2653. static const int kClientStreamingFieldNumber = 5;
  2654. bool client_streaming() const;
  2655. void set_client_streaming(bool value);
  2656. // optional bool server_streaming = 6 [default = false];
  2657. bool has_server_streaming() const;
  2658. void clear_server_streaming();
  2659. static const int kServerStreamingFieldNumber = 6;
  2660. bool server_streaming() const;
  2661. void set_server_streaming(bool value);
  2662. // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
  2663. private:
  2664. void set_has_name();
  2665. void clear_has_name();
  2666. void set_has_input_type();
  2667. void clear_has_input_type();
  2668. void set_has_output_type();
  2669. void clear_has_output_type();
  2670. void set_has_options();
  2671. void clear_has_options();
  2672. void set_has_client_streaming();
  2673. void clear_has_client_streaming();
  2674. void set_has_server_streaming();
  2675. void clear_has_server_streaming();
  2676. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2677. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2678. typedef void InternalArenaConstructable_;
  2679. typedef void DestructorSkippable_;
  2680. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2681. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2682. ::google::protobuf::internal::ArenaStringPtr name_;
  2683. ::google::protobuf::internal::ArenaStringPtr input_type_;
  2684. ::google::protobuf::internal::ArenaStringPtr output_type_;
  2685. ::google::protobuf::MethodOptions* options_;
  2686. bool client_streaming_;
  2687. bool server_streaming_;
  2688. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  2689. };
  2690. // -------------------------------------------------------------------
  2691. class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileOptions) */ {
  2692. public:
  2693. FileOptions();
  2694. virtual ~FileOptions();
  2695. FileOptions(const FileOptions& from);
  2696. inline FileOptions& operator=(const FileOptions& from) {
  2697. CopyFrom(from);
  2698. return *this;
  2699. }
  2700. #if LANG_CXX11
  2701. FileOptions(FileOptions&& from) noexcept
  2702. : FileOptions() {
  2703. *this = ::std::move(from);
  2704. }
  2705. inline FileOptions& operator=(FileOptions&& from) noexcept {
  2706. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2707. if (this != &from) InternalSwap(&from);
  2708. } else {
  2709. CopyFrom(from);
  2710. }
  2711. return *this;
  2712. }
  2713. #endif
  2714. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2715. return _internal_metadata_.unknown_fields();
  2716. }
  2717. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2718. return _internal_metadata_.mutable_unknown_fields();
  2719. }
  2720. inline ::google::protobuf::Arena* GetArena() const final {
  2721. return GetArenaNoVirtual();
  2722. }
  2723. inline void* GetMaybeArenaPointer() const final {
  2724. return MaybeArenaPtr();
  2725. }
  2726. static const ::google::protobuf::Descriptor* descriptor();
  2727. static const FileOptions& default_instance();
  2728. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2729. static inline const FileOptions* internal_default_instance() {
  2730. return reinterpret_cast<const FileOptions*>(
  2731. &_FileOptions_default_instance_);
  2732. }
  2733. static constexpr int kIndexInFileMessages =
  2734. 13;
  2735. void UnsafeArenaSwap(FileOptions* other);
  2736. void Swap(FileOptions* other);
  2737. friend void swap(FileOptions& a, FileOptions& b) {
  2738. a.Swap(&b);
  2739. }
  2740. // implements Message ----------------------------------------------
  2741. inline FileOptions* New() const final {
  2742. return CreateMaybeMessage<FileOptions>(NULL);
  2743. }
  2744. FileOptions* New(::google::protobuf::Arena* arena) const final {
  2745. return CreateMaybeMessage<FileOptions>(arena);
  2746. }
  2747. void CopyFrom(const ::google::protobuf::Message& from) final;
  2748. void MergeFrom(const ::google::protobuf::Message& from) final;
  2749. void CopyFrom(const FileOptions& from);
  2750. void MergeFrom(const FileOptions& from);
  2751. void Clear() final;
  2752. bool IsInitialized() const final;
  2753. size_t ByteSizeLong() const final;
  2754. bool MergePartialFromCodedStream(
  2755. ::google::protobuf::io::CodedInputStream* input) final;
  2756. void SerializeWithCachedSizes(
  2757. ::google::protobuf::io::CodedOutputStream* output) const final;
  2758. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2759. bool deterministic, ::google::protobuf::uint8* target) const final;
  2760. int GetCachedSize() const final { return _cached_size_.Get(); }
  2761. private:
  2762. void SharedCtor();
  2763. void SharedDtor();
  2764. void SetCachedSize(int size) const final;
  2765. void InternalSwap(FileOptions* other);
  2766. protected:
  2767. explicit FileOptions(::google::protobuf::Arena* arena);
  2768. private:
  2769. static void ArenaDtor(void* object);
  2770. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2771. private:
  2772. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2773. return _internal_metadata_.arena();
  2774. }
  2775. inline void* MaybeArenaPtr() const {
  2776. return _internal_metadata_.raw_arena_ptr();
  2777. }
  2778. public:
  2779. ::google::protobuf::Metadata GetMetadata() const final;
  2780. // nested types ----------------------------------------------------
  2781. typedef FileOptions_OptimizeMode OptimizeMode;
  2782. static const OptimizeMode SPEED =
  2783. FileOptions_OptimizeMode_SPEED;
  2784. static const OptimizeMode CODE_SIZE =
  2785. FileOptions_OptimizeMode_CODE_SIZE;
  2786. static const OptimizeMode LITE_RUNTIME =
  2787. FileOptions_OptimizeMode_LITE_RUNTIME;
  2788. static inline bool OptimizeMode_IsValid(int value) {
  2789. return FileOptions_OptimizeMode_IsValid(value);
  2790. }
  2791. static const OptimizeMode OptimizeMode_MIN =
  2792. FileOptions_OptimizeMode_OptimizeMode_MIN;
  2793. static const OptimizeMode OptimizeMode_MAX =
  2794. FileOptions_OptimizeMode_OptimizeMode_MAX;
  2795. static const int OptimizeMode_ARRAYSIZE =
  2796. FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
  2797. static inline const ::google::protobuf::EnumDescriptor*
  2798. OptimizeMode_descriptor() {
  2799. return FileOptions_OptimizeMode_descriptor();
  2800. }
  2801. static inline const ::std::string& OptimizeMode_Name(OptimizeMode value) {
  2802. return FileOptions_OptimizeMode_Name(value);
  2803. }
  2804. static inline bool OptimizeMode_Parse(const ::std::string& name,
  2805. OptimizeMode* value) {
  2806. return FileOptions_OptimizeMode_Parse(name, value);
  2807. }
  2808. // accessors -------------------------------------------------------
  2809. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  2810. int uninterpreted_option_size() const;
  2811. void clear_uninterpreted_option();
  2812. static const int kUninterpretedOptionFieldNumber = 999;
  2813. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  2814. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  2815. mutable_uninterpreted_option();
  2816. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  2817. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  2818. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  2819. uninterpreted_option() const;
  2820. // optional string java_package = 1;
  2821. bool has_java_package() const;
  2822. void clear_java_package();
  2823. static const int kJavaPackageFieldNumber = 1;
  2824. const ::std::string& java_package() const;
  2825. void set_java_package(const ::std::string& value);
  2826. #if LANG_CXX11
  2827. void set_java_package(::std::string&& value);
  2828. #endif
  2829. void set_java_package(const char* value);
  2830. void set_java_package(const char* value, size_t size);
  2831. ::std::string* mutable_java_package();
  2832. ::std::string* release_java_package();
  2833. void set_allocated_java_package(::std::string* java_package);
  2834. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2835. " string fields are deprecated and will be removed in a"
  2836. " future release.")
  2837. ::std::string* unsafe_arena_release_java_package();
  2838. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2839. " string fields are deprecated and will be removed in a"
  2840. " future release.")
  2841. void unsafe_arena_set_allocated_java_package(
  2842. ::std::string* java_package);
  2843. // optional string java_outer_classname = 8;
  2844. bool has_java_outer_classname() const;
  2845. void clear_java_outer_classname();
  2846. static const int kJavaOuterClassnameFieldNumber = 8;
  2847. const ::std::string& java_outer_classname() const;
  2848. void set_java_outer_classname(const ::std::string& value);
  2849. #if LANG_CXX11
  2850. void set_java_outer_classname(::std::string&& value);
  2851. #endif
  2852. void set_java_outer_classname(const char* value);
  2853. void set_java_outer_classname(const char* value, size_t size);
  2854. ::std::string* mutable_java_outer_classname();
  2855. ::std::string* release_java_outer_classname();
  2856. void set_allocated_java_outer_classname(::std::string* java_outer_classname);
  2857. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2858. " string fields are deprecated and will be removed in a"
  2859. " future release.")
  2860. ::std::string* unsafe_arena_release_java_outer_classname();
  2861. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2862. " string fields are deprecated and will be removed in a"
  2863. " future release.")
  2864. void unsafe_arena_set_allocated_java_outer_classname(
  2865. ::std::string* java_outer_classname);
  2866. // optional string go_package = 11;
  2867. bool has_go_package() const;
  2868. void clear_go_package();
  2869. static const int kGoPackageFieldNumber = 11;
  2870. const ::std::string& go_package() const;
  2871. void set_go_package(const ::std::string& value);
  2872. #if LANG_CXX11
  2873. void set_go_package(::std::string&& value);
  2874. #endif
  2875. void set_go_package(const char* value);
  2876. void set_go_package(const char* value, size_t size);
  2877. ::std::string* mutable_go_package();
  2878. ::std::string* release_go_package();
  2879. void set_allocated_go_package(::std::string* go_package);
  2880. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2881. " string fields are deprecated and will be removed in a"
  2882. " future release.")
  2883. ::std::string* unsafe_arena_release_go_package();
  2884. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2885. " string fields are deprecated and will be removed in a"
  2886. " future release.")
  2887. void unsafe_arena_set_allocated_go_package(
  2888. ::std::string* go_package);
  2889. // optional string objc_class_prefix = 36;
  2890. bool has_objc_class_prefix() const;
  2891. void clear_objc_class_prefix();
  2892. static const int kObjcClassPrefixFieldNumber = 36;
  2893. const ::std::string& objc_class_prefix() const;
  2894. void set_objc_class_prefix(const ::std::string& value);
  2895. #if LANG_CXX11
  2896. void set_objc_class_prefix(::std::string&& value);
  2897. #endif
  2898. void set_objc_class_prefix(const char* value);
  2899. void set_objc_class_prefix(const char* value, size_t size);
  2900. ::std::string* mutable_objc_class_prefix();
  2901. ::std::string* release_objc_class_prefix();
  2902. void set_allocated_objc_class_prefix(::std::string* objc_class_prefix);
  2903. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2904. " string fields are deprecated and will be removed in a"
  2905. " future release.")
  2906. ::std::string* unsafe_arena_release_objc_class_prefix();
  2907. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2908. " string fields are deprecated and will be removed in a"
  2909. " future release.")
  2910. void unsafe_arena_set_allocated_objc_class_prefix(
  2911. ::std::string* objc_class_prefix);
  2912. // optional string csharp_namespace = 37;
  2913. bool has_csharp_namespace() const;
  2914. void clear_csharp_namespace();
  2915. static const int kCsharpNamespaceFieldNumber = 37;
  2916. const ::std::string& csharp_namespace() const;
  2917. void set_csharp_namespace(const ::std::string& value);
  2918. #if LANG_CXX11
  2919. void set_csharp_namespace(::std::string&& value);
  2920. #endif
  2921. void set_csharp_namespace(const char* value);
  2922. void set_csharp_namespace(const char* value, size_t size);
  2923. ::std::string* mutable_csharp_namespace();
  2924. ::std::string* release_csharp_namespace();
  2925. void set_allocated_csharp_namespace(::std::string* csharp_namespace);
  2926. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2927. " string fields are deprecated and will be removed in a"
  2928. " future release.")
  2929. ::std::string* unsafe_arena_release_csharp_namespace();
  2930. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2931. " string fields are deprecated and will be removed in a"
  2932. " future release.")
  2933. void unsafe_arena_set_allocated_csharp_namespace(
  2934. ::std::string* csharp_namespace);
  2935. // optional string swift_prefix = 39;
  2936. bool has_swift_prefix() const;
  2937. void clear_swift_prefix();
  2938. static const int kSwiftPrefixFieldNumber = 39;
  2939. const ::std::string& swift_prefix() const;
  2940. void set_swift_prefix(const ::std::string& value);
  2941. #if LANG_CXX11
  2942. void set_swift_prefix(::std::string&& value);
  2943. #endif
  2944. void set_swift_prefix(const char* value);
  2945. void set_swift_prefix(const char* value, size_t size);
  2946. ::std::string* mutable_swift_prefix();
  2947. ::std::string* release_swift_prefix();
  2948. void set_allocated_swift_prefix(::std::string* swift_prefix);
  2949. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2950. " string fields are deprecated and will be removed in a"
  2951. " future release.")
  2952. ::std::string* unsafe_arena_release_swift_prefix();
  2953. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2954. " string fields are deprecated and will be removed in a"
  2955. " future release.")
  2956. void unsafe_arena_set_allocated_swift_prefix(
  2957. ::std::string* swift_prefix);
  2958. // optional string php_class_prefix = 40;
  2959. bool has_php_class_prefix() const;
  2960. void clear_php_class_prefix();
  2961. static const int kPhpClassPrefixFieldNumber = 40;
  2962. const ::std::string& php_class_prefix() const;
  2963. void set_php_class_prefix(const ::std::string& value);
  2964. #if LANG_CXX11
  2965. void set_php_class_prefix(::std::string&& value);
  2966. #endif
  2967. void set_php_class_prefix(const char* value);
  2968. void set_php_class_prefix(const char* value, size_t size);
  2969. ::std::string* mutable_php_class_prefix();
  2970. ::std::string* release_php_class_prefix();
  2971. void set_allocated_php_class_prefix(::std::string* php_class_prefix);
  2972. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2973. " string fields are deprecated and will be removed in a"
  2974. " future release.")
  2975. ::std::string* unsafe_arena_release_php_class_prefix();
  2976. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2977. " string fields are deprecated and will be removed in a"
  2978. " future release.")
  2979. void unsafe_arena_set_allocated_php_class_prefix(
  2980. ::std::string* php_class_prefix);
  2981. // optional string php_namespace = 41;
  2982. bool has_php_namespace() const;
  2983. void clear_php_namespace();
  2984. static const int kPhpNamespaceFieldNumber = 41;
  2985. const ::std::string& php_namespace() const;
  2986. void set_php_namespace(const ::std::string& value);
  2987. #if LANG_CXX11
  2988. void set_php_namespace(::std::string&& value);
  2989. #endif
  2990. void set_php_namespace(const char* value);
  2991. void set_php_namespace(const char* value, size_t size);
  2992. ::std::string* mutable_php_namespace();
  2993. ::std::string* release_php_namespace();
  2994. void set_allocated_php_namespace(::std::string* php_namespace);
  2995. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2996. " string fields are deprecated and will be removed in a"
  2997. " future release.")
  2998. ::std::string* unsafe_arena_release_php_namespace();
  2999. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3000. " string fields are deprecated and will be removed in a"
  3001. " future release.")
  3002. void unsafe_arena_set_allocated_php_namespace(
  3003. ::std::string* php_namespace);
  3004. // optional string php_metadata_namespace = 44;
  3005. bool has_php_metadata_namespace() const;
  3006. void clear_php_metadata_namespace();
  3007. static const int kPhpMetadataNamespaceFieldNumber = 44;
  3008. const ::std::string& php_metadata_namespace() const;
  3009. void set_php_metadata_namespace(const ::std::string& value);
  3010. #if LANG_CXX11
  3011. void set_php_metadata_namespace(::std::string&& value);
  3012. #endif
  3013. void set_php_metadata_namespace(const char* value);
  3014. void set_php_metadata_namespace(const char* value, size_t size);
  3015. ::std::string* mutable_php_metadata_namespace();
  3016. ::std::string* release_php_metadata_namespace();
  3017. void set_allocated_php_metadata_namespace(::std::string* php_metadata_namespace);
  3018. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3019. " string fields are deprecated and will be removed in a"
  3020. " future release.")
  3021. ::std::string* unsafe_arena_release_php_metadata_namespace();
  3022. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3023. " string fields are deprecated and will be removed in a"
  3024. " future release.")
  3025. void unsafe_arena_set_allocated_php_metadata_namespace(
  3026. ::std::string* php_metadata_namespace);
  3027. // optional string ruby_package = 45;
  3028. bool has_ruby_package() const;
  3029. void clear_ruby_package();
  3030. static const int kRubyPackageFieldNumber = 45;
  3031. const ::std::string& ruby_package() const;
  3032. void set_ruby_package(const ::std::string& value);
  3033. #if LANG_CXX11
  3034. void set_ruby_package(::std::string&& value);
  3035. #endif
  3036. void set_ruby_package(const char* value);
  3037. void set_ruby_package(const char* value, size_t size);
  3038. ::std::string* mutable_ruby_package();
  3039. ::std::string* release_ruby_package();
  3040. void set_allocated_ruby_package(::std::string* ruby_package);
  3041. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3042. " string fields are deprecated and will be removed in a"
  3043. " future release.")
  3044. ::std::string* unsafe_arena_release_ruby_package();
  3045. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3046. " string fields are deprecated and will be removed in a"
  3047. " future release.")
  3048. void unsafe_arena_set_allocated_ruby_package(
  3049. ::std::string* ruby_package);
  3050. // optional bool java_multiple_files = 10 [default = false];
  3051. bool has_java_multiple_files() const;
  3052. void clear_java_multiple_files();
  3053. static const int kJavaMultipleFilesFieldNumber = 10;
  3054. bool java_multiple_files() const;
  3055. void set_java_multiple_files(bool value);
  3056. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  3057. GOOGLE_PROTOBUF_DEPRECATED_ATTR bool has_java_generate_equals_and_hash() const;
  3058. GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_java_generate_equals_and_hash();
  3059. GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kJavaGenerateEqualsAndHashFieldNumber = 20;
  3060. GOOGLE_PROTOBUF_DEPRECATED_ATTR bool java_generate_equals_and_hash() const;
  3061. GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_java_generate_equals_and_hash(bool value);
  3062. // optional bool java_string_check_utf8 = 27 [default = false];
  3063. bool has_java_string_check_utf8() const;
  3064. void clear_java_string_check_utf8();
  3065. static const int kJavaStringCheckUtf8FieldNumber = 27;
  3066. bool java_string_check_utf8() const;
  3067. void set_java_string_check_utf8(bool value);
  3068. // optional bool cc_generic_services = 16 [default = false];
  3069. bool has_cc_generic_services() const;
  3070. void clear_cc_generic_services();
  3071. static const int kCcGenericServicesFieldNumber = 16;
  3072. bool cc_generic_services() const;
  3073. void set_cc_generic_services(bool value);
  3074. // optional bool java_generic_services = 17 [default = false];
  3075. bool has_java_generic_services() const;
  3076. void clear_java_generic_services();
  3077. static const int kJavaGenericServicesFieldNumber = 17;
  3078. bool java_generic_services() const;
  3079. void set_java_generic_services(bool value);
  3080. // optional bool py_generic_services = 18 [default = false];
  3081. bool has_py_generic_services() const;
  3082. void clear_py_generic_services();
  3083. static const int kPyGenericServicesFieldNumber = 18;
  3084. bool py_generic_services() const;
  3085. void set_py_generic_services(bool value);
  3086. // optional bool php_generic_services = 42 [default = false];
  3087. bool has_php_generic_services() const;
  3088. void clear_php_generic_services();
  3089. static const int kPhpGenericServicesFieldNumber = 42;
  3090. bool php_generic_services() const;
  3091. void set_php_generic_services(bool value);
  3092. // optional bool deprecated = 23 [default = false];
  3093. bool has_deprecated() const;
  3094. void clear_deprecated();
  3095. static const int kDeprecatedFieldNumber = 23;
  3096. bool deprecated() const;
  3097. void set_deprecated(bool value);
  3098. // optional bool cc_enable_arenas = 31 [default = false];
  3099. bool has_cc_enable_arenas() const;
  3100. void clear_cc_enable_arenas();
  3101. static const int kCcEnableArenasFieldNumber = 31;
  3102. bool cc_enable_arenas() const;
  3103. void set_cc_enable_arenas(bool value);
  3104. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  3105. bool has_optimize_for() const;
  3106. void clear_optimize_for();
  3107. static const int kOptimizeForFieldNumber = 9;
  3108. ::google::protobuf::FileOptions_OptimizeMode optimize_for() const;
  3109. void set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value);
  3110. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FileOptions)
  3111. // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
  3112. private:
  3113. void set_has_java_package();
  3114. void clear_has_java_package();
  3115. void set_has_java_outer_classname();
  3116. void clear_has_java_outer_classname();
  3117. void set_has_java_multiple_files();
  3118. void clear_has_java_multiple_files();
  3119. void set_has_java_generate_equals_and_hash();
  3120. void clear_has_java_generate_equals_and_hash();
  3121. void set_has_java_string_check_utf8();
  3122. void clear_has_java_string_check_utf8();
  3123. void set_has_optimize_for();
  3124. void clear_has_optimize_for();
  3125. void set_has_go_package();
  3126. void clear_has_go_package();
  3127. void set_has_cc_generic_services();
  3128. void clear_has_cc_generic_services();
  3129. void set_has_java_generic_services();
  3130. void clear_has_java_generic_services();
  3131. void set_has_py_generic_services();
  3132. void clear_has_py_generic_services();
  3133. void set_has_php_generic_services();
  3134. void clear_has_php_generic_services();
  3135. void set_has_deprecated();
  3136. void clear_has_deprecated();
  3137. void set_has_cc_enable_arenas();
  3138. void clear_has_cc_enable_arenas();
  3139. void set_has_objc_class_prefix();
  3140. void clear_has_objc_class_prefix();
  3141. void set_has_csharp_namespace();
  3142. void clear_has_csharp_namespace();
  3143. void set_has_swift_prefix();
  3144. void clear_has_swift_prefix();
  3145. void set_has_php_class_prefix();
  3146. void clear_has_php_class_prefix();
  3147. void set_has_php_namespace();
  3148. void clear_has_php_namespace();
  3149. void set_has_php_metadata_namespace();
  3150. void clear_has_php_metadata_namespace();
  3151. void set_has_ruby_package();
  3152. void clear_has_ruby_package();
  3153. ::google::protobuf::internal::ExtensionSet _extensions_;
  3154. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3155. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3156. typedef void InternalArenaConstructable_;
  3157. typedef void DestructorSkippable_;
  3158. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3159. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3160. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3161. ::google::protobuf::internal::ArenaStringPtr java_package_;
  3162. ::google::protobuf::internal::ArenaStringPtr java_outer_classname_;
  3163. ::google::protobuf::internal::ArenaStringPtr go_package_;
  3164. ::google::protobuf::internal::ArenaStringPtr objc_class_prefix_;
  3165. ::google::protobuf::internal::ArenaStringPtr csharp_namespace_;
  3166. ::google::protobuf::internal::ArenaStringPtr swift_prefix_;
  3167. ::google::protobuf::internal::ArenaStringPtr php_class_prefix_;
  3168. ::google::protobuf::internal::ArenaStringPtr php_namespace_;
  3169. ::google::protobuf::internal::ArenaStringPtr php_metadata_namespace_;
  3170. ::google::protobuf::internal::ArenaStringPtr ruby_package_;
  3171. bool java_multiple_files_;
  3172. bool java_generate_equals_and_hash_;
  3173. bool java_string_check_utf8_;
  3174. bool cc_generic_services_;
  3175. bool java_generic_services_;
  3176. bool py_generic_services_;
  3177. bool php_generic_services_;
  3178. bool deprecated_;
  3179. bool cc_enable_arenas_;
  3180. int optimize_for_;
  3181. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3182. };
  3183. // -------------------------------------------------------------------
  3184. class LIBPROTOBUF_EXPORT MessageOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MessageOptions) */ {
  3185. public:
  3186. MessageOptions();
  3187. virtual ~MessageOptions();
  3188. MessageOptions(const MessageOptions& from);
  3189. inline MessageOptions& operator=(const MessageOptions& from) {
  3190. CopyFrom(from);
  3191. return *this;
  3192. }
  3193. #if LANG_CXX11
  3194. MessageOptions(MessageOptions&& from) noexcept
  3195. : MessageOptions() {
  3196. *this = ::std::move(from);
  3197. }
  3198. inline MessageOptions& operator=(MessageOptions&& from) noexcept {
  3199. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3200. if (this != &from) InternalSwap(&from);
  3201. } else {
  3202. CopyFrom(from);
  3203. }
  3204. return *this;
  3205. }
  3206. #endif
  3207. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3208. return _internal_metadata_.unknown_fields();
  3209. }
  3210. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3211. return _internal_metadata_.mutable_unknown_fields();
  3212. }
  3213. inline ::google::protobuf::Arena* GetArena() const final {
  3214. return GetArenaNoVirtual();
  3215. }
  3216. inline void* GetMaybeArenaPointer() const final {
  3217. return MaybeArenaPtr();
  3218. }
  3219. static const ::google::protobuf::Descriptor* descriptor();
  3220. static const MessageOptions& default_instance();
  3221. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3222. static inline const MessageOptions* internal_default_instance() {
  3223. return reinterpret_cast<const MessageOptions*>(
  3224. &_MessageOptions_default_instance_);
  3225. }
  3226. static constexpr int kIndexInFileMessages =
  3227. 14;
  3228. void UnsafeArenaSwap(MessageOptions* other);
  3229. void Swap(MessageOptions* other);
  3230. friend void swap(MessageOptions& a, MessageOptions& b) {
  3231. a.Swap(&b);
  3232. }
  3233. // implements Message ----------------------------------------------
  3234. inline MessageOptions* New() const final {
  3235. return CreateMaybeMessage<MessageOptions>(NULL);
  3236. }
  3237. MessageOptions* New(::google::protobuf::Arena* arena) const final {
  3238. return CreateMaybeMessage<MessageOptions>(arena);
  3239. }
  3240. void CopyFrom(const ::google::protobuf::Message& from) final;
  3241. void MergeFrom(const ::google::protobuf::Message& from) final;
  3242. void CopyFrom(const MessageOptions& from);
  3243. void MergeFrom(const MessageOptions& from);
  3244. void Clear() final;
  3245. bool IsInitialized() const final;
  3246. size_t ByteSizeLong() const final;
  3247. bool MergePartialFromCodedStream(
  3248. ::google::protobuf::io::CodedInputStream* input) final;
  3249. void SerializeWithCachedSizes(
  3250. ::google::protobuf::io::CodedOutputStream* output) const final;
  3251. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3252. bool deterministic, ::google::protobuf::uint8* target) const final;
  3253. int GetCachedSize() const final { return _cached_size_.Get(); }
  3254. private:
  3255. void SharedCtor();
  3256. void SharedDtor();
  3257. void SetCachedSize(int size) const final;
  3258. void InternalSwap(MessageOptions* other);
  3259. protected:
  3260. explicit MessageOptions(::google::protobuf::Arena* arena);
  3261. private:
  3262. static void ArenaDtor(void* object);
  3263. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3264. private:
  3265. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3266. return _internal_metadata_.arena();
  3267. }
  3268. inline void* MaybeArenaPtr() const {
  3269. return _internal_metadata_.raw_arena_ptr();
  3270. }
  3271. public:
  3272. ::google::protobuf::Metadata GetMetadata() const final;
  3273. // nested types ----------------------------------------------------
  3274. // accessors -------------------------------------------------------
  3275. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3276. int uninterpreted_option_size() const;
  3277. void clear_uninterpreted_option();
  3278. static const int kUninterpretedOptionFieldNumber = 999;
  3279. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  3280. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3281. mutable_uninterpreted_option();
  3282. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  3283. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  3284. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3285. uninterpreted_option() const;
  3286. // optional bool message_set_wire_format = 1 [default = false];
  3287. bool has_message_set_wire_format() const;
  3288. void clear_message_set_wire_format();
  3289. static const int kMessageSetWireFormatFieldNumber = 1;
  3290. bool message_set_wire_format() const;
  3291. void set_message_set_wire_format(bool value);
  3292. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  3293. bool has_no_standard_descriptor_accessor() const;
  3294. void clear_no_standard_descriptor_accessor();
  3295. static const int kNoStandardDescriptorAccessorFieldNumber = 2;
  3296. bool no_standard_descriptor_accessor() const;
  3297. void set_no_standard_descriptor_accessor(bool value);
  3298. // optional bool deprecated = 3 [default = false];
  3299. bool has_deprecated() const;
  3300. void clear_deprecated();
  3301. static const int kDeprecatedFieldNumber = 3;
  3302. bool deprecated() const;
  3303. void set_deprecated(bool value);
  3304. // optional bool map_entry = 7;
  3305. bool has_map_entry() const;
  3306. void clear_map_entry();
  3307. static const int kMapEntryFieldNumber = 7;
  3308. bool map_entry() const;
  3309. void set_map_entry(bool value);
  3310. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MessageOptions)
  3311. // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
  3312. private:
  3313. void set_has_message_set_wire_format();
  3314. void clear_has_message_set_wire_format();
  3315. void set_has_no_standard_descriptor_accessor();
  3316. void clear_has_no_standard_descriptor_accessor();
  3317. void set_has_deprecated();
  3318. void clear_has_deprecated();
  3319. void set_has_map_entry();
  3320. void clear_has_map_entry();
  3321. ::google::protobuf::internal::ExtensionSet _extensions_;
  3322. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3323. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3324. typedef void InternalArenaConstructable_;
  3325. typedef void DestructorSkippable_;
  3326. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3327. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3328. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3329. bool message_set_wire_format_;
  3330. bool no_standard_descriptor_accessor_;
  3331. bool deprecated_;
  3332. bool map_entry_;
  3333. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3334. };
  3335. // -------------------------------------------------------------------
  3336. class LIBPROTOBUF_EXPORT FieldOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldOptions) */ {
  3337. public:
  3338. FieldOptions();
  3339. virtual ~FieldOptions();
  3340. FieldOptions(const FieldOptions& from);
  3341. inline FieldOptions& operator=(const FieldOptions& from) {
  3342. CopyFrom(from);
  3343. return *this;
  3344. }
  3345. #if LANG_CXX11
  3346. FieldOptions(FieldOptions&& from) noexcept
  3347. : FieldOptions() {
  3348. *this = ::std::move(from);
  3349. }
  3350. inline FieldOptions& operator=(FieldOptions&& from) noexcept {
  3351. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3352. if (this != &from) InternalSwap(&from);
  3353. } else {
  3354. CopyFrom(from);
  3355. }
  3356. return *this;
  3357. }
  3358. #endif
  3359. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3360. return _internal_metadata_.unknown_fields();
  3361. }
  3362. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3363. return _internal_metadata_.mutable_unknown_fields();
  3364. }
  3365. inline ::google::protobuf::Arena* GetArena() const final {
  3366. return GetArenaNoVirtual();
  3367. }
  3368. inline void* GetMaybeArenaPointer() const final {
  3369. return MaybeArenaPtr();
  3370. }
  3371. static const ::google::protobuf::Descriptor* descriptor();
  3372. static const FieldOptions& default_instance();
  3373. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3374. static inline const FieldOptions* internal_default_instance() {
  3375. return reinterpret_cast<const FieldOptions*>(
  3376. &_FieldOptions_default_instance_);
  3377. }
  3378. static constexpr int kIndexInFileMessages =
  3379. 15;
  3380. void UnsafeArenaSwap(FieldOptions* other);
  3381. void Swap(FieldOptions* other);
  3382. friend void swap(FieldOptions& a, FieldOptions& b) {
  3383. a.Swap(&b);
  3384. }
  3385. // implements Message ----------------------------------------------
  3386. inline FieldOptions* New() const final {
  3387. return CreateMaybeMessage<FieldOptions>(NULL);
  3388. }
  3389. FieldOptions* New(::google::protobuf::Arena* arena) const final {
  3390. return CreateMaybeMessage<FieldOptions>(arena);
  3391. }
  3392. void CopyFrom(const ::google::protobuf::Message& from) final;
  3393. void MergeFrom(const ::google::protobuf::Message& from) final;
  3394. void CopyFrom(const FieldOptions& from);
  3395. void MergeFrom(const FieldOptions& from);
  3396. void Clear() final;
  3397. bool IsInitialized() const final;
  3398. size_t ByteSizeLong() const final;
  3399. bool MergePartialFromCodedStream(
  3400. ::google::protobuf::io::CodedInputStream* input) final;
  3401. void SerializeWithCachedSizes(
  3402. ::google::protobuf::io::CodedOutputStream* output) const final;
  3403. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3404. bool deterministic, ::google::protobuf::uint8* target) const final;
  3405. int GetCachedSize() const final { return _cached_size_.Get(); }
  3406. private:
  3407. void SharedCtor();
  3408. void SharedDtor();
  3409. void SetCachedSize(int size) const final;
  3410. void InternalSwap(FieldOptions* other);
  3411. protected:
  3412. explicit FieldOptions(::google::protobuf::Arena* arena);
  3413. private:
  3414. static void ArenaDtor(void* object);
  3415. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3416. private:
  3417. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3418. return _internal_metadata_.arena();
  3419. }
  3420. inline void* MaybeArenaPtr() const {
  3421. return _internal_metadata_.raw_arena_ptr();
  3422. }
  3423. public:
  3424. ::google::protobuf::Metadata GetMetadata() const final;
  3425. // nested types ----------------------------------------------------
  3426. typedef FieldOptions_CType CType;
  3427. static const CType STRING =
  3428. FieldOptions_CType_STRING;
  3429. static const CType CORD =
  3430. FieldOptions_CType_CORD;
  3431. static const CType STRING_PIECE =
  3432. FieldOptions_CType_STRING_PIECE;
  3433. static inline bool CType_IsValid(int value) {
  3434. return FieldOptions_CType_IsValid(value);
  3435. }
  3436. static const CType CType_MIN =
  3437. FieldOptions_CType_CType_MIN;
  3438. static const CType CType_MAX =
  3439. FieldOptions_CType_CType_MAX;
  3440. static const int CType_ARRAYSIZE =
  3441. FieldOptions_CType_CType_ARRAYSIZE;
  3442. static inline const ::google::protobuf::EnumDescriptor*
  3443. CType_descriptor() {
  3444. return FieldOptions_CType_descriptor();
  3445. }
  3446. static inline const ::std::string& CType_Name(CType value) {
  3447. return FieldOptions_CType_Name(value);
  3448. }
  3449. static inline bool CType_Parse(const ::std::string& name,
  3450. CType* value) {
  3451. return FieldOptions_CType_Parse(name, value);
  3452. }
  3453. typedef FieldOptions_JSType JSType;
  3454. static const JSType JS_NORMAL =
  3455. FieldOptions_JSType_JS_NORMAL;
  3456. static const JSType JS_STRING =
  3457. FieldOptions_JSType_JS_STRING;
  3458. static const JSType JS_NUMBER =
  3459. FieldOptions_JSType_JS_NUMBER;
  3460. static inline bool JSType_IsValid(int value) {
  3461. return FieldOptions_JSType_IsValid(value);
  3462. }
  3463. static const JSType JSType_MIN =
  3464. FieldOptions_JSType_JSType_MIN;
  3465. static const JSType JSType_MAX =
  3466. FieldOptions_JSType_JSType_MAX;
  3467. static const int JSType_ARRAYSIZE =
  3468. FieldOptions_JSType_JSType_ARRAYSIZE;
  3469. static inline const ::google::protobuf::EnumDescriptor*
  3470. JSType_descriptor() {
  3471. return FieldOptions_JSType_descriptor();
  3472. }
  3473. static inline const ::std::string& JSType_Name(JSType value) {
  3474. return FieldOptions_JSType_Name(value);
  3475. }
  3476. static inline bool JSType_Parse(const ::std::string& name,
  3477. JSType* value) {
  3478. return FieldOptions_JSType_Parse(name, value);
  3479. }
  3480. // accessors -------------------------------------------------------
  3481. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3482. int uninterpreted_option_size() const;
  3483. void clear_uninterpreted_option();
  3484. static const int kUninterpretedOptionFieldNumber = 999;
  3485. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  3486. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3487. mutable_uninterpreted_option();
  3488. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  3489. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  3490. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3491. uninterpreted_option() const;
  3492. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  3493. bool has_ctype() const;
  3494. void clear_ctype();
  3495. static const int kCtypeFieldNumber = 1;
  3496. ::google::protobuf::FieldOptions_CType ctype() const;
  3497. void set_ctype(::google::protobuf::FieldOptions_CType value);
  3498. // optional bool packed = 2;
  3499. bool has_packed() const;
  3500. void clear_packed();
  3501. static const int kPackedFieldNumber = 2;
  3502. bool packed() const;
  3503. void set_packed(bool value);
  3504. // optional bool lazy = 5 [default = false];
  3505. bool has_lazy() const;
  3506. void clear_lazy();
  3507. static const int kLazyFieldNumber = 5;
  3508. bool lazy() const;
  3509. void set_lazy(bool value);
  3510. // optional bool deprecated = 3 [default = false];
  3511. bool has_deprecated() const;
  3512. void clear_deprecated();
  3513. static const int kDeprecatedFieldNumber = 3;
  3514. bool deprecated() const;
  3515. void set_deprecated(bool value);
  3516. // optional bool weak = 10 [default = false];
  3517. bool has_weak() const;
  3518. void clear_weak();
  3519. static const int kWeakFieldNumber = 10;
  3520. bool weak() const;
  3521. void set_weak(bool value);
  3522. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  3523. bool has_jstype() const;
  3524. void clear_jstype();
  3525. static const int kJstypeFieldNumber = 6;
  3526. ::google::protobuf::FieldOptions_JSType jstype() const;
  3527. void set_jstype(::google::protobuf::FieldOptions_JSType value);
  3528. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FieldOptions)
  3529. // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
  3530. private:
  3531. void set_has_ctype();
  3532. void clear_has_ctype();
  3533. void set_has_packed();
  3534. void clear_has_packed();
  3535. void set_has_jstype();
  3536. void clear_has_jstype();
  3537. void set_has_lazy();
  3538. void clear_has_lazy();
  3539. void set_has_deprecated();
  3540. void clear_has_deprecated();
  3541. void set_has_weak();
  3542. void clear_has_weak();
  3543. ::google::protobuf::internal::ExtensionSet _extensions_;
  3544. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3545. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3546. typedef void InternalArenaConstructable_;
  3547. typedef void DestructorSkippable_;
  3548. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3549. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3550. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3551. int ctype_;
  3552. bool packed_;
  3553. bool lazy_;
  3554. bool deprecated_;
  3555. bool weak_;
  3556. int jstype_;
  3557. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3558. };
  3559. // -------------------------------------------------------------------
  3560. class LIBPROTOBUF_EXPORT OneofOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofOptions) */ {
  3561. public:
  3562. OneofOptions();
  3563. virtual ~OneofOptions();
  3564. OneofOptions(const OneofOptions& from);
  3565. inline OneofOptions& operator=(const OneofOptions& from) {
  3566. CopyFrom(from);
  3567. return *this;
  3568. }
  3569. #if LANG_CXX11
  3570. OneofOptions(OneofOptions&& from) noexcept
  3571. : OneofOptions() {
  3572. *this = ::std::move(from);
  3573. }
  3574. inline OneofOptions& operator=(OneofOptions&& from) noexcept {
  3575. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3576. if (this != &from) InternalSwap(&from);
  3577. } else {
  3578. CopyFrom(from);
  3579. }
  3580. return *this;
  3581. }
  3582. #endif
  3583. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3584. return _internal_metadata_.unknown_fields();
  3585. }
  3586. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3587. return _internal_metadata_.mutable_unknown_fields();
  3588. }
  3589. inline ::google::protobuf::Arena* GetArena() const final {
  3590. return GetArenaNoVirtual();
  3591. }
  3592. inline void* GetMaybeArenaPointer() const final {
  3593. return MaybeArenaPtr();
  3594. }
  3595. static const ::google::protobuf::Descriptor* descriptor();
  3596. static const OneofOptions& default_instance();
  3597. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3598. static inline const OneofOptions* internal_default_instance() {
  3599. return reinterpret_cast<const OneofOptions*>(
  3600. &_OneofOptions_default_instance_);
  3601. }
  3602. static constexpr int kIndexInFileMessages =
  3603. 16;
  3604. void UnsafeArenaSwap(OneofOptions* other);
  3605. void Swap(OneofOptions* other);
  3606. friend void swap(OneofOptions& a, OneofOptions& b) {
  3607. a.Swap(&b);
  3608. }
  3609. // implements Message ----------------------------------------------
  3610. inline OneofOptions* New() const final {
  3611. return CreateMaybeMessage<OneofOptions>(NULL);
  3612. }
  3613. OneofOptions* New(::google::protobuf::Arena* arena) const final {
  3614. return CreateMaybeMessage<OneofOptions>(arena);
  3615. }
  3616. void CopyFrom(const ::google::protobuf::Message& from) final;
  3617. void MergeFrom(const ::google::protobuf::Message& from) final;
  3618. void CopyFrom(const OneofOptions& from);
  3619. void MergeFrom(const OneofOptions& from);
  3620. void Clear() final;
  3621. bool IsInitialized() const final;
  3622. size_t ByteSizeLong() const final;
  3623. bool MergePartialFromCodedStream(
  3624. ::google::protobuf::io::CodedInputStream* input) final;
  3625. void SerializeWithCachedSizes(
  3626. ::google::protobuf::io::CodedOutputStream* output) const final;
  3627. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3628. bool deterministic, ::google::protobuf::uint8* target) const final;
  3629. int GetCachedSize() const final { return _cached_size_.Get(); }
  3630. private:
  3631. void SharedCtor();
  3632. void SharedDtor();
  3633. void SetCachedSize(int size) const final;
  3634. void InternalSwap(OneofOptions* other);
  3635. protected:
  3636. explicit OneofOptions(::google::protobuf::Arena* arena);
  3637. private:
  3638. static void ArenaDtor(void* object);
  3639. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3640. private:
  3641. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3642. return _internal_metadata_.arena();
  3643. }
  3644. inline void* MaybeArenaPtr() const {
  3645. return _internal_metadata_.raw_arena_ptr();
  3646. }
  3647. public:
  3648. ::google::protobuf::Metadata GetMetadata() const final;
  3649. // nested types ----------------------------------------------------
  3650. // accessors -------------------------------------------------------
  3651. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3652. int uninterpreted_option_size() const;
  3653. void clear_uninterpreted_option();
  3654. static const int kUninterpretedOptionFieldNumber = 999;
  3655. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  3656. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3657. mutable_uninterpreted_option();
  3658. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  3659. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  3660. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3661. uninterpreted_option() const;
  3662. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(OneofOptions)
  3663. // @@protoc_insertion_point(class_scope:google.protobuf.OneofOptions)
  3664. private:
  3665. ::google::protobuf::internal::ExtensionSet _extensions_;
  3666. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3667. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3668. typedef void InternalArenaConstructable_;
  3669. typedef void DestructorSkippable_;
  3670. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3671. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3672. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3673. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3674. };
  3675. // -------------------------------------------------------------------
  3676. class LIBPROTOBUF_EXPORT EnumOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumOptions) */ {
  3677. public:
  3678. EnumOptions();
  3679. virtual ~EnumOptions();
  3680. EnumOptions(const EnumOptions& from);
  3681. inline EnumOptions& operator=(const EnumOptions& from) {
  3682. CopyFrom(from);
  3683. return *this;
  3684. }
  3685. #if LANG_CXX11
  3686. EnumOptions(EnumOptions&& from) noexcept
  3687. : EnumOptions() {
  3688. *this = ::std::move(from);
  3689. }
  3690. inline EnumOptions& operator=(EnumOptions&& from) noexcept {
  3691. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3692. if (this != &from) InternalSwap(&from);
  3693. } else {
  3694. CopyFrom(from);
  3695. }
  3696. return *this;
  3697. }
  3698. #endif
  3699. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3700. return _internal_metadata_.unknown_fields();
  3701. }
  3702. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3703. return _internal_metadata_.mutable_unknown_fields();
  3704. }
  3705. inline ::google::protobuf::Arena* GetArena() const final {
  3706. return GetArenaNoVirtual();
  3707. }
  3708. inline void* GetMaybeArenaPointer() const final {
  3709. return MaybeArenaPtr();
  3710. }
  3711. static const ::google::protobuf::Descriptor* descriptor();
  3712. static const EnumOptions& default_instance();
  3713. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3714. static inline const EnumOptions* internal_default_instance() {
  3715. return reinterpret_cast<const EnumOptions*>(
  3716. &_EnumOptions_default_instance_);
  3717. }
  3718. static constexpr int kIndexInFileMessages =
  3719. 17;
  3720. void UnsafeArenaSwap(EnumOptions* other);
  3721. void Swap(EnumOptions* other);
  3722. friend void swap(EnumOptions& a, EnumOptions& b) {
  3723. a.Swap(&b);
  3724. }
  3725. // implements Message ----------------------------------------------
  3726. inline EnumOptions* New() const final {
  3727. return CreateMaybeMessage<EnumOptions>(NULL);
  3728. }
  3729. EnumOptions* New(::google::protobuf::Arena* arena) const final {
  3730. return CreateMaybeMessage<EnumOptions>(arena);
  3731. }
  3732. void CopyFrom(const ::google::protobuf::Message& from) final;
  3733. void MergeFrom(const ::google::protobuf::Message& from) final;
  3734. void CopyFrom(const EnumOptions& from);
  3735. void MergeFrom(const EnumOptions& from);
  3736. void Clear() final;
  3737. bool IsInitialized() const final;
  3738. size_t ByteSizeLong() const final;
  3739. bool MergePartialFromCodedStream(
  3740. ::google::protobuf::io::CodedInputStream* input) final;
  3741. void SerializeWithCachedSizes(
  3742. ::google::protobuf::io::CodedOutputStream* output) const final;
  3743. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3744. bool deterministic, ::google::protobuf::uint8* target) const final;
  3745. int GetCachedSize() const final { return _cached_size_.Get(); }
  3746. private:
  3747. void SharedCtor();
  3748. void SharedDtor();
  3749. void SetCachedSize(int size) const final;
  3750. void InternalSwap(EnumOptions* other);
  3751. protected:
  3752. explicit EnumOptions(::google::protobuf::Arena* arena);
  3753. private:
  3754. static void ArenaDtor(void* object);
  3755. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3756. private:
  3757. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3758. return _internal_metadata_.arena();
  3759. }
  3760. inline void* MaybeArenaPtr() const {
  3761. return _internal_metadata_.raw_arena_ptr();
  3762. }
  3763. public:
  3764. ::google::protobuf::Metadata GetMetadata() const final;
  3765. // nested types ----------------------------------------------------
  3766. // accessors -------------------------------------------------------
  3767. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3768. int uninterpreted_option_size() const;
  3769. void clear_uninterpreted_option();
  3770. static const int kUninterpretedOptionFieldNumber = 999;
  3771. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  3772. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3773. mutable_uninterpreted_option();
  3774. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  3775. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  3776. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3777. uninterpreted_option() const;
  3778. // optional bool allow_alias = 2;
  3779. bool has_allow_alias() const;
  3780. void clear_allow_alias();
  3781. static const int kAllowAliasFieldNumber = 2;
  3782. bool allow_alias() const;
  3783. void set_allow_alias(bool value);
  3784. // optional bool deprecated = 3 [default = false];
  3785. bool has_deprecated() const;
  3786. void clear_deprecated();
  3787. static const int kDeprecatedFieldNumber = 3;
  3788. bool deprecated() const;
  3789. void set_deprecated(bool value);
  3790. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumOptions)
  3791. // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
  3792. private:
  3793. void set_has_allow_alias();
  3794. void clear_has_allow_alias();
  3795. void set_has_deprecated();
  3796. void clear_has_deprecated();
  3797. ::google::protobuf::internal::ExtensionSet _extensions_;
  3798. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3799. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3800. typedef void InternalArenaConstructable_;
  3801. typedef void DestructorSkippable_;
  3802. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3803. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3804. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3805. bool allow_alias_;
  3806. bool deprecated_;
  3807. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3808. };
  3809. // -------------------------------------------------------------------
  3810. class LIBPROTOBUF_EXPORT EnumValueOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueOptions) */ {
  3811. public:
  3812. EnumValueOptions();
  3813. virtual ~EnumValueOptions();
  3814. EnumValueOptions(const EnumValueOptions& from);
  3815. inline EnumValueOptions& operator=(const EnumValueOptions& from) {
  3816. CopyFrom(from);
  3817. return *this;
  3818. }
  3819. #if LANG_CXX11
  3820. EnumValueOptions(EnumValueOptions&& from) noexcept
  3821. : EnumValueOptions() {
  3822. *this = ::std::move(from);
  3823. }
  3824. inline EnumValueOptions& operator=(EnumValueOptions&& from) noexcept {
  3825. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3826. if (this != &from) InternalSwap(&from);
  3827. } else {
  3828. CopyFrom(from);
  3829. }
  3830. return *this;
  3831. }
  3832. #endif
  3833. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3834. return _internal_metadata_.unknown_fields();
  3835. }
  3836. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3837. return _internal_metadata_.mutable_unknown_fields();
  3838. }
  3839. inline ::google::protobuf::Arena* GetArena() const final {
  3840. return GetArenaNoVirtual();
  3841. }
  3842. inline void* GetMaybeArenaPointer() const final {
  3843. return MaybeArenaPtr();
  3844. }
  3845. static const ::google::protobuf::Descriptor* descriptor();
  3846. static const EnumValueOptions& default_instance();
  3847. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3848. static inline const EnumValueOptions* internal_default_instance() {
  3849. return reinterpret_cast<const EnumValueOptions*>(
  3850. &_EnumValueOptions_default_instance_);
  3851. }
  3852. static constexpr int kIndexInFileMessages =
  3853. 18;
  3854. void UnsafeArenaSwap(EnumValueOptions* other);
  3855. void Swap(EnumValueOptions* other);
  3856. friend void swap(EnumValueOptions& a, EnumValueOptions& b) {
  3857. a.Swap(&b);
  3858. }
  3859. // implements Message ----------------------------------------------
  3860. inline EnumValueOptions* New() const final {
  3861. return CreateMaybeMessage<EnumValueOptions>(NULL);
  3862. }
  3863. EnumValueOptions* New(::google::protobuf::Arena* arena) const final {
  3864. return CreateMaybeMessage<EnumValueOptions>(arena);
  3865. }
  3866. void CopyFrom(const ::google::protobuf::Message& from) final;
  3867. void MergeFrom(const ::google::protobuf::Message& from) final;
  3868. void CopyFrom(const EnumValueOptions& from);
  3869. void MergeFrom(const EnumValueOptions& from);
  3870. void Clear() final;
  3871. bool IsInitialized() const final;
  3872. size_t ByteSizeLong() const final;
  3873. bool MergePartialFromCodedStream(
  3874. ::google::protobuf::io::CodedInputStream* input) final;
  3875. void SerializeWithCachedSizes(
  3876. ::google::protobuf::io::CodedOutputStream* output) const final;
  3877. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3878. bool deterministic, ::google::protobuf::uint8* target) const final;
  3879. int GetCachedSize() const final { return _cached_size_.Get(); }
  3880. private:
  3881. void SharedCtor();
  3882. void SharedDtor();
  3883. void SetCachedSize(int size) const final;
  3884. void InternalSwap(EnumValueOptions* other);
  3885. protected:
  3886. explicit EnumValueOptions(::google::protobuf::Arena* arena);
  3887. private:
  3888. static void ArenaDtor(void* object);
  3889. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3890. private:
  3891. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3892. return _internal_metadata_.arena();
  3893. }
  3894. inline void* MaybeArenaPtr() const {
  3895. return _internal_metadata_.raw_arena_ptr();
  3896. }
  3897. public:
  3898. ::google::protobuf::Metadata GetMetadata() const final;
  3899. // nested types ----------------------------------------------------
  3900. // accessors -------------------------------------------------------
  3901. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3902. int uninterpreted_option_size() const;
  3903. void clear_uninterpreted_option();
  3904. static const int kUninterpretedOptionFieldNumber = 999;
  3905. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  3906. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3907. mutable_uninterpreted_option();
  3908. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  3909. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  3910. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3911. uninterpreted_option() const;
  3912. // optional bool deprecated = 1 [default = false];
  3913. bool has_deprecated() const;
  3914. void clear_deprecated();
  3915. static const int kDeprecatedFieldNumber = 1;
  3916. bool deprecated() const;
  3917. void set_deprecated(bool value);
  3918. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumValueOptions)
  3919. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
  3920. private:
  3921. void set_has_deprecated();
  3922. void clear_has_deprecated();
  3923. ::google::protobuf::internal::ExtensionSet _extensions_;
  3924. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3925. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3926. typedef void InternalArenaConstructable_;
  3927. typedef void DestructorSkippable_;
  3928. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3929. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3930. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3931. bool deprecated_;
  3932. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3933. };
  3934. // -------------------------------------------------------------------
  3935. class LIBPROTOBUF_EXPORT ServiceOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceOptions) */ {
  3936. public:
  3937. ServiceOptions();
  3938. virtual ~ServiceOptions();
  3939. ServiceOptions(const ServiceOptions& from);
  3940. inline ServiceOptions& operator=(const ServiceOptions& from) {
  3941. CopyFrom(from);
  3942. return *this;
  3943. }
  3944. #if LANG_CXX11
  3945. ServiceOptions(ServiceOptions&& from) noexcept
  3946. : ServiceOptions() {
  3947. *this = ::std::move(from);
  3948. }
  3949. inline ServiceOptions& operator=(ServiceOptions&& from) noexcept {
  3950. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3951. if (this != &from) InternalSwap(&from);
  3952. } else {
  3953. CopyFrom(from);
  3954. }
  3955. return *this;
  3956. }
  3957. #endif
  3958. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3959. return _internal_metadata_.unknown_fields();
  3960. }
  3961. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3962. return _internal_metadata_.mutable_unknown_fields();
  3963. }
  3964. inline ::google::protobuf::Arena* GetArena() const final {
  3965. return GetArenaNoVirtual();
  3966. }
  3967. inline void* GetMaybeArenaPointer() const final {
  3968. return MaybeArenaPtr();
  3969. }
  3970. static const ::google::protobuf::Descriptor* descriptor();
  3971. static const ServiceOptions& default_instance();
  3972. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3973. static inline const ServiceOptions* internal_default_instance() {
  3974. return reinterpret_cast<const ServiceOptions*>(
  3975. &_ServiceOptions_default_instance_);
  3976. }
  3977. static constexpr int kIndexInFileMessages =
  3978. 19;
  3979. void UnsafeArenaSwap(ServiceOptions* other);
  3980. void Swap(ServiceOptions* other);
  3981. friend void swap(ServiceOptions& a, ServiceOptions& b) {
  3982. a.Swap(&b);
  3983. }
  3984. // implements Message ----------------------------------------------
  3985. inline ServiceOptions* New() const final {
  3986. return CreateMaybeMessage<ServiceOptions>(NULL);
  3987. }
  3988. ServiceOptions* New(::google::protobuf::Arena* arena) const final {
  3989. return CreateMaybeMessage<ServiceOptions>(arena);
  3990. }
  3991. void CopyFrom(const ::google::protobuf::Message& from) final;
  3992. void MergeFrom(const ::google::protobuf::Message& from) final;
  3993. void CopyFrom(const ServiceOptions& from);
  3994. void MergeFrom(const ServiceOptions& from);
  3995. void Clear() final;
  3996. bool IsInitialized() const final;
  3997. size_t ByteSizeLong() const final;
  3998. bool MergePartialFromCodedStream(
  3999. ::google::protobuf::io::CodedInputStream* input) final;
  4000. void SerializeWithCachedSizes(
  4001. ::google::protobuf::io::CodedOutputStream* output) const final;
  4002. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4003. bool deterministic, ::google::protobuf::uint8* target) const final;
  4004. int GetCachedSize() const final { return _cached_size_.Get(); }
  4005. private:
  4006. void SharedCtor();
  4007. void SharedDtor();
  4008. void SetCachedSize(int size) const final;
  4009. void InternalSwap(ServiceOptions* other);
  4010. protected:
  4011. explicit ServiceOptions(::google::protobuf::Arena* arena);
  4012. private:
  4013. static void ArenaDtor(void* object);
  4014. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4015. private:
  4016. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4017. return _internal_metadata_.arena();
  4018. }
  4019. inline void* MaybeArenaPtr() const {
  4020. return _internal_metadata_.raw_arena_ptr();
  4021. }
  4022. public:
  4023. ::google::protobuf::Metadata GetMetadata() const final;
  4024. // nested types ----------------------------------------------------
  4025. // accessors -------------------------------------------------------
  4026. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4027. int uninterpreted_option_size() const;
  4028. void clear_uninterpreted_option();
  4029. static const int kUninterpretedOptionFieldNumber = 999;
  4030. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  4031. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  4032. mutable_uninterpreted_option();
  4033. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  4034. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  4035. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  4036. uninterpreted_option() const;
  4037. // optional bool deprecated = 33 [default = false];
  4038. bool has_deprecated() const;
  4039. void clear_deprecated();
  4040. static const int kDeprecatedFieldNumber = 33;
  4041. bool deprecated() const;
  4042. void set_deprecated(bool value);
  4043. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ServiceOptions)
  4044. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
  4045. private:
  4046. void set_has_deprecated();
  4047. void clear_has_deprecated();
  4048. ::google::protobuf::internal::ExtensionSet _extensions_;
  4049. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4050. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4051. typedef void InternalArenaConstructable_;
  4052. typedef void DestructorSkippable_;
  4053. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4054. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4055. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  4056. bool deprecated_;
  4057. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4058. };
  4059. // -------------------------------------------------------------------
  4060. class LIBPROTOBUF_EXPORT MethodOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodOptions) */ {
  4061. public:
  4062. MethodOptions();
  4063. virtual ~MethodOptions();
  4064. MethodOptions(const MethodOptions& from);
  4065. inline MethodOptions& operator=(const MethodOptions& from) {
  4066. CopyFrom(from);
  4067. return *this;
  4068. }
  4069. #if LANG_CXX11
  4070. MethodOptions(MethodOptions&& from) noexcept
  4071. : MethodOptions() {
  4072. *this = ::std::move(from);
  4073. }
  4074. inline MethodOptions& operator=(MethodOptions&& from) noexcept {
  4075. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4076. if (this != &from) InternalSwap(&from);
  4077. } else {
  4078. CopyFrom(from);
  4079. }
  4080. return *this;
  4081. }
  4082. #endif
  4083. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4084. return _internal_metadata_.unknown_fields();
  4085. }
  4086. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4087. return _internal_metadata_.mutable_unknown_fields();
  4088. }
  4089. inline ::google::protobuf::Arena* GetArena() const final {
  4090. return GetArenaNoVirtual();
  4091. }
  4092. inline void* GetMaybeArenaPointer() const final {
  4093. return MaybeArenaPtr();
  4094. }
  4095. static const ::google::protobuf::Descriptor* descriptor();
  4096. static const MethodOptions& default_instance();
  4097. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4098. static inline const MethodOptions* internal_default_instance() {
  4099. return reinterpret_cast<const MethodOptions*>(
  4100. &_MethodOptions_default_instance_);
  4101. }
  4102. static constexpr int kIndexInFileMessages =
  4103. 20;
  4104. void UnsafeArenaSwap(MethodOptions* other);
  4105. void Swap(MethodOptions* other);
  4106. friend void swap(MethodOptions& a, MethodOptions& b) {
  4107. a.Swap(&b);
  4108. }
  4109. // implements Message ----------------------------------------------
  4110. inline MethodOptions* New() const final {
  4111. return CreateMaybeMessage<MethodOptions>(NULL);
  4112. }
  4113. MethodOptions* New(::google::protobuf::Arena* arena) const final {
  4114. return CreateMaybeMessage<MethodOptions>(arena);
  4115. }
  4116. void CopyFrom(const ::google::protobuf::Message& from) final;
  4117. void MergeFrom(const ::google::protobuf::Message& from) final;
  4118. void CopyFrom(const MethodOptions& from);
  4119. void MergeFrom(const MethodOptions& from);
  4120. void Clear() final;
  4121. bool IsInitialized() const final;
  4122. size_t ByteSizeLong() const final;
  4123. bool MergePartialFromCodedStream(
  4124. ::google::protobuf::io::CodedInputStream* input) final;
  4125. void SerializeWithCachedSizes(
  4126. ::google::protobuf::io::CodedOutputStream* output) const final;
  4127. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4128. bool deterministic, ::google::protobuf::uint8* target) const final;
  4129. int GetCachedSize() const final { return _cached_size_.Get(); }
  4130. private:
  4131. void SharedCtor();
  4132. void SharedDtor();
  4133. void SetCachedSize(int size) const final;
  4134. void InternalSwap(MethodOptions* other);
  4135. protected:
  4136. explicit MethodOptions(::google::protobuf::Arena* arena);
  4137. private:
  4138. static void ArenaDtor(void* object);
  4139. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4140. private:
  4141. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4142. return _internal_metadata_.arena();
  4143. }
  4144. inline void* MaybeArenaPtr() const {
  4145. return _internal_metadata_.raw_arena_ptr();
  4146. }
  4147. public:
  4148. ::google::protobuf::Metadata GetMetadata() const final;
  4149. // nested types ----------------------------------------------------
  4150. typedef MethodOptions_IdempotencyLevel IdempotencyLevel;
  4151. static const IdempotencyLevel IDEMPOTENCY_UNKNOWN =
  4152. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  4153. static const IdempotencyLevel NO_SIDE_EFFECTS =
  4154. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS;
  4155. static const IdempotencyLevel IDEMPOTENT =
  4156. MethodOptions_IdempotencyLevel_IDEMPOTENT;
  4157. static inline bool IdempotencyLevel_IsValid(int value) {
  4158. return MethodOptions_IdempotencyLevel_IsValid(value);
  4159. }
  4160. static const IdempotencyLevel IdempotencyLevel_MIN =
  4161. MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN;
  4162. static const IdempotencyLevel IdempotencyLevel_MAX =
  4163. MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX;
  4164. static const int IdempotencyLevel_ARRAYSIZE =
  4165. MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE;
  4166. static inline const ::google::protobuf::EnumDescriptor*
  4167. IdempotencyLevel_descriptor() {
  4168. return MethodOptions_IdempotencyLevel_descriptor();
  4169. }
  4170. static inline const ::std::string& IdempotencyLevel_Name(IdempotencyLevel value) {
  4171. return MethodOptions_IdempotencyLevel_Name(value);
  4172. }
  4173. static inline bool IdempotencyLevel_Parse(const ::std::string& name,
  4174. IdempotencyLevel* value) {
  4175. return MethodOptions_IdempotencyLevel_Parse(name, value);
  4176. }
  4177. // accessors -------------------------------------------------------
  4178. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4179. int uninterpreted_option_size() const;
  4180. void clear_uninterpreted_option();
  4181. static const int kUninterpretedOptionFieldNumber = 999;
  4182. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  4183. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  4184. mutable_uninterpreted_option();
  4185. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  4186. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  4187. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  4188. uninterpreted_option() const;
  4189. // optional bool deprecated = 33 [default = false];
  4190. bool has_deprecated() const;
  4191. void clear_deprecated();
  4192. static const int kDeprecatedFieldNumber = 33;
  4193. bool deprecated() const;
  4194. void set_deprecated(bool value);
  4195. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  4196. bool has_idempotency_level() const;
  4197. void clear_idempotency_level();
  4198. static const int kIdempotencyLevelFieldNumber = 34;
  4199. ::google::protobuf::MethodOptions_IdempotencyLevel idempotency_level() const;
  4200. void set_idempotency_level(::google::protobuf::MethodOptions_IdempotencyLevel value);
  4201. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MethodOptions)
  4202. // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
  4203. private:
  4204. void set_has_deprecated();
  4205. void clear_has_deprecated();
  4206. void set_has_idempotency_level();
  4207. void clear_has_idempotency_level();
  4208. ::google::protobuf::internal::ExtensionSet _extensions_;
  4209. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4210. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4211. typedef void InternalArenaConstructable_;
  4212. typedef void DestructorSkippable_;
  4213. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4214. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4215. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  4216. bool deprecated_;
  4217. int idempotency_level_;
  4218. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4219. };
  4220. // -------------------------------------------------------------------
  4221. class LIBPROTOBUF_EXPORT UninterpretedOption_NamePart : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption.NamePart) */ {
  4222. public:
  4223. UninterpretedOption_NamePart();
  4224. virtual ~UninterpretedOption_NamePart();
  4225. UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from);
  4226. inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) {
  4227. CopyFrom(from);
  4228. return *this;
  4229. }
  4230. #if LANG_CXX11
  4231. UninterpretedOption_NamePart(UninterpretedOption_NamePart&& from) noexcept
  4232. : UninterpretedOption_NamePart() {
  4233. *this = ::std::move(from);
  4234. }
  4235. inline UninterpretedOption_NamePart& operator=(UninterpretedOption_NamePart&& from) noexcept {
  4236. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4237. if (this != &from) InternalSwap(&from);
  4238. } else {
  4239. CopyFrom(from);
  4240. }
  4241. return *this;
  4242. }
  4243. #endif
  4244. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4245. return _internal_metadata_.unknown_fields();
  4246. }
  4247. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4248. return _internal_metadata_.mutable_unknown_fields();
  4249. }
  4250. inline ::google::protobuf::Arena* GetArena() const final {
  4251. return GetArenaNoVirtual();
  4252. }
  4253. inline void* GetMaybeArenaPointer() const final {
  4254. return MaybeArenaPtr();
  4255. }
  4256. static const ::google::protobuf::Descriptor* descriptor();
  4257. static const UninterpretedOption_NamePart& default_instance();
  4258. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4259. static inline const UninterpretedOption_NamePart* internal_default_instance() {
  4260. return reinterpret_cast<const UninterpretedOption_NamePart*>(
  4261. &_UninterpretedOption_NamePart_default_instance_);
  4262. }
  4263. static constexpr int kIndexInFileMessages =
  4264. 21;
  4265. void UnsafeArenaSwap(UninterpretedOption_NamePart* other);
  4266. void Swap(UninterpretedOption_NamePart* other);
  4267. friend void swap(UninterpretedOption_NamePart& a, UninterpretedOption_NamePart& b) {
  4268. a.Swap(&b);
  4269. }
  4270. // implements Message ----------------------------------------------
  4271. inline UninterpretedOption_NamePart* New() const final {
  4272. return CreateMaybeMessage<UninterpretedOption_NamePart>(NULL);
  4273. }
  4274. UninterpretedOption_NamePart* New(::google::protobuf::Arena* arena) const final {
  4275. return CreateMaybeMessage<UninterpretedOption_NamePart>(arena);
  4276. }
  4277. void CopyFrom(const ::google::protobuf::Message& from) final;
  4278. void MergeFrom(const ::google::protobuf::Message& from) final;
  4279. void CopyFrom(const UninterpretedOption_NamePart& from);
  4280. void MergeFrom(const UninterpretedOption_NamePart& from);
  4281. void Clear() final;
  4282. bool IsInitialized() const final;
  4283. size_t ByteSizeLong() const final;
  4284. bool MergePartialFromCodedStream(
  4285. ::google::protobuf::io::CodedInputStream* input) final;
  4286. void SerializeWithCachedSizes(
  4287. ::google::protobuf::io::CodedOutputStream* output) const final;
  4288. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4289. bool deterministic, ::google::protobuf::uint8* target) const final;
  4290. int GetCachedSize() const final { return _cached_size_.Get(); }
  4291. private:
  4292. void SharedCtor();
  4293. void SharedDtor();
  4294. void SetCachedSize(int size) const final;
  4295. void InternalSwap(UninterpretedOption_NamePart* other);
  4296. protected:
  4297. explicit UninterpretedOption_NamePart(::google::protobuf::Arena* arena);
  4298. private:
  4299. static void ArenaDtor(void* object);
  4300. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4301. private:
  4302. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4303. return _internal_metadata_.arena();
  4304. }
  4305. inline void* MaybeArenaPtr() const {
  4306. return _internal_metadata_.raw_arena_ptr();
  4307. }
  4308. public:
  4309. ::google::protobuf::Metadata GetMetadata() const final;
  4310. // nested types ----------------------------------------------------
  4311. // accessors -------------------------------------------------------
  4312. // required string name_part = 1;
  4313. bool has_name_part() const;
  4314. void clear_name_part();
  4315. static const int kNamePartFieldNumber = 1;
  4316. const ::std::string& name_part() const;
  4317. void set_name_part(const ::std::string& value);
  4318. #if LANG_CXX11
  4319. void set_name_part(::std::string&& value);
  4320. #endif
  4321. void set_name_part(const char* value);
  4322. void set_name_part(const char* value, size_t size);
  4323. ::std::string* mutable_name_part();
  4324. ::std::string* release_name_part();
  4325. void set_allocated_name_part(::std::string* name_part);
  4326. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4327. " string fields are deprecated and will be removed in a"
  4328. " future release.")
  4329. ::std::string* unsafe_arena_release_name_part();
  4330. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4331. " string fields are deprecated and will be removed in a"
  4332. " future release.")
  4333. void unsafe_arena_set_allocated_name_part(
  4334. ::std::string* name_part);
  4335. // required bool is_extension = 2;
  4336. bool has_is_extension() const;
  4337. void clear_is_extension();
  4338. static const int kIsExtensionFieldNumber = 2;
  4339. bool is_extension() const;
  4340. void set_is_extension(bool value);
  4341. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
  4342. private:
  4343. void set_has_name_part();
  4344. void clear_has_name_part();
  4345. void set_has_is_extension();
  4346. void clear_has_is_extension();
  4347. // helper for ByteSizeLong()
  4348. size_t RequiredFieldsByteSizeFallback() const;
  4349. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4350. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4351. typedef void InternalArenaConstructable_;
  4352. typedef void DestructorSkippable_;
  4353. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4354. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4355. ::google::protobuf::internal::ArenaStringPtr name_part_;
  4356. bool is_extension_;
  4357. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4358. };
  4359. // -------------------------------------------------------------------
  4360. class LIBPROTOBUF_EXPORT UninterpretedOption : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption) */ {
  4361. public:
  4362. UninterpretedOption();
  4363. virtual ~UninterpretedOption();
  4364. UninterpretedOption(const UninterpretedOption& from);
  4365. inline UninterpretedOption& operator=(const UninterpretedOption& from) {
  4366. CopyFrom(from);
  4367. return *this;
  4368. }
  4369. #if LANG_CXX11
  4370. UninterpretedOption(UninterpretedOption&& from) noexcept
  4371. : UninterpretedOption() {
  4372. *this = ::std::move(from);
  4373. }
  4374. inline UninterpretedOption& operator=(UninterpretedOption&& from) noexcept {
  4375. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4376. if (this != &from) InternalSwap(&from);
  4377. } else {
  4378. CopyFrom(from);
  4379. }
  4380. return *this;
  4381. }
  4382. #endif
  4383. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4384. return _internal_metadata_.unknown_fields();
  4385. }
  4386. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4387. return _internal_metadata_.mutable_unknown_fields();
  4388. }
  4389. inline ::google::protobuf::Arena* GetArena() const final {
  4390. return GetArenaNoVirtual();
  4391. }
  4392. inline void* GetMaybeArenaPointer() const final {
  4393. return MaybeArenaPtr();
  4394. }
  4395. static const ::google::protobuf::Descriptor* descriptor();
  4396. static const UninterpretedOption& default_instance();
  4397. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4398. static inline const UninterpretedOption* internal_default_instance() {
  4399. return reinterpret_cast<const UninterpretedOption*>(
  4400. &_UninterpretedOption_default_instance_);
  4401. }
  4402. static constexpr int kIndexInFileMessages =
  4403. 22;
  4404. void UnsafeArenaSwap(UninterpretedOption* other);
  4405. void Swap(UninterpretedOption* other);
  4406. friend void swap(UninterpretedOption& a, UninterpretedOption& b) {
  4407. a.Swap(&b);
  4408. }
  4409. // implements Message ----------------------------------------------
  4410. inline UninterpretedOption* New() const final {
  4411. return CreateMaybeMessage<UninterpretedOption>(NULL);
  4412. }
  4413. UninterpretedOption* New(::google::protobuf::Arena* arena) const final {
  4414. return CreateMaybeMessage<UninterpretedOption>(arena);
  4415. }
  4416. void CopyFrom(const ::google::protobuf::Message& from) final;
  4417. void MergeFrom(const ::google::protobuf::Message& from) final;
  4418. void CopyFrom(const UninterpretedOption& from);
  4419. void MergeFrom(const UninterpretedOption& from);
  4420. void Clear() final;
  4421. bool IsInitialized() const final;
  4422. size_t ByteSizeLong() const final;
  4423. bool MergePartialFromCodedStream(
  4424. ::google::protobuf::io::CodedInputStream* input) final;
  4425. void SerializeWithCachedSizes(
  4426. ::google::protobuf::io::CodedOutputStream* output) const final;
  4427. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4428. bool deterministic, ::google::protobuf::uint8* target) const final;
  4429. int GetCachedSize() const final { return _cached_size_.Get(); }
  4430. private:
  4431. void SharedCtor();
  4432. void SharedDtor();
  4433. void SetCachedSize(int size) const final;
  4434. void InternalSwap(UninterpretedOption* other);
  4435. protected:
  4436. explicit UninterpretedOption(::google::protobuf::Arena* arena);
  4437. private:
  4438. static void ArenaDtor(void* object);
  4439. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4440. private:
  4441. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4442. return _internal_metadata_.arena();
  4443. }
  4444. inline void* MaybeArenaPtr() const {
  4445. return _internal_metadata_.raw_arena_ptr();
  4446. }
  4447. public:
  4448. ::google::protobuf::Metadata GetMetadata() const final;
  4449. // nested types ----------------------------------------------------
  4450. typedef UninterpretedOption_NamePart NamePart;
  4451. // accessors -------------------------------------------------------
  4452. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  4453. int name_size() const;
  4454. void clear_name();
  4455. static const int kNameFieldNumber = 2;
  4456. ::google::protobuf::UninterpretedOption_NamePart* mutable_name(int index);
  4457. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
  4458. mutable_name();
  4459. const ::google::protobuf::UninterpretedOption_NamePart& name(int index) const;
  4460. ::google::protobuf::UninterpretedOption_NamePart* add_name();
  4461. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
  4462. name() const;
  4463. // optional string identifier_value = 3;
  4464. bool has_identifier_value() const;
  4465. void clear_identifier_value();
  4466. static const int kIdentifierValueFieldNumber = 3;
  4467. const ::std::string& identifier_value() const;
  4468. void set_identifier_value(const ::std::string& value);
  4469. #if LANG_CXX11
  4470. void set_identifier_value(::std::string&& value);
  4471. #endif
  4472. void set_identifier_value(const char* value);
  4473. void set_identifier_value(const char* value, size_t size);
  4474. ::std::string* mutable_identifier_value();
  4475. ::std::string* release_identifier_value();
  4476. void set_allocated_identifier_value(::std::string* identifier_value);
  4477. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4478. " string fields are deprecated and will be removed in a"
  4479. " future release.")
  4480. ::std::string* unsafe_arena_release_identifier_value();
  4481. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4482. " string fields are deprecated and will be removed in a"
  4483. " future release.")
  4484. void unsafe_arena_set_allocated_identifier_value(
  4485. ::std::string* identifier_value);
  4486. // optional bytes string_value = 7;
  4487. bool has_string_value() const;
  4488. void clear_string_value();
  4489. static const int kStringValueFieldNumber = 7;
  4490. const ::std::string& string_value() const;
  4491. void set_string_value(const ::std::string& value);
  4492. #if LANG_CXX11
  4493. void set_string_value(::std::string&& value);
  4494. #endif
  4495. void set_string_value(const char* value);
  4496. void set_string_value(const void* value, size_t size);
  4497. ::std::string* mutable_string_value();
  4498. ::std::string* release_string_value();
  4499. void set_allocated_string_value(::std::string* string_value);
  4500. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4501. " string fields are deprecated and will be removed in a"
  4502. " future release.")
  4503. ::std::string* unsafe_arena_release_string_value();
  4504. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4505. " string fields are deprecated and will be removed in a"
  4506. " future release.")
  4507. void unsafe_arena_set_allocated_string_value(
  4508. ::std::string* string_value);
  4509. // optional string aggregate_value = 8;
  4510. bool has_aggregate_value() const;
  4511. void clear_aggregate_value();
  4512. static const int kAggregateValueFieldNumber = 8;
  4513. const ::std::string& aggregate_value() const;
  4514. void set_aggregate_value(const ::std::string& value);
  4515. #if LANG_CXX11
  4516. void set_aggregate_value(::std::string&& value);
  4517. #endif
  4518. void set_aggregate_value(const char* value);
  4519. void set_aggregate_value(const char* value, size_t size);
  4520. ::std::string* mutable_aggregate_value();
  4521. ::std::string* release_aggregate_value();
  4522. void set_allocated_aggregate_value(::std::string* aggregate_value);
  4523. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4524. " string fields are deprecated and will be removed in a"
  4525. " future release.")
  4526. ::std::string* unsafe_arena_release_aggregate_value();
  4527. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4528. " string fields are deprecated and will be removed in a"
  4529. " future release.")
  4530. void unsafe_arena_set_allocated_aggregate_value(
  4531. ::std::string* aggregate_value);
  4532. // optional uint64 positive_int_value = 4;
  4533. bool has_positive_int_value() const;
  4534. void clear_positive_int_value();
  4535. static const int kPositiveIntValueFieldNumber = 4;
  4536. ::google::protobuf::uint64 positive_int_value() const;
  4537. void set_positive_int_value(::google::protobuf::uint64 value);
  4538. // optional int64 negative_int_value = 5;
  4539. bool has_negative_int_value() const;
  4540. void clear_negative_int_value();
  4541. static const int kNegativeIntValueFieldNumber = 5;
  4542. ::google::protobuf::int64 negative_int_value() const;
  4543. void set_negative_int_value(::google::protobuf::int64 value);
  4544. // optional double double_value = 6;
  4545. bool has_double_value() const;
  4546. void clear_double_value();
  4547. static const int kDoubleValueFieldNumber = 6;
  4548. double double_value() const;
  4549. void set_double_value(double value);
  4550. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
  4551. private:
  4552. void set_has_identifier_value();
  4553. void clear_has_identifier_value();
  4554. void set_has_positive_int_value();
  4555. void clear_has_positive_int_value();
  4556. void set_has_negative_int_value();
  4557. void clear_has_negative_int_value();
  4558. void set_has_double_value();
  4559. void clear_has_double_value();
  4560. void set_has_string_value();
  4561. void clear_has_string_value();
  4562. void set_has_aggregate_value();
  4563. void clear_has_aggregate_value();
  4564. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4565. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4566. typedef void InternalArenaConstructable_;
  4567. typedef void DestructorSkippable_;
  4568. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4569. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4570. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart > name_;
  4571. ::google::protobuf::internal::ArenaStringPtr identifier_value_;
  4572. ::google::protobuf::internal::ArenaStringPtr string_value_;
  4573. ::google::protobuf::internal::ArenaStringPtr aggregate_value_;
  4574. ::google::protobuf::uint64 positive_int_value_;
  4575. ::google::protobuf::int64 negative_int_value_;
  4576. double double_value_;
  4577. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4578. };
  4579. // -------------------------------------------------------------------
  4580. class LIBPROTOBUF_EXPORT SourceCodeInfo_Location : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo.Location) */ {
  4581. public:
  4582. SourceCodeInfo_Location();
  4583. virtual ~SourceCodeInfo_Location();
  4584. SourceCodeInfo_Location(const SourceCodeInfo_Location& from);
  4585. inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) {
  4586. CopyFrom(from);
  4587. return *this;
  4588. }
  4589. #if LANG_CXX11
  4590. SourceCodeInfo_Location(SourceCodeInfo_Location&& from) noexcept
  4591. : SourceCodeInfo_Location() {
  4592. *this = ::std::move(from);
  4593. }
  4594. inline SourceCodeInfo_Location& operator=(SourceCodeInfo_Location&& from) noexcept {
  4595. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4596. if (this != &from) InternalSwap(&from);
  4597. } else {
  4598. CopyFrom(from);
  4599. }
  4600. return *this;
  4601. }
  4602. #endif
  4603. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4604. return _internal_metadata_.unknown_fields();
  4605. }
  4606. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4607. return _internal_metadata_.mutable_unknown_fields();
  4608. }
  4609. inline ::google::protobuf::Arena* GetArena() const final {
  4610. return GetArenaNoVirtual();
  4611. }
  4612. inline void* GetMaybeArenaPointer() const final {
  4613. return MaybeArenaPtr();
  4614. }
  4615. static const ::google::protobuf::Descriptor* descriptor();
  4616. static const SourceCodeInfo_Location& default_instance();
  4617. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4618. static inline const SourceCodeInfo_Location* internal_default_instance() {
  4619. return reinterpret_cast<const SourceCodeInfo_Location*>(
  4620. &_SourceCodeInfo_Location_default_instance_);
  4621. }
  4622. static constexpr int kIndexInFileMessages =
  4623. 23;
  4624. void UnsafeArenaSwap(SourceCodeInfo_Location* other);
  4625. void Swap(SourceCodeInfo_Location* other);
  4626. friend void swap(SourceCodeInfo_Location& a, SourceCodeInfo_Location& b) {
  4627. a.Swap(&b);
  4628. }
  4629. // implements Message ----------------------------------------------
  4630. inline SourceCodeInfo_Location* New() const final {
  4631. return CreateMaybeMessage<SourceCodeInfo_Location>(NULL);
  4632. }
  4633. SourceCodeInfo_Location* New(::google::protobuf::Arena* arena) const final {
  4634. return CreateMaybeMessage<SourceCodeInfo_Location>(arena);
  4635. }
  4636. void CopyFrom(const ::google::protobuf::Message& from) final;
  4637. void MergeFrom(const ::google::protobuf::Message& from) final;
  4638. void CopyFrom(const SourceCodeInfo_Location& from);
  4639. void MergeFrom(const SourceCodeInfo_Location& from);
  4640. void Clear() final;
  4641. bool IsInitialized() const final;
  4642. size_t ByteSizeLong() const final;
  4643. bool MergePartialFromCodedStream(
  4644. ::google::protobuf::io::CodedInputStream* input) final;
  4645. void SerializeWithCachedSizes(
  4646. ::google::protobuf::io::CodedOutputStream* output) const final;
  4647. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4648. bool deterministic, ::google::protobuf::uint8* target) const final;
  4649. int GetCachedSize() const final { return _cached_size_.Get(); }
  4650. private:
  4651. void SharedCtor();
  4652. void SharedDtor();
  4653. void SetCachedSize(int size) const final;
  4654. void InternalSwap(SourceCodeInfo_Location* other);
  4655. protected:
  4656. explicit SourceCodeInfo_Location(::google::protobuf::Arena* arena);
  4657. private:
  4658. static void ArenaDtor(void* object);
  4659. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4660. private:
  4661. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4662. return _internal_metadata_.arena();
  4663. }
  4664. inline void* MaybeArenaPtr() const {
  4665. return _internal_metadata_.raw_arena_ptr();
  4666. }
  4667. public:
  4668. ::google::protobuf::Metadata GetMetadata() const final;
  4669. // nested types ----------------------------------------------------
  4670. // accessors -------------------------------------------------------
  4671. // repeated int32 path = 1 [packed = true];
  4672. int path_size() const;
  4673. void clear_path();
  4674. static const int kPathFieldNumber = 1;
  4675. ::google::protobuf::int32 path(int index) const;
  4676. void set_path(int index, ::google::protobuf::int32 value);
  4677. void add_path(::google::protobuf::int32 value);
  4678. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4679. path() const;
  4680. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4681. mutable_path();
  4682. // repeated int32 span = 2 [packed = true];
  4683. int span_size() const;
  4684. void clear_span();
  4685. static const int kSpanFieldNumber = 2;
  4686. ::google::protobuf::int32 span(int index) const;
  4687. void set_span(int index, ::google::protobuf::int32 value);
  4688. void add_span(::google::protobuf::int32 value);
  4689. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4690. span() const;
  4691. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4692. mutable_span();
  4693. // repeated string leading_detached_comments = 6;
  4694. int leading_detached_comments_size() const;
  4695. void clear_leading_detached_comments();
  4696. static const int kLeadingDetachedCommentsFieldNumber = 6;
  4697. const ::std::string& leading_detached_comments(int index) const;
  4698. ::std::string* mutable_leading_detached_comments(int index);
  4699. void set_leading_detached_comments(int index, const ::std::string& value);
  4700. #if LANG_CXX11
  4701. void set_leading_detached_comments(int index, ::std::string&& value);
  4702. #endif
  4703. void set_leading_detached_comments(int index, const char* value);
  4704. void set_leading_detached_comments(int index, const char* value, size_t size);
  4705. ::std::string* add_leading_detached_comments();
  4706. void add_leading_detached_comments(const ::std::string& value);
  4707. #if LANG_CXX11
  4708. void add_leading_detached_comments(::std::string&& value);
  4709. #endif
  4710. void add_leading_detached_comments(const char* value);
  4711. void add_leading_detached_comments(const char* value, size_t size);
  4712. const ::google::protobuf::RepeatedPtrField< ::std::string>& leading_detached_comments() const;
  4713. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_leading_detached_comments();
  4714. // optional string leading_comments = 3;
  4715. bool has_leading_comments() const;
  4716. void clear_leading_comments();
  4717. static const int kLeadingCommentsFieldNumber = 3;
  4718. const ::std::string& leading_comments() const;
  4719. void set_leading_comments(const ::std::string& value);
  4720. #if LANG_CXX11
  4721. void set_leading_comments(::std::string&& value);
  4722. #endif
  4723. void set_leading_comments(const char* value);
  4724. void set_leading_comments(const char* value, size_t size);
  4725. ::std::string* mutable_leading_comments();
  4726. ::std::string* release_leading_comments();
  4727. void set_allocated_leading_comments(::std::string* leading_comments);
  4728. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4729. " string fields are deprecated and will be removed in a"
  4730. " future release.")
  4731. ::std::string* unsafe_arena_release_leading_comments();
  4732. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4733. " string fields are deprecated and will be removed in a"
  4734. " future release.")
  4735. void unsafe_arena_set_allocated_leading_comments(
  4736. ::std::string* leading_comments);
  4737. // optional string trailing_comments = 4;
  4738. bool has_trailing_comments() const;
  4739. void clear_trailing_comments();
  4740. static const int kTrailingCommentsFieldNumber = 4;
  4741. const ::std::string& trailing_comments() const;
  4742. void set_trailing_comments(const ::std::string& value);
  4743. #if LANG_CXX11
  4744. void set_trailing_comments(::std::string&& value);
  4745. #endif
  4746. void set_trailing_comments(const char* value);
  4747. void set_trailing_comments(const char* value, size_t size);
  4748. ::std::string* mutable_trailing_comments();
  4749. ::std::string* release_trailing_comments();
  4750. void set_allocated_trailing_comments(::std::string* trailing_comments);
  4751. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4752. " string fields are deprecated and will be removed in a"
  4753. " future release.")
  4754. ::std::string* unsafe_arena_release_trailing_comments();
  4755. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4756. " string fields are deprecated and will be removed in a"
  4757. " future release.")
  4758. void unsafe_arena_set_allocated_trailing_comments(
  4759. ::std::string* trailing_comments);
  4760. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location)
  4761. private:
  4762. void set_has_leading_comments();
  4763. void clear_has_leading_comments();
  4764. void set_has_trailing_comments();
  4765. void clear_has_trailing_comments();
  4766. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4767. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4768. typedef void InternalArenaConstructable_;
  4769. typedef void DestructorSkippable_;
  4770. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4771. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4772. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > path_;
  4773. mutable int _path_cached_byte_size_;
  4774. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > span_;
  4775. mutable int _span_cached_byte_size_;
  4776. ::google::protobuf::RepeatedPtrField< ::std::string> leading_detached_comments_;
  4777. ::google::protobuf::internal::ArenaStringPtr leading_comments_;
  4778. ::google::protobuf::internal::ArenaStringPtr trailing_comments_;
  4779. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4780. };
  4781. // -------------------------------------------------------------------
  4782. class LIBPROTOBUF_EXPORT SourceCodeInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo) */ {
  4783. public:
  4784. SourceCodeInfo();
  4785. virtual ~SourceCodeInfo();
  4786. SourceCodeInfo(const SourceCodeInfo& from);
  4787. inline SourceCodeInfo& operator=(const SourceCodeInfo& from) {
  4788. CopyFrom(from);
  4789. return *this;
  4790. }
  4791. #if LANG_CXX11
  4792. SourceCodeInfo(SourceCodeInfo&& from) noexcept
  4793. : SourceCodeInfo() {
  4794. *this = ::std::move(from);
  4795. }
  4796. inline SourceCodeInfo& operator=(SourceCodeInfo&& from) noexcept {
  4797. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4798. if (this != &from) InternalSwap(&from);
  4799. } else {
  4800. CopyFrom(from);
  4801. }
  4802. return *this;
  4803. }
  4804. #endif
  4805. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4806. return _internal_metadata_.unknown_fields();
  4807. }
  4808. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4809. return _internal_metadata_.mutable_unknown_fields();
  4810. }
  4811. inline ::google::protobuf::Arena* GetArena() const final {
  4812. return GetArenaNoVirtual();
  4813. }
  4814. inline void* GetMaybeArenaPointer() const final {
  4815. return MaybeArenaPtr();
  4816. }
  4817. static const ::google::protobuf::Descriptor* descriptor();
  4818. static const SourceCodeInfo& default_instance();
  4819. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4820. static inline const SourceCodeInfo* internal_default_instance() {
  4821. return reinterpret_cast<const SourceCodeInfo*>(
  4822. &_SourceCodeInfo_default_instance_);
  4823. }
  4824. static constexpr int kIndexInFileMessages =
  4825. 24;
  4826. void UnsafeArenaSwap(SourceCodeInfo* other);
  4827. void Swap(SourceCodeInfo* other);
  4828. friend void swap(SourceCodeInfo& a, SourceCodeInfo& b) {
  4829. a.Swap(&b);
  4830. }
  4831. // implements Message ----------------------------------------------
  4832. inline SourceCodeInfo* New() const final {
  4833. return CreateMaybeMessage<SourceCodeInfo>(NULL);
  4834. }
  4835. SourceCodeInfo* New(::google::protobuf::Arena* arena) const final {
  4836. return CreateMaybeMessage<SourceCodeInfo>(arena);
  4837. }
  4838. void CopyFrom(const ::google::protobuf::Message& from) final;
  4839. void MergeFrom(const ::google::protobuf::Message& from) final;
  4840. void CopyFrom(const SourceCodeInfo& from);
  4841. void MergeFrom(const SourceCodeInfo& from);
  4842. void Clear() final;
  4843. bool IsInitialized() const final;
  4844. size_t ByteSizeLong() const final;
  4845. bool MergePartialFromCodedStream(
  4846. ::google::protobuf::io::CodedInputStream* input) final;
  4847. void SerializeWithCachedSizes(
  4848. ::google::protobuf::io::CodedOutputStream* output) const final;
  4849. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4850. bool deterministic, ::google::protobuf::uint8* target) const final;
  4851. int GetCachedSize() const final { return _cached_size_.Get(); }
  4852. private:
  4853. void SharedCtor();
  4854. void SharedDtor();
  4855. void SetCachedSize(int size) const final;
  4856. void InternalSwap(SourceCodeInfo* other);
  4857. protected:
  4858. explicit SourceCodeInfo(::google::protobuf::Arena* arena);
  4859. private:
  4860. static void ArenaDtor(void* object);
  4861. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4862. private:
  4863. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4864. return _internal_metadata_.arena();
  4865. }
  4866. inline void* MaybeArenaPtr() const {
  4867. return _internal_metadata_.raw_arena_ptr();
  4868. }
  4869. public:
  4870. ::google::protobuf::Metadata GetMetadata() const final;
  4871. // nested types ----------------------------------------------------
  4872. typedef SourceCodeInfo_Location Location;
  4873. // accessors -------------------------------------------------------
  4874. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  4875. int location_size() const;
  4876. void clear_location();
  4877. static const int kLocationFieldNumber = 1;
  4878. ::google::protobuf::SourceCodeInfo_Location* mutable_location(int index);
  4879. ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
  4880. mutable_location();
  4881. const ::google::protobuf::SourceCodeInfo_Location& location(int index) const;
  4882. ::google::protobuf::SourceCodeInfo_Location* add_location();
  4883. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
  4884. location() const;
  4885. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo)
  4886. private:
  4887. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4888. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4889. typedef void InternalArenaConstructable_;
  4890. typedef void DestructorSkippable_;
  4891. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4892. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4893. ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location > location_;
  4894. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4895. };
  4896. // -------------------------------------------------------------------
  4897. class LIBPROTOBUF_EXPORT GeneratedCodeInfo_Annotation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo.Annotation) */ {
  4898. public:
  4899. GeneratedCodeInfo_Annotation();
  4900. virtual ~GeneratedCodeInfo_Annotation();
  4901. GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from);
  4902. inline GeneratedCodeInfo_Annotation& operator=(const GeneratedCodeInfo_Annotation& from) {
  4903. CopyFrom(from);
  4904. return *this;
  4905. }
  4906. #if LANG_CXX11
  4907. GeneratedCodeInfo_Annotation(GeneratedCodeInfo_Annotation&& from) noexcept
  4908. : GeneratedCodeInfo_Annotation() {
  4909. *this = ::std::move(from);
  4910. }
  4911. inline GeneratedCodeInfo_Annotation& operator=(GeneratedCodeInfo_Annotation&& from) noexcept {
  4912. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4913. if (this != &from) InternalSwap(&from);
  4914. } else {
  4915. CopyFrom(from);
  4916. }
  4917. return *this;
  4918. }
  4919. #endif
  4920. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4921. return _internal_metadata_.unknown_fields();
  4922. }
  4923. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4924. return _internal_metadata_.mutable_unknown_fields();
  4925. }
  4926. inline ::google::protobuf::Arena* GetArena() const final {
  4927. return GetArenaNoVirtual();
  4928. }
  4929. inline void* GetMaybeArenaPointer() const final {
  4930. return MaybeArenaPtr();
  4931. }
  4932. static const ::google::protobuf::Descriptor* descriptor();
  4933. static const GeneratedCodeInfo_Annotation& default_instance();
  4934. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4935. static inline const GeneratedCodeInfo_Annotation* internal_default_instance() {
  4936. return reinterpret_cast<const GeneratedCodeInfo_Annotation*>(
  4937. &_GeneratedCodeInfo_Annotation_default_instance_);
  4938. }
  4939. static constexpr int kIndexInFileMessages =
  4940. 25;
  4941. void UnsafeArenaSwap(GeneratedCodeInfo_Annotation* other);
  4942. void Swap(GeneratedCodeInfo_Annotation* other);
  4943. friend void swap(GeneratedCodeInfo_Annotation& a, GeneratedCodeInfo_Annotation& b) {
  4944. a.Swap(&b);
  4945. }
  4946. // implements Message ----------------------------------------------
  4947. inline GeneratedCodeInfo_Annotation* New() const final {
  4948. return CreateMaybeMessage<GeneratedCodeInfo_Annotation>(NULL);
  4949. }
  4950. GeneratedCodeInfo_Annotation* New(::google::protobuf::Arena* arena) const final {
  4951. return CreateMaybeMessage<GeneratedCodeInfo_Annotation>(arena);
  4952. }
  4953. void CopyFrom(const ::google::protobuf::Message& from) final;
  4954. void MergeFrom(const ::google::protobuf::Message& from) final;
  4955. void CopyFrom(const GeneratedCodeInfo_Annotation& from);
  4956. void MergeFrom(const GeneratedCodeInfo_Annotation& from);
  4957. void Clear() final;
  4958. bool IsInitialized() const final;
  4959. size_t ByteSizeLong() const final;
  4960. bool MergePartialFromCodedStream(
  4961. ::google::protobuf::io::CodedInputStream* input) final;
  4962. void SerializeWithCachedSizes(
  4963. ::google::protobuf::io::CodedOutputStream* output) const final;
  4964. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4965. bool deterministic, ::google::protobuf::uint8* target) const final;
  4966. int GetCachedSize() const final { return _cached_size_.Get(); }
  4967. private:
  4968. void SharedCtor();
  4969. void SharedDtor();
  4970. void SetCachedSize(int size) const final;
  4971. void InternalSwap(GeneratedCodeInfo_Annotation* other);
  4972. protected:
  4973. explicit GeneratedCodeInfo_Annotation(::google::protobuf::Arena* arena);
  4974. private:
  4975. static void ArenaDtor(void* object);
  4976. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4977. private:
  4978. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4979. return _internal_metadata_.arena();
  4980. }
  4981. inline void* MaybeArenaPtr() const {
  4982. return _internal_metadata_.raw_arena_ptr();
  4983. }
  4984. public:
  4985. ::google::protobuf::Metadata GetMetadata() const final;
  4986. // nested types ----------------------------------------------------
  4987. // accessors -------------------------------------------------------
  4988. // repeated int32 path = 1 [packed = true];
  4989. int path_size() const;
  4990. void clear_path();
  4991. static const int kPathFieldNumber = 1;
  4992. ::google::protobuf::int32 path(int index) const;
  4993. void set_path(int index, ::google::protobuf::int32 value);
  4994. void add_path(::google::protobuf::int32 value);
  4995. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4996. path() const;
  4997. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4998. mutable_path();
  4999. // optional string source_file = 2;
  5000. bool has_source_file() const;
  5001. void clear_source_file();
  5002. static const int kSourceFileFieldNumber = 2;
  5003. const ::std::string& source_file() const;
  5004. void set_source_file(const ::std::string& value);
  5005. #if LANG_CXX11
  5006. void set_source_file(::std::string&& value);
  5007. #endif
  5008. void set_source_file(const char* value);
  5009. void set_source_file(const char* value, size_t size);
  5010. ::std::string* mutable_source_file();
  5011. ::std::string* release_source_file();
  5012. void set_allocated_source_file(::std::string* source_file);
  5013. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5014. " string fields are deprecated and will be removed in a"
  5015. " future release.")
  5016. ::std::string* unsafe_arena_release_source_file();
  5017. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5018. " string fields are deprecated and will be removed in a"
  5019. " future release.")
  5020. void unsafe_arena_set_allocated_source_file(
  5021. ::std::string* source_file);
  5022. // optional int32 begin = 3;
  5023. bool has_begin() const;
  5024. void clear_begin();
  5025. static const int kBeginFieldNumber = 3;
  5026. ::google::protobuf::int32 begin() const;
  5027. void set_begin(::google::protobuf::int32 value);
  5028. // optional int32 end = 4;
  5029. bool has_end() const;
  5030. void clear_end();
  5031. static const int kEndFieldNumber = 4;
  5032. ::google::protobuf::int32 end() const;
  5033. void set_end(::google::protobuf::int32 value);
  5034. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo.Annotation)
  5035. private:
  5036. void set_has_source_file();
  5037. void clear_has_source_file();
  5038. void set_has_begin();
  5039. void clear_has_begin();
  5040. void set_has_end();
  5041. void clear_has_end();
  5042. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5043. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5044. typedef void InternalArenaConstructable_;
  5045. typedef void DestructorSkippable_;
  5046. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5047. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5048. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > path_;
  5049. mutable int _path_cached_byte_size_;
  5050. ::google::protobuf::internal::ArenaStringPtr source_file_;
  5051. ::google::protobuf::int32 begin_;
  5052. ::google::protobuf::int32 end_;
  5053. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  5054. };
  5055. // -------------------------------------------------------------------
  5056. class LIBPROTOBUF_EXPORT GeneratedCodeInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo) */ {
  5057. public:
  5058. GeneratedCodeInfo();
  5059. virtual ~GeneratedCodeInfo();
  5060. GeneratedCodeInfo(const GeneratedCodeInfo& from);
  5061. inline GeneratedCodeInfo& operator=(const GeneratedCodeInfo& from) {
  5062. CopyFrom(from);
  5063. return *this;
  5064. }
  5065. #if LANG_CXX11
  5066. GeneratedCodeInfo(GeneratedCodeInfo&& from) noexcept
  5067. : GeneratedCodeInfo() {
  5068. *this = ::std::move(from);
  5069. }
  5070. inline GeneratedCodeInfo& operator=(GeneratedCodeInfo&& from) noexcept {
  5071. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5072. if (this != &from) InternalSwap(&from);
  5073. } else {
  5074. CopyFrom(from);
  5075. }
  5076. return *this;
  5077. }
  5078. #endif
  5079. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  5080. return _internal_metadata_.unknown_fields();
  5081. }
  5082. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  5083. return _internal_metadata_.mutable_unknown_fields();
  5084. }
  5085. inline ::google::protobuf::Arena* GetArena() const final {
  5086. return GetArenaNoVirtual();
  5087. }
  5088. inline void* GetMaybeArenaPointer() const final {
  5089. return MaybeArenaPtr();
  5090. }
  5091. static const ::google::protobuf::Descriptor* descriptor();
  5092. static const GeneratedCodeInfo& default_instance();
  5093. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5094. static inline const GeneratedCodeInfo* internal_default_instance() {
  5095. return reinterpret_cast<const GeneratedCodeInfo*>(
  5096. &_GeneratedCodeInfo_default_instance_);
  5097. }
  5098. static constexpr int kIndexInFileMessages =
  5099. 26;
  5100. void UnsafeArenaSwap(GeneratedCodeInfo* other);
  5101. void Swap(GeneratedCodeInfo* other);
  5102. friend void swap(GeneratedCodeInfo& a, GeneratedCodeInfo& b) {
  5103. a.Swap(&b);
  5104. }
  5105. // implements Message ----------------------------------------------
  5106. inline GeneratedCodeInfo* New() const final {
  5107. return CreateMaybeMessage<GeneratedCodeInfo>(NULL);
  5108. }
  5109. GeneratedCodeInfo* New(::google::protobuf::Arena* arena) const final {
  5110. return CreateMaybeMessage<GeneratedCodeInfo>(arena);
  5111. }
  5112. void CopyFrom(const ::google::protobuf::Message& from) final;
  5113. void MergeFrom(const ::google::protobuf::Message& from) final;
  5114. void CopyFrom(const GeneratedCodeInfo& from);
  5115. void MergeFrom(const GeneratedCodeInfo& from);
  5116. void Clear() final;
  5117. bool IsInitialized() const final;
  5118. size_t ByteSizeLong() const final;
  5119. bool MergePartialFromCodedStream(
  5120. ::google::protobuf::io::CodedInputStream* input) final;
  5121. void SerializeWithCachedSizes(
  5122. ::google::protobuf::io::CodedOutputStream* output) const final;
  5123. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  5124. bool deterministic, ::google::protobuf::uint8* target) const final;
  5125. int GetCachedSize() const final { return _cached_size_.Get(); }
  5126. private:
  5127. void SharedCtor();
  5128. void SharedDtor();
  5129. void SetCachedSize(int size) const final;
  5130. void InternalSwap(GeneratedCodeInfo* other);
  5131. protected:
  5132. explicit GeneratedCodeInfo(::google::protobuf::Arena* arena);
  5133. private:
  5134. static void ArenaDtor(void* object);
  5135. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  5136. private:
  5137. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  5138. return _internal_metadata_.arena();
  5139. }
  5140. inline void* MaybeArenaPtr() const {
  5141. return _internal_metadata_.raw_arena_ptr();
  5142. }
  5143. public:
  5144. ::google::protobuf::Metadata GetMetadata() const final;
  5145. // nested types ----------------------------------------------------
  5146. typedef GeneratedCodeInfo_Annotation Annotation;
  5147. // accessors -------------------------------------------------------
  5148. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  5149. int annotation_size() const;
  5150. void clear_annotation();
  5151. static const int kAnnotationFieldNumber = 1;
  5152. ::google::protobuf::GeneratedCodeInfo_Annotation* mutable_annotation(int index);
  5153. ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >*
  5154. mutable_annotation();
  5155. const ::google::protobuf::GeneratedCodeInfo_Annotation& annotation(int index) const;
  5156. ::google::protobuf::GeneratedCodeInfo_Annotation* add_annotation();
  5157. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >&
  5158. annotation() const;
  5159. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo)
  5160. private:
  5161. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5162. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5163. typedef void InternalArenaConstructable_;
  5164. typedef void DestructorSkippable_;
  5165. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5166. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5167. ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation > annotation_;
  5168. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  5169. };
  5170. // ===================================================================
  5171. // ===================================================================
  5172. #ifdef __GNUC__
  5173. #pragma GCC diagnostic push
  5174. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  5175. #endif // __GNUC__
  5176. // FileDescriptorSet
  5177. // repeated .google.protobuf.FileDescriptorProto file = 1;
  5178. inline int FileDescriptorSet::file_size() const {
  5179. return file_.size();
  5180. }
  5181. inline void FileDescriptorSet::clear_file() {
  5182. file_.Clear();
  5183. }
  5184. inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
  5185. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
  5186. return file_.Mutable(index);
  5187. }
  5188. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  5189. FileDescriptorSet::mutable_file() {
  5190. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
  5191. return &file_;
  5192. }
  5193. inline const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const {
  5194. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
  5195. return file_.Get(index);
  5196. }
  5197. inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() {
  5198. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
  5199. return file_.Add();
  5200. }
  5201. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  5202. FileDescriptorSet::file() const {
  5203. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
  5204. return file_;
  5205. }
  5206. // -------------------------------------------------------------------
  5207. // FileDescriptorProto
  5208. // optional string name = 1;
  5209. inline bool FileDescriptorProto::has_name() const {
  5210. return (_has_bits_[0] & 0x00000001u) != 0;
  5211. }
  5212. inline void FileDescriptorProto::set_has_name() {
  5213. _has_bits_[0] |= 0x00000001u;
  5214. }
  5215. inline void FileDescriptorProto::clear_has_name() {
  5216. _has_bits_[0] &= ~0x00000001u;
  5217. }
  5218. inline void FileDescriptorProto::clear_name() {
  5219. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5220. clear_has_name();
  5221. }
  5222. inline const ::std::string& FileDescriptorProto::name() const {
  5223. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
  5224. return name_.Get();
  5225. }
  5226. inline void FileDescriptorProto::set_name(const ::std::string& value) {
  5227. set_has_name();
  5228. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  5229. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
  5230. }
  5231. #if LANG_CXX11
  5232. inline void FileDescriptorProto::set_name(::std::string&& value) {
  5233. set_has_name();
  5234. name_.Set(
  5235. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  5236. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.name)
  5237. }
  5238. #endif
  5239. inline void FileDescriptorProto::set_name(const char* value) {
  5240. GOOGLE_DCHECK(value != NULL);
  5241. set_has_name();
  5242. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  5243. GetArenaNoVirtual());
  5244. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name)
  5245. }
  5246. inline void FileDescriptorProto::set_name(const char* value,
  5247. size_t size) {
  5248. set_has_name();
  5249. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5250. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  5251. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name)
  5252. }
  5253. inline ::std::string* FileDescriptorProto::mutable_name() {
  5254. set_has_name();
  5255. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
  5256. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5257. }
  5258. inline ::std::string* FileDescriptorProto::release_name() {
  5259. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name)
  5260. if (!has_name()) {
  5261. return NULL;
  5262. }
  5263. clear_has_name();
  5264. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5265. }
  5266. inline void FileDescriptorProto::set_allocated_name(::std::string* name) {
  5267. if (name != NULL) {
  5268. set_has_name();
  5269. } else {
  5270. clear_has_name();
  5271. }
  5272. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  5273. GetArenaNoVirtual());
  5274. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
  5275. }
  5276. inline ::std::string* FileDescriptorProto::unsafe_arena_release_name() {
  5277. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.name)
  5278. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5279. clear_has_name();
  5280. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5281. GetArenaNoVirtual());
  5282. }
  5283. inline void FileDescriptorProto::unsafe_arena_set_allocated_name(
  5284. ::std::string* name) {
  5285. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5286. if (name != NULL) {
  5287. set_has_name();
  5288. } else {
  5289. clear_has_name();
  5290. }
  5291. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5292. name, GetArenaNoVirtual());
  5293. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.name)
  5294. }
  5295. // optional string package = 2;
  5296. inline bool FileDescriptorProto::has_package() const {
  5297. return (_has_bits_[0] & 0x00000002u) != 0;
  5298. }
  5299. inline void FileDescriptorProto::set_has_package() {
  5300. _has_bits_[0] |= 0x00000002u;
  5301. }
  5302. inline void FileDescriptorProto::clear_has_package() {
  5303. _has_bits_[0] &= ~0x00000002u;
  5304. }
  5305. inline void FileDescriptorProto::clear_package() {
  5306. package_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5307. clear_has_package();
  5308. }
  5309. inline const ::std::string& FileDescriptorProto::package() const {
  5310. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
  5311. return package_.Get();
  5312. }
  5313. inline void FileDescriptorProto::set_package(const ::std::string& value) {
  5314. set_has_package();
  5315. package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  5316. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
  5317. }
  5318. #if LANG_CXX11
  5319. inline void FileDescriptorProto::set_package(::std::string&& value) {
  5320. set_has_package();
  5321. package_.Set(
  5322. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  5323. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.package)
  5324. }
  5325. #endif
  5326. inline void FileDescriptorProto::set_package(const char* value) {
  5327. GOOGLE_DCHECK(value != NULL);
  5328. set_has_package();
  5329. package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  5330. GetArenaNoVirtual());
  5331. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package)
  5332. }
  5333. inline void FileDescriptorProto::set_package(const char* value,
  5334. size_t size) {
  5335. set_has_package();
  5336. package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5337. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  5338. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package)
  5339. }
  5340. inline ::std::string* FileDescriptorProto::mutable_package() {
  5341. set_has_package();
  5342. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
  5343. return package_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5344. }
  5345. inline ::std::string* FileDescriptorProto::release_package() {
  5346. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package)
  5347. if (!has_package()) {
  5348. return NULL;
  5349. }
  5350. clear_has_package();
  5351. return package_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5352. }
  5353. inline void FileDescriptorProto::set_allocated_package(::std::string* package) {
  5354. if (package != NULL) {
  5355. set_has_package();
  5356. } else {
  5357. clear_has_package();
  5358. }
  5359. package_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), package,
  5360. GetArenaNoVirtual());
  5361. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
  5362. }
  5363. inline ::std::string* FileDescriptorProto::unsafe_arena_release_package() {
  5364. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.package)
  5365. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5366. clear_has_package();
  5367. return package_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5368. GetArenaNoVirtual());
  5369. }
  5370. inline void FileDescriptorProto::unsafe_arena_set_allocated_package(
  5371. ::std::string* package) {
  5372. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5373. if (package != NULL) {
  5374. set_has_package();
  5375. } else {
  5376. clear_has_package();
  5377. }
  5378. package_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5379. package, GetArenaNoVirtual());
  5380. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.package)
  5381. }
  5382. // repeated string dependency = 3;
  5383. inline int FileDescriptorProto::dependency_size() const {
  5384. return dependency_.size();
  5385. }
  5386. inline void FileDescriptorProto::clear_dependency() {
  5387. dependency_.Clear();
  5388. }
  5389. inline const ::std::string& FileDescriptorProto::dependency(int index) const {
  5390. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
  5391. return dependency_.Get(index);
  5392. }
  5393. inline ::std::string* FileDescriptorProto::mutable_dependency(int index) {
  5394. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
  5395. return dependency_.Mutable(index);
  5396. }
  5397. inline void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
  5398. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  5399. dependency_.Mutable(index)->assign(value);
  5400. }
  5401. #if LANG_CXX11
  5402. inline void FileDescriptorProto::set_dependency(int index, ::std::string&& value) {
  5403. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  5404. dependency_.Mutable(index)->assign(std::move(value));
  5405. }
  5406. #endif
  5407. inline void FileDescriptorProto::set_dependency(int index, const char* value) {
  5408. GOOGLE_DCHECK(value != NULL);
  5409. dependency_.Mutable(index)->assign(value);
  5410. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
  5411. }
  5412. inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
  5413. dependency_.Mutable(index)->assign(
  5414. reinterpret_cast<const char*>(value), size);
  5415. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
  5416. }
  5417. inline ::std::string* FileDescriptorProto::add_dependency() {
  5418. // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency)
  5419. return dependency_.Add();
  5420. }
  5421. inline void FileDescriptorProto::add_dependency(const ::std::string& value) {
  5422. dependency_.Add()->assign(value);
  5423. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  5424. }
  5425. #if LANG_CXX11
  5426. inline void FileDescriptorProto::add_dependency(::std::string&& value) {
  5427. dependency_.Add(std::move(value));
  5428. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  5429. }
  5430. #endif
  5431. inline void FileDescriptorProto::add_dependency(const char* value) {
  5432. GOOGLE_DCHECK(value != NULL);
  5433. dependency_.Add()->assign(value);
  5434. // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
  5435. }
  5436. inline void FileDescriptorProto::add_dependency(const char* value, size_t size) {
  5437. dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
  5438. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
  5439. }
  5440. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  5441. FileDescriptorProto::dependency() const {
  5442. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
  5443. return dependency_;
  5444. }
  5445. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  5446. FileDescriptorProto::mutable_dependency() {
  5447. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
  5448. return &dependency_;
  5449. }
  5450. // repeated int32 public_dependency = 10;
  5451. inline int FileDescriptorProto::public_dependency_size() const {
  5452. return public_dependency_.size();
  5453. }
  5454. inline void FileDescriptorProto::clear_public_dependency() {
  5455. public_dependency_.Clear();
  5456. }
  5457. inline ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const {
  5458. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
  5459. return public_dependency_.Get(index);
  5460. }
  5461. inline void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) {
  5462. public_dependency_.Set(index, value);
  5463. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
  5464. }
  5465. inline void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) {
  5466. public_dependency_.Add(value);
  5467. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
  5468. }
  5469. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  5470. FileDescriptorProto::public_dependency() const {
  5471. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
  5472. return public_dependency_;
  5473. }
  5474. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  5475. FileDescriptorProto::mutable_public_dependency() {
  5476. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
  5477. return &public_dependency_;
  5478. }
  5479. // repeated int32 weak_dependency = 11;
  5480. inline int FileDescriptorProto::weak_dependency_size() const {
  5481. return weak_dependency_.size();
  5482. }
  5483. inline void FileDescriptorProto::clear_weak_dependency() {
  5484. weak_dependency_.Clear();
  5485. }
  5486. inline ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const {
  5487. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
  5488. return weak_dependency_.Get(index);
  5489. }
  5490. inline void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) {
  5491. weak_dependency_.Set(index, value);
  5492. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
  5493. }
  5494. inline void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) {
  5495. weak_dependency_.Add(value);
  5496. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
  5497. }
  5498. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  5499. FileDescriptorProto::weak_dependency() const {
  5500. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
  5501. return weak_dependency_;
  5502. }
  5503. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  5504. FileDescriptorProto::mutable_weak_dependency() {
  5505. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
  5506. return &weak_dependency_;
  5507. }
  5508. // repeated .google.protobuf.DescriptorProto message_type = 4;
  5509. inline int FileDescriptorProto::message_type_size() const {
  5510. return message_type_.size();
  5511. }
  5512. inline void FileDescriptorProto::clear_message_type() {
  5513. message_type_.Clear();
  5514. }
  5515. inline ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
  5516. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
  5517. return message_type_.Mutable(index);
  5518. }
  5519. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  5520. FileDescriptorProto::mutable_message_type() {
  5521. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
  5522. return &message_type_;
  5523. }
  5524. inline const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const {
  5525. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
  5526. return message_type_.Get(index);
  5527. }
  5528. inline ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() {
  5529. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
  5530. return message_type_.Add();
  5531. }
  5532. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  5533. FileDescriptorProto::message_type() const {
  5534. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
  5535. return message_type_;
  5536. }
  5537. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  5538. inline int FileDescriptorProto::enum_type_size() const {
  5539. return enum_type_.size();
  5540. }
  5541. inline void FileDescriptorProto::clear_enum_type() {
  5542. enum_type_.Clear();
  5543. }
  5544. inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
  5545. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
  5546. return enum_type_.Mutable(index);
  5547. }
  5548. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  5549. FileDescriptorProto::mutable_enum_type() {
  5550. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
  5551. return &enum_type_;
  5552. }
  5553. inline const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
  5554. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
  5555. return enum_type_.Get(index);
  5556. }
  5557. inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
  5558. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
  5559. return enum_type_.Add();
  5560. }
  5561. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  5562. FileDescriptorProto::enum_type() const {
  5563. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
  5564. return enum_type_;
  5565. }
  5566. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  5567. inline int FileDescriptorProto::service_size() const {
  5568. return service_.size();
  5569. }
  5570. inline void FileDescriptorProto::clear_service() {
  5571. service_.Clear();
  5572. }
  5573. inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
  5574. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
  5575. return service_.Mutable(index);
  5576. }
  5577. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
  5578. FileDescriptorProto::mutable_service() {
  5579. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
  5580. return &service_;
  5581. }
  5582. inline const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
  5583. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
  5584. return service_.Get(index);
  5585. }
  5586. inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() {
  5587. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
  5588. return service_.Add();
  5589. }
  5590. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
  5591. FileDescriptorProto::service() const {
  5592. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
  5593. return service_;
  5594. }
  5595. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  5596. inline int FileDescriptorProto::extension_size() const {
  5597. return extension_.size();
  5598. }
  5599. inline void FileDescriptorProto::clear_extension() {
  5600. extension_.Clear();
  5601. }
  5602. inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
  5603. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
  5604. return extension_.Mutable(index);
  5605. }
  5606. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  5607. FileDescriptorProto::mutable_extension() {
  5608. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
  5609. return &extension_;
  5610. }
  5611. inline const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
  5612. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
  5613. return extension_.Get(index);
  5614. }
  5615. inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() {
  5616. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
  5617. return extension_.Add();
  5618. }
  5619. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  5620. FileDescriptorProto::extension() const {
  5621. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
  5622. return extension_;
  5623. }
  5624. // optional .google.protobuf.FileOptions options = 8;
  5625. inline bool FileDescriptorProto::has_options() const {
  5626. return (_has_bits_[0] & 0x00000008u) != 0;
  5627. }
  5628. inline void FileDescriptorProto::set_has_options() {
  5629. _has_bits_[0] |= 0x00000008u;
  5630. }
  5631. inline void FileDescriptorProto::clear_has_options() {
  5632. _has_bits_[0] &= ~0x00000008u;
  5633. }
  5634. inline void FileDescriptorProto::clear_options() {
  5635. if (options_ != NULL) options_->Clear();
  5636. clear_has_options();
  5637. }
  5638. inline const ::google::protobuf::FileOptions& FileDescriptorProto::_internal_options() const {
  5639. return *options_;
  5640. }
  5641. inline const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
  5642. const ::google::protobuf::FileOptions* p = options_;
  5643. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
  5644. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::FileOptions*>(
  5645. &::google::protobuf::_FileOptions_default_instance_);
  5646. }
  5647. inline ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
  5648. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.options)
  5649. clear_has_options();
  5650. ::google::protobuf::FileOptions* temp = options_;
  5651. if (GetArenaNoVirtual() != NULL) {
  5652. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  5653. }
  5654. options_ = NULL;
  5655. return temp;
  5656. }
  5657. inline ::google::protobuf::FileOptions* FileDescriptorProto::unsafe_arena_release_options() {
  5658. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.options)
  5659. clear_has_options();
  5660. ::google::protobuf::FileOptions* temp = options_;
  5661. options_ = NULL;
  5662. return temp;
  5663. }
  5664. inline ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
  5665. set_has_options();
  5666. if (options_ == NULL) {
  5667. auto* p = CreateMaybeMessage<::google::protobuf::FileOptions>(GetArenaNoVirtual());
  5668. options_ = p;
  5669. }
  5670. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
  5671. return options_;
  5672. }
  5673. inline void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) {
  5674. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5675. if (message_arena == NULL) {
  5676. delete options_;
  5677. }
  5678. if (options) {
  5679. ::google::protobuf::Arena* submessage_arena =
  5680. ::google::protobuf::Arena::GetArena(options);
  5681. if (message_arena != submessage_arena) {
  5682. options = ::google::protobuf::internal::GetOwnedMessage(
  5683. message_arena, options, submessage_arena);
  5684. }
  5685. set_has_options();
  5686. } else {
  5687. clear_has_options();
  5688. }
  5689. options_ = options;
  5690. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
  5691. }
  5692. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  5693. inline bool FileDescriptorProto::has_source_code_info() const {
  5694. return (_has_bits_[0] & 0x00000010u) != 0;
  5695. }
  5696. inline void FileDescriptorProto::set_has_source_code_info() {
  5697. _has_bits_[0] |= 0x00000010u;
  5698. }
  5699. inline void FileDescriptorProto::clear_has_source_code_info() {
  5700. _has_bits_[0] &= ~0x00000010u;
  5701. }
  5702. inline void FileDescriptorProto::clear_source_code_info() {
  5703. if (source_code_info_ != NULL) source_code_info_->Clear();
  5704. clear_has_source_code_info();
  5705. }
  5706. inline const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::_internal_source_code_info() const {
  5707. return *source_code_info_;
  5708. }
  5709. inline const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
  5710. const ::google::protobuf::SourceCodeInfo* p = source_code_info_;
  5711. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
  5712. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::SourceCodeInfo*>(
  5713. &::google::protobuf::_SourceCodeInfo_default_instance_);
  5714. }
  5715. inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
  5716. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.source_code_info)
  5717. clear_has_source_code_info();
  5718. ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
  5719. if (GetArenaNoVirtual() != NULL) {
  5720. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  5721. }
  5722. source_code_info_ = NULL;
  5723. return temp;
  5724. }
  5725. inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::unsafe_arena_release_source_code_info() {
  5726. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.source_code_info)
  5727. clear_has_source_code_info();
  5728. ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
  5729. source_code_info_ = NULL;
  5730. return temp;
  5731. }
  5732. inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
  5733. set_has_source_code_info();
  5734. if (source_code_info_ == NULL) {
  5735. auto* p = CreateMaybeMessage<::google::protobuf::SourceCodeInfo>(GetArenaNoVirtual());
  5736. source_code_info_ = p;
  5737. }
  5738. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
  5739. return source_code_info_;
  5740. }
  5741. inline void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info) {
  5742. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5743. if (message_arena == NULL) {
  5744. delete source_code_info_;
  5745. }
  5746. if (source_code_info) {
  5747. ::google::protobuf::Arena* submessage_arena =
  5748. ::google::protobuf::Arena::GetArena(source_code_info);
  5749. if (message_arena != submessage_arena) {
  5750. source_code_info = ::google::protobuf::internal::GetOwnedMessage(
  5751. message_arena, source_code_info, submessage_arena);
  5752. }
  5753. set_has_source_code_info();
  5754. } else {
  5755. clear_has_source_code_info();
  5756. }
  5757. source_code_info_ = source_code_info;
  5758. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  5759. }
  5760. // optional string syntax = 12;
  5761. inline bool FileDescriptorProto::has_syntax() const {
  5762. return (_has_bits_[0] & 0x00000004u) != 0;
  5763. }
  5764. inline void FileDescriptorProto::set_has_syntax() {
  5765. _has_bits_[0] |= 0x00000004u;
  5766. }
  5767. inline void FileDescriptorProto::clear_has_syntax() {
  5768. _has_bits_[0] &= ~0x00000004u;
  5769. }
  5770. inline void FileDescriptorProto::clear_syntax() {
  5771. syntax_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5772. clear_has_syntax();
  5773. }
  5774. inline const ::std::string& FileDescriptorProto::syntax() const {
  5775. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
  5776. return syntax_.Get();
  5777. }
  5778. inline void FileDescriptorProto::set_syntax(const ::std::string& value) {
  5779. set_has_syntax();
  5780. syntax_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  5781. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
  5782. }
  5783. #if LANG_CXX11
  5784. inline void FileDescriptorProto::set_syntax(::std::string&& value) {
  5785. set_has_syntax();
  5786. syntax_.Set(
  5787. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  5788. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.syntax)
  5789. }
  5790. #endif
  5791. inline void FileDescriptorProto::set_syntax(const char* value) {
  5792. GOOGLE_DCHECK(value != NULL);
  5793. set_has_syntax();
  5794. syntax_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  5795. GetArenaNoVirtual());
  5796. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.syntax)
  5797. }
  5798. inline void FileDescriptorProto::set_syntax(const char* value,
  5799. size_t size) {
  5800. set_has_syntax();
  5801. syntax_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5802. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  5803. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.syntax)
  5804. }
  5805. inline ::std::string* FileDescriptorProto::mutable_syntax() {
  5806. set_has_syntax();
  5807. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
  5808. return syntax_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5809. }
  5810. inline ::std::string* FileDescriptorProto::release_syntax() {
  5811. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax)
  5812. if (!has_syntax()) {
  5813. return NULL;
  5814. }
  5815. clear_has_syntax();
  5816. return syntax_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5817. }
  5818. inline void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) {
  5819. if (syntax != NULL) {
  5820. set_has_syntax();
  5821. } else {
  5822. clear_has_syntax();
  5823. }
  5824. syntax_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), syntax,
  5825. GetArenaNoVirtual());
  5826. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
  5827. }
  5828. inline ::std::string* FileDescriptorProto::unsafe_arena_release_syntax() {
  5829. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.syntax)
  5830. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5831. clear_has_syntax();
  5832. return syntax_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5833. GetArenaNoVirtual());
  5834. }
  5835. inline void FileDescriptorProto::unsafe_arena_set_allocated_syntax(
  5836. ::std::string* syntax) {
  5837. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5838. if (syntax != NULL) {
  5839. set_has_syntax();
  5840. } else {
  5841. clear_has_syntax();
  5842. }
  5843. syntax_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5844. syntax, GetArenaNoVirtual());
  5845. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.syntax)
  5846. }
  5847. // -------------------------------------------------------------------
  5848. // DescriptorProto_ExtensionRange
  5849. // optional int32 start = 1;
  5850. inline bool DescriptorProto_ExtensionRange::has_start() const {
  5851. return (_has_bits_[0] & 0x00000002u) != 0;
  5852. }
  5853. inline void DescriptorProto_ExtensionRange::set_has_start() {
  5854. _has_bits_[0] |= 0x00000002u;
  5855. }
  5856. inline void DescriptorProto_ExtensionRange::clear_has_start() {
  5857. _has_bits_[0] &= ~0x00000002u;
  5858. }
  5859. inline void DescriptorProto_ExtensionRange::clear_start() {
  5860. start_ = 0;
  5861. clear_has_start();
  5862. }
  5863. inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
  5864. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
  5865. return start_;
  5866. }
  5867. inline void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
  5868. set_has_start();
  5869. start_ = value;
  5870. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
  5871. }
  5872. // optional int32 end = 2;
  5873. inline bool DescriptorProto_ExtensionRange::has_end() const {
  5874. return (_has_bits_[0] & 0x00000004u) != 0;
  5875. }
  5876. inline void DescriptorProto_ExtensionRange::set_has_end() {
  5877. _has_bits_[0] |= 0x00000004u;
  5878. }
  5879. inline void DescriptorProto_ExtensionRange::clear_has_end() {
  5880. _has_bits_[0] &= ~0x00000004u;
  5881. }
  5882. inline void DescriptorProto_ExtensionRange::clear_end() {
  5883. end_ = 0;
  5884. clear_has_end();
  5885. }
  5886. inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
  5887. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
  5888. return end_;
  5889. }
  5890. inline void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
  5891. set_has_end();
  5892. end_ = value;
  5893. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
  5894. }
  5895. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  5896. inline bool DescriptorProto_ExtensionRange::has_options() const {
  5897. return (_has_bits_[0] & 0x00000001u) != 0;
  5898. }
  5899. inline void DescriptorProto_ExtensionRange::set_has_options() {
  5900. _has_bits_[0] |= 0x00000001u;
  5901. }
  5902. inline void DescriptorProto_ExtensionRange::clear_has_options() {
  5903. _has_bits_[0] &= ~0x00000001u;
  5904. }
  5905. inline void DescriptorProto_ExtensionRange::clear_options() {
  5906. if (options_ != NULL) options_->Clear();
  5907. clear_has_options();
  5908. }
  5909. inline const ::google::protobuf::ExtensionRangeOptions& DescriptorProto_ExtensionRange::_internal_options() const {
  5910. return *options_;
  5911. }
  5912. inline const ::google::protobuf::ExtensionRangeOptions& DescriptorProto_ExtensionRange::options() const {
  5913. const ::google::protobuf::ExtensionRangeOptions* p = options_;
  5914. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.options)
  5915. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ExtensionRangeOptions*>(
  5916. &::google::protobuf::_ExtensionRangeOptions_default_instance_);
  5917. }
  5918. inline ::google::protobuf::ExtensionRangeOptions* DescriptorProto_ExtensionRange::release_options() {
  5919. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.ExtensionRange.options)
  5920. clear_has_options();
  5921. ::google::protobuf::ExtensionRangeOptions* temp = options_;
  5922. if (GetArenaNoVirtual() != NULL) {
  5923. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  5924. }
  5925. options_ = NULL;
  5926. return temp;
  5927. }
  5928. inline ::google::protobuf::ExtensionRangeOptions* DescriptorProto_ExtensionRange::unsafe_arena_release_options() {
  5929. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.DescriptorProto.ExtensionRange.options)
  5930. clear_has_options();
  5931. ::google::protobuf::ExtensionRangeOptions* temp = options_;
  5932. options_ = NULL;
  5933. return temp;
  5934. }
  5935. inline ::google::protobuf::ExtensionRangeOptions* DescriptorProto_ExtensionRange::mutable_options() {
  5936. set_has_options();
  5937. if (options_ == NULL) {
  5938. auto* p = CreateMaybeMessage<::google::protobuf::ExtensionRangeOptions>(GetArenaNoVirtual());
  5939. options_ = p;
  5940. }
  5941. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.ExtensionRange.options)
  5942. return options_;
  5943. }
  5944. inline void DescriptorProto_ExtensionRange::set_allocated_options(::google::protobuf::ExtensionRangeOptions* options) {
  5945. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5946. if (message_arena == NULL) {
  5947. delete options_;
  5948. }
  5949. if (options) {
  5950. ::google::protobuf::Arena* submessage_arena =
  5951. ::google::protobuf::Arena::GetArena(options);
  5952. if (message_arena != submessage_arena) {
  5953. options = ::google::protobuf::internal::GetOwnedMessage(
  5954. message_arena, options, submessage_arena);
  5955. }
  5956. set_has_options();
  5957. } else {
  5958. clear_has_options();
  5959. }
  5960. options_ = options;
  5961. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  5962. }
  5963. // -------------------------------------------------------------------
  5964. // DescriptorProto_ReservedRange
  5965. // optional int32 start = 1;
  5966. inline bool DescriptorProto_ReservedRange::has_start() const {
  5967. return (_has_bits_[0] & 0x00000001u) != 0;
  5968. }
  5969. inline void DescriptorProto_ReservedRange::set_has_start() {
  5970. _has_bits_[0] |= 0x00000001u;
  5971. }
  5972. inline void DescriptorProto_ReservedRange::clear_has_start() {
  5973. _has_bits_[0] &= ~0x00000001u;
  5974. }
  5975. inline void DescriptorProto_ReservedRange::clear_start() {
  5976. start_ = 0;
  5977. clear_has_start();
  5978. }
  5979. inline ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const {
  5980. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
  5981. return start_;
  5982. }
  5983. inline void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) {
  5984. set_has_start();
  5985. start_ = value;
  5986. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
  5987. }
  5988. // optional int32 end = 2;
  5989. inline bool DescriptorProto_ReservedRange::has_end() const {
  5990. return (_has_bits_[0] & 0x00000002u) != 0;
  5991. }
  5992. inline void DescriptorProto_ReservedRange::set_has_end() {
  5993. _has_bits_[0] |= 0x00000002u;
  5994. }
  5995. inline void DescriptorProto_ReservedRange::clear_has_end() {
  5996. _has_bits_[0] &= ~0x00000002u;
  5997. }
  5998. inline void DescriptorProto_ReservedRange::clear_end() {
  5999. end_ = 0;
  6000. clear_has_end();
  6001. }
  6002. inline ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const {
  6003. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
  6004. return end_;
  6005. }
  6006. inline void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) {
  6007. set_has_end();
  6008. end_ = value;
  6009. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
  6010. }
  6011. // -------------------------------------------------------------------
  6012. // DescriptorProto
  6013. // optional string name = 1;
  6014. inline bool DescriptorProto::has_name() const {
  6015. return (_has_bits_[0] & 0x00000001u) != 0;
  6016. }
  6017. inline void DescriptorProto::set_has_name() {
  6018. _has_bits_[0] |= 0x00000001u;
  6019. }
  6020. inline void DescriptorProto::clear_has_name() {
  6021. _has_bits_[0] &= ~0x00000001u;
  6022. }
  6023. inline void DescriptorProto::clear_name() {
  6024. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6025. clear_has_name();
  6026. }
  6027. inline const ::std::string& DescriptorProto::name() const {
  6028. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
  6029. return name_.Get();
  6030. }
  6031. inline void DescriptorProto::set_name(const ::std::string& value) {
  6032. set_has_name();
  6033. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6034. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
  6035. }
  6036. #if LANG_CXX11
  6037. inline void DescriptorProto::set_name(::std::string&& value) {
  6038. set_has_name();
  6039. name_.Set(
  6040. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6041. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.DescriptorProto.name)
  6042. }
  6043. #endif
  6044. inline void DescriptorProto::set_name(const char* value) {
  6045. GOOGLE_DCHECK(value != NULL);
  6046. set_has_name();
  6047. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6048. GetArenaNoVirtual());
  6049. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name)
  6050. }
  6051. inline void DescriptorProto::set_name(const char* value,
  6052. size_t size) {
  6053. set_has_name();
  6054. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6055. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6056. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name)
  6057. }
  6058. inline ::std::string* DescriptorProto::mutable_name() {
  6059. set_has_name();
  6060. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
  6061. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6062. }
  6063. inline ::std::string* DescriptorProto::release_name() {
  6064. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name)
  6065. if (!has_name()) {
  6066. return NULL;
  6067. }
  6068. clear_has_name();
  6069. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6070. }
  6071. inline void DescriptorProto::set_allocated_name(::std::string* name) {
  6072. if (name != NULL) {
  6073. set_has_name();
  6074. } else {
  6075. clear_has_name();
  6076. }
  6077. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  6078. GetArenaNoVirtual());
  6079. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
  6080. }
  6081. inline ::std::string* DescriptorProto::unsafe_arena_release_name() {
  6082. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.DescriptorProto.name)
  6083. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6084. clear_has_name();
  6085. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6086. GetArenaNoVirtual());
  6087. }
  6088. inline void DescriptorProto::unsafe_arena_set_allocated_name(
  6089. ::std::string* name) {
  6090. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6091. if (name != NULL) {
  6092. set_has_name();
  6093. } else {
  6094. clear_has_name();
  6095. }
  6096. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6097. name, GetArenaNoVirtual());
  6098. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.name)
  6099. }
  6100. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  6101. inline int DescriptorProto::field_size() const {
  6102. return field_.size();
  6103. }
  6104. inline void DescriptorProto::clear_field() {
  6105. field_.Clear();
  6106. }
  6107. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
  6108. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
  6109. return field_.Mutable(index);
  6110. }
  6111. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  6112. DescriptorProto::mutable_field() {
  6113. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
  6114. return &field_;
  6115. }
  6116. inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const {
  6117. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
  6118. return field_.Get(index);
  6119. }
  6120. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() {
  6121. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
  6122. return field_.Add();
  6123. }
  6124. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  6125. DescriptorProto::field() const {
  6126. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
  6127. return field_;
  6128. }
  6129. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  6130. inline int DescriptorProto::extension_size() const {
  6131. return extension_.size();
  6132. }
  6133. inline void DescriptorProto::clear_extension() {
  6134. extension_.Clear();
  6135. }
  6136. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
  6137. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
  6138. return extension_.Mutable(index);
  6139. }
  6140. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  6141. DescriptorProto::mutable_extension() {
  6142. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
  6143. return &extension_;
  6144. }
  6145. inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const {
  6146. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
  6147. return extension_.Get(index);
  6148. }
  6149. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() {
  6150. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
  6151. return extension_.Add();
  6152. }
  6153. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  6154. DescriptorProto::extension() const {
  6155. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
  6156. return extension_;
  6157. }
  6158. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  6159. inline int DescriptorProto::nested_type_size() const {
  6160. return nested_type_.size();
  6161. }
  6162. inline void DescriptorProto::clear_nested_type() {
  6163. nested_type_.Clear();
  6164. }
  6165. inline ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
  6166. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
  6167. return nested_type_.Mutable(index);
  6168. }
  6169. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  6170. DescriptorProto::mutable_nested_type() {
  6171. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
  6172. return &nested_type_;
  6173. }
  6174. inline const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const {
  6175. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
  6176. return nested_type_.Get(index);
  6177. }
  6178. inline ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() {
  6179. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
  6180. return nested_type_.Add();
  6181. }
  6182. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  6183. DescriptorProto::nested_type() const {
  6184. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
  6185. return nested_type_;
  6186. }
  6187. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  6188. inline int DescriptorProto::enum_type_size() const {
  6189. return enum_type_.size();
  6190. }
  6191. inline void DescriptorProto::clear_enum_type() {
  6192. enum_type_.Clear();
  6193. }
  6194. inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
  6195. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
  6196. return enum_type_.Mutable(index);
  6197. }
  6198. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  6199. DescriptorProto::mutable_enum_type() {
  6200. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
  6201. return &enum_type_;
  6202. }
  6203. inline const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
  6204. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
  6205. return enum_type_.Get(index);
  6206. }
  6207. inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() {
  6208. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
  6209. return enum_type_.Add();
  6210. }
  6211. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  6212. DescriptorProto::enum_type() const {
  6213. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
  6214. return enum_type_;
  6215. }
  6216. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  6217. inline int DescriptorProto::extension_range_size() const {
  6218. return extension_range_.size();
  6219. }
  6220. inline void DescriptorProto::clear_extension_range() {
  6221. extension_range_.Clear();
  6222. }
  6223. inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
  6224. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
  6225. return extension_range_.Mutable(index);
  6226. }
  6227. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
  6228. DescriptorProto::mutable_extension_range() {
  6229. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
  6230. return &extension_range_;
  6231. }
  6232. inline const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
  6233. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
  6234. return extension_range_.Get(index);
  6235. }
  6236. inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
  6237. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
  6238. return extension_range_.Add();
  6239. }
  6240. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
  6241. DescriptorProto::extension_range() const {
  6242. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
  6243. return extension_range_;
  6244. }
  6245. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  6246. inline int DescriptorProto::oneof_decl_size() const {
  6247. return oneof_decl_.size();
  6248. }
  6249. inline void DescriptorProto::clear_oneof_decl() {
  6250. oneof_decl_.Clear();
  6251. }
  6252. inline ::google::protobuf::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
  6253. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
  6254. return oneof_decl_.Mutable(index);
  6255. }
  6256. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
  6257. DescriptorProto::mutable_oneof_decl() {
  6258. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
  6259. return &oneof_decl_;
  6260. }
  6261. inline const ::google::protobuf::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
  6262. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
  6263. return oneof_decl_.Get(index);
  6264. }
  6265. inline ::google::protobuf::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
  6266. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
  6267. return oneof_decl_.Add();
  6268. }
  6269. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
  6270. DescriptorProto::oneof_decl() const {
  6271. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
  6272. return oneof_decl_;
  6273. }
  6274. // optional .google.protobuf.MessageOptions options = 7;
  6275. inline bool DescriptorProto::has_options() const {
  6276. return (_has_bits_[0] & 0x00000002u) != 0;
  6277. }
  6278. inline void DescriptorProto::set_has_options() {
  6279. _has_bits_[0] |= 0x00000002u;
  6280. }
  6281. inline void DescriptorProto::clear_has_options() {
  6282. _has_bits_[0] &= ~0x00000002u;
  6283. }
  6284. inline void DescriptorProto::clear_options() {
  6285. if (options_ != NULL) options_->Clear();
  6286. clear_has_options();
  6287. }
  6288. inline const ::google::protobuf::MessageOptions& DescriptorProto::_internal_options() const {
  6289. return *options_;
  6290. }
  6291. inline const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
  6292. const ::google::protobuf::MessageOptions* p = options_;
  6293. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
  6294. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::MessageOptions*>(
  6295. &::google::protobuf::_MessageOptions_default_instance_);
  6296. }
  6297. inline ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
  6298. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.options)
  6299. clear_has_options();
  6300. ::google::protobuf::MessageOptions* temp = options_;
  6301. if (GetArenaNoVirtual() != NULL) {
  6302. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  6303. }
  6304. options_ = NULL;
  6305. return temp;
  6306. }
  6307. inline ::google::protobuf::MessageOptions* DescriptorProto::unsafe_arena_release_options() {
  6308. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.DescriptorProto.options)
  6309. clear_has_options();
  6310. ::google::protobuf::MessageOptions* temp = options_;
  6311. options_ = NULL;
  6312. return temp;
  6313. }
  6314. inline ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
  6315. set_has_options();
  6316. if (options_ == NULL) {
  6317. auto* p = CreateMaybeMessage<::google::protobuf::MessageOptions>(GetArenaNoVirtual());
  6318. options_ = p;
  6319. }
  6320. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
  6321. return options_;
  6322. }
  6323. inline void DescriptorProto::set_allocated_options(::google::protobuf::MessageOptions* options) {
  6324. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  6325. if (message_arena == NULL) {
  6326. delete options_;
  6327. }
  6328. if (options) {
  6329. ::google::protobuf::Arena* submessage_arena =
  6330. ::google::protobuf::Arena::GetArena(options);
  6331. if (message_arena != submessage_arena) {
  6332. options = ::google::protobuf::internal::GetOwnedMessage(
  6333. message_arena, options, submessage_arena);
  6334. }
  6335. set_has_options();
  6336. } else {
  6337. clear_has_options();
  6338. }
  6339. options_ = options;
  6340. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
  6341. }
  6342. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  6343. inline int DescriptorProto::reserved_range_size() const {
  6344. return reserved_range_.size();
  6345. }
  6346. inline void DescriptorProto::clear_reserved_range() {
  6347. reserved_range_.Clear();
  6348. }
  6349. inline ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) {
  6350. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
  6351. return reserved_range_.Mutable(index);
  6352. }
  6353. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >*
  6354. DescriptorProto::mutable_reserved_range() {
  6355. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
  6356. return &reserved_range_;
  6357. }
  6358. inline const ::google::protobuf::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const {
  6359. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
  6360. return reserved_range_.Get(index);
  6361. }
  6362. inline ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() {
  6363. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
  6364. return reserved_range_.Add();
  6365. }
  6366. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >&
  6367. DescriptorProto::reserved_range() const {
  6368. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
  6369. return reserved_range_;
  6370. }
  6371. // repeated string reserved_name = 10;
  6372. inline int DescriptorProto::reserved_name_size() const {
  6373. return reserved_name_.size();
  6374. }
  6375. inline void DescriptorProto::clear_reserved_name() {
  6376. reserved_name_.Clear();
  6377. }
  6378. inline const ::std::string& DescriptorProto::reserved_name(int index) const {
  6379. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
  6380. return reserved_name_.Get(index);
  6381. }
  6382. inline ::std::string* DescriptorProto::mutable_reserved_name(int index) {
  6383. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
  6384. return reserved_name_.Mutable(index);
  6385. }
  6386. inline void DescriptorProto::set_reserved_name(int index, const ::std::string& value) {
  6387. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  6388. reserved_name_.Mutable(index)->assign(value);
  6389. }
  6390. #if LANG_CXX11
  6391. inline void DescriptorProto::set_reserved_name(int index, ::std::string&& value) {
  6392. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  6393. reserved_name_.Mutable(index)->assign(std::move(value));
  6394. }
  6395. #endif
  6396. inline void DescriptorProto::set_reserved_name(int index, const char* value) {
  6397. GOOGLE_DCHECK(value != NULL);
  6398. reserved_name_.Mutable(index)->assign(value);
  6399. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
  6400. }
  6401. inline void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  6402. reserved_name_.Mutable(index)->assign(
  6403. reinterpret_cast<const char*>(value), size);
  6404. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
  6405. }
  6406. inline ::std::string* DescriptorProto::add_reserved_name() {
  6407. // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name)
  6408. return reserved_name_.Add();
  6409. }
  6410. inline void DescriptorProto::add_reserved_name(const ::std::string& value) {
  6411. reserved_name_.Add()->assign(value);
  6412. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  6413. }
  6414. #if LANG_CXX11
  6415. inline void DescriptorProto::add_reserved_name(::std::string&& value) {
  6416. reserved_name_.Add(std::move(value));
  6417. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  6418. }
  6419. #endif
  6420. inline void DescriptorProto::add_reserved_name(const char* value) {
  6421. GOOGLE_DCHECK(value != NULL);
  6422. reserved_name_.Add()->assign(value);
  6423. // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
  6424. }
  6425. inline void DescriptorProto::add_reserved_name(const char* value, size_t size) {
  6426. reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  6427. // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
  6428. }
  6429. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  6430. DescriptorProto::reserved_name() const {
  6431. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
  6432. return reserved_name_;
  6433. }
  6434. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  6435. DescriptorProto::mutable_reserved_name() {
  6436. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
  6437. return &reserved_name_;
  6438. }
  6439. // -------------------------------------------------------------------
  6440. // ExtensionRangeOptions
  6441. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  6442. inline int ExtensionRangeOptions::uninterpreted_option_size() const {
  6443. return uninterpreted_option_.size();
  6444. }
  6445. inline void ExtensionRangeOptions::clear_uninterpreted_option() {
  6446. uninterpreted_option_.Clear();
  6447. }
  6448. inline ::google::protobuf::UninterpretedOption* ExtensionRangeOptions::mutable_uninterpreted_option(int index) {
  6449. // @@protoc_insertion_point(field_mutable:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  6450. return uninterpreted_option_.Mutable(index);
  6451. }
  6452. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  6453. ExtensionRangeOptions::mutable_uninterpreted_option() {
  6454. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  6455. return &uninterpreted_option_;
  6456. }
  6457. inline const ::google::protobuf::UninterpretedOption& ExtensionRangeOptions::uninterpreted_option(int index) const {
  6458. // @@protoc_insertion_point(field_get:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  6459. return uninterpreted_option_.Get(index);
  6460. }
  6461. inline ::google::protobuf::UninterpretedOption* ExtensionRangeOptions::add_uninterpreted_option() {
  6462. // @@protoc_insertion_point(field_add:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  6463. return uninterpreted_option_.Add();
  6464. }
  6465. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  6466. ExtensionRangeOptions::uninterpreted_option() const {
  6467. // @@protoc_insertion_point(field_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  6468. return uninterpreted_option_;
  6469. }
  6470. // -------------------------------------------------------------------
  6471. // FieldDescriptorProto
  6472. // optional string name = 1;
  6473. inline bool FieldDescriptorProto::has_name() const {
  6474. return (_has_bits_[0] & 0x00000001u) != 0;
  6475. }
  6476. inline void FieldDescriptorProto::set_has_name() {
  6477. _has_bits_[0] |= 0x00000001u;
  6478. }
  6479. inline void FieldDescriptorProto::clear_has_name() {
  6480. _has_bits_[0] &= ~0x00000001u;
  6481. }
  6482. inline void FieldDescriptorProto::clear_name() {
  6483. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6484. clear_has_name();
  6485. }
  6486. inline const ::std::string& FieldDescriptorProto::name() const {
  6487. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
  6488. return name_.Get();
  6489. }
  6490. inline void FieldDescriptorProto::set_name(const ::std::string& value) {
  6491. set_has_name();
  6492. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6493. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
  6494. }
  6495. #if LANG_CXX11
  6496. inline void FieldDescriptorProto::set_name(::std::string&& value) {
  6497. set_has_name();
  6498. name_.Set(
  6499. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6500. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.name)
  6501. }
  6502. #endif
  6503. inline void FieldDescriptorProto::set_name(const char* value) {
  6504. GOOGLE_DCHECK(value != NULL);
  6505. set_has_name();
  6506. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6507. GetArenaNoVirtual());
  6508. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name)
  6509. }
  6510. inline void FieldDescriptorProto::set_name(const char* value,
  6511. size_t size) {
  6512. set_has_name();
  6513. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6514. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6515. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name)
  6516. }
  6517. inline ::std::string* FieldDescriptorProto::mutable_name() {
  6518. set_has_name();
  6519. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
  6520. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6521. }
  6522. inline ::std::string* FieldDescriptorProto::release_name() {
  6523. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name)
  6524. if (!has_name()) {
  6525. return NULL;
  6526. }
  6527. clear_has_name();
  6528. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6529. }
  6530. inline void FieldDescriptorProto::set_allocated_name(::std::string* name) {
  6531. if (name != NULL) {
  6532. set_has_name();
  6533. } else {
  6534. clear_has_name();
  6535. }
  6536. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  6537. GetArenaNoVirtual());
  6538. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
  6539. }
  6540. inline ::std::string* FieldDescriptorProto::unsafe_arena_release_name() {
  6541. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.name)
  6542. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6543. clear_has_name();
  6544. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6545. GetArenaNoVirtual());
  6546. }
  6547. inline void FieldDescriptorProto::unsafe_arena_set_allocated_name(
  6548. ::std::string* name) {
  6549. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6550. if (name != NULL) {
  6551. set_has_name();
  6552. } else {
  6553. clear_has_name();
  6554. }
  6555. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6556. name, GetArenaNoVirtual());
  6557. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.name)
  6558. }
  6559. // optional int32 number = 3;
  6560. inline bool FieldDescriptorProto::has_number() const {
  6561. return (_has_bits_[0] & 0x00000040u) != 0;
  6562. }
  6563. inline void FieldDescriptorProto::set_has_number() {
  6564. _has_bits_[0] |= 0x00000040u;
  6565. }
  6566. inline void FieldDescriptorProto::clear_has_number() {
  6567. _has_bits_[0] &= ~0x00000040u;
  6568. }
  6569. inline void FieldDescriptorProto::clear_number() {
  6570. number_ = 0;
  6571. clear_has_number();
  6572. }
  6573. inline ::google::protobuf::int32 FieldDescriptorProto::number() const {
  6574. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
  6575. return number_;
  6576. }
  6577. inline void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
  6578. set_has_number();
  6579. number_ = value;
  6580. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
  6581. }
  6582. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  6583. inline bool FieldDescriptorProto::has_label() const {
  6584. return (_has_bits_[0] & 0x00000100u) != 0;
  6585. }
  6586. inline void FieldDescriptorProto::set_has_label() {
  6587. _has_bits_[0] |= 0x00000100u;
  6588. }
  6589. inline void FieldDescriptorProto::clear_has_label() {
  6590. _has_bits_[0] &= ~0x00000100u;
  6591. }
  6592. inline void FieldDescriptorProto::clear_label() {
  6593. label_ = 1;
  6594. clear_has_label();
  6595. }
  6596. inline ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
  6597. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
  6598. return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
  6599. }
  6600. inline void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) {
  6601. assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
  6602. set_has_label();
  6603. label_ = value;
  6604. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
  6605. }
  6606. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  6607. inline bool FieldDescriptorProto::has_type() const {
  6608. return (_has_bits_[0] & 0x00000200u) != 0;
  6609. }
  6610. inline void FieldDescriptorProto::set_has_type() {
  6611. _has_bits_[0] |= 0x00000200u;
  6612. }
  6613. inline void FieldDescriptorProto::clear_has_type() {
  6614. _has_bits_[0] &= ~0x00000200u;
  6615. }
  6616. inline void FieldDescriptorProto::clear_type() {
  6617. type_ = 1;
  6618. clear_has_type();
  6619. }
  6620. inline ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
  6621. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
  6622. return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
  6623. }
  6624. inline void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) {
  6625. assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
  6626. set_has_type();
  6627. type_ = value;
  6628. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
  6629. }
  6630. // optional string type_name = 6;
  6631. inline bool FieldDescriptorProto::has_type_name() const {
  6632. return (_has_bits_[0] & 0x00000004u) != 0;
  6633. }
  6634. inline void FieldDescriptorProto::set_has_type_name() {
  6635. _has_bits_[0] |= 0x00000004u;
  6636. }
  6637. inline void FieldDescriptorProto::clear_has_type_name() {
  6638. _has_bits_[0] &= ~0x00000004u;
  6639. }
  6640. inline void FieldDescriptorProto::clear_type_name() {
  6641. type_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6642. clear_has_type_name();
  6643. }
  6644. inline const ::std::string& FieldDescriptorProto::type_name() const {
  6645. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
  6646. return type_name_.Get();
  6647. }
  6648. inline void FieldDescriptorProto::set_type_name(const ::std::string& value) {
  6649. set_has_type_name();
  6650. type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6651. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
  6652. }
  6653. #if LANG_CXX11
  6654. inline void FieldDescriptorProto::set_type_name(::std::string&& value) {
  6655. set_has_type_name();
  6656. type_name_.Set(
  6657. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6658. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.type_name)
  6659. }
  6660. #endif
  6661. inline void FieldDescriptorProto::set_type_name(const char* value) {
  6662. GOOGLE_DCHECK(value != NULL);
  6663. set_has_type_name();
  6664. type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6665. GetArenaNoVirtual());
  6666. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name)
  6667. }
  6668. inline void FieldDescriptorProto::set_type_name(const char* value,
  6669. size_t size) {
  6670. set_has_type_name();
  6671. type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6672. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6673. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name)
  6674. }
  6675. inline ::std::string* FieldDescriptorProto::mutable_type_name() {
  6676. set_has_type_name();
  6677. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
  6678. return type_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6679. }
  6680. inline ::std::string* FieldDescriptorProto::release_type_name() {
  6681. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name)
  6682. if (!has_type_name()) {
  6683. return NULL;
  6684. }
  6685. clear_has_type_name();
  6686. return type_name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6687. }
  6688. inline void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) {
  6689. if (type_name != NULL) {
  6690. set_has_type_name();
  6691. } else {
  6692. clear_has_type_name();
  6693. }
  6694. type_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_name,
  6695. GetArenaNoVirtual());
  6696. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  6697. }
  6698. inline ::std::string* FieldDescriptorProto::unsafe_arena_release_type_name() {
  6699. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.type_name)
  6700. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6701. clear_has_type_name();
  6702. return type_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6703. GetArenaNoVirtual());
  6704. }
  6705. inline void FieldDescriptorProto::unsafe_arena_set_allocated_type_name(
  6706. ::std::string* type_name) {
  6707. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6708. if (type_name != NULL) {
  6709. set_has_type_name();
  6710. } else {
  6711. clear_has_type_name();
  6712. }
  6713. type_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6714. type_name, GetArenaNoVirtual());
  6715. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  6716. }
  6717. // optional string extendee = 2;
  6718. inline bool FieldDescriptorProto::has_extendee() const {
  6719. return (_has_bits_[0] & 0x00000002u) != 0;
  6720. }
  6721. inline void FieldDescriptorProto::set_has_extendee() {
  6722. _has_bits_[0] |= 0x00000002u;
  6723. }
  6724. inline void FieldDescriptorProto::clear_has_extendee() {
  6725. _has_bits_[0] &= ~0x00000002u;
  6726. }
  6727. inline void FieldDescriptorProto::clear_extendee() {
  6728. extendee_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6729. clear_has_extendee();
  6730. }
  6731. inline const ::std::string& FieldDescriptorProto::extendee() const {
  6732. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
  6733. return extendee_.Get();
  6734. }
  6735. inline void FieldDescriptorProto::set_extendee(const ::std::string& value) {
  6736. set_has_extendee();
  6737. extendee_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6738. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
  6739. }
  6740. #if LANG_CXX11
  6741. inline void FieldDescriptorProto::set_extendee(::std::string&& value) {
  6742. set_has_extendee();
  6743. extendee_.Set(
  6744. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6745. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.extendee)
  6746. }
  6747. #endif
  6748. inline void FieldDescriptorProto::set_extendee(const char* value) {
  6749. GOOGLE_DCHECK(value != NULL);
  6750. set_has_extendee();
  6751. extendee_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6752. GetArenaNoVirtual());
  6753. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee)
  6754. }
  6755. inline void FieldDescriptorProto::set_extendee(const char* value,
  6756. size_t size) {
  6757. set_has_extendee();
  6758. extendee_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6759. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6760. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee)
  6761. }
  6762. inline ::std::string* FieldDescriptorProto::mutable_extendee() {
  6763. set_has_extendee();
  6764. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
  6765. return extendee_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6766. }
  6767. inline ::std::string* FieldDescriptorProto::release_extendee() {
  6768. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee)
  6769. if (!has_extendee()) {
  6770. return NULL;
  6771. }
  6772. clear_has_extendee();
  6773. return extendee_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6774. }
  6775. inline void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) {
  6776. if (extendee != NULL) {
  6777. set_has_extendee();
  6778. } else {
  6779. clear_has_extendee();
  6780. }
  6781. extendee_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extendee,
  6782. GetArenaNoVirtual());
  6783. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  6784. }
  6785. inline ::std::string* FieldDescriptorProto::unsafe_arena_release_extendee() {
  6786. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.extendee)
  6787. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6788. clear_has_extendee();
  6789. return extendee_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6790. GetArenaNoVirtual());
  6791. }
  6792. inline void FieldDescriptorProto::unsafe_arena_set_allocated_extendee(
  6793. ::std::string* extendee) {
  6794. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6795. if (extendee != NULL) {
  6796. set_has_extendee();
  6797. } else {
  6798. clear_has_extendee();
  6799. }
  6800. extendee_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6801. extendee, GetArenaNoVirtual());
  6802. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  6803. }
  6804. // optional string default_value = 7;
  6805. inline bool FieldDescriptorProto::has_default_value() const {
  6806. return (_has_bits_[0] & 0x00000008u) != 0;
  6807. }
  6808. inline void FieldDescriptorProto::set_has_default_value() {
  6809. _has_bits_[0] |= 0x00000008u;
  6810. }
  6811. inline void FieldDescriptorProto::clear_has_default_value() {
  6812. _has_bits_[0] &= ~0x00000008u;
  6813. }
  6814. inline void FieldDescriptorProto::clear_default_value() {
  6815. default_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6816. clear_has_default_value();
  6817. }
  6818. inline const ::std::string& FieldDescriptorProto::default_value() const {
  6819. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
  6820. return default_value_.Get();
  6821. }
  6822. inline void FieldDescriptorProto::set_default_value(const ::std::string& value) {
  6823. set_has_default_value();
  6824. default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6825. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
  6826. }
  6827. #if LANG_CXX11
  6828. inline void FieldDescriptorProto::set_default_value(::std::string&& value) {
  6829. set_has_default_value();
  6830. default_value_.Set(
  6831. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6832. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.default_value)
  6833. }
  6834. #endif
  6835. inline void FieldDescriptorProto::set_default_value(const char* value) {
  6836. GOOGLE_DCHECK(value != NULL);
  6837. set_has_default_value();
  6838. default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6839. GetArenaNoVirtual());
  6840. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value)
  6841. }
  6842. inline void FieldDescriptorProto::set_default_value(const char* value,
  6843. size_t size) {
  6844. set_has_default_value();
  6845. default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6846. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6847. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value)
  6848. }
  6849. inline ::std::string* FieldDescriptorProto::mutable_default_value() {
  6850. set_has_default_value();
  6851. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
  6852. return default_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6853. }
  6854. inline ::std::string* FieldDescriptorProto::release_default_value() {
  6855. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value)
  6856. if (!has_default_value()) {
  6857. return NULL;
  6858. }
  6859. clear_has_default_value();
  6860. return default_value_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6861. }
  6862. inline void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) {
  6863. if (default_value != NULL) {
  6864. set_has_default_value();
  6865. } else {
  6866. clear_has_default_value();
  6867. }
  6868. default_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value,
  6869. GetArenaNoVirtual());
  6870. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  6871. }
  6872. inline ::std::string* FieldDescriptorProto::unsafe_arena_release_default_value() {
  6873. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.default_value)
  6874. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6875. clear_has_default_value();
  6876. return default_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6877. GetArenaNoVirtual());
  6878. }
  6879. inline void FieldDescriptorProto::unsafe_arena_set_allocated_default_value(
  6880. ::std::string* default_value) {
  6881. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6882. if (default_value != NULL) {
  6883. set_has_default_value();
  6884. } else {
  6885. clear_has_default_value();
  6886. }
  6887. default_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6888. default_value, GetArenaNoVirtual());
  6889. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  6890. }
  6891. // optional int32 oneof_index = 9;
  6892. inline bool FieldDescriptorProto::has_oneof_index() const {
  6893. return (_has_bits_[0] & 0x00000080u) != 0;
  6894. }
  6895. inline void FieldDescriptorProto::set_has_oneof_index() {
  6896. _has_bits_[0] |= 0x00000080u;
  6897. }
  6898. inline void FieldDescriptorProto::clear_has_oneof_index() {
  6899. _has_bits_[0] &= ~0x00000080u;
  6900. }
  6901. inline void FieldDescriptorProto::clear_oneof_index() {
  6902. oneof_index_ = 0;
  6903. clear_has_oneof_index();
  6904. }
  6905. inline ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const {
  6906. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
  6907. return oneof_index_;
  6908. }
  6909. inline void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) {
  6910. set_has_oneof_index();
  6911. oneof_index_ = value;
  6912. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
  6913. }
  6914. // optional string json_name = 10;
  6915. inline bool FieldDescriptorProto::has_json_name() const {
  6916. return (_has_bits_[0] & 0x00000010u) != 0;
  6917. }
  6918. inline void FieldDescriptorProto::set_has_json_name() {
  6919. _has_bits_[0] |= 0x00000010u;
  6920. }
  6921. inline void FieldDescriptorProto::clear_has_json_name() {
  6922. _has_bits_[0] &= ~0x00000010u;
  6923. }
  6924. inline void FieldDescriptorProto::clear_json_name() {
  6925. json_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6926. clear_has_json_name();
  6927. }
  6928. inline const ::std::string& FieldDescriptorProto::json_name() const {
  6929. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name)
  6930. return json_name_.Get();
  6931. }
  6932. inline void FieldDescriptorProto::set_json_name(const ::std::string& value) {
  6933. set_has_json_name();
  6934. json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6935. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name)
  6936. }
  6937. #if LANG_CXX11
  6938. inline void FieldDescriptorProto::set_json_name(::std::string&& value) {
  6939. set_has_json_name();
  6940. json_name_.Set(
  6941. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6942. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.json_name)
  6943. }
  6944. #endif
  6945. inline void FieldDescriptorProto::set_json_name(const char* value) {
  6946. GOOGLE_DCHECK(value != NULL);
  6947. set_has_json_name();
  6948. json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6949. GetArenaNoVirtual());
  6950. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.json_name)
  6951. }
  6952. inline void FieldDescriptorProto::set_json_name(const char* value,
  6953. size_t size) {
  6954. set_has_json_name();
  6955. json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6956. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6957. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.json_name)
  6958. }
  6959. inline ::std::string* FieldDescriptorProto::mutable_json_name() {
  6960. set_has_json_name();
  6961. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name)
  6962. return json_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6963. }
  6964. inline ::std::string* FieldDescriptorProto::release_json_name() {
  6965. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name)
  6966. if (!has_json_name()) {
  6967. return NULL;
  6968. }
  6969. clear_has_json_name();
  6970. return json_name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6971. }
  6972. inline void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) {
  6973. if (json_name != NULL) {
  6974. set_has_json_name();
  6975. } else {
  6976. clear_has_json_name();
  6977. }
  6978. json_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name,
  6979. GetArenaNoVirtual());
  6980. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
  6981. }
  6982. inline ::std::string* FieldDescriptorProto::unsafe_arena_release_json_name() {
  6983. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.json_name)
  6984. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6985. clear_has_json_name();
  6986. return json_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6987. GetArenaNoVirtual());
  6988. }
  6989. inline void FieldDescriptorProto::unsafe_arena_set_allocated_json_name(
  6990. ::std::string* json_name) {
  6991. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6992. if (json_name != NULL) {
  6993. set_has_json_name();
  6994. } else {
  6995. clear_has_json_name();
  6996. }
  6997. json_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6998. json_name, GetArenaNoVirtual());
  6999. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
  7000. }
  7001. // optional .google.protobuf.FieldOptions options = 8;
  7002. inline bool FieldDescriptorProto::has_options() const {
  7003. return (_has_bits_[0] & 0x00000020u) != 0;
  7004. }
  7005. inline void FieldDescriptorProto::set_has_options() {
  7006. _has_bits_[0] |= 0x00000020u;
  7007. }
  7008. inline void FieldDescriptorProto::clear_has_options() {
  7009. _has_bits_[0] &= ~0x00000020u;
  7010. }
  7011. inline void FieldDescriptorProto::clear_options() {
  7012. if (options_ != NULL) options_->Clear();
  7013. clear_has_options();
  7014. }
  7015. inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::_internal_options() const {
  7016. return *options_;
  7017. }
  7018. inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
  7019. const ::google::protobuf::FieldOptions* p = options_;
  7020. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
  7021. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::FieldOptions*>(
  7022. &::google::protobuf::_FieldOptions_default_instance_);
  7023. }
  7024. inline ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
  7025. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.options)
  7026. clear_has_options();
  7027. ::google::protobuf::FieldOptions* temp = options_;
  7028. if (GetArenaNoVirtual() != NULL) {
  7029. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  7030. }
  7031. options_ = NULL;
  7032. return temp;
  7033. }
  7034. inline ::google::protobuf::FieldOptions* FieldDescriptorProto::unsafe_arena_release_options() {
  7035. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.options)
  7036. clear_has_options();
  7037. ::google::protobuf::FieldOptions* temp = options_;
  7038. options_ = NULL;
  7039. return temp;
  7040. }
  7041. inline ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
  7042. set_has_options();
  7043. if (options_ == NULL) {
  7044. auto* p = CreateMaybeMessage<::google::protobuf::FieldOptions>(GetArenaNoVirtual());
  7045. options_ = p;
  7046. }
  7047. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
  7048. return options_;
  7049. }
  7050. inline void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOptions* options) {
  7051. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  7052. if (message_arena == NULL) {
  7053. delete options_;
  7054. }
  7055. if (options) {
  7056. ::google::protobuf::Arena* submessage_arena =
  7057. ::google::protobuf::Arena::GetArena(options);
  7058. if (message_arena != submessage_arena) {
  7059. options = ::google::protobuf::internal::GetOwnedMessage(
  7060. message_arena, options, submessage_arena);
  7061. }
  7062. set_has_options();
  7063. } else {
  7064. clear_has_options();
  7065. }
  7066. options_ = options;
  7067. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
  7068. }
  7069. // -------------------------------------------------------------------
  7070. // OneofDescriptorProto
  7071. // optional string name = 1;
  7072. inline bool OneofDescriptorProto::has_name() const {
  7073. return (_has_bits_[0] & 0x00000001u) != 0;
  7074. }
  7075. inline void OneofDescriptorProto::set_has_name() {
  7076. _has_bits_[0] |= 0x00000001u;
  7077. }
  7078. inline void OneofDescriptorProto::clear_has_name() {
  7079. _has_bits_[0] &= ~0x00000001u;
  7080. }
  7081. inline void OneofDescriptorProto::clear_name() {
  7082. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7083. clear_has_name();
  7084. }
  7085. inline const ::std::string& OneofDescriptorProto::name() const {
  7086. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
  7087. return name_.Get();
  7088. }
  7089. inline void OneofDescriptorProto::set_name(const ::std::string& value) {
  7090. set_has_name();
  7091. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7092. // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
  7093. }
  7094. #if LANG_CXX11
  7095. inline void OneofDescriptorProto::set_name(::std::string&& value) {
  7096. set_has_name();
  7097. name_.Set(
  7098. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7099. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.OneofDescriptorProto.name)
  7100. }
  7101. #endif
  7102. inline void OneofDescriptorProto::set_name(const char* value) {
  7103. GOOGLE_DCHECK(value != NULL);
  7104. set_has_name();
  7105. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7106. GetArenaNoVirtual());
  7107. // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProto.name)
  7108. }
  7109. inline void OneofDescriptorProto::set_name(const char* value,
  7110. size_t size) {
  7111. set_has_name();
  7112. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7113. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7114. // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorProto.name)
  7115. }
  7116. inline ::std::string* OneofDescriptorProto::mutable_name() {
  7117. set_has_name();
  7118. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
  7119. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7120. }
  7121. inline ::std::string* OneofDescriptorProto::release_name() {
  7122. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.name)
  7123. if (!has_name()) {
  7124. return NULL;
  7125. }
  7126. clear_has_name();
  7127. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7128. }
  7129. inline void OneofDescriptorProto::set_allocated_name(::std::string* name) {
  7130. if (name != NULL) {
  7131. set_has_name();
  7132. } else {
  7133. clear_has_name();
  7134. }
  7135. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  7136. GetArenaNoVirtual());
  7137. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
  7138. }
  7139. inline ::std::string* OneofDescriptorProto::unsafe_arena_release_name() {
  7140. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.OneofDescriptorProto.name)
  7141. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7142. clear_has_name();
  7143. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7144. GetArenaNoVirtual());
  7145. }
  7146. inline void OneofDescriptorProto::unsafe_arena_set_allocated_name(
  7147. ::std::string* name) {
  7148. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7149. if (name != NULL) {
  7150. set_has_name();
  7151. } else {
  7152. clear_has_name();
  7153. }
  7154. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7155. name, GetArenaNoVirtual());
  7156. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.OneofDescriptorProto.name)
  7157. }
  7158. // optional .google.protobuf.OneofOptions options = 2;
  7159. inline bool OneofDescriptorProto::has_options() const {
  7160. return (_has_bits_[0] & 0x00000002u) != 0;
  7161. }
  7162. inline void OneofDescriptorProto::set_has_options() {
  7163. _has_bits_[0] |= 0x00000002u;
  7164. }
  7165. inline void OneofDescriptorProto::clear_has_options() {
  7166. _has_bits_[0] &= ~0x00000002u;
  7167. }
  7168. inline void OneofDescriptorProto::clear_options() {
  7169. if (options_ != NULL) options_->Clear();
  7170. clear_has_options();
  7171. }
  7172. inline const ::google::protobuf::OneofOptions& OneofDescriptorProto::_internal_options() const {
  7173. return *options_;
  7174. }
  7175. inline const ::google::protobuf::OneofOptions& OneofDescriptorProto::options() const {
  7176. const ::google::protobuf::OneofOptions* p = options_;
  7177. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.options)
  7178. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::OneofOptions*>(
  7179. &::google::protobuf::_OneofOptions_default_instance_);
  7180. }
  7181. inline ::google::protobuf::OneofOptions* OneofDescriptorProto::release_options() {
  7182. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.options)
  7183. clear_has_options();
  7184. ::google::protobuf::OneofOptions* temp = options_;
  7185. if (GetArenaNoVirtual() != NULL) {
  7186. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  7187. }
  7188. options_ = NULL;
  7189. return temp;
  7190. }
  7191. inline ::google::protobuf::OneofOptions* OneofDescriptorProto::unsafe_arena_release_options() {
  7192. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.OneofDescriptorProto.options)
  7193. clear_has_options();
  7194. ::google::protobuf::OneofOptions* temp = options_;
  7195. options_ = NULL;
  7196. return temp;
  7197. }
  7198. inline ::google::protobuf::OneofOptions* OneofDescriptorProto::mutable_options() {
  7199. set_has_options();
  7200. if (options_ == NULL) {
  7201. auto* p = CreateMaybeMessage<::google::protobuf::OneofOptions>(GetArenaNoVirtual());
  7202. options_ = p;
  7203. }
  7204. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.options)
  7205. return options_;
  7206. }
  7207. inline void OneofDescriptorProto::set_allocated_options(::google::protobuf::OneofOptions* options) {
  7208. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  7209. if (message_arena == NULL) {
  7210. delete options_;
  7211. }
  7212. if (options) {
  7213. ::google::protobuf::Arena* submessage_arena =
  7214. ::google::protobuf::Arena::GetArena(options);
  7215. if (message_arena != submessage_arena) {
  7216. options = ::google::protobuf::internal::GetOwnedMessage(
  7217. message_arena, options, submessage_arena);
  7218. }
  7219. set_has_options();
  7220. } else {
  7221. clear_has_options();
  7222. }
  7223. options_ = options;
  7224. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.options)
  7225. }
  7226. // -------------------------------------------------------------------
  7227. // EnumDescriptorProto_EnumReservedRange
  7228. // optional int32 start = 1;
  7229. inline bool EnumDescriptorProto_EnumReservedRange::has_start() const {
  7230. return (_has_bits_[0] & 0x00000001u) != 0;
  7231. }
  7232. inline void EnumDescriptorProto_EnumReservedRange::set_has_start() {
  7233. _has_bits_[0] |= 0x00000001u;
  7234. }
  7235. inline void EnumDescriptorProto_EnumReservedRange::clear_has_start() {
  7236. _has_bits_[0] &= ~0x00000001u;
  7237. }
  7238. inline void EnumDescriptorProto_EnumReservedRange::clear_start() {
  7239. start_ = 0;
  7240. clear_has_start();
  7241. }
  7242. inline ::google::protobuf::int32 EnumDescriptorProto_EnumReservedRange::start() const {
  7243. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  7244. return start_;
  7245. }
  7246. inline void EnumDescriptorProto_EnumReservedRange::set_start(::google::protobuf::int32 value) {
  7247. set_has_start();
  7248. start_ = value;
  7249. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  7250. }
  7251. // optional int32 end = 2;
  7252. inline bool EnumDescriptorProto_EnumReservedRange::has_end() const {
  7253. return (_has_bits_[0] & 0x00000002u) != 0;
  7254. }
  7255. inline void EnumDescriptorProto_EnumReservedRange::set_has_end() {
  7256. _has_bits_[0] |= 0x00000002u;
  7257. }
  7258. inline void EnumDescriptorProto_EnumReservedRange::clear_has_end() {
  7259. _has_bits_[0] &= ~0x00000002u;
  7260. }
  7261. inline void EnumDescriptorProto_EnumReservedRange::clear_end() {
  7262. end_ = 0;
  7263. clear_has_end();
  7264. }
  7265. inline ::google::protobuf::int32 EnumDescriptorProto_EnumReservedRange::end() const {
  7266. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  7267. return end_;
  7268. }
  7269. inline void EnumDescriptorProto_EnumReservedRange::set_end(::google::protobuf::int32 value) {
  7270. set_has_end();
  7271. end_ = value;
  7272. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  7273. }
  7274. // -------------------------------------------------------------------
  7275. // EnumDescriptorProto
  7276. // optional string name = 1;
  7277. inline bool EnumDescriptorProto::has_name() const {
  7278. return (_has_bits_[0] & 0x00000001u) != 0;
  7279. }
  7280. inline void EnumDescriptorProto::set_has_name() {
  7281. _has_bits_[0] |= 0x00000001u;
  7282. }
  7283. inline void EnumDescriptorProto::clear_has_name() {
  7284. _has_bits_[0] &= ~0x00000001u;
  7285. }
  7286. inline void EnumDescriptorProto::clear_name() {
  7287. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7288. clear_has_name();
  7289. }
  7290. inline const ::std::string& EnumDescriptorProto::name() const {
  7291. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
  7292. return name_.Get();
  7293. }
  7294. inline void EnumDescriptorProto::set_name(const ::std::string& value) {
  7295. set_has_name();
  7296. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7297. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
  7298. }
  7299. #if LANG_CXX11
  7300. inline void EnumDescriptorProto::set_name(::std::string&& value) {
  7301. set_has_name();
  7302. name_.Set(
  7303. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7304. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumDescriptorProto.name)
  7305. }
  7306. #endif
  7307. inline void EnumDescriptorProto::set_name(const char* value) {
  7308. GOOGLE_DCHECK(value != NULL);
  7309. set_has_name();
  7310. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7311. GetArenaNoVirtual());
  7312. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name)
  7313. }
  7314. inline void EnumDescriptorProto::set_name(const char* value,
  7315. size_t size) {
  7316. set_has_name();
  7317. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7318. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7319. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name)
  7320. }
  7321. inline ::std::string* EnumDescriptorProto::mutable_name() {
  7322. set_has_name();
  7323. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
  7324. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7325. }
  7326. inline ::std::string* EnumDescriptorProto::release_name() {
  7327. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.name)
  7328. if (!has_name()) {
  7329. return NULL;
  7330. }
  7331. clear_has_name();
  7332. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7333. }
  7334. inline void EnumDescriptorProto::set_allocated_name(::std::string* name) {
  7335. if (name != NULL) {
  7336. set_has_name();
  7337. } else {
  7338. clear_has_name();
  7339. }
  7340. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  7341. GetArenaNoVirtual());
  7342. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
  7343. }
  7344. inline ::std::string* EnumDescriptorProto::unsafe_arena_release_name() {
  7345. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumDescriptorProto.name)
  7346. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7347. clear_has_name();
  7348. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7349. GetArenaNoVirtual());
  7350. }
  7351. inline void EnumDescriptorProto::unsafe_arena_set_allocated_name(
  7352. ::std::string* name) {
  7353. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7354. if (name != NULL) {
  7355. set_has_name();
  7356. } else {
  7357. clear_has_name();
  7358. }
  7359. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7360. name, GetArenaNoVirtual());
  7361. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumDescriptorProto.name)
  7362. }
  7363. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  7364. inline int EnumDescriptorProto::value_size() const {
  7365. return value_.size();
  7366. }
  7367. inline void EnumDescriptorProto::clear_value() {
  7368. value_.Clear();
  7369. }
  7370. inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
  7371. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
  7372. return value_.Mutable(index);
  7373. }
  7374. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
  7375. EnumDescriptorProto::mutable_value() {
  7376. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
  7377. return &value_;
  7378. }
  7379. inline const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
  7380. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
  7381. return value_.Get(index);
  7382. }
  7383. inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
  7384. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
  7385. return value_.Add();
  7386. }
  7387. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
  7388. EnumDescriptorProto::value() const {
  7389. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
  7390. return value_;
  7391. }
  7392. // optional .google.protobuf.EnumOptions options = 3;
  7393. inline bool EnumDescriptorProto::has_options() const {
  7394. return (_has_bits_[0] & 0x00000002u) != 0;
  7395. }
  7396. inline void EnumDescriptorProto::set_has_options() {
  7397. _has_bits_[0] |= 0x00000002u;
  7398. }
  7399. inline void EnumDescriptorProto::clear_has_options() {
  7400. _has_bits_[0] &= ~0x00000002u;
  7401. }
  7402. inline void EnumDescriptorProto::clear_options() {
  7403. if (options_ != NULL) options_->Clear();
  7404. clear_has_options();
  7405. }
  7406. inline const ::google::protobuf::EnumOptions& EnumDescriptorProto::_internal_options() const {
  7407. return *options_;
  7408. }
  7409. inline const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
  7410. const ::google::protobuf::EnumOptions* p = options_;
  7411. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
  7412. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::EnumOptions*>(
  7413. &::google::protobuf::_EnumOptions_default_instance_);
  7414. }
  7415. inline ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
  7416. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.options)
  7417. clear_has_options();
  7418. ::google::protobuf::EnumOptions* temp = options_;
  7419. if (GetArenaNoVirtual() != NULL) {
  7420. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  7421. }
  7422. options_ = NULL;
  7423. return temp;
  7424. }
  7425. inline ::google::protobuf::EnumOptions* EnumDescriptorProto::unsafe_arena_release_options() {
  7426. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumDescriptorProto.options)
  7427. clear_has_options();
  7428. ::google::protobuf::EnumOptions* temp = options_;
  7429. options_ = NULL;
  7430. return temp;
  7431. }
  7432. inline ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
  7433. set_has_options();
  7434. if (options_ == NULL) {
  7435. auto* p = CreateMaybeMessage<::google::protobuf::EnumOptions>(GetArenaNoVirtual());
  7436. options_ = p;
  7437. }
  7438. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
  7439. return options_;
  7440. }
  7441. inline void EnumDescriptorProto::set_allocated_options(::google::protobuf::EnumOptions* options) {
  7442. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  7443. if (message_arena == NULL) {
  7444. delete options_;
  7445. }
  7446. if (options) {
  7447. ::google::protobuf::Arena* submessage_arena =
  7448. ::google::protobuf::Arena::GetArena(options);
  7449. if (message_arena != submessage_arena) {
  7450. options = ::google::protobuf::internal::GetOwnedMessage(
  7451. message_arena, options, submessage_arena);
  7452. }
  7453. set_has_options();
  7454. } else {
  7455. clear_has_options();
  7456. }
  7457. options_ = options;
  7458. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
  7459. }
  7460. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  7461. inline int EnumDescriptorProto::reserved_range_size() const {
  7462. return reserved_range_.size();
  7463. }
  7464. inline void EnumDescriptorProto::clear_reserved_range() {
  7465. reserved_range_.Clear();
  7466. }
  7467. inline ::google::protobuf::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::mutable_reserved_range(int index) {
  7468. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_range)
  7469. return reserved_range_.Mutable(index);
  7470. }
  7471. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto_EnumReservedRange >*
  7472. EnumDescriptorProto::mutable_reserved_range() {
  7473. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_range)
  7474. return &reserved_range_;
  7475. }
  7476. inline const ::google::protobuf::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::reserved_range(int index) const {
  7477. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_range)
  7478. return reserved_range_.Get(index);
  7479. }
  7480. inline ::google::protobuf::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::add_reserved_range() {
  7481. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_range)
  7482. return reserved_range_.Add();
  7483. }
  7484. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto_EnumReservedRange >&
  7485. EnumDescriptorProto::reserved_range() const {
  7486. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_range)
  7487. return reserved_range_;
  7488. }
  7489. // repeated string reserved_name = 5;
  7490. inline int EnumDescriptorProto::reserved_name_size() const {
  7491. return reserved_name_.size();
  7492. }
  7493. inline void EnumDescriptorProto::clear_reserved_name() {
  7494. reserved_name_.Clear();
  7495. }
  7496. inline const ::std::string& EnumDescriptorProto::reserved_name(int index) const {
  7497. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_name)
  7498. return reserved_name_.Get(index);
  7499. }
  7500. inline ::std::string* EnumDescriptorProto::mutable_reserved_name(int index) {
  7501. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  7502. return reserved_name_.Mutable(index);
  7503. }
  7504. inline void EnumDescriptorProto::set_reserved_name(int index, const ::std::string& value) {
  7505. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  7506. reserved_name_.Mutable(index)->assign(value);
  7507. }
  7508. #if LANG_CXX11
  7509. inline void EnumDescriptorProto::set_reserved_name(int index, ::std::string&& value) {
  7510. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  7511. reserved_name_.Mutable(index)->assign(std::move(value));
  7512. }
  7513. #endif
  7514. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value) {
  7515. GOOGLE_DCHECK(value != NULL);
  7516. reserved_name_.Mutable(index)->assign(value);
  7517. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.reserved_name)
  7518. }
  7519. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  7520. reserved_name_.Mutable(index)->assign(
  7521. reinterpret_cast<const char*>(value), size);
  7522. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  7523. }
  7524. inline ::std::string* EnumDescriptorProto::add_reserved_name() {
  7525. // @@protoc_insertion_point(field_add_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  7526. return reserved_name_.Add();
  7527. }
  7528. inline void EnumDescriptorProto::add_reserved_name(const ::std::string& value) {
  7529. reserved_name_.Add()->assign(value);
  7530. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  7531. }
  7532. #if LANG_CXX11
  7533. inline void EnumDescriptorProto::add_reserved_name(::std::string&& value) {
  7534. reserved_name_.Add(std::move(value));
  7535. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  7536. }
  7537. #endif
  7538. inline void EnumDescriptorProto::add_reserved_name(const char* value) {
  7539. GOOGLE_DCHECK(value != NULL);
  7540. reserved_name_.Add()->assign(value);
  7541. // @@protoc_insertion_point(field_add_char:google.protobuf.EnumDescriptorProto.reserved_name)
  7542. }
  7543. inline void EnumDescriptorProto::add_reserved_name(const char* value, size_t size) {
  7544. reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  7545. // @@protoc_insertion_point(field_add_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  7546. }
  7547. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  7548. EnumDescriptorProto::reserved_name() const {
  7549. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_name)
  7550. return reserved_name_;
  7551. }
  7552. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  7553. EnumDescriptorProto::mutable_reserved_name() {
  7554. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_name)
  7555. return &reserved_name_;
  7556. }
  7557. // -------------------------------------------------------------------
  7558. // EnumValueDescriptorProto
  7559. // optional string name = 1;
  7560. inline bool EnumValueDescriptorProto::has_name() const {
  7561. return (_has_bits_[0] & 0x00000001u) != 0;
  7562. }
  7563. inline void EnumValueDescriptorProto::set_has_name() {
  7564. _has_bits_[0] |= 0x00000001u;
  7565. }
  7566. inline void EnumValueDescriptorProto::clear_has_name() {
  7567. _has_bits_[0] &= ~0x00000001u;
  7568. }
  7569. inline void EnumValueDescriptorProto::clear_name() {
  7570. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7571. clear_has_name();
  7572. }
  7573. inline const ::std::string& EnumValueDescriptorProto::name() const {
  7574. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
  7575. return name_.Get();
  7576. }
  7577. inline void EnumValueDescriptorProto::set_name(const ::std::string& value) {
  7578. set_has_name();
  7579. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7580. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
  7581. }
  7582. #if LANG_CXX11
  7583. inline void EnumValueDescriptorProto::set_name(::std::string&& value) {
  7584. set_has_name();
  7585. name_.Set(
  7586. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7587. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumValueDescriptorProto.name)
  7588. }
  7589. #endif
  7590. inline void EnumValueDescriptorProto::set_name(const char* value) {
  7591. GOOGLE_DCHECK(value != NULL);
  7592. set_has_name();
  7593. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7594. GetArenaNoVirtual());
  7595. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptorProto.name)
  7596. }
  7597. inline void EnumValueDescriptorProto::set_name(const char* value,
  7598. size_t size) {
  7599. set_has_name();
  7600. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7601. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7602. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescriptorProto.name)
  7603. }
  7604. inline ::std::string* EnumValueDescriptorProto::mutable_name() {
  7605. set_has_name();
  7606. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
  7607. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7608. }
  7609. inline ::std::string* EnumValueDescriptorProto::release_name() {
  7610. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.name)
  7611. if (!has_name()) {
  7612. return NULL;
  7613. }
  7614. clear_has_name();
  7615. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7616. }
  7617. inline void EnumValueDescriptorProto::set_allocated_name(::std::string* name) {
  7618. if (name != NULL) {
  7619. set_has_name();
  7620. } else {
  7621. clear_has_name();
  7622. }
  7623. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  7624. GetArenaNoVirtual());
  7625. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  7626. }
  7627. inline ::std::string* EnumValueDescriptorProto::unsafe_arena_release_name() {
  7628. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumValueDescriptorProto.name)
  7629. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7630. clear_has_name();
  7631. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7632. GetArenaNoVirtual());
  7633. }
  7634. inline void EnumValueDescriptorProto::unsafe_arena_set_allocated_name(
  7635. ::std::string* name) {
  7636. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7637. if (name != NULL) {
  7638. set_has_name();
  7639. } else {
  7640. clear_has_name();
  7641. }
  7642. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7643. name, GetArenaNoVirtual());
  7644. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  7645. }
  7646. // optional int32 number = 2;
  7647. inline bool EnumValueDescriptorProto::has_number() const {
  7648. return (_has_bits_[0] & 0x00000004u) != 0;
  7649. }
  7650. inline void EnumValueDescriptorProto::set_has_number() {
  7651. _has_bits_[0] |= 0x00000004u;
  7652. }
  7653. inline void EnumValueDescriptorProto::clear_has_number() {
  7654. _has_bits_[0] &= ~0x00000004u;
  7655. }
  7656. inline void EnumValueDescriptorProto::clear_number() {
  7657. number_ = 0;
  7658. clear_has_number();
  7659. }
  7660. inline ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
  7661. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
  7662. return number_;
  7663. }
  7664. inline void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
  7665. set_has_number();
  7666. number_ = value;
  7667. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
  7668. }
  7669. // optional .google.protobuf.EnumValueOptions options = 3;
  7670. inline bool EnumValueDescriptorProto::has_options() const {
  7671. return (_has_bits_[0] & 0x00000002u) != 0;
  7672. }
  7673. inline void EnumValueDescriptorProto::set_has_options() {
  7674. _has_bits_[0] |= 0x00000002u;
  7675. }
  7676. inline void EnumValueDescriptorProto::clear_has_options() {
  7677. _has_bits_[0] &= ~0x00000002u;
  7678. }
  7679. inline void EnumValueDescriptorProto::clear_options() {
  7680. if (options_ != NULL) options_->Clear();
  7681. clear_has_options();
  7682. }
  7683. inline const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::_internal_options() const {
  7684. return *options_;
  7685. }
  7686. inline const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const {
  7687. const ::google::protobuf::EnumValueOptions* p = options_;
  7688. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
  7689. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::EnumValueOptions*>(
  7690. &::google::protobuf::_EnumValueOptions_default_instance_);
  7691. }
  7692. inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() {
  7693. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.options)
  7694. clear_has_options();
  7695. ::google::protobuf::EnumValueOptions* temp = options_;
  7696. if (GetArenaNoVirtual() != NULL) {
  7697. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  7698. }
  7699. options_ = NULL;
  7700. return temp;
  7701. }
  7702. inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::unsafe_arena_release_options() {
  7703. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumValueDescriptorProto.options)
  7704. clear_has_options();
  7705. ::google::protobuf::EnumValueOptions* temp = options_;
  7706. options_ = NULL;
  7707. return temp;
  7708. }
  7709. inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
  7710. set_has_options();
  7711. if (options_ == NULL) {
  7712. auto* p = CreateMaybeMessage<::google::protobuf::EnumValueOptions>(GetArenaNoVirtual());
  7713. options_ = p;
  7714. }
  7715. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
  7716. return options_;
  7717. }
  7718. inline void EnumValueDescriptorProto::set_allocated_options(::google::protobuf::EnumValueOptions* options) {
  7719. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  7720. if (message_arena == NULL) {
  7721. delete options_;
  7722. }
  7723. if (options) {
  7724. ::google::protobuf::Arena* submessage_arena =
  7725. ::google::protobuf::Arena::GetArena(options);
  7726. if (message_arena != submessage_arena) {
  7727. options = ::google::protobuf::internal::GetOwnedMessage(
  7728. message_arena, options, submessage_arena);
  7729. }
  7730. set_has_options();
  7731. } else {
  7732. clear_has_options();
  7733. }
  7734. options_ = options;
  7735. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  7736. }
  7737. // -------------------------------------------------------------------
  7738. // ServiceDescriptorProto
  7739. // optional string name = 1;
  7740. inline bool ServiceDescriptorProto::has_name() const {
  7741. return (_has_bits_[0] & 0x00000001u) != 0;
  7742. }
  7743. inline void ServiceDescriptorProto::set_has_name() {
  7744. _has_bits_[0] |= 0x00000001u;
  7745. }
  7746. inline void ServiceDescriptorProto::clear_has_name() {
  7747. _has_bits_[0] &= ~0x00000001u;
  7748. }
  7749. inline void ServiceDescriptorProto::clear_name() {
  7750. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7751. clear_has_name();
  7752. }
  7753. inline const ::std::string& ServiceDescriptorProto::name() const {
  7754. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
  7755. return name_.Get();
  7756. }
  7757. inline void ServiceDescriptorProto::set_name(const ::std::string& value) {
  7758. set_has_name();
  7759. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7760. // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
  7761. }
  7762. #if LANG_CXX11
  7763. inline void ServiceDescriptorProto::set_name(::std::string&& value) {
  7764. set_has_name();
  7765. name_.Set(
  7766. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7767. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.ServiceDescriptorProto.name)
  7768. }
  7769. #endif
  7770. inline void ServiceDescriptorProto::set_name(const char* value) {
  7771. GOOGLE_DCHECK(value != NULL);
  7772. set_has_name();
  7773. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7774. GetArenaNoVirtual());
  7775. // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorProto.name)
  7776. }
  7777. inline void ServiceDescriptorProto::set_name(const char* value,
  7778. size_t size) {
  7779. set_has_name();
  7780. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7781. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7782. // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescriptorProto.name)
  7783. }
  7784. inline ::std::string* ServiceDescriptorProto::mutable_name() {
  7785. set_has_name();
  7786. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
  7787. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7788. }
  7789. inline ::std::string* ServiceDescriptorProto::release_name() {
  7790. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.name)
  7791. if (!has_name()) {
  7792. return NULL;
  7793. }
  7794. clear_has_name();
  7795. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7796. }
  7797. inline void ServiceDescriptorProto::set_allocated_name(::std::string* name) {
  7798. if (name != NULL) {
  7799. set_has_name();
  7800. } else {
  7801. clear_has_name();
  7802. }
  7803. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  7804. GetArenaNoVirtual());
  7805. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  7806. }
  7807. inline ::std::string* ServiceDescriptorProto::unsafe_arena_release_name() {
  7808. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.ServiceDescriptorProto.name)
  7809. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7810. clear_has_name();
  7811. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7812. GetArenaNoVirtual());
  7813. }
  7814. inline void ServiceDescriptorProto::unsafe_arena_set_allocated_name(
  7815. ::std::string* name) {
  7816. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7817. if (name != NULL) {
  7818. set_has_name();
  7819. } else {
  7820. clear_has_name();
  7821. }
  7822. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7823. name, GetArenaNoVirtual());
  7824. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  7825. }
  7826. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  7827. inline int ServiceDescriptorProto::method_size() const {
  7828. return method_.size();
  7829. }
  7830. inline void ServiceDescriptorProto::clear_method() {
  7831. method_.Clear();
  7832. }
  7833. inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
  7834. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
  7835. return method_.Mutable(index);
  7836. }
  7837. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
  7838. ServiceDescriptorProto::mutable_method() {
  7839. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
  7840. return &method_;
  7841. }
  7842. inline const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
  7843. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
  7844. return method_.Get(index);
  7845. }
  7846. inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
  7847. // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
  7848. return method_.Add();
  7849. }
  7850. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
  7851. ServiceDescriptorProto::method() const {
  7852. // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
  7853. return method_;
  7854. }
  7855. // optional .google.protobuf.ServiceOptions options = 3;
  7856. inline bool ServiceDescriptorProto::has_options() const {
  7857. return (_has_bits_[0] & 0x00000002u) != 0;
  7858. }
  7859. inline void ServiceDescriptorProto::set_has_options() {
  7860. _has_bits_[0] |= 0x00000002u;
  7861. }
  7862. inline void ServiceDescriptorProto::clear_has_options() {
  7863. _has_bits_[0] &= ~0x00000002u;
  7864. }
  7865. inline void ServiceDescriptorProto::clear_options() {
  7866. if (options_ != NULL) options_->Clear();
  7867. clear_has_options();
  7868. }
  7869. inline const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::_internal_options() const {
  7870. return *options_;
  7871. }
  7872. inline const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const {
  7873. const ::google::protobuf::ServiceOptions* p = options_;
  7874. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
  7875. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ServiceOptions*>(
  7876. &::google::protobuf::_ServiceOptions_default_instance_);
  7877. }
  7878. inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() {
  7879. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.options)
  7880. clear_has_options();
  7881. ::google::protobuf::ServiceOptions* temp = options_;
  7882. if (GetArenaNoVirtual() != NULL) {
  7883. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  7884. }
  7885. options_ = NULL;
  7886. return temp;
  7887. }
  7888. inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::unsafe_arena_release_options() {
  7889. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.ServiceDescriptorProto.options)
  7890. clear_has_options();
  7891. ::google::protobuf::ServiceOptions* temp = options_;
  7892. options_ = NULL;
  7893. return temp;
  7894. }
  7895. inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() {
  7896. set_has_options();
  7897. if (options_ == NULL) {
  7898. auto* p = CreateMaybeMessage<::google::protobuf::ServiceOptions>(GetArenaNoVirtual());
  7899. options_ = p;
  7900. }
  7901. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
  7902. return options_;
  7903. }
  7904. inline void ServiceDescriptorProto::set_allocated_options(::google::protobuf::ServiceOptions* options) {
  7905. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  7906. if (message_arena == NULL) {
  7907. delete options_;
  7908. }
  7909. if (options) {
  7910. ::google::protobuf::Arena* submessage_arena =
  7911. ::google::protobuf::Arena::GetArena(options);
  7912. if (message_arena != submessage_arena) {
  7913. options = ::google::protobuf::internal::GetOwnedMessage(
  7914. message_arena, options, submessage_arena);
  7915. }
  7916. set_has_options();
  7917. } else {
  7918. clear_has_options();
  7919. }
  7920. options_ = options;
  7921. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  7922. }
  7923. // -------------------------------------------------------------------
  7924. // MethodDescriptorProto
  7925. // optional string name = 1;
  7926. inline bool MethodDescriptorProto::has_name() const {
  7927. return (_has_bits_[0] & 0x00000001u) != 0;
  7928. }
  7929. inline void MethodDescriptorProto::set_has_name() {
  7930. _has_bits_[0] |= 0x00000001u;
  7931. }
  7932. inline void MethodDescriptorProto::clear_has_name() {
  7933. _has_bits_[0] &= ~0x00000001u;
  7934. }
  7935. inline void MethodDescriptorProto::clear_name() {
  7936. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7937. clear_has_name();
  7938. }
  7939. inline const ::std::string& MethodDescriptorProto::name() const {
  7940. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
  7941. return name_.Get();
  7942. }
  7943. inline void MethodDescriptorProto::set_name(const ::std::string& value) {
  7944. set_has_name();
  7945. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7946. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
  7947. }
  7948. #if LANG_CXX11
  7949. inline void MethodDescriptorProto::set_name(::std::string&& value) {
  7950. set_has_name();
  7951. name_.Set(
  7952. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7953. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.name)
  7954. }
  7955. #endif
  7956. inline void MethodDescriptorProto::set_name(const char* value) {
  7957. GOOGLE_DCHECK(value != NULL);
  7958. set_has_name();
  7959. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7960. GetArenaNoVirtual());
  7961. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.name)
  7962. }
  7963. inline void MethodDescriptorProto::set_name(const char* value,
  7964. size_t size) {
  7965. set_has_name();
  7966. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7967. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7968. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.name)
  7969. }
  7970. inline ::std::string* MethodDescriptorProto::mutable_name() {
  7971. set_has_name();
  7972. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
  7973. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7974. }
  7975. inline ::std::string* MethodDescriptorProto::release_name() {
  7976. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.name)
  7977. if (!has_name()) {
  7978. return NULL;
  7979. }
  7980. clear_has_name();
  7981. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7982. }
  7983. inline void MethodDescriptorProto::set_allocated_name(::std::string* name) {
  7984. if (name != NULL) {
  7985. set_has_name();
  7986. } else {
  7987. clear_has_name();
  7988. }
  7989. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  7990. GetArenaNoVirtual());
  7991. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
  7992. }
  7993. inline ::std::string* MethodDescriptorProto::unsafe_arena_release_name() {
  7994. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.MethodDescriptorProto.name)
  7995. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7996. clear_has_name();
  7997. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7998. GetArenaNoVirtual());
  7999. }
  8000. inline void MethodDescriptorProto::unsafe_arena_set_allocated_name(
  8001. ::std::string* name) {
  8002. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8003. if (name != NULL) {
  8004. set_has_name();
  8005. } else {
  8006. clear_has_name();
  8007. }
  8008. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8009. name, GetArenaNoVirtual());
  8010. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.name)
  8011. }
  8012. // optional string input_type = 2;
  8013. inline bool MethodDescriptorProto::has_input_type() const {
  8014. return (_has_bits_[0] & 0x00000002u) != 0;
  8015. }
  8016. inline void MethodDescriptorProto::set_has_input_type() {
  8017. _has_bits_[0] |= 0x00000002u;
  8018. }
  8019. inline void MethodDescriptorProto::clear_has_input_type() {
  8020. _has_bits_[0] &= ~0x00000002u;
  8021. }
  8022. inline void MethodDescriptorProto::clear_input_type() {
  8023. input_type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8024. clear_has_input_type();
  8025. }
  8026. inline const ::std::string& MethodDescriptorProto::input_type() const {
  8027. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
  8028. return input_type_.Get();
  8029. }
  8030. inline void MethodDescriptorProto::set_input_type(const ::std::string& value) {
  8031. set_has_input_type();
  8032. input_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8033. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
  8034. }
  8035. #if LANG_CXX11
  8036. inline void MethodDescriptorProto::set_input_type(::std::string&& value) {
  8037. set_has_input_type();
  8038. input_type_.Set(
  8039. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8040. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.input_type)
  8041. }
  8042. #endif
  8043. inline void MethodDescriptorProto::set_input_type(const char* value) {
  8044. GOOGLE_DCHECK(value != NULL);
  8045. set_has_input_type();
  8046. input_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8047. GetArenaNoVirtual());
  8048. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.input_type)
  8049. }
  8050. inline void MethodDescriptorProto::set_input_type(const char* value,
  8051. size_t size) {
  8052. set_has_input_type();
  8053. input_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8054. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8055. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.input_type)
  8056. }
  8057. inline ::std::string* MethodDescriptorProto::mutable_input_type() {
  8058. set_has_input_type();
  8059. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
  8060. return input_type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8061. }
  8062. inline ::std::string* MethodDescriptorProto::release_input_type() {
  8063. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.input_type)
  8064. if (!has_input_type()) {
  8065. return NULL;
  8066. }
  8067. clear_has_input_type();
  8068. return input_type_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8069. }
  8070. inline void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) {
  8071. if (input_type != NULL) {
  8072. set_has_input_type();
  8073. } else {
  8074. clear_has_input_type();
  8075. }
  8076. input_type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_type,
  8077. GetArenaNoVirtual());
  8078. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  8079. }
  8080. inline ::std::string* MethodDescriptorProto::unsafe_arena_release_input_type() {
  8081. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.MethodDescriptorProto.input_type)
  8082. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8083. clear_has_input_type();
  8084. return input_type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8085. GetArenaNoVirtual());
  8086. }
  8087. inline void MethodDescriptorProto::unsafe_arena_set_allocated_input_type(
  8088. ::std::string* input_type) {
  8089. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8090. if (input_type != NULL) {
  8091. set_has_input_type();
  8092. } else {
  8093. clear_has_input_type();
  8094. }
  8095. input_type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8096. input_type, GetArenaNoVirtual());
  8097. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  8098. }
  8099. // optional string output_type = 3;
  8100. inline bool MethodDescriptorProto::has_output_type() const {
  8101. return (_has_bits_[0] & 0x00000004u) != 0;
  8102. }
  8103. inline void MethodDescriptorProto::set_has_output_type() {
  8104. _has_bits_[0] |= 0x00000004u;
  8105. }
  8106. inline void MethodDescriptorProto::clear_has_output_type() {
  8107. _has_bits_[0] &= ~0x00000004u;
  8108. }
  8109. inline void MethodDescriptorProto::clear_output_type() {
  8110. output_type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8111. clear_has_output_type();
  8112. }
  8113. inline const ::std::string& MethodDescriptorProto::output_type() const {
  8114. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
  8115. return output_type_.Get();
  8116. }
  8117. inline void MethodDescriptorProto::set_output_type(const ::std::string& value) {
  8118. set_has_output_type();
  8119. output_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8120. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
  8121. }
  8122. #if LANG_CXX11
  8123. inline void MethodDescriptorProto::set_output_type(::std::string&& value) {
  8124. set_has_output_type();
  8125. output_type_.Set(
  8126. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8127. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.output_type)
  8128. }
  8129. #endif
  8130. inline void MethodDescriptorProto::set_output_type(const char* value) {
  8131. GOOGLE_DCHECK(value != NULL);
  8132. set_has_output_type();
  8133. output_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8134. GetArenaNoVirtual());
  8135. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.output_type)
  8136. }
  8137. inline void MethodDescriptorProto::set_output_type(const char* value,
  8138. size_t size) {
  8139. set_has_output_type();
  8140. output_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8141. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8142. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.output_type)
  8143. }
  8144. inline ::std::string* MethodDescriptorProto::mutable_output_type() {
  8145. set_has_output_type();
  8146. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
  8147. return output_type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8148. }
  8149. inline ::std::string* MethodDescriptorProto::release_output_type() {
  8150. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.output_type)
  8151. if (!has_output_type()) {
  8152. return NULL;
  8153. }
  8154. clear_has_output_type();
  8155. return output_type_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8156. }
  8157. inline void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type) {
  8158. if (output_type != NULL) {
  8159. set_has_output_type();
  8160. } else {
  8161. clear_has_output_type();
  8162. }
  8163. output_type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_type,
  8164. GetArenaNoVirtual());
  8165. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  8166. }
  8167. inline ::std::string* MethodDescriptorProto::unsafe_arena_release_output_type() {
  8168. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.MethodDescriptorProto.output_type)
  8169. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8170. clear_has_output_type();
  8171. return output_type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8172. GetArenaNoVirtual());
  8173. }
  8174. inline void MethodDescriptorProto::unsafe_arena_set_allocated_output_type(
  8175. ::std::string* output_type) {
  8176. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8177. if (output_type != NULL) {
  8178. set_has_output_type();
  8179. } else {
  8180. clear_has_output_type();
  8181. }
  8182. output_type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8183. output_type, GetArenaNoVirtual());
  8184. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  8185. }
  8186. // optional .google.protobuf.MethodOptions options = 4;
  8187. inline bool MethodDescriptorProto::has_options() const {
  8188. return (_has_bits_[0] & 0x00000008u) != 0;
  8189. }
  8190. inline void MethodDescriptorProto::set_has_options() {
  8191. _has_bits_[0] |= 0x00000008u;
  8192. }
  8193. inline void MethodDescriptorProto::clear_has_options() {
  8194. _has_bits_[0] &= ~0x00000008u;
  8195. }
  8196. inline void MethodDescriptorProto::clear_options() {
  8197. if (options_ != NULL) options_->Clear();
  8198. clear_has_options();
  8199. }
  8200. inline const ::google::protobuf::MethodOptions& MethodDescriptorProto::_internal_options() const {
  8201. return *options_;
  8202. }
  8203. inline const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const {
  8204. const ::google::protobuf::MethodOptions* p = options_;
  8205. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
  8206. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::MethodOptions*>(
  8207. &::google::protobuf::_MethodOptions_default_instance_);
  8208. }
  8209. inline ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() {
  8210. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.options)
  8211. clear_has_options();
  8212. ::google::protobuf::MethodOptions* temp = options_;
  8213. if (GetArenaNoVirtual() != NULL) {
  8214. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  8215. }
  8216. options_ = NULL;
  8217. return temp;
  8218. }
  8219. inline ::google::protobuf::MethodOptions* MethodDescriptorProto::unsafe_arena_release_options() {
  8220. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.MethodDescriptorProto.options)
  8221. clear_has_options();
  8222. ::google::protobuf::MethodOptions* temp = options_;
  8223. options_ = NULL;
  8224. return temp;
  8225. }
  8226. inline ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() {
  8227. set_has_options();
  8228. if (options_ == NULL) {
  8229. auto* p = CreateMaybeMessage<::google::protobuf::MethodOptions>(GetArenaNoVirtual());
  8230. options_ = p;
  8231. }
  8232. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
  8233. return options_;
  8234. }
  8235. inline void MethodDescriptorProto::set_allocated_options(::google::protobuf::MethodOptions* options) {
  8236. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  8237. if (message_arena == NULL) {
  8238. delete options_;
  8239. }
  8240. if (options) {
  8241. ::google::protobuf::Arena* submessage_arena =
  8242. ::google::protobuf::Arena::GetArena(options);
  8243. if (message_arena != submessage_arena) {
  8244. options = ::google::protobuf::internal::GetOwnedMessage(
  8245. message_arena, options, submessage_arena);
  8246. }
  8247. set_has_options();
  8248. } else {
  8249. clear_has_options();
  8250. }
  8251. options_ = options;
  8252. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
  8253. }
  8254. // optional bool client_streaming = 5 [default = false];
  8255. inline bool MethodDescriptorProto::has_client_streaming() const {
  8256. return (_has_bits_[0] & 0x00000010u) != 0;
  8257. }
  8258. inline void MethodDescriptorProto::set_has_client_streaming() {
  8259. _has_bits_[0] |= 0x00000010u;
  8260. }
  8261. inline void MethodDescriptorProto::clear_has_client_streaming() {
  8262. _has_bits_[0] &= ~0x00000010u;
  8263. }
  8264. inline void MethodDescriptorProto::clear_client_streaming() {
  8265. client_streaming_ = false;
  8266. clear_has_client_streaming();
  8267. }
  8268. inline bool MethodDescriptorProto::client_streaming() const {
  8269. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming)
  8270. return client_streaming_;
  8271. }
  8272. inline void MethodDescriptorProto::set_client_streaming(bool value) {
  8273. set_has_client_streaming();
  8274. client_streaming_ = value;
  8275. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming)
  8276. }
  8277. // optional bool server_streaming = 6 [default = false];
  8278. inline bool MethodDescriptorProto::has_server_streaming() const {
  8279. return (_has_bits_[0] & 0x00000020u) != 0;
  8280. }
  8281. inline void MethodDescriptorProto::set_has_server_streaming() {
  8282. _has_bits_[0] |= 0x00000020u;
  8283. }
  8284. inline void MethodDescriptorProto::clear_has_server_streaming() {
  8285. _has_bits_[0] &= ~0x00000020u;
  8286. }
  8287. inline void MethodDescriptorProto::clear_server_streaming() {
  8288. server_streaming_ = false;
  8289. clear_has_server_streaming();
  8290. }
  8291. inline bool MethodDescriptorProto::server_streaming() const {
  8292. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming)
  8293. return server_streaming_;
  8294. }
  8295. inline void MethodDescriptorProto::set_server_streaming(bool value) {
  8296. set_has_server_streaming();
  8297. server_streaming_ = value;
  8298. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming)
  8299. }
  8300. // -------------------------------------------------------------------
  8301. // FileOptions
  8302. // optional string java_package = 1;
  8303. inline bool FileOptions::has_java_package() const {
  8304. return (_has_bits_[0] & 0x00000001u) != 0;
  8305. }
  8306. inline void FileOptions::set_has_java_package() {
  8307. _has_bits_[0] |= 0x00000001u;
  8308. }
  8309. inline void FileOptions::clear_has_java_package() {
  8310. _has_bits_[0] &= ~0x00000001u;
  8311. }
  8312. inline void FileOptions::clear_java_package() {
  8313. java_package_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8314. clear_has_java_package();
  8315. }
  8316. inline const ::std::string& FileOptions::java_package() const {
  8317. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
  8318. return java_package_.Get();
  8319. }
  8320. inline void FileOptions::set_java_package(const ::std::string& value) {
  8321. set_has_java_package();
  8322. java_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8323. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
  8324. }
  8325. #if LANG_CXX11
  8326. inline void FileOptions::set_java_package(::std::string&& value) {
  8327. set_has_java_package();
  8328. java_package_.Set(
  8329. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8330. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.java_package)
  8331. }
  8332. #endif
  8333. inline void FileOptions::set_java_package(const char* value) {
  8334. GOOGLE_DCHECK(value != NULL);
  8335. set_has_java_package();
  8336. java_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8337. GetArenaNoVirtual());
  8338. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_package)
  8339. }
  8340. inline void FileOptions::set_java_package(const char* value,
  8341. size_t size) {
  8342. set_has_java_package();
  8343. java_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8344. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8345. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_package)
  8346. }
  8347. inline ::std::string* FileOptions::mutable_java_package() {
  8348. set_has_java_package();
  8349. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
  8350. return java_package_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8351. }
  8352. inline ::std::string* FileOptions::release_java_package() {
  8353. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_package)
  8354. if (!has_java_package()) {
  8355. return NULL;
  8356. }
  8357. clear_has_java_package();
  8358. return java_package_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8359. }
  8360. inline void FileOptions::set_allocated_java_package(::std::string* java_package) {
  8361. if (java_package != NULL) {
  8362. set_has_java_package();
  8363. } else {
  8364. clear_has_java_package();
  8365. }
  8366. java_package_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_package,
  8367. GetArenaNoVirtual());
  8368. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
  8369. }
  8370. inline ::std::string* FileOptions::unsafe_arena_release_java_package() {
  8371. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.java_package)
  8372. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8373. clear_has_java_package();
  8374. return java_package_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8375. GetArenaNoVirtual());
  8376. }
  8377. inline void FileOptions::unsafe_arena_set_allocated_java_package(
  8378. ::std::string* java_package) {
  8379. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8380. if (java_package != NULL) {
  8381. set_has_java_package();
  8382. } else {
  8383. clear_has_java_package();
  8384. }
  8385. java_package_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8386. java_package, GetArenaNoVirtual());
  8387. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.java_package)
  8388. }
  8389. // optional string java_outer_classname = 8;
  8390. inline bool FileOptions::has_java_outer_classname() const {
  8391. return (_has_bits_[0] & 0x00000002u) != 0;
  8392. }
  8393. inline void FileOptions::set_has_java_outer_classname() {
  8394. _has_bits_[0] |= 0x00000002u;
  8395. }
  8396. inline void FileOptions::clear_has_java_outer_classname() {
  8397. _has_bits_[0] &= ~0x00000002u;
  8398. }
  8399. inline void FileOptions::clear_java_outer_classname() {
  8400. java_outer_classname_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8401. clear_has_java_outer_classname();
  8402. }
  8403. inline const ::std::string& FileOptions::java_outer_classname() const {
  8404. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
  8405. return java_outer_classname_.Get();
  8406. }
  8407. inline void FileOptions::set_java_outer_classname(const ::std::string& value) {
  8408. set_has_java_outer_classname();
  8409. java_outer_classname_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8410. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
  8411. }
  8412. #if LANG_CXX11
  8413. inline void FileOptions::set_java_outer_classname(::std::string&& value) {
  8414. set_has_java_outer_classname();
  8415. java_outer_classname_.Set(
  8416. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8417. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.java_outer_classname)
  8418. }
  8419. #endif
  8420. inline void FileOptions::set_java_outer_classname(const char* value) {
  8421. GOOGLE_DCHECK(value != NULL);
  8422. set_has_java_outer_classname();
  8423. java_outer_classname_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8424. GetArenaNoVirtual());
  8425. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_outer_classname)
  8426. }
  8427. inline void FileOptions::set_java_outer_classname(const char* value,
  8428. size_t size) {
  8429. set_has_java_outer_classname();
  8430. java_outer_classname_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8431. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8432. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_outer_classname)
  8433. }
  8434. inline ::std::string* FileOptions::mutable_java_outer_classname() {
  8435. set_has_java_outer_classname();
  8436. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
  8437. return java_outer_classname_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8438. }
  8439. inline ::std::string* FileOptions::release_java_outer_classname() {
  8440. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_outer_classname)
  8441. if (!has_java_outer_classname()) {
  8442. return NULL;
  8443. }
  8444. clear_has_java_outer_classname();
  8445. return java_outer_classname_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8446. }
  8447. inline void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_classname) {
  8448. if (java_outer_classname != NULL) {
  8449. set_has_java_outer_classname();
  8450. } else {
  8451. clear_has_java_outer_classname();
  8452. }
  8453. java_outer_classname_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_outer_classname,
  8454. GetArenaNoVirtual());
  8455. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  8456. }
  8457. inline ::std::string* FileOptions::unsafe_arena_release_java_outer_classname() {
  8458. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.java_outer_classname)
  8459. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8460. clear_has_java_outer_classname();
  8461. return java_outer_classname_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8462. GetArenaNoVirtual());
  8463. }
  8464. inline void FileOptions::unsafe_arena_set_allocated_java_outer_classname(
  8465. ::std::string* java_outer_classname) {
  8466. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8467. if (java_outer_classname != NULL) {
  8468. set_has_java_outer_classname();
  8469. } else {
  8470. clear_has_java_outer_classname();
  8471. }
  8472. java_outer_classname_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8473. java_outer_classname, GetArenaNoVirtual());
  8474. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  8475. }
  8476. // optional bool java_multiple_files = 10 [default = false];
  8477. inline bool FileOptions::has_java_multiple_files() const {
  8478. return (_has_bits_[0] & 0x00000400u) != 0;
  8479. }
  8480. inline void FileOptions::set_has_java_multiple_files() {
  8481. _has_bits_[0] |= 0x00000400u;
  8482. }
  8483. inline void FileOptions::clear_has_java_multiple_files() {
  8484. _has_bits_[0] &= ~0x00000400u;
  8485. }
  8486. inline void FileOptions::clear_java_multiple_files() {
  8487. java_multiple_files_ = false;
  8488. clear_has_java_multiple_files();
  8489. }
  8490. inline bool FileOptions::java_multiple_files() const {
  8491. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
  8492. return java_multiple_files_;
  8493. }
  8494. inline void FileOptions::set_java_multiple_files(bool value) {
  8495. set_has_java_multiple_files();
  8496. java_multiple_files_ = value;
  8497. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
  8498. }
  8499. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  8500. inline bool FileOptions::has_java_generate_equals_and_hash() const {
  8501. return (_has_bits_[0] & 0x00000800u) != 0;
  8502. }
  8503. inline void FileOptions::set_has_java_generate_equals_and_hash() {
  8504. _has_bits_[0] |= 0x00000800u;
  8505. }
  8506. inline void FileOptions::clear_has_java_generate_equals_and_hash() {
  8507. _has_bits_[0] &= ~0x00000800u;
  8508. }
  8509. inline void FileOptions::clear_java_generate_equals_and_hash() {
  8510. java_generate_equals_and_hash_ = false;
  8511. clear_has_java_generate_equals_and_hash();
  8512. }
  8513. inline bool FileOptions::java_generate_equals_and_hash() const {
  8514. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
  8515. return java_generate_equals_and_hash_;
  8516. }
  8517. inline void FileOptions::set_java_generate_equals_and_hash(bool value) {
  8518. set_has_java_generate_equals_and_hash();
  8519. java_generate_equals_and_hash_ = value;
  8520. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
  8521. }
  8522. // optional bool java_string_check_utf8 = 27 [default = false];
  8523. inline bool FileOptions::has_java_string_check_utf8() const {
  8524. return (_has_bits_[0] & 0x00001000u) != 0;
  8525. }
  8526. inline void FileOptions::set_has_java_string_check_utf8() {
  8527. _has_bits_[0] |= 0x00001000u;
  8528. }
  8529. inline void FileOptions::clear_has_java_string_check_utf8() {
  8530. _has_bits_[0] &= ~0x00001000u;
  8531. }
  8532. inline void FileOptions::clear_java_string_check_utf8() {
  8533. java_string_check_utf8_ = false;
  8534. clear_has_java_string_check_utf8();
  8535. }
  8536. inline bool FileOptions::java_string_check_utf8() const {
  8537. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
  8538. return java_string_check_utf8_;
  8539. }
  8540. inline void FileOptions::set_java_string_check_utf8(bool value) {
  8541. set_has_java_string_check_utf8();
  8542. java_string_check_utf8_ = value;
  8543. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
  8544. }
  8545. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  8546. inline bool FileOptions::has_optimize_for() const {
  8547. return (_has_bits_[0] & 0x00080000u) != 0;
  8548. }
  8549. inline void FileOptions::set_has_optimize_for() {
  8550. _has_bits_[0] |= 0x00080000u;
  8551. }
  8552. inline void FileOptions::clear_has_optimize_for() {
  8553. _has_bits_[0] &= ~0x00080000u;
  8554. }
  8555. inline void FileOptions::clear_optimize_for() {
  8556. optimize_for_ = 1;
  8557. clear_has_optimize_for();
  8558. }
  8559. inline ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const {
  8560. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
  8561. return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_);
  8562. }
  8563. inline void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) {
  8564. assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value));
  8565. set_has_optimize_for();
  8566. optimize_for_ = value;
  8567. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
  8568. }
  8569. // optional string go_package = 11;
  8570. inline bool FileOptions::has_go_package() const {
  8571. return (_has_bits_[0] & 0x00000004u) != 0;
  8572. }
  8573. inline void FileOptions::set_has_go_package() {
  8574. _has_bits_[0] |= 0x00000004u;
  8575. }
  8576. inline void FileOptions::clear_has_go_package() {
  8577. _has_bits_[0] &= ~0x00000004u;
  8578. }
  8579. inline void FileOptions::clear_go_package() {
  8580. go_package_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8581. clear_has_go_package();
  8582. }
  8583. inline const ::std::string& FileOptions::go_package() const {
  8584. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
  8585. return go_package_.Get();
  8586. }
  8587. inline void FileOptions::set_go_package(const ::std::string& value) {
  8588. set_has_go_package();
  8589. go_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8590. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
  8591. }
  8592. #if LANG_CXX11
  8593. inline void FileOptions::set_go_package(::std::string&& value) {
  8594. set_has_go_package();
  8595. go_package_.Set(
  8596. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8597. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.go_package)
  8598. }
  8599. #endif
  8600. inline void FileOptions::set_go_package(const char* value) {
  8601. GOOGLE_DCHECK(value != NULL);
  8602. set_has_go_package();
  8603. go_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8604. GetArenaNoVirtual());
  8605. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_package)
  8606. }
  8607. inline void FileOptions::set_go_package(const char* value,
  8608. size_t size) {
  8609. set_has_go_package();
  8610. go_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8611. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8612. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_package)
  8613. }
  8614. inline ::std::string* FileOptions::mutable_go_package() {
  8615. set_has_go_package();
  8616. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
  8617. return go_package_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8618. }
  8619. inline ::std::string* FileOptions::release_go_package() {
  8620. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_package)
  8621. if (!has_go_package()) {
  8622. return NULL;
  8623. }
  8624. clear_has_go_package();
  8625. return go_package_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8626. }
  8627. inline void FileOptions::set_allocated_go_package(::std::string* go_package) {
  8628. if (go_package != NULL) {
  8629. set_has_go_package();
  8630. } else {
  8631. clear_has_go_package();
  8632. }
  8633. go_package_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), go_package,
  8634. GetArenaNoVirtual());
  8635. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
  8636. }
  8637. inline ::std::string* FileOptions::unsafe_arena_release_go_package() {
  8638. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.go_package)
  8639. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8640. clear_has_go_package();
  8641. return go_package_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8642. GetArenaNoVirtual());
  8643. }
  8644. inline void FileOptions::unsafe_arena_set_allocated_go_package(
  8645. ::std::string* go_package) {
  8646. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8647. if (go_package != NULL) {
  8648. set_has_go_package();
  8649. } else {
  8650. clear_has_go_package();
  8651. }
  8652. go_package_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8653. go_package, GetArenaNoVirtual());
  8654. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.go_package)
  8655. }
  8656. // optional bool cc_generic_services = 16 [default = false];
  8657. inline bool FileOptions::has_cc_generic_services() const {
  8658. return (_has_bits_[0] & 0x00002000u) != 0;
  8659. }
  8660. inline void FileOptions::set_has_cc_generic_services() {
  8661. _has_bits_[0] |= 0x00002000u;
  8662. }
  8663. inline void FileOptions::clear_has_cc_generic_services() {
  8664. _has_bits_[0] &= ~0x00002000u;
  8665. }
  8666. inline void FileOptions::clear_cc_generic_services() {
  8667. cc_generic_services_ = false;
  8668. clear_has_cc_generic_services();
  8669. }
  8670. inline bool FileOptions::cc_generic_services() const {
  8671. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
  8672. return cc_generic_services_;
  8673. }
  8674. inline void FileOptions::set_cc_generic_services(bool value) {
  8675. set_has_cc_generic_services();
  8676. cc_generic_services_ = value;
  8677. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
  8678. }
  8679. // optional bool java_generic_services = 17 [default = false];
  8680. inline bool FileOptions::has_java_generic_services() const {
  8681. return (_has_bits_[0] & 0x00004000u) != 0;
  8682. }
  8683. inline void FileOptions::set_has_java_generic_services() {
  8684. _has_bits_[0] |= 0x00004000u;
  8685. }
  8686. inline void FileOptions::clear_has_java_generic_services() {
  8687. _has_bits_[0] &= ~0x00004000u;
  8688. }
  8689. inline void FileOptions::clear_java_generic_services() {
  8690. java_generic_services_ = false;
  8691. clear_has_java_generic_services();
  8692. }
  8693. inline bool FileOptions::java_generic_services() const {
  8694. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
  8695. return java_generic_services_;
  8696. }
  8697. inline void FileOptions::set_java_generic_services(bool value) {
  8698. set_has_java_generic_services();
  8699. java_generic_services_ = value;
  8700. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
  8701. }
  8702. // optional bool py_generic_services = 18 [default = false];
  8703. inline bool FileOptions::has_py_generic_services() const {
  8704. return (_has_bits_[0] & 0x00008000u) != 0;
  8705. }
  8706. inline void FileOptions::set_has_py_generic_services() {
  8707. _has_bits_[0] |= 0x00008000u;
  8708. }
  8709. inline void FileOptions::clear_has_py_generic_services() {
  8710. _has_bits_[0] &= ~0x00008000u;
  8711. }
  8712. inline void FileOptions::clear_py_generic_services() {
  8713. py_generic_services_ = false;
  8714. clear_has_py_generic_services();
  8715. }
  8716. inline bool FileOptions::py_generic_services() const {
  8717. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
  8718. return py_generic_services_;
  8719. }
  8720. inline void FileOptions::set_py_generic_services(bool value) {
  8721. set_has_py_generic_services();
  8722. py_generic_services_ = value;
  8723. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
  8724. }
  8725. // optional bool php_generic_services = 42 [default = false];
  8726. inline bool FileOptions::has_php_generic_services() const {
  8727. return (_has_bits_[0] & 0x00010000u) != 0;
  8728. }
  8729. inline void FileOptions::set_has_php_generic_services() {
  8730. _has_bits_[0] |= 0x00010000u;
  8731. }
  8732. inline void FileOptions::clear_has_php_generic_services() {
  8733. _has_bits_[0] &= ~0x00010000u;
  8734. }
  8735. inline void FileOptions::clear_php_generic_services() {
  8736. php_generic_services_ = false;
  8737. clear_has_php_generic_services();
  8738. }
  8739. inline bool FileOptions::php_generic_services() const {
  8740. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_generic_services)
  8741. return php_generic_services_;
  8742. }
  8743. inline void FileOptions::set_php_generic_services(bool value) {
  8744. set_has_php_generic_services();
  8745. php_generic_services_ = value;
  8746. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_generic_services)
  8747. }
  8748. // optional bool deprecated = 23 [default = false];
  8749. inline bool FileOptions::has_deprecated() const {
  8750. return (_has_bits_[0] & 0x00020000u) != 0;
  8751. }
  8752. inline void FileOptions::set_has_deprecated() {
  8753. _has_bits_[0] |= 0x00020000u;
  8754. }
  8755. inline void FileOptions::clear_has_deprecated() {
  8756. _has_bits_[0] &= ~0x00020000u;
  8757. }
  8758. inline void FileOptions::clear_deprecated() {
  8759. deprecated_ = false;
  8760. clear_has_deprecated();
  8761. }
  8762. inline bool FileOptions::deprecated() const {
  8763. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
  8764. return deprecated_;
  8765. }
  8766. inline void FileOptions::set_deprecated(bool value) {
  8767. set_has_deprecated();
  8768. deprecated_ = value;
  8769. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
  8770. }
  8771. // optional bool cc_enable_arenas = 31 [default = false];
  8772. inline bool FileOptions::has_cc_enable_arenas() const {
  8773. return (_has_bits_[0] & 0x00040000u) != 0;
  8774. }
  8775. inline void FileOptions::set_has_cc_enable_arenas() {
  8776. _has_bits_[0] |= 0x00040000u;
  8777. }
  8778. inline void FileOptions::clear_has_cc_enable_arenas() {
  8779. _has_bits_[0] &= ~0x00040000u;
  8780. }
  8781. inline void FileOptions::clear_cc_enable_arenas() {
  8782. cc_enable_arenas_ = false;
  8783. clear_has_cc_enable_arenas();
  8784. }
  8785. inline bool FileOptions::cc_enable_arenas() const {
  8786. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas)
  8787. return cc_enable_arenas_;
  8788. }
  8789. inline void FileOptions::set_cc_enable_arenas(bool value) {
  8790. set_has_cc_enable_arenas();
  8791. cc_enable_arenas_ = value;
  8792. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas)
  8793. }
  8794. // optional string objc_class_prefix = 36;
  8795. inline bool FileOptions::has_objc_class_prefix() const {
  8796. return (_has_bits_[0] & 0x00000008u) != 0;
  8797. }
  8798. inline void FileOptions::set_has_objc_class_prefix() {
  8799. _has_bits_[0] |= 0x00000008u;
  8800. }
  8801. inline void FileOptions::clear_has_objc_class_prefix() {
  8802. _has_bits_[0] &= ~0x00000008u;
  8803. }
  8804. inline void FileOptions::clear_objc_class_prefix() {
  8805. objc_class_prefix_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8806. clear_has_objc_class_prefix();
  8807. }
  8808. inline const ::std::string& FileOptions::objc_class_prefix() const {
  8809. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix)
  8810. return objc_class_prefix_.Get();
  8811. }
  8812. inline void FileOptions::set_objc_class_prefix(const ::std::string& value) {
  8813. set_has_objc_class_prefix();
  8814. objc_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8815. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix)
  8816. }
  8817. #if LANG_CXX11
  8818. inline void FileOptions::set_objc_class_prefix(::std::string&& value) {
  8819. set_has_objc_class_prefix();
  8820. objc_class_prefix_.Set(
  8821. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8822. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.objc_class_prefix)
  8823. }
  8824. #endif
  8825. inline void FileOptions::set_objc_class_prefix(const char* value) {
  8826. GOOGLE_DCHECK(value != NULL);
  8827. set_has_objc_class_prefix();
  8828. objc_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8829. GetArenaNoVirtual());
  8830. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_class_prefix)
  8831. }
  8832. inline void FileOptions::set_objc_class_prefix(const char* value,
  8833. size_t size) {
  8834. set_has_objc_class_prefix();
  8835. objc_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8836. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8837. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc_class_prefix)
  8838. }
  8839. inline ::std::string* FileOptions::mutable_objc_class_prefix() {
  8840. set_has_objc_class_prefix();
  8841. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix)
  8842. return objc_class_prefix_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8843. }
  8844. inline ::std::string* FileOptions::release_objc_class_prefix() {
  8845. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_class_prefix)
  8846. if (!has_objc_class_prefix()) {
  8847. return NULL;
  8848. }
  8849. clear_has_objc_class_prefix();
  8850. return objc_class_prefix_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8851. }
  8852. inline void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_prefix) {
  8853. if (objc_class_prefix != NULL) {
  8854. set_has_objc_class_prefix();
  8855. } else {
  8856. clear_has_objc_class_prefix();
  8857. }
  8858. objc_class_prefix_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), objc_class_prefix,
  8859. GetArenaNoVirtual());
  8860. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
  8861. }
  8862. inline ::std::string* FileOptions::unsafe_arena_release_objc_class_prefix() {
  8863. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.objc_class_prefix)
  8864. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8865. clear_has_objc_class_prefix();
  8866. return objc_class_prefix_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8867. GetArenaNoVirtual());
  8868. }
  8869. inline void FileOptions::unsafe_arena_set_allocated_objc_class_prefix(
  8870. ::std::string* objc_class_prefix) {
  8871. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8872. if (objc_class_prefix != NULL) {
  8873. set_has_objc_class_prefix();
  8874. } else {
  8875. clear_has_objc_class_prefix();
  8876. }
  8877. objc_class_prefix_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8878. objc_class_prefix, GetArenaNoVirtual());
  8879. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
  8880. }
  8881. // optional string csharp_namespace = 37;
  8882. inline bool FileOptions::has_csharp_namespace() const {
  8883. return (_has_bits_[0] & 0x00000010u) != 0;
  8884. }
  8885. inline void FileOptions::set_has_csharp_namespace() {
  8886. _has_bits_[0] |= 0x00000010u;
  8887. }
  8888. inline void FileOptions::clear_has_csharp_namespace() {
  8889. _has_bits_[0] &= ~0x00000010u;
  8890. }
  8891. inline void FileOptions::clear_csharp_namespace() {
  8892. csharp_namespace_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8893. clear_has_csharp_namespace();
  8894. }
  8895. inline const ::std::string& FileOptions::csharp_namespace() const {
  8896. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace)
  8897. return csharp_namespace_.Get();
  8898. }
  8899. inline void FileOptions::set_csharp_namespace(const ::std::string& value) {
  8900. set_has_csharp_namespace();
  8901. csharp_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8902. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace)
  8903. }
  8904. #if LANG_CXX11
  8905. inline void FileOptions::set_csharp_namespace(::std::string&& value) {
  8906. set_has_csharp_namespace();
  8907. csharp_namespace_.Set(
  8908. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8909. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.csharp_namespace)
  8910. }
  8911. #endif
  8912. inline void FileOptions::set_csharp_namespace(const char* value) {
  8913. GOOGLE_DCHECK(value != NULL);
  8914. set_has_csharp_namespace();
  8915. csharp_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8916. GetArenaNoVirtual());
  8917. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_namespace)
  8918. }
  8919. inline void FileOptions::set_csharp_namespace(const char* value,
  8920. size_t size) {
  8921. set_has_csharp_namespace();
  8922. csharp_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8923. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8924. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csharp_namespace)
  8925. }
  8926. inline ::std::string* FileOptions::mutable_csharp_namespace() {
  8927. set_has_csharp_namespace();
  8928. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace)
  8929. return csharp_namespace_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8930. }
  8931. inline ::std::string* FileOptions::release_csharp_namespace() {
  8932. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_namespace)
  8933. if (!has_csharp_namespace()) {
  8934. return NULL;
  8935. }
  8936. clear_has_csharp_namespace();
  8937. return csharp_namespace_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8938. }
  8939. inline void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace) {
  8940. if (csharp_namespace != NULL) {
  8941. set_has_csharp_namespace();
  8942. } else {
  8943. clear_has_csharp_namespace();
  8944. }
  8945. csharp_namespace_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), csharp_namespace,
  8946. GetArenaNoVirtual());
  8947. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
  8948. }
  8949. inline ::std::string* FileOptions::unsafe_arena_release_csharp_namespace() {
  8950. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.csharp_namespace)
  8951. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8952. clear_has_csharp_namespace();
  8953. return csharp_namespace_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8954. GetArenaNoVirtual());
  8955. }
  8956. inline void FileOptions::unsafe_arena_set_allocated_csharp_namespace(
  8957. ::std::string* csharp_namespace) {
  8958. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8959. if (csharp_namespace != NULL) {
  8960. set_has_csharp_namespace();
  8961. } else {
  8962. clear_has_csharp_namespace();
  8963. }
  8964. csharp_namespace_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8965. csharp_namespace, GetArenaNoVirtual());
  8966. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.csharp_namespace)
  8967. }
  8968. // optional string swift_prefix = 39;
  8969. inline bool FileOptions::has_swift_prefix() const {
  8970. return (_has_bits_[0] & 0x00000020u) != 0;
  8971. }
  8972. inline void FileOptions::set_has_swift_prefix() {
  8973. _has_bits_[0] |= 0x00000020u;
  8974. }
  8975. inline void FileOptions::clear_has_swift_prefix() {
  8976. _has_bits_[0] &= ~0x00000020u;
  8977. }
  8978. inline void FileOptions::clear_swift_prefix() {
  8979. swift_prefix_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8980. clear_has_swift_prefix();
  8981. }
  8982. inline const ::std::string& FileOptions::swift_prefix() const {
  8983. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.swift_prefix)
  8984. return swift_prefix_.Get();
  8985. }
  8986. inline void FileOptions::set_swift_prefix(const ::std::string& value) {
  8987. set_has_swift_prefix();
  8988. swift_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8989. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.swift_prefix)
  8990. }
  8991. #if LANG_CXX11
  8992. inline void FileOptions::set_swift_prefix(::std::string&& value) {
  8993. set_has_swift_prefix();
  8994. swift_prefix_.Set(
  8995. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8996. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.swift_prefix)
  8997. }
  8998. #endif
  8999. inline void FileOptions::set_swift_prefix(const char* value) {
  9000. GOOGLE_DCHECK(value != NULL);
  9001. set_has_swift_prefix();
  9002. swift_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9003. GetArenaNoVirtual());
  9004. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.swift_prefix)
  9005. }
  9006. inline void FileOptions::set_swift_prefix(const char* value,
  9007. size_t size) {
  9008. set_has_swift_prefix();
  9009. swift_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9010. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9011. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.swift_prefix)
  9012. }
  9013. inline ::std::string* FileOptions::mutable_swift_prefix() {
  9014. set_has_swift_prefix();
  9015. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.swift_prefix)
  9016. return swift_prefix_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9017. }
  9018. inline ::std::string* FileOptions::release_swift_prefix() {
  9019. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.swift_prefix)
  9020. if (!has_swift_prefix()) {
  9021. return NULL;
  9022. }
  9023. clear_has_swift_prefix();
  9024. return swift_prefix_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9025. }
  9026. inline void FileOptions::set_allocated_swift_prefix(::std::string* swift_prefix) {
  9027. if (swift_prefix != NULL) {
  9028. set_has_swift_prefix();
  9029. } else {
  9030. clear_has_swift_prefix();
  9031. }
  9032. swift_prefix_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), swift_prefix,
  9033. GetArenaNoVirtual());
  9034. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.swift_prefix)
  9035. }
  9036. inline ::std::string* FileOptions::unsafe_arena_release_swift_prefix() {
  9037. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.swift_prefix)
  9038. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9039. clear_has_swift_prefix();
  9040. return swift_prefix_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9041. GetArenaNoVirtual());
  9042. }
  9043. inline void FileOptions::unsafe_arena_set_allocated_swift_prefix(
  9044. ::std::string* swift_prefix) {
  9045. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9046. if (swift_prefix != NULL) {
  9047. set_has_swift_prefix();
  9048. } else {
  9049. clear_has_swift_prefix();
  9050. }
  9051. swift_prefix_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9052. swift_prefix, GetArenaNoVirtual());
  9053. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.swift_prefix)
  9054. }
  9055. // optional string php_class_prefix = 40;
  9056. inline bool FileOptions::has_php_class_prefix() const {
  9057. return (_has_bits_[0] & 0x00000040u) != 0;
  9058. }
  9059. inline void FileOptions::set_has_php_class_prefix() {
  9060. _has_bits_[0] |= 0x00000040u;
  9061. }
  9062. inline void FileOptions::clear_has_php_class_prefix() {
  9063. _has_bits_[0] &= ~0x00000040u;
  9064. }
  9065. inline void FileOptions::clear_php_class_prefix() {
  9066. php_class_prefix_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9067. clear_has_php_class_prefix();
  9068. }
  9069. inline const ::std::string& FileOptions::php_class_prefix() const {
  9070. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_class_prefix)
  9071. return php_class_prefix_.Get();
  9072. }
  9073. inline void FileOptions::set_php_class_prefix(const ::std::string& value) {
  9074. set_has_php_class_prefix();
  9075. php_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9076. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_class_prefix)
  9077. }
  9078. #if LANG_CXX11
  9079. inline void FileOptions::set_php_class_prefix(::std::string&& value) {
  9080. set_has_php_class_prefix();
  9081. php_class_prefix_.Set(
  9082. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9083. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.php_class_prefix)
  9084. }
  9085. #endif
  9086. inline void FileOptions::set_php_class_prefix(const char* value) {
  9087. GOOGLE_DCHECK(value != NULL);
  9088. set_has_php_class_prefix();
  9089. php_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9090. GetArenaNoVirtual());
  9091. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.php_class_prefix)
  9092. }
  9093. inline void FileOptions::set_php_class_prefix(const char* value,
  9094. size_t size) {
  9095. set_has_php_class_prefix();
  9096. php_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9097. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9098. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.php_class_prefix)
  9099. }
  9100. inline ::std::string* FileOptions::mutable_php_class_prefix() {
  9101. set_has_php_class_prefix();
  9102. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_class_prefix)
  9103. return php_class_prefix_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9104. }
  9105. inline ::std::string* FileOptions::release_php_class_prefix() {
  9106. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_class_prefix)
  9107. if (!has_php_class_prefix()) {
  9108. return NULL;
  9109. }
  9110. clear_has_php_class_prefix();
  9111. return php_class_prefix_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9112. }
  9113. inline void FileOptions::set_allocated_php_class_prefix(::std::string* php_class_prefix) {
  9114. if (php_class_prefix != NULL) {
  9115. set_has_php_class_prefix();
  9116. } else {
  9117. clear_has_php_class_prefix();
  9118. }
  9119. php_class_prefix_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), php_class_prefix,
  9120. GetArenaNoVirtual());
  9121. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_class_prefix)
  9122. }
  9123. inline ::std::string* FileOptions::unsafe_arena_release_php_class_prefix() {
  9124. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.php_class_prefix)
  9125. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9126. clear_has_php_class_prefix();
  9127. return php_class_prefix_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9128. GetArenaNoVirtual());
  9129. }
  9130. inline void FileOptions::unsafe_arena_set_allocated_php_class_prefix(
  9131. ::std::string* php_class_prefix) {
  9132. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9133. if (php_class_prefix != NULL) {
  9134. set_has_php_class_prefix();
  9135. } else {
  9136. clear_has_php_class_prefix();
  9137. }
  9138. php_class_prefix_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9139. php_class_prefix, GetArenaNoVirtual());
  9140. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_class_prefix)
  9141. }
  9142. // optional string php_namespace = 41;
  9143. inline bool FileOptions::has_php_namespace() const {
  9144. return (_has_bits_[0] & 0x00000080u) != 0;
  9145. }
  9146. inline void FileOptions::set_has_php_namespace() {
  9147. _has_bits_[0] |= 0x00000080u;
  9148. }
  9149. inline void FileOptions::clear_has_php_namespace() {
  9150. _has_bits_[0] &= ~0x00000080u;
  9151. }
  9152. inline void FileOptions::clear_php_namespace() {
  9153. php_namespace_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9154. clear_has_php_namespace();
  9155. }
  9156. inline const ::std::string& FileOptions::php_namespace() const {
  9157. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_namespace)
  9158. return php_namespace_.Get();
  9159. }
  9160. inline void FileOptions::set_php_namespace(const ::std::string& value) {
  9161. set_has_php_namespace();
  9162. php_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9163. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_namespace)
  9164. }
  9165. #if LANG_CXX11
  9166. inline void FileOptions::set_php_namespace(::std::string&& value) {
  9167. set_has_php_namespace();
  9168. php_namespace_.Set(
  9169. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9170. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.php_namespace)
  9171. }
  9172. #endif
  9173. inline void FileOptions::set_php_namespace(const char* value) {
  9174. GOOGLE_DCHECK(value != NULL);
  9175. set_has_php_namespace();
  9176. php_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9177. GetArenaNoVirtual());
  9178. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.php_namespace)
  9179. }
  9180. inline void FileOptions::set_php_namespace(const char* value,
  9181. size_t size) {
  9182. set_has_php_namespace();
  9183. php_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9184. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9185. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.php_namespace)
  9186. }
  9187. inline ::std::string* FileOptions::mutable_php_namespace() {
  9188. set_has_php_namespace();
  9189. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_namespace)
  9190. return php_namespace_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9191. }
  9192. inline ::std::string* FileOptions::release_php_namespace() {
  9193. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_namespace)
  9194. if (!has_php_namespace()) {
  9195. return NULL;
  9196. }
  9197. clear_has_php_namespace();
  9198. return php_namespace_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9199. }
  9200. inline void FileOptions::set_allocated_php_namespace(::std::string* php_namespace) {
  9201. if (php_namespace != NULL) {
  9202. set_has_php_namespace();
  9203. } else {
  9204. clear_has_php_namespace();
  9205. }
  9206. php_namespace_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), php_namespace,
  9207. GetArenaNoVirtual());
  9208. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_namespace)
  9209. }
  9210. inline ::std::string* FileOptions::unsafe_arena_release_php_namespace() {
  9211. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.php_namespace)
  9212. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9213. clear_has_php_namespace();
  9214. return php_namespace_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9215. GetArenaNoVirtual());
  9216. }
  9217. inline void FileOptions::unsafe_arena_set_allocated_php_namespace(
  9218. ::std::string* php_namespace) {
  9219. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9220. if (php_namespace != NULL) {
  9221. set_has_php_namespace();
  9222. } else {
  9223. clear_has_php_namespace();
  9224. }
  9225. php_namespace_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9226. php_namespace, GetArenaNoVirtual());
  9227. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_namespace)
  9228. }
  9229. // optional string php_metadata_namespace = 44;
  9230. inline bool FileOptions::has_php_metadata_namespace() const {
  9231. return (_has_bits_[0] & 0x00000100u) != 0;
  9232. }
  9233. inline void FileOptions::set_has_php_metadata_namespace() {
  9234. _has_bits_[0] |= 0x00000100u;
  9235. }
  9236. inline void FileOptions::clear_has_php_metadata_namespace() {
  9237. _has_bits_[0] &= ~0x00000100u;
  9238. }
  9239. inline void FileOptions::clear_php_metadata_namespace() {
  9240. php_metadata_namespace_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9241. clear_has_php_metadata_namespace();
  9242. }
  9243. inline const ::std::string& FileOptions::php_metadata_namespace() const {
  9244. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_metadata_namespace)
  9245. return php_metadata_namespace_.Get();
  9246. }
  9247. inline void FileOptions::set_php_metadata_namespace(const ::std::string& value) {
  9248. set_has_php_metadata_namespace();
  9249. php_metadata_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9250. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_metadata_namespace)
  9251. }
  9252. #if LANG_CXX11
  9253. inline void FileOptions::set_php_metadata_namespace(::std::string&& value) {
  9254. set_has_php_metadata_namespace();
  9255. php_metadata_namespace_.Set(
  9256. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9257. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.php_metadata_namespace)
  9258. }
  9259. #endif
  9260. inline void FileOptions::set_php_metadata_namespace(const char* value) {
  9261. GOOGLE_DCHECK(value != NULL);
  9262. set_has_php_metadata_namespace();
  9263. php_metadata_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9264. GetArenaNoVirtual());
  9265. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.php_metadata_namespace)
  9266. }
  9267. inline void FileOptions::set_php_metadata_namespace(const char* value,
  9268. size_t size) {
  9269. set_has_php_metadata_namespace();
  9270. php_metadata_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9271. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9272. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.php_metadata_namespace)
  9273. }
  9274. inline ::std::string* FileOptions::mutable_php_metadata_namespace() {
  9275. set_has_php_metadata_namespace();
  9276. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_metadata_namespace)
  9277. return php_metadata_namespace_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9278. }
  9279. inline ::std::string* FileOptions::release_php_metadata_namespace() {
  9280. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_metadata_namespace)
  9281. if (!has_php_metadata_namespace()) {
  9282. return NULL;
  9283. }
  9284. clear_has_php_metadata_namespace();
  9285. return php_metadata_namespace_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9286. }
  9287. inline void FileOptions::set_allocated_php_metadata_namespace(::std::string* php_metadata_namespace) {
  9288. if (php_metadata_namespace != NULL) {
  9289. set_has_php_metadata_namespace();
  9290. } else {
  9291. clear_has_php_metadata_namespace();
  9292. }
  9293. php_metadata_namespace_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), php_metadata_namespace,
  9294. GetArenaNoVirtual());
  9295. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
  9296. }
  9297. inline ::std::string* FileOptions::unsafe_arena_release_php_metadata_namespace() {
  9298. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.php_metadata_namespace)
  9299. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9300. clear_has_php_metadata_namespace();
  9301. return php_metadata_namespace_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9302. GetArenaNoVirtual());
  9303. }
  9304. inline void FileOptions::unsafe_arena_set_allocated_php_metadata_namespace(
  9305. ::std::string* php_metadata_namespace) {
  9306. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9307. if (php_metadata_namespace != NULL) {
  9308. set_has_php_metadata_namespace();
  9309. } else {
  9310. clear_has_php_metadata_namespace();
  9311. }
  9312. php_metadata_namespace_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9313. php_metadata_namespace, GetArenaNoVirtual());
  9314. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
  9315. }
  9316. // optional string ruby_package = 45;
  9317. inline bool FileOptions::has_ruby_package() const {
  9318. return (_has_bits_[0] & 0x00000200u) != 0;
  9319. }
  9320. inline void FileOptions::set_has_ruby_package() {
  9321. _has_bits_[0] |= 0x00000200u;
  9322. }
  9323. inline void FileOptions::clear_has_ruby_package() {
  9324. _has_bits_[0] &= ~0x00000200u;
  9325. }
  9326. inline void FileOptions::clear_ruby_package() {
  9327. ruby_package_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9328. clear_has_ruby_package();
  9329. }
  9330. inline const ::std::string& FileOptions::ruby_package() const {
  9331. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.ruby_package)
  9332. return ruby_package_.Get();
  9333. }
  9334. inline void FileOptions::set_ruby_package(const ::std::string& value) {
  9335. set_has_ruby_package();
  9336. ruby_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9337. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.ruby_package)
  9338. }
  9339. #if LANG_CXX11
  9340. inline void FileOptions::set_ruby_package(::std::string&& value) {
  9341. set_has_ruby_package();
  9342. ruby_package_.Set(
  9343. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9344. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.ruby_package)
  9345. }
  9346. #endif
  9347. inline void FileOptions::set_ruby_package(const char* value) {
  9348. GOOGLE_DCHECK(value != NULL);
  9349. set_has_ruby_package();
  9350. ruby_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9351. GetArenaNoVirtual());
  9352. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.ruby_package)
  9353. }
  9354. inline void FileOptions::set_ruby_package(const char* value,
  9355. size_t size) {
  9356. set_has_ruby_package();
  9357. ruby_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9358. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9359. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.ruby_package)
  9360. }
  9361. inline ::std::string* FileOptions::mutable_ruby_package() {
  9362. set_has_ruby_package();
  9363. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.ruby_package)
  9364. return ruby_package_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9365. }
  9366. inline ::std::string* FileOptions::release_ruby_package() {
  9367. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.ruby_package)
  9368. if (!has_ruby_package()) {
  9369. return NULL;
  9370. }
  9371. clear_has_ruby_package();
  9372. return ruby_package_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9373. }
  9374. inline void FileOptions::set_allocated_ruby_package(::std::string* ruby_package) {
  9375. if (ruby_package != NULL) {
  9376. set_has_ruby_package();
  9377. } else {
  9378. clear_has_ruby_package();
  9379. }
  9380. ruby_package_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ruby_package,
  9381. GetArenaNoVirtual());
  9382. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ruby_package)
  9383. }
  9384. inline ::std::string* FileOptions::unsafe_arena_release_ruby_package() {
  9385. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.ruby_package)
  9386. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9387. clear_has_ruby_package();
  9388. return ruby_package_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9389. GetArenaNoVirtual());
  9390. }
  9391. inline void FileOptions::unsafe_arena_set_allocated_ruby_package(
  9392. ::std::string* ruby_package) {
  9393. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9394. if (ruby_package != NULL) {
  9395. set_has_ruby_package();
  9396. } else {
  9397. clear_has_ruby_package();
  9398. }
  9399. ruby_package_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9400. ruby_package, GetArenaNoVirtual());
  9401. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.ruby_package)
  9402. }
  9403. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9404. inline int FileOptions::uninterpreted_option_size() const {
  9405. return uninterpreted_option_.size();
  9406. }
  9407. inline void FileOptions::clear_uninterpreted_option() {
  9408. uninterpreted_option_.Clear();
  9409. }
  9410. inline ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
  9411. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
  9412. return uninterpreted_option_.Mutable(index);
  9413. }
  9414. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9415. FileOptions::mutable_uninterpreted_option() {
  9416. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
  9417. return &uninterpreted_option_;
  9418. }
  9419. inline const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
  9420. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
  9421. return uninterpreted_option_.Get(index);
  9422. }
  9423. inline ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() {
  9424. // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
  9425. return uninterpreted_option_.Add();
  9426. }
  9427. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9428. FileOptions::uninterpreted_option() const {
  9429. // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
  9430. return uninterpreted_option_;
  9431. }
  9432. // -------------------------------------------------------------------
  9433. // MessageOptions
  9434. // optional bool message_set_wire_format = 1 [default = false];
  9435. inline bool MessageOptions::has_message_set_wire_format() const {
  9436. return (_has_bits_[0] & 0x00000001u) != 0;
  9437. }
  9438. inline void MessageOptions::set_has_message_set_wire_format() {
  9439. _has_bits_[0] |= 0x00000001u;
  9440. }
  9441. inline void MessageOptions::clear_has_message_set_wire_format() {
  9442. _has_bits_[0] &= ~0x00000001u;
  9443. }
  9444. inline void MessageOptions::clear_message_set_wire_format() {
  9445. message_set_wire_format_ = false;
  9446. clear_has_message_set_wire_format();
  9447. }
  9448. inline bool MessageOptions::message_set_wire_format() const {
  9449. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
  9450. return message_set_wire_format_;
  9451. }
  9452. inline void MessageOptions::set_message_set_wire_format(bool value) {
  9453. set_has_message_set_wire_format();
  9454. message_set_wire_format_ = value;
  9455. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
  9456. }
  9457. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  9458. inline bool MessageOptions::has_no_standard_descriptor_accessor() const {
  9459. return (_has_bits_[0] & 0x00000002u) != 0;
  9460. }
  9461. inline void MessageOptions::set_has_no_standard_descriptor_accessor() {
  9462. _has_bits_[0] |= 0x00000002u;
  9463. }
  9464. inline void MessageOptions::clear_has_no_standard_descriptor_accessor() {
  9465. _has_bits_[0] &= ~0x00000002u;
  9466. }
  9467. inline void MessageOptions::clear_no_standard_descriptor_accessor() {
  9468. no_standard_descriptor_accessor_ = false;
  9469. clear_has_no_standard_descriptor_accessor();
  9470. }
  9471. inline bool MessageOptions::no_standard_descriptor_accessor() const {
  9472. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  9473. return no_standard_descriptor_accessor_;
  9474. }
  9475. inline void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
  9476. set_has_no_standard_descriptor_accessor();
  9477. no_standard_descriptor_accessor_ = value;
  9478. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  9479. }
  9480. // optional bool deprecated = 3 [default = false];
  9481. inline bool MessageOptions::has_deprecated() const {
  9482. return (_has_bits_[0] & 0x00000004u) != 0;
  9483. }
  9484. inline void MessageOptions::set_has_deprecated() {
  9485. _has_bits_[0] |= 0x00000004u;
  9486. }
  9487. inline void MessageOptions::clear_has_deprecated() {
  9488. _has_bits_[0] &= ~0x00000004u;
  9489. }
  9490. inline void MessageOptions::clear_deprecated() {
  9491. deprecated_ = false;
  9492. clear_has_deprecated();
  9493. }
  9494. inline bool MessageOptions::deprecated() const {
  9495. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
  9496. return deprecated_;
  9497. }
  9498. inline void MessageOptions::set_deprecated(bool value) {
  9499. set_has_deprecated();
  9500. deprecated_ = value;
  9501. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
  9502. }
  9503. // optional bool map_entry = 7;
  9504. inline bool MessageOptions::has_map_entry() const {
  9505. return (_has_bits_[0] & 0x00000008u) != 0;
  9506. }
  9507. inline void MessageOptions::set_has_map_entry() {
  9508. _has_bits_[0] |= 0x00000008u;
  9509. }
  9510. inline void MessageOptions::clear_has_map_entry() {
  9511. _has_bits_[0] &= ~0x00000008u;
  9512. }
  9513. inline void MessageOptions::clear_map_entry() {
  9514. map_entry_ = false;
  9515. clear_has_map_entry();
  9516. }
  9517. inline bool MessageOptions::map_entry() const {
  9518. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
  9519. return map_entry_;
  9520. }
  9521. inline void MessageOptions::set_map_entry(bool value) {
  9522. set_has_map_entry();
  9523. map_entry_ = value;
  9524. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry)
  9525. }
  9526. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9527. inline int MessageOptions::uninterpreted_option_size() const {
  9528. return uninterpreted_option_.size();
  9529. }
  9530. inline void MessageOptions::clear_uninterpreted_option() {
  9531. uninterpreted_option_.Clear();
  9532. }
  9533. inline ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
  9534. // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
  9535. return uninterpreted_option_.Mutable(index);
  9536. }
  9537. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9538. MessageOptions::mutable_uninterpreted_option() {
  9539. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
  9540. return &uninterpreted_option_;
  9541. }
  9542. inline const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
  9543. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
  9544. return uninterpreted_option_.Get(index);
  9545. }
  9546. inline ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
  9547. // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
  9548. return uninterpreted_option_.Add();
  9549. }
  9550. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9551. MessageOptions::uninterpreted_option() const {
  9552. // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
  9553. return uninterpreted_option_;
  9554. }
  9555. // -------------------------------------------------------------------
  9556. // FieldOptions
  9557. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  9558. inline bool FieldOptions::has_ctype() const {
  9559. return (_has_bits_[0] & 0x00000001u) != 0;
  9560. }
  9561. inline void FieldOptions::set_has_ctype() {
  9562. _has_bits_[0] |= 0x00000001u;
  9563. }
  9564. inline void FieldOptions::clear_has_ctype() {
  9565. _has_bits_[0] &= ~0x00000001u;
  9566. }
  9567. inline void FieldOptions::clear_ctype() {
  9568. ctype_ = 0;
  9569. clear_has_ctype();
  9570. }
  9571. inline ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
  9572. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
  9573. return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_);
  9574. }
  9575. inline void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) {
  9576. assert(::google::protobuf::FieldOptions_CType_IsValid(value));
  9577. set_has_ctype();
  9578. ctype_ = value;
  9579. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
  9580. }
  9581. // optional bool packed = 2;
  9582. inline bool FieldOptions::has_packed() const {
  9583. return (_has_bits_[0] & 0x00000002u) != 0;
  9584. }
  9585. inline void FieldOptions::set_has_packed() {
  9586. _has_bits_[0] |= 0x00000002u;
  9587. }
  9588. inline void FieldOptions::clear_has_packed() {
  9589. _has_bits_[0] &= ~0x00000002u;
  9590. }
  9591. inline void FieldOptions::clear_packed() {
  9592. packed_ = false;
  9593. clear_has_packed();
  9594. }
  9595. inline bool FieldOptions::packed() const {
  9596. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
  9597. return packed_;
  9598. }
  9599. inline void FieldOptions::set_packed(bool value) {
  9600. set_has_packed();
  9601. packed_ = value;
  9602. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
  9603. }
  9604. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  9605. inline bool FieldOptions::has_jstype() const {
  9606. return (_has_bits_[0] & 0x00000020u) != 0;
  9607. }
  9608. inline void FieldOptions::set_has_jstype() {
  9609. _has_bits_[0] |= 0x00000020u;
  9610. }
  9611. inline void FieldOptions::clear_has_jstype() {
  9612. _has_bits_[0] &= ~0x00000020u;
  9613. }
  9614. inline void FieldOptions::clear_jstype() {
  9615. jstype_ = 0;
  9616. clear_has_jstype();
  9617. }
  9618. inline ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const {
  9619. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
  9620. return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_);
  9621. }
  9622. inline void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) {
  9623. assert(::google::protobuf::FieldOptions_JSType_IsValid(value));
  9624. set_has_jstype();
  9625. jstype_ = value;
  9626. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
  9627. }
  9628. // optional bool lazy = 5 [default = false];
  9629. inline bool FieldOptions::has_lazy() const {
  9630. return (_has_bits_[0] & 0x00000004u) != 0;
  9631. }
  9632. inline void FieldOptions::set_has_lazy() {
  9633. _has_bits_[0] |= 0x00000004u;
  9634. }
  9635. inline void FieldOptions::clear_has_lazy() {
  9636. _has_bits_[0] &= ~0x00000004u;
  9637. }
  9638. inline void FieldOptions::clear_lazy() {
  9639. lazy_ = false;
  9640. clear_has_lazy();
  9641. }
  9642. inline bool FieldOptions::lazy() const {
  9643. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
  9644. return lazy_;
  9645. }
  9646. inline void FieldOptions::set_lazy(bool value) {
  9647. set_has_lazy();
  9648. lazy_ = value;
  9649. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
  9650. }
  9651. // optional bool deprecated = 3 [default = false];
  9652. inline bool FieldOptions::has_deprecated() const {
  9653. return (_has_bits_[0] & 0x00000008u) != 0;
  9654. }
  9655. inline void FieldOptions::set_has_deprecated() {
  9656. _has_bits_[0] |= 0x00000008u;
  9657. }
  9658. inline void FieldOptions::clear_has_deprecated() {
  9659. _has_bits_[0] &= ~0x00000008u;
  9660. }
  9661. inline void FieldOptions::clear_deprecated() {
  9662. deprecated_ = false;
  9663. clear_has_deprecated();
  9664. }
  9665. inline bool FieldOptions::deprecated() const {
  9666. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
  9667. return deprecated_;
  9668. }
  9669. inline void FieldOptions::set_deprecated(bool value) {
  9670. set_has_deprecated();
  9671. deprecated_ = value;
  9672. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
  9673. }
  9674. // optional bool weak = 10 [default = false];
  9675. inline bool FieldOptions::has_weak() const {
  9676. return (_has_bits_[0] & 0x00000010u) != 0;
  9677. }
  9678. inline void FieldOptions::set_has_weak() {
  9679. _has_bits_[0] |= 0x00000010u;
  9680. }
  9681. inline void FieldOptions::clear_has_weak() {
  9682. _has_bits_[0] &= ~0x00000010u;
  9683. }
  9684. inline void FieldOptions::clear_weak() {
  9685. weak_ = false;
  9686. clear_has_weak();
  9687. }
  9688. inline bool FieldOptions::weak() const {
  9689. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
  9690. return weak_;
  9691. }
  9692. inline void FieldOptions::set_weak(bool value) {
  9693. set_has_weak();
  9694. weak_ = value;
  9695. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
  9696. }
  9697. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9698. inline int FieldOptions::uninterpreted_option_size() const {
  9699. return uninterpreted_option_.size();
  9700. }
  9701. inline void FieldOptions::clear_uninterpreted_option() {
  9702. uninterpreted_option_.Clear();
  9703. }
  9704. inline ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
  9705. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
  9706. return uninterpreted_option_.Mutable(index);
  9707. }
  9708. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9709. FieldOptions::mutable_uninterpreted_option() {
  9710. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
  9711. return &uninterpreted_option_;
  9712. }
  9713. inline const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
  9714. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
  9715. return uninterpreted_option_.Get(index);
  9716. }
  9717. inline ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
  9718. // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
  9719. return uninterpreted_option_.Add();
  9720. }
  9721. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9722. FieldOptions::uninterpreted_option() const {
  9723. // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
  9724. return uninterpreted_option_;
  9725. }
  9726. // -------------------------------------------------------------------
  9727. // OneofOptions
  9728. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9729. inline int OneofOptions::uninterpreted_option_size() const {
  9730. return uninterpreted_option_.size();
  9731. }
  9732. inline void OneofOptions::clear_uninterpreted_option() {
  9733. uninterpreted_option_.Clear();
  9734. }
  9735. inline ::google::protobuf::UninterpretedOption* OneofOptions::mutable_uninterpreted_option(int index) {
  9736. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninterpreted_option)
  9737. return uninterpreted_option_.Mutable(index);
  9738. }
  9739. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9740. OneofOptions::mutable_uninterpreted_option() {
  9741. // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.uninterpreted_option)
  9742. return &uninterpreted_option_;
  9743. }
  9744. inline const ::google::protobuf::UninterpretedOption& OneofOptions::uninterpreted_option(int index) const {
  9745. // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpreted_option)
  9746. return uninterpreted_option_.Get(index);
  9747. }
  9748. inline ::google::protobuf::UninterpretedOption* OneofOptions::add_uninterpreted_option() {
  9749. // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpreted_option)
  9750. return uninterpreted_option_.Add();
  9751. }
  9752. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9753. OneofOptions::uninterpreted_option() const {
  9754. // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpreted_option)
  9755. return uninterpreted_option_;
  9756. }
  9757. // -------------------------------------------------------------------
  9758. // EnumOptions
  9759. // optional bool allow_alias = 2;
  9760. inline bool EnumOptions::has_allow_alias() const {
  9761. return (_has_bits_[0] & 0x00000001u) != 0;
  9762. }
  9763. inline void EnumOptions::set_has_allow_alias() {
  9764. _has_bits_[0] |= 0x00000001u;
  9765. }
  9766. inline void EnumOptions::clear_has_allow_alias() {
  9767. _has_bits_[0] &= ~0x00000001u;
  9768. }
  9769. inline void EnumOptions::clear_allow_alias() {
  9770. allow_alias_ = false;
  9771. clear_has_allow_alias();
  9772. }
  9773. inline bool EnumOptions::allow_alias() const {
  9774. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
  9775. return allow_alias_;
  9776. }
  9777. inline void EnumOptions::set_allow_alias(bool value) {
  9778. set_has_allow_alias();
  9779. allow_alias_ = value;
  9780. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
  9781. }
  9782. // optional bool deprecated = 3 [default = false];
  9783. inline bool EnumOptions::has_deprecated() const {
  9784. return (_has_bits_[0] & 0x00000002u) != 0;
  9785. }
  9786. inline void EnumOptions::set_has_deprecated() {
  9787. _has_bits_[0] |= 0x00000002u;
  9788. }
  9789. inline void EnumOptions::clear_has_deprecated() {
  9790. _has_bits_[0] &= ~0x00000002u;
  9791. }
  9792. inline void EnumOptions::clear_deprecated() {
  9793. deprecated_ = false;
  9794. clear_has_deprecated();
  9795. }
  9796. inline bool EnumOptions::deprecated() const {
  9797. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
  9798. return deprecated_;
  9799. }
  9800. inline void EnumOptions::set_deprecated(bool value) {
  9801. set_has_deprecated();
  9802. deprecated_ = value;
  9803. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
  9804. }
  9805. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9806. inline int EnumOptions::uninterpreted_option_size() const {
  9807. return uninterpreted_option_.size();
  9808. }
  9809. inline void EnumOptions::clear_uninterpreted_option() {
  9810. uninterpreted_option_.Clear();
  9811. }
  9812. inline ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
  9813. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
  9814. return uninterpreted_option_.Mutable(index);
  9815. }
  9816. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9817. EnumOptions::mutable_uninterpreted_option() {
  9818. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
  9819. return &uninterpreted_option_;
  9820. }
  9821. inline const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
  9822. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
  9823. return uninterpreted_option_.Get(index);
  9824. }
  9825. inline ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
  9826. // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
  9827. return uninterpreted_option_.Add();
  9828. }
  9829. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9830. EnumOptions::uninterpreted_option() const {
  9831. // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
  9832. return uninterpreted_option_;
  9833. }
  9834. // -------------------------------------------------------------------
  9835. // EnumValueOptions
  9836. // optional bool deprecated = 1 [default = false];
  9837. inline bool EnumValueOptions::has_deprecated() const {
  9838. return (_has_bits_[0] & 0x00000001u) != 0;
  9839. }
  9840. inline void EnumValueOptions::set_has_deprecated() {
  9841. _has_bits_[0] |= 0x00000001u;
  9842. }
  9843. inline void EnumValueOptions::clear_has_deprecated() {
  9844. _has_bits_[0] &= ~0x00000001u;
  9845. }
  9846. inline void EnumValueOptions::clear_deprecated() {
  9847. deprecated_ = false;
  9848. clear_has_deprecated();
  9849. }
  9850. inline bool EnumValueOptions::deprecated() const {
  9851. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
  9852. return deprecated_;
  9853. }
  9854. inline void EnumValueOptions::set_deprecated(bool value) {
  9855. set_has_deprecated();
  9856. deprecated_ = value;
  9857. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
  9858. }
  9859. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9860. inline int EnumValueOptions::uninterpreted_option_size() const {
  9861. return uninterpreted_option_.size();
  9862. }
  9863. inline void EnumValueOptions::clear_uninterpreted_option() {
  9864. uninterpreted_option_.Clear();
  9865. }
  9866. inline ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
  9867. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
  9868. return uninterpreted_option_.Mutable(index);
  9869. }
  9870. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9871. EnumValueOptions::mutable_uninterpreted_option() {
  9872. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  9873. return &uninterpreted_option_;
  9874. }
  9875. inline const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
  9876. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
  9877. return uninterpreted_option_.Get(index);
  9878. }
  9879. inline ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
  9880. // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
  9881. return uninterpreted_option_.Add();
  9882. }
  9883. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9884. EnumValueOptions::uninterpreted_option() const {
  9885. // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  9886. return uninterpreted_option_;
  9887. }
  9888. // -------------------------------------------------------------------
  9889. // ServiceOptions
  9890. // optional bool deprecated = 33 [default = false];
  9891. inline bool ServiceOptions::has_deprecated() const {
  9892. return (_has_bits_[0] & 0x00000001u) != 0;
  9893. }
  9894. inline void ServiceOptions::set_has_deprecated() {
  9895. _has_bits_[0] |= 0x00000001u;
  9896. }
  9897. inline void ServiceOptions::clear_has_deprecated() {
  9898. _has_bits_[0] &= ~0x00000001u;
  9899. }
  9900. inline void ServiceOptions::clear_deprecated() {
  9901. deprecated_ = false;
  9902. clear_has_deprecated();
  9903. }
  9904. inline bool ServiceOptions::deprecated() const {
  9905. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
  9906. return deprecated_;
  9907. }
  9908. inline void ServiceOptions::set_deprecated(bool value) {
  9909. set_has_deprecated();
  9910. deprecated_ = value;
  9911. // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
  9912. }
  9913. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9914. inline int ServiceOptions::uninterpreted_option_size() const {
  9915. return uninterpreted_option_.size();
  9916. }
  9917. inline void ServiceOptions::clear_uninterpreted_option() {
  9918. uninterpreted_option_.Clear();
  9919. }
  9920. inline ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
  9921. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
  9922. return uninterpreted_option_.Mutable(index);
  9923. }
  9924. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9925. ServiceOptions::mutable_uninterpreted_option() {
  9926. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
  9927. return &uninterpreted_option_;
  9928. }
  9929. inline const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
  9930. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
  9931. return uninterpreted_option_.Get(index);
  9932. }
  9933. inline ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
  9934. // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
  9935. return uninterpreted_option_.Add();
  9936. }
  9937. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9938. ServiceOptions::uninterpreted_option() const {
  9939. // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
  9940. return uninterpreted_option_;
  9941. }
  9942. // -------------------------------------------------------------------
  9943. // MethodOptions
  9944. // optional bool deprecated = 33 [default = false];
  9945. inline bool MethodOptions::has_deprecated() const {
  9946. return (_has_bits_[0] & 0x00000001u) != 0;
  9947. }
  9948. inline void MethodOptions::set_has_deprecated() {
  9949. _has_bits_[0] |= 0x00000001u;
  9950. }
  9951. inline void MethodOptions::clear_has_deprecated() {
  9952. _has_bits_[0] &= ~0x00000001u;
  9953. }
  9954. inline void MethodOptions::clear_deprecated() {
  9955. deprecated_ = false;
  9956. clear_has_deprecated();
  9957. }
  9958. inline bool MethodOptions::deprecated() const {
  9959. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
  9960. return deprecated_;
  9961. }
  9962. inline void MethodOptions::set_deprecated(bool value) {
  9963. set_has_deprecated();
  9964. deprecated_ = value;
  9965. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
  9966. }
  9967. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  9968. inline bool MethodOptions::has_idempotency_level() const {
  9969. return (_has_bits_[0] & 0x00000002u) != 0;
  9970. }
  9971. inline void MethodOptions::set_has_idempotency_level() {
  9972. _has_bits_[0] |= 0x00000002u;
  9973. }
  9974. inline void MethodOptions::clear_has_idempotency_level() {
  9975. _has_bits_[0] &= ~0x00000002u;
  9976. }
  9977. inline void MethodOptions::clear_idempotency_level() {
  9978. idempotency_level_ = 0;
  9979. clear_has_idempotency_level();
  9980. }
  9981. inline ::google::protobuf::MethodOptions_IdempotencyLevel MethodOptions::idempotency_level() const {
  9982. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.idempotency_level)
  9983. return static_cast< ::google::protobuf::MethodOptions_IdempotencyLevel >(idempotency_level_);
  9984. }
  9985. inline void MethodOptions::set_idempotency_level(::google::protobuf::MethodOptions_IdempotencyLevel value) {
  9986. assert(::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(value));
  9987. set_has_idempotency_level();
  9988. idempotency_level_ = value;
  9989. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.idempotency_level)
  9990. }
  9991. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9992. inline int MethodOptions::uninterpreted_option_size() const {
  9993. return uninterpreted_option_.size();
  9994. }
  9995. inline void MethodOptions::clear_uninterpreted_option() {
  9996. uninterpreted_option_.Clear();
  9997. }
  9998. inline ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
  9999. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
  10000. return uninterpreted_option_.Mutable(index);
  10001. }
  10002. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  10003. MethodOptions::mutable_uninterpreted_option() {
  10004. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
  10005. return &uninterpreted_option_;
  10006. }
  10007. inline const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
  10008. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
  10009. return uninterpreted_option_.Get(index);
  10010. }
  10011. inline ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
  10012. // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
  10013. return uninterpreted_option_.Add();
  10014. }
  10015. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  10016. MethodOptions::uninterpreted_option() const {
  10017. // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
  10018. return uninterpreted_option_;
  10019. }
  10020. // -------------------------------------------------------------------
  10021. // UninterpretedOption_NamePart
  10022. // required string name_part = 1;
  10023. inline bool UninterpretedOption_NamePart::has_name_part() const {
  10024. return (_has_bits_[0] & 0x00000001u) != 0;
  10025. }
  10026. inline void UninterpretedOption_NamePart::set_has_name_part() {
  10027. _has_bits_[0] |= 0x00000001u;
  10028. }
  10029. inline void UninterpretedOption_NamePart::clear_has_name_part() {
  10030. _has_bits_[0] &= ~0x00000001u;
  10031. }
  10032. inline void UninterpretedOption_NamePart::clear_name_part() {
  10033. name_part_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10034. clear_has_name_part();
  10035. }
  10036. inline const ::std::string& UninterpretedOption_NamePart::name_part() const {
  10037. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
  10038. return name_part_.Get();
  10039. }
  10040. inline void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
  10041. set_has_name_part();
  10042. name_part_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10043. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
  10044. }
  10045. #if LANG_CXX11
  10046. inline void UninterpretedOption_NamePart::set_name_part(::std::string&& value) {
  10047. set_has_name_part();
  10048. name_part_.Set(
  10049. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10050. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.NamePart.name_part)
  10051. }
  10052. #endif
  10053. inline void UninterpretedOption_NamePart::set_name_part(const char* value) {
  10054. GOOGLE_DCHECK(value != NULL);
  10055. set_has_name_part();
  10056. name_part_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10057. GetArenaNoVirtual());
  10058. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.NamePart.name_part)
  10059. }
  10060. inline void UninterpretedOption_NamePart::set_name_part(const char* value,
  10061. size_t size) {
  10062. set_has_name_part();
  10063. name_part_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10064. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10065. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.NamePart.name_part)
  10066. }
  10067. inline ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
  10068. set_has_name_part();
  10069. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
  10070. return name_part_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10071. }
  10072. inline ::std::string* UninterpretedOption_NamePart::release_name_part() {
  10073. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.NamePart.name_part)
  10074. if (!has_name_part()) {
  10075. return NULL;
  10076. }
  10077. clear_has_name_part();
  10078. return name_part_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10079. }
  10080. inline void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_part) {
  10081. if (name_part != NULL) {
  10082. set_has_name_part();
  10083. } else {
  10084. clear_has_name_part();
  10085. }
  10086. name_part_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name_part,
  10087. GetArenaNoVirtual());
  10088. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  10089. }
  10090. inline ::std::string* UninterpretedOption_NamePart::unsafe_arena_release_name_part() {
  10091. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.NamePart.name_part)
  10092. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10093. clear_has_name_part();
  10094. return name_part_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10095. GetArenaNoVirtual());
  10096. }
  10097. inline void UninterpretedOption_NamePart::unsafe_arena_set_allocated_name_part(
  10098. ::std::string* name_part) {
  10099. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10100. if (name_part != NULL) {
  10101. set_has_name_part();
  10102. } else {
  10103. clear_has_name_part();
  10104. }
  10105. name_part_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10106. name_part, GetArenaNoVirtual());
  10107. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  10108. }
  10109. // required bool is_extension = 2;
  10110. inline bool UninterpretedOption_NamePart::has_is_extension() const {
  10111. return (_has_bits_[0] & 0x00000002u) != 0;
  10112. }
  10113. inline void UninterpretedOption_NamePart::set_has_is_extension() {
  10114. _has_bits_[0] |= 0x00000002u;
  10115. }
  10116. inline void UninterpretedOption_NamePart::clear_has_is_extension() {
  10117. _has_bits_[0] &= ~0x00000002u;
  10118. }
  10119. inline void UninterpretedOption_NamePart::clear_is_extension() {
  10120. is_extension_ = false;
  10121. clear_has_is_extension();
  10122. }
  10123. inline bool UninterpretedOption_NamePart::is_extension() const {
  10124. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
  10125. return is_extension_;
  10126. }
  10127. inline void UninterpretedOption_NamePart::set_is_extension(bool value) {
  10128. set_has_is_extension();
  10129. is_extension_ = value;
  10130. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
  10131. }
  10132. // -------------------------------------------------------------------
  10133. // UninterpretedOption
  10134. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  10135. inline int UninterpretedOption::name_size() const {
  10136. return name_.size();
  10137. }
  10138. inline void UninterpretedOption::clear_name() {
  10139. name_.Clear();
  10140. }
  10141. inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
  10142. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
  10143. return name_.Mutable(index);
  10144. }
  10145. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
  10146. UninterpretedOption::mutable_name() {
  10147. // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
  10148. return &name_;
  10149. }
  10150. inline const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
  10151. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
  10152. return name_.Get(index);
  10153. }
  10154. inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
  10155. // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
  10156. return name_.Add();
  10157. }
  10158. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
  10159. UninterpretedOption::name() const {
  10160. // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
  10161. return name_;
  10162. }
  10163. // optional string identifier_value = 3;
  10164. inline bool UninterpretedOption::has_identifier_value() const {
  10165. return (_has_bits_[0] & 0x00000001u) != 0;
  10166. }
  10167. inline void UninterpretedOption::set_has_identifier_value() {
  10168. _has_bits_[0] |= 0x00000001u;
  10169. }
  10170. inline void UninterpretedOption::clear_has_identifier_value() {
  10171. _has_bits_[0] &= ~0x00000001u;
  10172. }
  10173. inline void UninterpretedOption::clear_identifier_value() {
  10174. identifier_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10175. clear_has_identifier_value();
  10176. }
  10177. inline const ::std::string& UninterpretedOption::identifier_value() const {
  10178. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
  10179. return identifier_value_.Get();
  10180. }
  10181. inline void UninterpretedOption::set_identifier_value(const ::std::string& value) {
  10182. set_has_identifier_value();
  10183. identifier_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10184. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
  10185. }
  10186. #if LANG_CXX11
  10187. inline void UninterpretedOption::set_identifier_value(::std::string&& value) {
  10188. set_has_identifier_value();
  10189. identifier_value_.Set(
  10190. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10191. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.identifier_value)
  10192. }
  10193. #endif
  10194. inline void UninterpretedOption::set_identifier_value(const char* value) {
  10195. GOOGLE_DCHECK(value != NULL);
  10196. set_has_identifier_value();
  10197. identifier_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10198. GetArenaNoVirtual());
  10199. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.identifier_value)
  10200. }
  10201. inline void UninterpretedOption::set_identifier_value(const char* value,
  10202. size_t size) {
  10203. set_has_identifier_value();
  10204. identifier_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10205. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10206. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.identifier_value)
  10207. }
  10208. inline ::std::string* UninterpretedOption::mutable_identifier_value() {
  10209. set_has_identifier_value();
  10210. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
  10211. return identifier_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10212. }
  10213. inline ::std::string* UninterpretedOption::release_identifier_value() {
  10214. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.identifier_value)
  10215. if (!has_identifier_value()) {
  10216. return NULL;
  10217. }
  10218. clear_has_identifier_value();
  10219. return identifier_value_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10220. }
  10221. inline void UninterpretedOption::set_allocated_identifier_value(::std::string* identifier_value) {
  10222. if (identifier_value != NULL) {
  10223. set_has_identifier_value();
  10224. } else {
  10225. clear_has_identifier_value();
  10226. }
  10227. identifier_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), identifier_value,
  10228. GetArenaNoVirtual());
  10229. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  10230. }
  10231. inline ::std::string* UninterpretedOption::unsafe_arena_release_identifier_value() {
  10232. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.identifier_value)
  10233. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10234. clear_has_identifier_value();
  10235. return identifier_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10236. GetArenaNoVirtual());
  10237. }
  10238. inline void UninterpretedOption::unsafe_arena_set_allocated_identifier_value(
  10239. ::std::string* identifier_value) {
  10240. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10241. if (identifier_value != NULL) {
  10242. set_has_identifier_value();
  10243. } else {
  10244. clear_has_identifier_value();
  10245. }
  10246. identifier_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10247. identifier_value, GetArenaNoVirtual());
  10248. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  10249. }
  10250. // optional uint64 positive_int_value = 4;
  10251. inline bool UninterpretedOption::has_positive_int_value() const {
  10252. return (_has_bits_[0] & 0x00000008u) != 0;
  10253. }
  10254. inline void UninterpretedOption::set_has_positive_int_value() {
  10255. _has_bits_[0] |= 0x00000008u;
  10256. }
  10257. inline void UninterpretedOption::clear_has_positive_int_value() {
  10258. _has_bits_[0] &= ~0x00000008u;
  10259. }
  10260. inline void UninterpretedOption::clear_positive_int_value() {
  10261. positive_int_value_ = GOOGLE_ULONGLONG(0);
  10262. clear_has_positive_int_value();
  10263. }
  10264. inline ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
  10265. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
  10266. return positive_int_value_;
  10267. }
  10268. inline void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) {
  10269. set_has_positive_int_value();
  10270. positive_int_value_ = value;
  10271. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
  10272. }
  10273. // optional int64 negative_int_value = 5;
  10274. inline bool UninterpretedOption::has_negative_int_value() const {
  10275. return (_has_bits_[0] & 0x00000010u) != 0;
  10276. }
  10277. inline void UninterpretedOption::set_has_negative_int_value() {
  10278. _has_bits_[0] |= 0x00000010u;
  10279. }
  10280. inline void UninterpretedOption::clear_has_negative_int_value() {
  10281. _has_bits_[0] &= ~0x00000010u;
  10282. }
  10283. inline void UninterpretedOption::clear_negative_int_value() {
  10284. negative_int_value_ = GOOGLE_LONGLONG(0);
  10285. clear_has_negative_int_value();
  10286. }
  10287. inline ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
  10288. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
  10289. return negative_int_value_;
  10290. }
  10291. inline void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) {
  10292. set_has_negative_int_value();
  10293. negative_int_value_ = value;
  10294. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
  10295. }
  10296. // optional double double_value = 6;
  10297. inline bool UninterpretedOption::has_double_value() const {
  10298. return (_has_bits_[0] & 0x00000020u) != 0;
  10299. }
  10300. inline void UninterpretedOption::set_has_double_value() {
  10301. _has_bits_[0] |= 0x00000020u;
  10302. }
  10303. inline void UninterpretedOption::clear_has_double_value() {
  10304. _has_bits_[0] &= ~0x00000020u;
  10305. }
  10306. inline void UninterpretedOption::clear_double_value() {
  10307. double_value_ = 0;
  10308. clear_has_double_value();
  10309. }
  10310. inline double UninterpretedOption::double_value() const {
  10311. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
  10312. return double_value_;
  10313. }
  10314. inline void UninterpretedOption::set_double_value(double value) {
  10315. set_has_double_value();
  10316. double_value_ = value;
  10317. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
  10318. }
  10319. // optional bytes string_value = 7;
  10320. inline bool UninterpretedOption::has_string_value() const {
  10321. return (_has_bits_[0] & 0x00000002u) != 0;
  10322. }
  10323. inline void UninterpretedOption::set_has_string_value() {
  10324. _has_bits_[0] |= 0x00000002u;
  10325. }
  10326. inline void UninterpretedOption::clear_has_string_value() {
  10327. _has_bits_[0] &= ~0x00000002u;
  10328. }
  10329. inline void UninterpretedOption::clear_string_value() {
  10330. string_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10331. clear_has_string_value();
  10332. }
  10333. inline const ::std::string& UninterpretedOption::string_value() const {
  10334. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
  10335. return string_value_.Get();
  10336. }
  10337. inline void UninterpretedOption::set_string_value(const ::std::string& value) {
  10338. set_has_string_value();
  10339. string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10340. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
  10341. }
  10342. #if LANG_CXX11
  10343. inline void UninterpretedOption::set_string_value(::std::string&& value) {
  10344. set_has_string_value();
  10345. string_value_.Set(
  10346. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10347. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.string_value)
  10348. }
  10349. #endif
  10350. inline void UninterpretedOption::set_string_value(const char* value) {
  10351. GOOGLE_DCHECK(value != NULL);
  10352. set_has_string_value();
  10353. string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10354. GetArenaNoVirtual());
  10355. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.string_value)
  10356. }
  10357. inline void UninterpretedOption::set_string_value(const void* value,
  10358. size_t size) {
  10359. set_has_string_value();
  10360. string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10361. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10362. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.string_value)
  10363. }
  10364. inline ::std::string* UninterpretedOption::mutable_string_value() {
  10365. set_has_string_value();
  10366. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
  10367. return string_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10368. }
  10369. inline ::std::string* UninterpretedOption::release_string_value() {
  10370. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.string_value)
  10371. if (!has_string_value()) {
  10372. return NULL;
  10373. }
  10374. clear_has_string_value();
  10375. return string_value_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10376. }
  10377. inline void UninterpretedOption::set_allocated_string_value(::std::string* string_value) {
  10378. if (string_value != NULL) {
  10379. set_has_string_value();
  10380. } else {
  10381. clear_has_string_value();
  10382. }
  10383. string_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value,
  10384. GetArenaNoVirtual());
  10385. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
  10386. }
  10387. inline ::std::string* UninterpretedOption::unsafe_arena_release_string_value() {
  10388. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.string_value)
  10389. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10390. clear_has_string_value();
  10391. return string_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10392. GetArenaNoVirtual());
  10393. }
  10394. inline void UninterpretedOption::unsafe_arena_set_allocated_string_value(
  10395. ::std::string* string_value) {
  10396. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10397. if (string_value != NULL) {
  10398. set_has_string_value();
  10399. } else {
  10400. clear_has_string_value();
  10401. }
  10402. string_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10403. string_value, GetArenaNoVirtual());
  10404. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.string_value)
  10405. }
  10406. // optional string aggregate_value = 8;
  10407. inline bool UninterpretedOption::has_aggregate_value() const {
  10408. return (_has_bits_[0] & 0x00000004u) != 0;
  10409. }
  10410. inline void UninterpretedOption::set_has_aggregate_value() {
  10411. _has_bits_[0] |= 0x00000004u;
  10412. }
  10413. inline void UninterpretedOption::clear_has_aggregate_value() {
  10414. _has_bits_[0] &= ~0x00000004u;
  10415. }
  10416. inline void UninterpretedOption::clear_aggregate_value() {
  10417. aggregate_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10418. clear_has_aggregate_value();
  10419. }
  10420. inline const ::std::string& UninterpretedOption::aggregate_value() const {
  10421. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
  10422. return aggregate_value_.Get();
  10423. }
  10424. inline void UninterpretedOption::set_aggregate_value(const ::std::string& value) {
  10425. set_has_aggregate_value();
  10426. aggregate_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10427. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
  10428. }
  10429. #if LANG_CXX11
  10430. inline void UninterpretedOption::set_aggregate_value(::std::string&& value) {
  10431. set_has_aggregate_value();
  10432. aggregate_value_.Set(
  10433. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10434. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.aggregate_value)
  10435. }
  10436. #endif
  10437. inline void UninterpretedOption::set_aggregate_value(const char* value) {
  10438. GOOGLE_DCHECK(value != NULL);
  10439. set_has_aggregate_value();
  10440. aggregate_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10441. GetArenaNoVirtual());
  10442. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.aggregate_value)
  10443. }
  10444. inline void UninterpretedOption::set_aggregate_value(const char* value,
  10445. size_t size) {
  10446. set_has_aggregate_value();
  10447. aggregate_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10448. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10449. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.aggregate_value)
  10450. }
  10451. inline ::std::string* UninterpretedOption::mutable_aggregate_value() {
  10452. set_has_aggregate_value();
  10453. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
  10454. return aggregate_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10455. }
  10456. inline ::std::string* UninterpretedOption::release_aggregate_value() {
  10457. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.aggregate_value)
  10458. if (!has_aggregate_value()) {
  10459. return NULL;
  10460. }
  10461. clear_has_aggregate_value();
  10462. return aggregate_value_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10463. }
  10464. inline void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate_value) {
  10465. if (aggregate_value != NULL) {
  10466. set_has_aggregate_value();
  10467. } else {
  10468. clear_has_aggregate_value();
  10469. }
  10470. aggregate_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), aggregate_value,
  10471. GetArenaNoVirtual());
  10472. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  10473. }
  10474. inline ::std::string* UninterpretedOption::unsafe_arena_release_aggregate_value() {
  10475. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.aggregate_value)
  10476. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10477. clear_has_aggregate_value();
  10478. return aggregate_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10479. GetArenaNoVirtual());
  10480. }
  10481. inline void UninterpretedOption::unsafe_arena_set_allocated_aggregate_value(
  10482. ::std::string* aggregate_value) {
  10483. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10484. if (aggregate_value != NULL) {
  10485. set_has_aggregate_value();
  10486. } else {
  10487. clear_has_aggregate_value();
  10488. }
  10489. aggregate_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10490. aggregate_value, GetArenaNoVirtual());
  10491. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  10492. }
  10493. // -------------------------------------------------------------------
  10494. // SourceCodeInfo_Location
  10495. // repeated int32 path = 1 [packed = true];
  10496. inline int SourceCodeInfo_Location::path_size() const {
  10497. return path_.size();
  10498. }
  10499. inline void SourceCodeInfo_Location::clear_path() {
  10500. path_.Clear();
  10501. }
  10502. inline ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const {
  10503. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
  10504. return path_.Get(index);
  10505. }
  10506. inline void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) {
  10507. path_.Set(index, value);
  10508. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
  10509. }
  10510. inline void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) {
  10511. path_.Add(value);
  10512. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
  10513. }
  10514. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  10515. SourceCodeInfo_Location::path() const {
  10516. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
  10517. return path_;
  10518. }
  10519. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  10520. SourceCodeInfo_Location::mutable_path() {
  10521. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
  10522. return &path_;
  10523. }
  10524. // repeated int32 span = 2 [packed = true];
  10525. inline int SourceCodeInfo_Location::span_size() const {
  10526. return span_.size();
  10527. }
  10528. inline void SourceCodeInfo_Location::clear_span() {
  10529. span_.Clear();
  10530. }
  10531. inline ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const {
  10532. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
  10533. return span_.Get(index);
  10534. }
  10535. inline void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) {
  10536. span_.Set(index, value);
  10537. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
  10538. }
  10539. inline void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) {
  10540. span_.Add(value);
  10541. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
  10542. }
  10543. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  10544. SourceCodeInfo_Location::span() const {
  10545. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
  10546. return span_;
  10547. }
  10548. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  10549. SourceCodeInfo_Location::mutable_span() {
  10550. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
  10551. return &span_;
  10552. }
  10553. // optional string leading_comments = 3;
  10554. inline bool SourceCodeInfo_Location::has_leading_comments() const {
  10555. return (_has_bits_[0] & 0x00000001u) != 0;
  10556. }
  10557. inline void SourceCodeInfo_Location::set_has_leading_comments() {
  10558. _has_bits_[0] |= 0x00000001u;
  10559. }
  10560. inline void SourceCodeInfo_Location::clear_has_leading_comments() {
  10561. _has_bits_[0] &= ~0x00000001u;
  10562. }
  10563. inline void SourceCodeInfo_Location::clear_leading_comments() {
  10564. leading_comments_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10565. clear_has_leading_comments();
  10566. }
  10567. inline const ::std::string& SourceCodeInfo_Location::leading_comments() const {
  10568. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10569. return leading_comments_.Get();
  10570. }
  10571. inline void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) {
  10572. set_has_leading_comments();
  10573. leading_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10574. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10575. }
  10576. #if LANG_CXX11
  10577. inline void SourceCodeInfo_Location::set_leading_comments(::std::string&& value) {
  10578. set_has_leading_comments();
  10579. leading_comments_.Set(
  10580. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10581. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10582. }
  10583. #endif
  10584. inline void SourceCodeInfo_Location::set_leading_comments(const char* value) {
  10585. GOOGLE_DCHECK(value != NULL);
  10586. set_has_leading_comments();
  10587. leading_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10588. GetArenaNoVirtual());
  10589. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10590. }
  10591. inline void SourceCodeInfo_Location::set_leading_comments(const char* value,
  10592. size_t size) {
  10593. set_has_leading_comments();
  10594. leading_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10595. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10596. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10597. }
  10598. inline ::std::string* SourceCodeInfo_Location::mutable_leading_comments() {
  10599. set_has_leading_comments();
  10600. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10601. return leading_comments_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10602. }
  10603. inline ::std::string* SourceCodeInfo_Location::release_leading_comments() {
  10604. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10605. if (!has_leading_comments()) {
  10606. return NULL;
  10607. }
  10608. clear_has_leading_comments();
  10609. return leading_comments_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10610. }
  10611. inline void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* leading_comments) {
  10612. if (leading_comments != NULL) {
  10613. set_has_leading_comments();
  10614. } else {
  10615. clear_has_leading_comments();
  10616. }
  10617. leading_comments_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), leading_comments,
  10618. GetArenaNoVirtual());
  10619. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10620. }
  10621. inline ::std::string* SourceCodeInfo_Location::unsafe_arena_release_leading_comments() {
  10622. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10623. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10624. clear_has_leading_comments();
  10625. return leading_comments_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10626. GetArenaNoVirtual());
  10627. }
  10628. inline void SourceCodeInfo_Location::unsafe_arena_set_allocated_leading_comments(
  10629. ::std::string* leading_comments) {
  10630. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10631. if (leading_comments != NULL) {
  10632. set_has_leading_comments();
  10633. } else {
  10634. clear_has_leading_comments();
  10635. }
  10636. leading_comments_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10637. leading_comments, GetArenaNoVirtual());
  10638. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10639. }
  10640. // optional string trailing_comments = 4;
  10641. inline bool SourceCodeInfo_Location::has_trailing_comments() const {
  10642. return (_has_bits_[0] & 0x00000002u) != 0;
  10643. }
  10644. inline void SourceCodeInfo_Location::set_has_trailing_comments() {
  10645. _has_bits_[0] |= 0x00000002u;
  10646. }
  10647. inline void SourceCodeInfo_Location::clear_has_trailing_comments() {
  10648. _has_bits_[0] &= ~0x00000002u;
  10649. }
  10650. inline void SourceCodeInfo_Location::clear_trailing_comments() {
  10651. trailing_comments_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10652. clear_has_trailing_comments();
  10653. }
  10654. inline const ::std::string& SourceCodeInfo_Location::trailing_comments() const {
  10655. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10656. return trailing_comments_.Get();
  10657. }
  10658. inline void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) {
  10659. set_has_trailing_comments();
  10660. trailing_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10661. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10662. }
  10663. #if LANG_CXX11
  10664. inline void SourceCodeInfo_Location::set_trailing_comments(::std::string&& value) {
  10665. set_has_trailing_comments();
  10666. trailing_comments_.Set(
  10667. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10668. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10669. }
  10670. #endif
  10671. inline void SourceCodeInfo_Location::set_trailing_comments(const char* value) {
  10672. GOOGLE_DCHECK(value != NULL);
  10673. set_has_trailing_comments();
  10674. trailing_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10675. GetArenaNoVirtual());
  10676. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10677. }
  10678. inline void SourceCodeInfo_Location::set_trailing_comments(const char* value,
  10679. size_t size) {
  10680. set_has_trailing_comments();
  10681. trailing_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10682. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10683. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10684. }
  10685. inline ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
  10686. set_has_trailing_comments();
  10687. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10688. return trailing_comments_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10689. }
  10690. inline ::std::string* SourceCodeInfo_Location::release_trailing_comments() {
  10691. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10692. if (!has_trailing_comments()) {
  10693. return NULL;
  10694. }
  10695. clear_has_trailing_comments();
  10696. return trailing_comments_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10697. }
  10698. inline void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* trailing_comments) {
  10699. if (trailing_comments != NULL) {
  10700. set_has_trailing_comments();
  10701. } else {
  10702. clear_has_trailing_comments();
  10703. }
  10704. trailing_comments_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trailing_comments,
  10705. GetArenaNoVirtual());
  10706. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10707. }
  10708. inline ::std::string* SourceCodeInfo_Location::unsafe_arena_release_trailing_comments() {
  10709. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10710. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10711. clear_has_trailing_comments();
  10712. return trailing_comments_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10713. GetArenaNoVirtual());
  10714. }
  10715. inline void SourceCodeInfo_Location::unsafe_arena_set_allocated_trailing_comments(
  10716. ::std::string* trailing_comments) {
  10717. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10718. if (trailing_comments != NULL) {
  10719. set_has_trailing_comments();
  10720. } else {
  10721. clear_has_trailing_comments();
  10722. }
  10723. trailing_comments_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10724. trailing_comments, GetArenaNoVirtual());
  10725. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10726. }
  10727. // repeated string leading_detached_comments = 6;
  10728. inline int SourceCodeInfo_Location::leading_detached_comments_size() const {
  10729. return leading_detached_comments_.size();
  10730. }
  10731. inline void SourceCodeInfo_Location::clear_leading_detached_comments() {
  10732. leading_detached_comments_.Clear();
  10733. }
  10734. inline const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const {
  10735. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10736. return leading_detached_comments_.Get(index);
  10737. }
  10738. inline ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) {
  10739. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10740. return leading_detached_comments_.Mutable(index);
  10741. }
  10742. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::std::string& value) {
  10743. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10744. leading_detached_comments_.Mutable(index)->assign(value);
  10745. }
  10746. #if LANG_CXX11
  10747. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, ::std::string&& value) {
  10748. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10749. leading_detached_comments_.Mutable(index)->assign(std::move(value));
  10750. }
  10751. #endif
  10752. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) {
  10753. GOOGLE_DCHECK(value != NULL);
  10754. leading_detached_comments_.Mutable(index)->assign(value);
  10755. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10756. }
  10757. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) {
  10758. leading_detached_comments_.Mutable(index)->assign(
  10759. reinterpret_cast<const char*>(value), size);
  10760. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10761. }
  10762. inline ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
  10763. // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10764. return leading_detached_comments_.Add();
  10765. }
  10766. inline void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) {
  10767. leading_detached_comments_.Add()->assign(value);
  10768. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10769. }
  10770. #if LANG_CXX11
  10771. inline void SourceCodeInfo_Location::add_leading_detached_comments(::std::string&& value) {
  10772. leading_detached_comments_.Add(std::move(value));
  10773. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10774. }
  10775. #endif
  10776. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
  10777. GOOGLE_DCHECK(value != NULL);
  10778. leading_detached_comments_.Add()->assign(value);
  10779. // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10780. }
  10781. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) {
  10782. leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
  10783. // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10784. }
  10785. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  10786. SourceCodeInfo_Location::leading_detached_comments() const {
  10787. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10788. return leading_detached_comments_;
  10789. }
  10790. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  10791. SourceCodeInfo_Location::mutable_leading_detached_comments() {
  10792. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10793. return &leading_detached_comments_;
  10794. }
  10795. // -------------------------------------------------------------------
  10796. // SourceCodeInfo
  10797. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  10798. inline int SourceCodeInfo::location_size() const {
  10799. return location_.size();
  10800. }
  10801. inline void SourceCodeInfo::clear_location() {
  10802. location_.Clear();
  10803. }
  10804. inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
  10805. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
  10806. return location_.Mutable(index);
  10807. }
  10808. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
  10809. SourceCodeInfo::mutable_location() {
  10810. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
  10811. return &location_;
  10812. }
  10813. inline const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
  10814. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
  10815. return location_.Get(index);
  10816. }
  10817. inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
  10818. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
  10819. return location_.Add();
  10820. }
  10821. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
  10822. SourceCodeInfo::location() const {
  10823. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
  10824. return location_;
  10825. }
  10826. // -------------------------------------------------------------------
  10827. // GeneratedCodeInfo_Annotation
  10828. // repeated int32 path = 1 [packed = true];
  10829. inline int GeneratedCodeInfo_Annotation::path_size() const {
  10830. return path_.size();
  10831. }
  10832. inline void GeneratedCodeInfo_Annotation::clear_path() {
  10833. path_.Clear();
  10834. }
  10835. inline ::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const {
  10836. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path)
  10837. return path_.Get(index);
  10838. }
  10839. inline void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int32 value) {
  10840. path_.Set(index, value);
  10841. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path)
  10842. }
  10843. inline void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) {
  10844. path_.Add(value);
  10845. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path)
  10846. }
  10847. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  10848. GeneratedCodeInfo_Annotation::path() const {
  10849. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  10850. return path_;
  10851. }
  10852. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  10853. GeneratedCodeInfo_Annotation::mutable_path() {
  10854. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  10855. return &path_;
  10856. }
  10857. // optional string source_file = 2;
  10858. inline bool GeneratedCodeInfo_Annotation::has_source_file() const {
  10859. return (_has_bits_[0] & 0x00000001u) != 0;
  10860. }
  10861. inline void GeneratedCodeInfo_Annotation::set_has_source_file() {
  10862. _has_bits_[0] |= 0x00000001u;
  10863. }
  10864. inline void GeneratedCodeInfo_Annotation::clear_has_source_file() {
  10865. _has_bits_[0] &= ~0x00000001u;
  10866. }
  10867. inline void GeneratedCodeInfo_Annotation::clear_source_file() {
  10868. source_file_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10869. clear_has_source_file();
  10870. }
  10871. inline const ::std::string& GeneratedCodeInfo_Annotation::source_file() const {
  10872. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10873. return source_file_.Get();
  10874. }
  10875. inline void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value) {
  10876. set_has_source_file();
  10877. source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10878. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10879. }
  10880. #if LANG_CXX11
  10881. inline void GeneratedCodeInfo_Annotation::set_source_file(::std::string&& value) {
  10882. set_has_source_file();
  10883. source_file_.Set(
  10884. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10885. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10886. }
  10887. #endif
  10888. inline void GeneratedCodeInfo_Annotation::set_source_file(const char* value) {
  10889. GOOGLE_DCHECK(value != NULL);
  10890. set_has_source_file();
  10891. source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10892. GetArenaNoVirtual());
  10893. // @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10894. }
  10895. inline void GeneratedCodeInfo_Annotation::set_source_file(const char* value,
  10896. size_t size) {
  10897. set_has_source_file();
  10898. source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10899. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10900. // @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10901. }
  10902. inline ::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() {
  10903. set_has_source_file();
  10904. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10905. return source_file_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10906. }
  10907. inline ::std::string* GeneratedCodeInfo_Annotation::release_source_file() {
  10908. // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10909. if (!has_source_file()) {
  10910. return NULL;
  10911. }
  10912. clear_has_source_file();
  10913. return source_file_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10914. }
  10915. inline void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* source_file) {
  10916. if (source_file != NULL) {
  10917. set_has_source_file();
  10918. } else {
  10919. clear_has_source_file();
  10920. }
  10921. source_file_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_file,
  10922. GetArenaNoVirtual());
  10923. // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10924. }
  10925. inline ::std::string* GeneratedCodeInfo_Annotation::unsafe_arena_release_source_file() {
  10926. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10927. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10928. clear_has_source_file();
  10929. return source_file_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10930. GetArenaNoVirtual());
  10931. }
  10932. inline void GeneratedCodeInfo_Annotation::unsafe_arena_set_allocated_source_file(
  10933. ::std::string* source_file) {
  10934. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10935. if (source_file != NULL) {
  10936. set_has_source_file();
  10937. } else {
  10938. clear_has_source_file();
  10939. }
  10940. source_file_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10941. source_file, GetArenaNoVirtual());
  10942. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10943. }
  10944. // optional int32 begin = 3;
  10945. inline bool GeneratedCodeInfo_Annotation::has_begin() const {
  10946. return (_has_bits_[0] & 0x00000002u) != 0;
  10947. }
  10948. inline void GeneratedCodeInfo_Annotation::set_has_begin() {
  10949. _has_bits_[0] |= 0x00000002u;
  10950. }
  10951. inline void GeneratedCodeInfo_Annotation::clear_has_begin() {
  10952. _has_bits_[0] &= ~0x00000002u;
  10953. }
  10954. inline void GeneratedCodeInfo_Annotation::clear_begin() {
  10955. begin_ = 0;
  10956. clear_has_begin();
  10957. }
  10958. inline ::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const {
  10959. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  10960. return begin_;
  10961. }
  10962. inline void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) {
  10963. set_has_begin();
  10964. begin_ = value;
  10965. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  10966. }
  10967. // optional int32 end = 4;
  10968. inline bool GeneratedCodeInfo_Annotation::has_end() const {
  10969. return (_has_bits_[0] & 0x00000004u) != 0;
  10970. }
  10971. inline void GeneratedCodeInfo_Annotation::set_has_end() {
  10972. _has_bits_[0] |= 0x00000004u;
  10973. }
  10974. inline void GeneratedCodeInfo_Annotation::clear_has_end() {
  10975. _has_bits_[0] &= ~0x00000004u;
  10976. }
  10977. inline void GeneratedCodeInfo_Annotation::clear_end() {
  10978. end_ = 0;
  10979. clear_has_end();
  10980. }
  10981. inline ::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const {
  10982. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end)
  10983. return end_;
  10984. }
  10985. inline void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) {
  10986. set_has_end();
  10987. end_ = value;
  10988. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end)
  10989. }
  10990. // -------------------------------------------------------------------
  10991. // GeneratedCodeInfo
  10992. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  10993. inline int GeneratedCodeInfo::annotation_size() const {
  10994. return annotation_.size();
  10995. }
  10996. inline void GeneratedCodeInfo::clear_annotation() {
  10997. annotation_.Clear();
  10998. }
  10999. inline ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::mutable_annotation(int index) {
  11000. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.annotation)
  11001. return annotation_.Mutable(index);
  11002. }
  11003. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >*
  11004. GeneratedCodeInfo::mutable_annotation() {
  11005. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.annotation)
  11006. return &annotation_;
  11007. }
  11008. inline const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annotation(int index) const {
  11009. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.annotation)
  11010. return annotation_.Get(index);
  11011. }
  11012. inline ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::add_annotation() {
  11013. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.annotation)
  11014. return annotation_.Add();
  11015. }
  11016. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >&
  11017. GeneratedCodeInfo::annotation() const {
  11018. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.annotation)
  11019. return annotation_;
  11020. }
  11021. #ifdef __GNUC__
  11022. #pragma GCC diagnostic pop
  11023. #endif // __GNUC__
  11024. // -------------------------------------------------------------------
  11025. // -------------------------------------------------------------------
  11026. // -------------------------------------------------------------------
  11027. // -------------------------------------------------------------------
  11028. // -------------------------------------------------------------------
  11029. // -------------------------------------------------------------------
  11030. // -------------------------------------------------------------------
  11031. // -------------------------------------------------------------------
  11032. // -------------------------------------------------------------------
  11033. // -------------------------------------------------------------------
  11034. // -------------------------------------------------------------------
  11035. // -------------------------------------------------------------------
  11036. // -------------------------------------------------------------------
  11037. // -------------------------------------------------------------------
  11038. // -------------------------------------------------------------------
  11039. // -------------------------------------------------------------------
  11040. // -------------------------------------------------------------------
  11041. // -------------------------------------------------------------------
  11042. // -------------------------------------------------------------------
  11043. // -------------------------------------------------------------------
  11044. // -------------------------------------------------------------------
  11045. // -------------------------------------------------------------------
  11046. // -------------------------------------------------------------------
  11047. // -------------------------------------------------------------------
  11048. // -------------------------------------------------------------------
  11049. // -------------------------------------------------------------------
  11050. // @@protoc_insertion_point(namespace_scope)
  11051. } // namespace protobuf
  11052. } // namespace google
  11053. namespace google {
  11054. namespace protobuf {
  11055. template <> struct is_proto_enum< ::google::protobuf::FieldDescriptorProto_Type> : ::std::true_type {};
  11056. template <>
  11057. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Type>() {
  11058. return ::google::protobuf::FieldDescriptorProto_Type_descriptor();
  11059. }
  11060. template <> struct is_proto_enum< ::google::protobuf::FieldDescriptorProto_Label> : ::std::true_type {};
  11061. template <>
  11062. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Label>() {
  11063. return ::google::protobuf::FieldDescriptorProto_Label_descriptor();
  11064. }
  11065. template <> struct is_proto_enum< ::google::protobuf::FileOptions_OptimizeMode> : ::std::true_type {};
  11066. template <>
  11067. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FileOptions_OptimizeMode>() {
  11068. return ::google::protobuf::FileOptions_OptimizeMode_descriptor();
  11069. }
  11070. template <> struct is_proto_enum< ::google::protobuf::FieldOptions_CType> : ::std::true_type {};
  11071. template <>
  11072. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldOptions_CType>() {
  11073. return ::google::protobuf::FieldOptions_CType_descriptor();
  11074. }
  11075. template <> struct is_proto_enum< ::google::protobuf::FieldOptions_JSType> : ::std::true_type {};
  11076. template <>
  11077. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldOptions_JSType>() {
  11078. return ::google::protobuf::FieldOptions_JSType_descriptor();
  11079. }
  11080. template <> struct is_proto_enum< ::google::protobuf::MethodOptions_IdempotencyLevel> : ::std::true_type {};
  11081. template <>
  11082. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::MethodOptions_IdempotencyLevel>() {
  11083. return ::google::protobuf::MethodOptions_IdempotencyLevel_descriptor();
  11084. }
  11085. } // namespace protobuf
  11086. } // namespace google
  11087. // @@protoc_insertion_point(global_scope)
  11088. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto