You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

descriptor.pb.h 612 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3021000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3021006 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_util.h>
  23. #include <google/protobuf/metadata_lite.h>
  24. #include <google/protobuf/generated_message_reflection.h>
  25. #include <google/protobuf/message.h>
  26. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  27. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  28. #include <google/protobuf/generated_enum_reflection.h>
  29. #include <google/protobuf/unknown_field_set.h>
  30. // @@protoc_insertion_point(includes)
  31. #include <google/protobuf/port_def.inc>
  32. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto PROTOBUF_EXPORT
  33. PROTOBUF_NAMESPACE_OPEN
  34. namespace internal {
  35. class AnyMetadata;
  36. } // namespace internal
  37. PROTOBUF_NAMESPACE_CLOSE
  38. // Internal implementation detail -- do not use these members.
  39. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fdescriptor_2eproto {
  40. static const uint32_t offsets[];
  41. };
  42. PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fdescriptor_2eproto;
  43. PROTOBUF_NAMESPACE_OPEN
  44. class DescriptorProto;
  45. struct DescriptorProtoDefaultTypeInternal;
  46. PROTOBUF_EXPORT extern DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_;
  47. class DescriptorProto_ExtensionRange;
  48. struct DescriptorProto_ExtensionRangeDefaultTypeInternal;
  49. PROTOBUF_EXPORT extern DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_;
  50. class DescriptorProto_ReservedRange;
  51. struct DescriptorProto_ReservedRangeDefaultTypeInternal;
  52. PROTOBUF_EXPORT extern DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_;
  53. class EnumDescriptorProto;
  54. struct EnumDescriptorProtoDefaultTypeInternal;
  55. PROTOBUF_EXPORT extern EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_;
  56. class EnumDescriptorProto_EnumReservedRange;
  57. struct EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal;
  58. PROTOBUF_EXPORT extern EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal _EnumDescriptorProto_EnumReservedRange_default_instance_;
  59. class EnumOptions;
  60. struct EnumOptionsDefaultTypeInternal;
  61. PROTOBUF_EXPORT extern EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_;
  62. class EnumValueDescriptorProto;
  63. struct EnumValueDescriptorProtoDefaultTypeInternal;
  64. PROTOBUF_EXPORT extern EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_;
  65. class EnumValueOptions;
  66. struct EnumValueOptionsDefaultTypeInternal;
  67. PROTOBUF_EXPORT extern EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_;
  68. class ExtensionRangeOptions;
  69. struct ExtensionRangeOptionsDefaultTypeInternal;
  70. PROTOBUF_EXPORT extern ExtensionRangeOptionsDefaultTypeInternal _ExtensionRangeOptions_default_instance_;
  71. class FieldDescriptorProto;
  72. struct FieldDescriptorProtoDefaultTypeInternal;
  73. PROTOBUF_EXPORT extern FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_;
  74. class FieldOptions;
  75. struct FieldOptionsDefaultTypeInternal;
  76. PROTOBUF_EXPORT extern FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_;
  77. class FileDescriptorProto;
  78. struct FileDescriptorProtoDefaultTypeInternal;
  79. PROTOBUF_EXPORT extern FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_;
  80. class FileDescriptorSet;
  81. struct FileDescriptorSetDefaultTypeInternal;
  82. PROTOBUF_EXPORT extern FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_;
  83. class FileOptions;
  84. struct FileOptionsDefaultTypeInternal;
  85. PROTOBUF_EXPORT extern FileOptionsDefaultTypeInternal _FileOptions_default_instance_;
  86. class GeneratedCodeInfo;
  87. struct GeneratedCodeInfoDefaultTypeInternal;
  88. PROTOBUF_EXPORT extern GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_;
  89. class GeneratedCodeInfo_Annotation;
  90. struct GeneratedCodeInfo_AnnotationDefaultTypeInternal;
  91. PROTOBUF_EXPORT extern GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_;
  92. class MessageOptions;
  93. struct MessageOptionsDefaultTypeInternal;
  94. PROTOBUF_EXPORT extern MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_;
  95. class MethodDescriptorProto;
  96. struct MethodDescriptorProtoDefaultTypeInternal;
  97. PROTOBUF_EXPORT extern MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_;
  98. class MethodOptions;
  99. struct MethodOptionsDefaultTypeInternal;
  100. PROTOBUF_EXPORT extern MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_;
  101. class OneofDescriptorProto;
  102. struct OneofDescriptorProtoDefaultTypeInternal;
  103. PROTOBUF_EXPORT extern OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_;
  104. class OneofOptions;
  105. struct OneofOptionsDefaultTypeInternal;
  106. PROTOBUF_EXPORT extern OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_;
  107. class ServiceDescriptorProto;
  108. struct ServiceDescriptorProtoDefaultTypeInternal;
  109. PROTOBUF_EXPORT extern ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_;
  110. class ServiceOptions;
  111. struct ServiceOptionsDefaultTypeInternal;
  112. PROTOBUF_EXPORT extern ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_;
  113. class SourceCodeInfo;
  114. struct SourceCodeInfoDefaultTypeInternal;
  115. PROTOBUF_EXPORT extern SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_;
  116. class SourceCodeInfo_Location;
  117. struct SourceCodeInfo_LocationDefaultTypeInternal;
  118. PROTOBUF_EXPORT extern SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_;
  119. class UninterpretedOption;
  120. struct UninterpretedOptionDefaultTypeInternal;
  121. PROTOBUF_EXPORT extern UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_;
  122. class UninterpretedOption_NamePart;
  123. struct UninterpretedOption_NamePartDefaultTypeInternal;
  124. PROTOBUF_EXPORT extern UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_;
  125. PROTOBUF_NAMESPACE_CLOSE
  126. PROTOBUF_NAMESPACE_OPEN
  127. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto>(Arena*);
  128. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange>(Arena*);
  129. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange>(Arena*);
  130. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>(Arena*);
  131. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange>(Arena*);
  132. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumOptions>(Arena*);
  133. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto>(Arena*);
  134. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueOptions>(Arena*);
  135. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>(Arena*);
  136. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>(Arena*);
  137. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FieldOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldOptions>(Arena*);
  138. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>(Arena*);
  139. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileDescriptorSet* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileDescriptorSet>(Arena*);
  140. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileOptions>(Arena*);
  141. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo>(Arena*);
  142. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation>(Arena*);
  143. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MessageOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MessageOptions>(Arena*);
  144. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto>(Arena*);
  145. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MethodOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodOptions>(Arena*);
  146. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto>(Arena*);
  147. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::OneofOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofOptions>(Arena*);
  148. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto>(Arena*);
  149. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ServiceOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceOptions>(Arena*);
  150. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo>(Arena*);
  151. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location>(Arena*);
  152. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>(Arena*);
  153. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart>(Arena*);
  154. PROTOBUF_NAMESPACE_CLOSE
  155. PROTOBUF_NAMESPACE_OPEN
  156. enum FieldDescriptorProto_Type : int {
  157. FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
  158. FieldDescriptorProto_Type_TYPE_FLOAT = 2,
  159. FieldDescriptorProto_Type_TYPE_INT64 = 3,
  160. FieldDescriptorProto_Type_TYPE_UINT64 = 4,
  161. FieldDescriptorProto_Type_TYPE_INT32 = 5,
  162. FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
  163. FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
  164. FieldDescriptorProto_Type_TYPE_BOOL = 8,
  165. FieldDescriptorProto_Type_TYPE_STRING = 9,
  166. FieldDescriptorProto_Type_TYPE_GROUP = 10,
  167. FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
  168. FieldDescriptorProto_Type_TYPE_BYTES = 12,
  169. FieldDescriptorProto_Type_TYPE_UINT32 = 13,
  170. FieldDescriptorProto_Type_TYPE_ENUM = 14,
  171. FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
  172. FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
  173. FieldDescriptorProto_Type_TYPE_SINT32 = 17,
  174. FieldDescriptorProto_Type_TYPE_SINT64 = 18
  175. };
  176. PROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
  177. constexpr FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
  178. constexpr FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
  179. constexpr int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
  180. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
  181. template<typename T>
  182. inline const std::string& FieldDescriptorProto_Type_Name(T enum_t_value) {
  183. static_assert(::std::is_same<T, FieldDescriptorProto_Type>::value ||
  184. ::std::is_integral<T>::value,
  185. "Incorrect type passed to function FieldDescriptorProto_Type_Name.");
  186. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  187. FieldDescriptorProto_Type_descriptor(), enum_t_value);
  188. }
  189. inline bool FieldDescriptorProto_Type_Parse(
  190. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldDescriptorProto_Type* value) {
  191. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
  192. FieldDescriptorProto_Type_descriptor(), name, value);
  193. }
  194. enum FieldDescriptorProto_Label : int {
  195. FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
  196. FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
  197. FieldDescriptorProto_Label_LABEL_REPEATED = 3
  198. };
  199. PROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
  200. constexpr FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  201. constexpr FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
  202. constexpr int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
  203. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
  204. template<typename T>
  205. inline const std::string& FieldDescriptorProto_Label_Name(T enum_t_value) {
  206. static_assert(::std::is_same<T, FieldDescriptorProto_Label>::value ||
  207. ::std::is_integral<T>::value,
  208. "Incorrect type passed to function FieldDescriptorProto_Label_Name.");
  209. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  210. FieldDescriptorProto_Label_descriptor(), enum_t_value);
  211. }
  212. inline bool FieldDescriptorProto_Label_Parse(
  213. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldDescriptorProto_Label* value) {
  214. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
  215. FieldDescriptorProto_Label_descriptor(), name, value);
  216. }
  217. enum FileOptions_OptimizeMode : int {
  218. FileOptions_OptimizeMode_SPEED = 1,
  219. FileOptions_OptimizeMode_CODE_SIZE = 2,
  220. FileOptions_OptimizeMode_LITE_RUNTIME = 3
  221. };
  222. PROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
  223. constexpr FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
  224. constexpr FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
  225. constexpr int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
  226. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
  227. template<typename T>
  228. inline const std::string& FileOptions_OptimizeMode_Name(T enum_t_value) {
  229. static_assert(::std::is_same<T, FileOptions_OptimizeMode>::value ||
  230. ::std::is_integral<T>::value,
  231. "Incorrect type passed to function FileOptions_OptimizeMode_Name.");
  232. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  233. FileOptions_OptimizeMode_descriptor(), enum_t_value);
  234. }
  235. inline bool FileOptions_OptimizeMode_Parse(
  236. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FileOptions_OptimizeMode* value) {
  237. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
  238. FileOptions_OptimizeMode_descriptor(), name, value);
  239. }
  240. enum FieldOptions_CType : int {
  241. FieldOptions_CType_STRING = 0,
  242. FieldOptions_CType_CORD = 1,
  243. FieldOptions_CType_STRING_PIECE = 2
  244. };
  245. PROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
  246. constexpr FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
  247. constexpr FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
  248. constexpr int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
  249. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_CType_descriptor();
  250. template<typename T>
  251. inline const std::string& FieldOptions_CType_Name(T enum_t_value) {
  252. static_assert(::std::is_same<T, FieldOptions_CType>::value ||
  253. ::std::is_integral<T>::value,
  254. "Incorrect type passed to function FieldOptions_CType_Name.");
  255. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  256. FieldOptions_CType_descriptor(), enum_t_value);
  257. }
  258. inline bool FieldOptions_CType_Parse(
  259. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldOptions_CType* value) {
  260. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldOptions_CType>(
  261. FieldOptions_CType_descriptor(), name, value);
  262. }
  263. enum FieldOptions_JSType : int {
  264. FieldOptions_JSType_JS_NORMAL = 0,
  265. FieldOptions_JSType_JS_STRING = 1,
  266. FieldOptions_JSType_JS_NUMBER = 2
  267. };
  268. PROTOBUF_EXPORT bool FieldOptions_JSType_IsValid(int value);
  269. constexpr FieldOptions_JSType FieldOptions_JSType_JSType_MIN = FieldOptions_JSType_JS_NORMAL;
  270. constexpr FieldOptions_JSType FieldOptions_JSType_JSType_MAX = FieldOptions_JSType_JS_NUMBER;
  271. constexpr int FieldOptions_JSType_JSType_ARRAYSIZE = FieldOptions_JSType_JSType_MAX + 1;
  272. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_JSType_descriptor();
  273. template<typename T>
  274. inline const std::string& FieldOptions_JSType_Name(T enum_t_value) {
  275. static_assert(::std::is_same<T, FieldOptions_JSType>::value ||
  276. ::std::is_integral<T>::value,
  277. "Incorrect type passed to function FieldOptions_JSType_Name.");
  278. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  279. FieldOptions_JSType_descriptor(), enum_t_value);
  280. }
  281. inline bool FieldOptions_JSType_Parse(
  282. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldOptions_JSType* value) {
  283. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldOptions_JSType>(
  284. FieldOptions_JSType_descriptor(), name, value);
  285. }
  286. enum MethodOptions_IdempotencyLevel : int {
  287. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN = 0,
  288. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS = 1,
  289. MethodOptions_IdempotencyLevel_IDEMPOTENT = 2
  290. };
  291. PROTOBUF_EXPORT bool MethodOptions_IdempotencyLevel_IsValid(int value);
  292. constexpr MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN = MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  293. constexpr MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX = MethodOptions_IdempotencyLevel_IDEMPOTENT;
  294. constexpr int MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE = MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX + 1;
  295. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MethodOptions_IdempotencyLevel_descriptor();
  296. template<typename T>
  297. inline const std::string& MethodOptions_IdempotencyLevel_Name(T enum_t_value) {
  298. static_assert(::std::is_same<T, MethodOptions_IdempotencyLevel>::value ||
  299. ::std::is_integral<T>::value,
  300. "Incorrect type passed to function MethodOptions_IdempotencyLevel_Name.");
  301. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  302. MethodOptions_IdempotencyLevel_descriptor(), enum_t_value);
  303. }
  304. inline bool MethodOptions_IdempotencyLevel_Parse(
  305. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MethodOptions_IdempotencyLevel* value) {
  306. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MethodOptions_IdempotencyLevel>(
  307. MethodOptions_IdempotencyLevel_descriptor(), name, value);
  308. }
  309. // ===================================================================
  310. class PROTOBUF_EXPORT FileDescriptorSet final :
  311. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorSet) */ {
  312. public:
  313. inline FileDescriptorSet() : FileDescriptorSet(nullptr) {}
  314. ~FileDescriptorSet() override;
  315. explicit PROTOBUF_CONSTEXPR FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  316. FileDescriptorSet(const FileDescriptorSet& from);
  317. FileDescriptorSet(FileDescriptorSet&& from) noexcept
  318. : FileDescriptorSet() {
  319. *this = ::std::move(from);
  320. }
  321. inline FileDescriptorSet& operator=(const FileDescriptorSet& from) {
  322. CopyFrom(from);
  323. return *this;
  324. }
  325. inline FileDescriptorSet& operator=(FileDescriptorSet&& from) noexcept {
  326. if (this == &from) return *this;
  327. if (GetOwningArena() == from.GetOwningArena()
  328. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  329. && GetOwningArena() != nullptr
  330. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  331. ) {
  332. InternalSwap(&from);
  333. } else {
  334. CopyFrom(from);
  335. }
  336. return *this;
  337. }
  338. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  339. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  340. }
  341. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  342. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  343. }
  344. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  345. return GetDescriptor();
  346. }
  347. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  348. return default_instance().GetMetadata().descriptor;
  349. }
  350. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  351. return default_instance().GetMetadata().reflection;
  352. }
  353. static const FileDescriptorSet& default_instance() {
  354. return *internal_default_instance();
  355. }
  356. static inline const FileDescriptorSet* internal_default_instance() {
  357. return reinterpret_cast<const FileDescriptorSet*>(
  358. &_FileDescriptorSet_default_instance_);
  359. }
  360. static constexpr int kIndexInFileMessages =
  361. 0;
  362. friend void swap(FileDescriptorSet& a, FileDescriptorSet& b) {
  363. a.Swap(&b);
  364. }
  365. inline void Swap(FileDescriptorSet* other) {
  366. if (other == this) return;
  367. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  368. if (GetOwningArena() != nullptr &&
  369. GetOwningArena() == other->GetOwningArena()) {
  370. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  371. if (GetOwningArena() == other->GetOwningArena()) {
  372. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  373. InternalSwap(other);
  374. } else {
  375. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  376. }
  377. }
  378. void UnsafeArenaSwap(FileDescriptorSet* other) {
  379. if (other == this) return;
  380. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  381. InternalSwap(other);
  382. }
  383. // implements Message ----------------------------------------------
  384. FileDescriptorSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  385. return CreateMaybeMessage<FileDescriptorSet>(arena);
  386. }
  387. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  388. void CopyFrom(const FileDescriptorSet& from);
  389. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  390. void MergeFrom( const FileDescriptorSet& from) {
  391. FileDescriptorSet::MergeImpl(*this, from);
  392. }
  393. private:
  394. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  395. public:
  396. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  397. bool IsInitialized() const final;
  398. size_t ByteSizeLong() const final;
  399. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  400. uint8_t* _InternalSerialize(
  401. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  402. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  403. private:
  404. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  405. void SharedDtor();
  406. void SetCachedSize(int size) const final;
  407. void InternalSwap(FileDescriptorSet* other);
  408. private:
  409. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  410. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  411. return "google.protobuf.FileDescriptorSet";
  412. }
  413. protected:
  414. explicit FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  415. bool is_message_owned = false);
  416. public:
  417. static const ClassData _class_data_;
  418. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  419. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  420. // nested types ----------------------------------------------------
  421. // accessors -------------------------------------------------------
  422. enum : int {
  423. kFileFieldNumber = 1,
  424. };
  425. // repeated .google.protobuf.FileDescriptorProto file = 1;
  426. int file_size() const;
  427. private:
  428. int _internal_file_size() const;
  429. public:
  430. void clear_file();
  431. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* mutable_file(int index);
  432. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  433. mutable_file();
  434. private:
  435. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& _internal_file(int index) const;
  436. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _internal_add_file();
  437. public:
  438. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& file(int index) const;
  439. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* add_file();
  440. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  441. file() const;
  442. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
  443. private:
  444. class _Internal;
  445. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  446. typedef void InternalArenaConstructable_;
  447. typedef void DestructorSkippable_;
  448. struct Impl_ {
  449. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto > file_;
  450. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  451. };
  452. union { Impl_ _impl_; };
  453. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  454. };
  455. // -------------------------------------------------------------------
  456. class PROTOBUF_EXPORT FileDescriptorProto final :
  457. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorProto) */ {
  458. public:
  459. inline FileDescriptorProto() : FileDescriptorProto(nullptr) {}
  460. ~FileDescriptorProto() override;
  461. explicit PROTOBUF_CONSTEXPR FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  462. FileDescriptorProto(const FileDescriptorProto& from);
  463. FileDescriptorProto(FileDescriptorProto&& from) noexcept
  464. : FileDescriptorProto() {
  465. *this = ::std::move(from);
  466. }
  467. inline FileDescriptorProto& operator=(const FileDescriptorProto& from) {
  468. CopyFrom(from);
  469. return *this;
  470. }
  471. inline FileDescriptorProto& operator=(FileDescriptorProto&& from) noexcept {
  472. if (this == &from) return *this;
  473. if (GetOwningArena() == from.GetOwningArena()
  474. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  475. && GetOwningArena() != nullptr
  476. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  477. ) {
  478. InternalSwap(&from);
  479. } else {
  480. CopyFrom(from);
  481. }
  482. return *this;
  483. }
  484. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  485. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  486. }
  487. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  488. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  489. }
  490. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  491. return GetDescriptor();
  492. }
  493. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  494. return default_instance().GetMetadata().descriptor;
  495. }
  496. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  497. return default_instance().GetMetadata().reflection;
  498. }
  499. static const FileDescriptorProto& default_instance() {
  500. return *internal_default_instance();
  501. }
  502. static inline const FileDescriptorProto* internal_default_instance() {
  503. return reinterpret_cast<const FileDescriptorProto*>(
  504. &_FileDescriptorProto_default_instance_);
  505. }
  506. static constexpr int kIndexInFileMessages =
  507. 1;
  508. friend void swap(FileDescriptorProto& a, FileDescriptorProto& b) {
  509. a.Swap(&b);
  510. }
  511. inline void Swap(FileDescriptorProto* other) {
  512. if (other == this) return;
  513. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  514. if (GetOwningArena() != nullptr &&
  515. GetOwningArena() == other->GetOwningArena()) {
  516. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  517. if (GetOwningArena() == other->GetOwningArena()) {
  518. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  519. InternalSwap(other);
  520. } else {
  521. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  522. }
  523. }
  524. void UnsafeArenaSwap(FileDescriptorProto* other) {
  525. if (other == this) return;
  526. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  527. InternalSwap(other);
  528. }
  529. // implements Message ----------------------------------------------
  530. FileDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  531. return CreateMaybeMessage<FileDescriptorProto>(arena);
  532. }
  533. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  534. void CopyFrom(const FileDescriptorProto& from);
  535. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  536. void MergeFrom( const FileDescriptorProto& from) {
  537. FileDescriptorProto::MergeImpl(*this, from);
  538. }
  539. private:
  540. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  541. public:
  542. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  543. bool IsInitialized() const final;
  544. size_t ByteSizeLong() const final;
  545. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  546. uint8_t* _InternalSerialize(
  547. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  548. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  549. private:
  550. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  551. void SharedDtor();
  552. void SetCachedSize(int size) const final;
  553. void InternalSwap(FileDescriptorProto* other);
  554. private:
  555. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  556. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  557. return "google.protobuf.FileDescriptorProto";
  558. }
  559. protected:
  560. explicit FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  561. bool is_message_owned = false);
  562. public:
  563. static const ClassData _class_data_;
  564. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  565. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  566. // nested types ----------------------------------------------------
  567. // accessors -------------------------------------------------------
  568. enum : int {
  569. kDependencyFieldNumber = 3,
  570. kMessageTypeFieldNumber = 4,
  571. kEnumTypeFieldNumber = 5,
  572. kServiceFieldNumber = 6,
  573. kExtensionFieldNumber = 7,
  574. kPublicDependencyFieldNumber = 10,
  575. kWeakDependencyFieldNumber = 11,
  576. kNameFieldNumber = 1,
  577. kPackageFieldNumber = 2,
  578. kSyntaxFieldNumber = 12,
  579. kOptionsFieldNumber = 8,
  580. kSourceCodeInfoFieldNumber = 9,
  581. };
  582. // repeated string dependency = 3;
  583. int dependency_size() const;
  584. private:
  585. int _internal_dependency_size() const;
  586. public:
  587. void clear_dependency();
  588. const std::string& dependency(int index) const;
  589. std::string* mutable_dependency(int index);
  590. void set_dependency(int index, const std::string& value);
  591. void set_dependency(int index, std::string&& value);
  592. void set_dependency(int index, const char* value);
  593. void set_dependency(int index, const char* value, size_t size);
  594. std::string* add_dependency();
  595. void add_dependency(const std::string& value);
  596. void add_dependency(std::string&& value);
  597. void add_dependency(const char* value);
  598. void add_dependency(const char* value, size_t size);
  599. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& dependency() const;
  600. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_dependency();
  601. private:
  602. const std::string& _internal_dependency(int index) const;
  603. std::string* _internal_add_dependency();
  604. public:
  605. // repeated .google.protobuf.DescriptorProto message_type = 4;
  606. int message_type_size() const;
  607. private:
  608. int _internal_message_type_size() const;
  609. public:
  610. void clear_message_type();
  611. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* mutable_message_type(int index);
  612. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  613. mutable_message_type();
  614. private:
  615. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& _internal_message_type(int index) const;
  616. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _internal_add_message_type();
  617. public:
  618. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& message_type(int index) const;
  619. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* add_message_type();
  620. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  621. message_type() const;
  622. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  623. int enum_type_size() const;
  624. private:
  625. int _internal_enum_type_size() const;
  626. public:
  627. void clear_enum_type();
  628. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* mutable_enum_type(int index);
  629. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  630. mutable_enum_type();
  631. private:
  632. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& _internal_enum_type(int index) const;
  633. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _internal_add_enum_type();
  634. public:
  635. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& enum_type(int index) const;
  636. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* add_enum_type();
  637. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  638. enum_type() const;
  639. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  640. int service_size() const;
  641. private:
  642. int _internal_service_size() const;
  643. public:
  644. void clear_service();
  645. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* mutable_service(int index);
  646. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >*
  647. mutable_service();
  648. private:
  649. const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& _internal_service(int index) const;
  650. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* _internal_add_service();
  651. public:
  652. const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& service(int index) const;
  653. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* add_service();
  654. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >&
  655. service() const;
  656. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  657. int extension_size() const;
  658. private:
  659. int _internal_extension_size() const;
  660. public:
  661. void clear_extension();
  662. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index);
  663. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  664. mutable_extension();
  665. private:
  666. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_extension(int index) const;
  667. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_extension();
  668. public:
  669. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& extension(int index) const;
  670. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_extension();
  671. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  672. extension() const;
  673. // repeated int32 public_dependency = 10;
  674. int public_dependency_size() const;
  675. private:
  676. int _internal_public_dependency_size() const;
  677. public:
  678. void clear_public_dependency();
  679. private:
  680. int32_t _internal_public_dependency(int index) const;
  681. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  682. _internal_public_dependency() const;
  683. void _internal_add_public_dependency(int32_t value);
  684. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  685. _internal_mutable_public_dependency();
  686. public:
  687. int32_t public_dependency(int index) const;
  688. void set_public_dependency(int index, int32_t value);
  689. void add_public_dependency(int32_t value);
  690. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  691. public_dependency() const;
  692. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  693. mutable_public_dependency();
  694. // repeated int32 weak_dependency = 11;
  695. int weak_dependency_size() const;
  696. private:
  697. int _internal_weak_dependency_size() const;
  698. public:
  699. void clear_weak_dependency();
  700. private:
  701. int32_t _internal_weak_dependency(int index) const;
  702. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  703. _internal_weak_dependency() const;
  704. void _internal_add_weak_dependency(int32_t value);
  705. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  706. _internal_mutable_weak_dependency();
  707. public:
  708. int32_t weak_dependency(int index) const;
  709. void set_weak_dependency(int index, int32_t value);
  710. void add_weak_dependency(int32_t value);
  711. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  712. weak_dependency() const;
  713. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  714. mutable_weak_dependency();
  715. // optional string name = 1;
  716. bool has_name() const;
  717. private:
  718. bool _internal_has_name() const;
  719. public:
  720. void clear_name();
  721. const std::string& name() const;
  722. template <typename ArgT0 = const std::string&, typename... ArgT>
  723. void set_name(ArgT0&& arg0, ArgT... args);
  724. std::string* mutable_name();
  725. PROTOBUF_NODISCARD std::string* release_name();
  726. void set_allocated_name(std::string* name);
  727. private:
  728. const std::string& _internal_name() const;
  729. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  730. std::string* _internal_mutable_name();
  731. public:
  732. // optional string package = 2;
  733. bool has_package() const;
  734. private:
  735. bool _internal_has_package() const;
  736. public:
  737. void clear_package();
  738. const std::string& package() const;
  739. template <typename ArgT0 = const std::string&, typename... ArgT>
  740. void set_package(ArgT0&& arg0, ArgT... args);
  741. std::string* mutable_package();
  742. PROTOBUF_NODISCARD std::string* release_package();
  743. void set_allocated_package(std::string* package);
  744. private:
  745. const std::string& _internal_package() const;
  746. inline PROTOBUF_ALWAYS_INLINE void _internal_set_package(const std::string& value);
  747. std::string* _internal_mutable_package();
  748. public:
  749. // optional string syntax = 12;
  750. bool has_syntax() const;
  751. private:
  752. bool _internal_has_syntax() const;
  753. public:
  754. void clear_syntax();
  755. const std::string& syntax() const;
  756. template <typename ArgT0 = const std::string&, typename... ArgT>
  757. void set_syntax(ArgT0&& arg0, ArgT... args);
  758. std::string* mutable_syntax();
  759. PROTOBUF_NODISCARD std::string* release_syntax();
  760. void set_allocated_syntax(std::string* syntax);
  761. private:
  762. const std::string& _internal_syntax() const;
  763. inline PROTOBUF_ALWAYS_INLINE void _internal_set_syntax(const std::string& value);
  764. std::string* _internal_mutable_syntax();
  765. public:
  766. // optional .google.protobuf.FileOptions options = 8;
  767. bool has_options() const;
  768. private:
  769. bool _internal_has_options() const;
  770. public:
  771. void clear_options();
  772. const ::PROTOBUF_NAMESPACE_ID::FileOptions& options() const;
  773. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FileOptions* release_options();
  774. ::PROTOBUF_NAMESPACE_ID::FileOptions* mutable_options();
  775. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::FileOptions* options);
  776. private:
  777. const ::PROTOBUF_NAMESPACE_ID::FileOptions& _internal_options() const;
  778. ::PROTOBUF_NAMESPACE_ID::FileOptions* _internal_mutable_options();
  779. public:
  780. void unsafe_arena_set_allocated_options(
  781. ::PROTOBUF_NAMESPACE_ID::FileOptions* options);
  782. ::PROTOBUF_NAMESPACE_ID::FileOptions* unsafe_arena_release_options();
  783. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  784. bool has_source_code_info() const;
  785. private:
  786. bool _internal_has_source_code_info() const;
  787. public:
  788. void clear_source_code_info();
  789. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& source_code_info() const;
  790. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* release_source_code_info();
  791. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* mutable_source_code_info();
  792. void set_allocated_source_code_info(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info);
  793. private:
  794. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& _internal_source_code_info() const;
  795. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* _internal_mutable_source_code_info();
  796. public:
  797. void unsafe_arena_set_allocated_source_code_info(
  798. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info);
  799. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* unsafe_arena_release_source_code_info();
  800. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
  801. private:
  802. class _Internal;
  803. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  804. typedef void InternalArenaConstructable_;
  805. typedef void DestructorSkippable_;
  806. struct Impl_ {
  807. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  808. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  809. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> dependency_;
  810. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto > message_type_;
  811. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto > enum_type_;
  812. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto > service_;
  813. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > extension_;
  814. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > public_dependency_;
  815. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > weak_dependency_;
  816. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  817. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_;
  818. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr syntax_;
  819. ::PROTOBUF_NAMESPACE_ID::FileOptions* options_;
  820. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info_;
  821. };
  822. union { Impl_ _impl_; };
  823. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  824. };
  825. // -------------------------------------------------------------------
  826. class PROTOBUF_EXPORT DescriptorProto_ExtensionRange final :
  827. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ExtensionRange) */ {
  828. public:
  829. inline DescriptorProto_ExtensionRange() : DescriptorProto_ExtensionRange(nullptr) {}
  830. ~DescriptorProto_ExtensionRange() override;
  831. explicit PROTOBUF_CONSTEXPR DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  832. DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from);
  833. DescriptorProto_ExtensionRange(DescriptorProto_ExtensionRange&& from) noexcept
  834. : DescriptorProto_ExtensionRange() {
  835. *this = ::std::move(from);
  836. }
  837. inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) {
  838. CopyFrom(from);
  839. return *this;
  840. }
  841. inline DescriptorProto_ExtensionRange& operator=(DescriptorProto_ExtensionRange&& from) noexcept {
  842. if (this == &from) return *this;
  843. if (GetOwningArena() == from.GetOwningArena()
  844. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  845. && GetOwningArena() != nullptr
  846. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  847. ) {
  848. InternalSwap(&from);
  849. } else {
  850. CopyFrom(from);
  851. }
  852. return *this;
  853. }
  854. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  855. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  856. }
  857. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  858. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  859. }
  860. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  861. return GetDescriptor();
  862. }
  863. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  864. return default_instance().GetMetadata().descriptor;
  865. }
  866. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  867. return default_instance().GetMetadata().reflection;
  868. }
  869. static const DescriptorProto_ExtensionRange& default_instance() {
  870. return *internal_default_instance();
  871. }
  872. static inline const DescriptorProto_ExtensionRange* internal_default_instance() {
  873. return reinterpret_cast<const DescriptorProto_ExtensionRange*>(
  874. &_DescriptorProto_ExtensionRange_default_instance_);
  875. }
  876. static constexpr int kIndexInFileMessages =
  877. 2;
  878. friend void swap(DescriptorProto_ExtensionRange& a, DescriptorProto_ExtensionRange& b) {
  879. a.Swap(&b);
  880. }
  881. inline void Swap(DescriptorProto_ExtensionRange* other) {
  882. if (other == this) return;
  883. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  884. if (GetOwningArena() != nullptr &&
  885. GetOwningArena() == other->GetOwningArena()) {
  886. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  887. if (GetOwningArena() == other->GetOwningArena()) {
  888. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  889. InternalSwap(other);
  890. } else {
  891. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  892. }
  893. }
  894. void UnsafeArenaSwap(DescriptorProto_ExtensionRange* other) {
  895. if (other == this) return;
  896. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  897. InternalSwap(other);
  898. }
  899. // implements Message ----------------------------------------------
  900. DescriptorProto_ExtensionRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  901. return CreateMaybeMessage<DescriptorProto_ExtensionRange>(arena);
  902. }
  903. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  904. void CopyFrom(const DescriptorProto_ExtensionRange& from);
  905. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  906. void MergeFrom( const DescriptorProto_ExtensionRange& from) {
  907. DescriptorProto_ExtensionRange::MergeImpl(*this, from);
  908. }
  909. private:
  910. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  911. public:
  912. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  913. bool IsInitialized() const final;
  914. size_t ByteSizeLong() const final;
  915. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  916. uint8_t* _InternalSerialize(
  917. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  918. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  919. private:
  920. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  921. void SharedDtor();
  922. void SetCachedSize(int size) const final;
  923. void InternalSwap(DescriptorProto_ExtensionRange* other);
  924. private:
  925. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  926. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  927. return "google.protobuf.DescriptorProto.ExtensionRange";
  928. }
  929. protected:
  930. explicit DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  931. bool is_message_owned = false);
  932. public:
  933. static const ClassData _class_data_;
  934. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  935. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  936. // nested types ----------------------------------------------------
  937. // accessors -------------------------------------------------------
  938. enum : int {
  939. kOptionsFieldNumber = 3,
  940. kStartFieldNumber = 1,
  941. kEndFieldNumber = 2,
  942. };
  943. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  944. bool has_options() const;
  945. private:
  946. bool _internal_has_options() const;
  947. public:
  948. void clear_options();
  949. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& options() const;
  950. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* release_options();
  951. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* mutable_options();
  952. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options);
  953. private:
  954. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& _internal_options() const;
  955. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* _internal_mutable_options();
  956. public:
  957. void unsafe_arena_set_allocated_options(
  958. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options);
  959. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* unsafe_arena_release_options();
  960. // optional int32 start = 1;
  961. bool has_start() const;
  962. private:
  963. bool _internal_has_start() const;
  964. public:
  965. void clear_start();
  966. int32_t start() const;
  967. void set_start(int32_t value);
  968. private:
  969. int32_t _internal_start() const;
  970. void _internal_set_start(int32_t value);
  971. public:
  972. // optional int32 end = 2;
  973. bool has_end() const;
  974. private:
  975. bool _internal_has_end() const;
  976. public:
  977. void clear_end();
  978. int32_t end() const;
  979. void set_end(int32_t value);
  980. private:
  981. int32_t _internal_end() const;
  982. void _internal_set_end(int32_t value);
  983. public:
  984. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
  985. private:
  986. class _Internal;
  987. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  988. typedef void InternalArenaConstructable_;
  989. typedef void DestructorSkippable_;
  990. struct Impl_ {
  991. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  992. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  993. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options_;
  994. int32_t start_;
  995. int32_t end_;
  996. };
  997. union { Impl_ _impl_; };
  998. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  999. };
  1000. // -------------------------------------------------------------------
  1001. class PROTOBUF_EXPORT DescriptorProto_ReservedRange final :
  1002. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ReservedRange) */ {
  1003. public:
  1004. inline DescriptorProto_ReservedRange() : DescriptorProto_ReservedRange(nullptr) {}
  1005. ~DescriptorProto_ReservedRange() override;
  1006. explicit PROTOBUF_CONSTEXPR DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1007. DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from);
  1008. DescriptorProto_ReservedRange(DescriptorProto_ReservedRange&& from) noexcept
  1009. : DescriptorProto_ReservedRange() {
  1010. *this = ::std::move(from);
  1011. }
  1012. inline DescriptorProto_ReservedRange& operator=(const DescriptorProto_ReservedRange& from) {
  1013. CopyFrom(from);
  1014. return *this;
  1015. }
  1016. inline DescriptorProto_ReservedRange& operator=(DescriptorProto_ReservedRange&& from) noexcept {
  1017. if (this == &from) return *this;
  1018. if (GetOwningArena() == from.GetOwningArena()
  1019. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1020. && GetOwningArena() != nullptr
  1021. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1022. ) {
  1023. InternalSwap(&from);
  1024. } else {
  1025. CopyFrom(from);
  1026. }
  1027. return *this;
  1028. }
  1029. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1030. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1031. }
  1032. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1033. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1034. }
  1035. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1036. return GetDescriptor();
  1037. }
  1038. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1039. return default_instance().GetMetadata().descriptor;
  1040. }
  1041. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1042. return default_instance().GetMetadata().reflection;
  1043. }
  1044. static const DescriptorProto_ReservedRange& default_instance() {
  1045. return *internal_default_instance();
  1046. }
  1047. static inline const DescriptorProto_ReservedRange* internal_default_instance() {
  1048. return reinterpret_cast<const DescriptorProto_ReservedRange*>(
  1049. &_DescriptorProto_ReservedRange_default_instance_);
  1050. }
  1051. static constexpr int kIndexInFileMessages =
  1052. 3;
  1053. friend void swap(DescriptorProto_ReservedRange& a, DescriptorProto_ReservedRange& b) {
  1054. a.Swap(&b);
  1055. }
  1056. inline void Swap(DescriptorProto_ReservedRange* other) {
  1057. if (other == this) return;
  1058. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1059. if (GetOwningArena() != nullptr &&
  1060. GetOwningArena() == other->GetOwningArena()) {
  1061. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1062. if (GetOwningArena() == other->GetOwningArena()) {
  1063. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1064. InternalSwap(other);
  1065. } else {
  1066. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1067. }
  1068. }
  1069. void UnsafeArenaSwap(DescriptorProto_ReservedRange* other) {
  1070. if (other == this) return;
  1071. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1072. InternalSwap(other);
  1073. }
  1074. // implements Message ----------------------------------------------
  1075. DescriptorProto_ReservedRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1076. return CreateMaybeMessage<DescriptorProto_ReservedRange>(arena);
  1077. }
  1078. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1079. void CopyFrom(const DescriptorProto_ReservedRange& from);
  1080. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1081. void MergeFrom( const DescriptorProto_ReservedRange& from) {
  1082. DescriptorProto_ReservedRange::MergeImpl(*this, from);
  1083. }
  1084. private:
  1085. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  1086. public:
  1087. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1088. bool IsInitialized() const final;
  1089. size_t ByteSizeLong() const final;
  1090. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1091. uint8_t* _InternalSerialize(
  1092. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1093. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  1094. private:
  1095. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  1096. void SharedDtor();
  1097. void SetCachedSize(int size) const final;
  1098. void InternalSwap(DescriptorProto_ReservedRange* other);
  1099. private:
  1100. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1101. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1102. return "google.protobuf.DescriptorProto.ReservedRange";
  1103. }
  1104. protected:
  1105. explicit DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1106. bool is_message_owned = false);
  1107. public:
  1108. static const ClassData _class_data_;
  1109. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1110. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1111. // nested types ----------------------------------------------------
  1112. // accessors -------------------------------------------------------
  1113. enum : int {
  1114. kStartFieldNumber = 1,
  1115. kEndFieldNumber = 2,
  1116. };
  1117. // optional int32 start = 1;
  1118. bool has_start() const;
  1119. private:
  1120. bool _internal_has_start() const;
  1121. public:
  1122. void clear_start();
  1123. int32_t start() const;
  1124. void set_start(int32_t value);
  1125. private:
  1126. int32_t _internal_start() const;
  1127. void _internal_set_start(int32_t value);
  1128. public:
  1129. // optional int32 end = 2;
  1130. bool has_end() const;
  1131. private:
  1132. bool _internal_has_end() const;
  1133. public:
  1134. void clear_end();
  1135. int32_t end() const;
  1136. void set_end(int32_t value);
  1137. private:
  1138. int32_t _internal_end() const;
  1139. void _internal_set_end(int32_t value);
  1140. public:
  1141. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ReservedRange)
  1142. private:
  1143. class _Internal;
  1144. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1145. typedef void InternalArenaConstructable_;
  1146. typedef void DestructorSkippable_;
  1147. struct Impl_ {
  1148. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1149. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1150. int32_t start_;
  1151. int32_t end_;
  1152. };
  1153. union { Impl_ _impl_; };
  1154. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1155. };
  1156. // -------------------------------------------------------------------
  1157. class PROTOBUF_EXPORT DescriptorProto final :
  1158. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto) */ {
  1159. public:
  1160. inline DescriptorProto() : DescriptorProto(nullptr) {}
  1161. ~DescriptorProto() override;
  1162. explicit PROTOBUF_CONSTEXPR DescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1163. DescriptorProto(const DescriptorProto& from);
  1164. DescriptorProto(DescriptorProto&& from) noexcept
  1165. : DescriptorProto() {
  1166. *this = ::std::move(from);
  1167. }
  1168. inline DescriptorProto& operator=(const DescriptorProto& from) {
  1169. CopyFrom(from);
  1170. return *this;
  1171. }
  1172. inline DescriptorProto& operator=(DescriptorProto&& from) noexcept {
  1173. if (this == &from) return *this;
  1174. if (GetOwningArena() == from.GetOwningArena()
  1175. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1176. && GetOwningArena() != nullptr
  1177. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1178. ) {
  1179. InternalSwap(&from);
  1180. } else {
  1181. CopyFrom(from);
  1182. }
  1183. return *this;
  1184. }
  1185. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1186. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1187. }
  1188. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1189. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1190. }
  1191. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1192. return GetDescriptor();
  1193. }
  1194. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1195. return default_instance().GetMetadata().descriptor;
  1196. }
  1197. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1198. return default_instance().GetMetadata().reflection;
  1199. }
  1200. static const DescriptorProto& default_instance() {
  1201. return *internal_default_instance();
  1202. }
  1203. static inline const DescriptorProto* internal_default_instance() {
  1204. return reinterpret_cast<const DescriptorProto*>(
  1205. &_DescriptorProto_default_instance_);
  1206. }
  1207. static constexpr int kIndexInFileMessages =
  1208. 4;
  1209. friend void swap(DescriptorProto& a, DescriptorProto& b) {
  1210. a.Swap(&b);
  1211. }
  1212. inline void Swap(DescriptorProto* other) {
  1213. if (other == this) return;
  1214. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1215. if (GetOwningArena() != nullptr &&
  1216. GetOwningArena() == other->GetOwningArena()) {
  1217. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1218. if (GetOwningArena() == other->GetOwningArena()) {
  1219. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1220. InternalSwap(other);
  1221. } else {
  1222. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1223. }
  1224. }
  1225. void UnsafeArenaSwap(DescriptorProto* other) {
  1226. if (other == this) return;
  1227. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1228. InternalSwap(other);
  1229. }
  1230. // implements Message ----------------------------------------------
  1231. DescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1232. return CreateMaybeMessage<DescriptorProto>(arena);
  1233. }
  1234. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1235. void CopyFrom(const DescriptorProto& from);
  1236. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1237. void MergeFrom( const DescriptorProto& from) {
  1238. DescriptorProto::MergeImpl(*this, from);
  1239. }
  1240. private:
  1241. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  1242. public:
  1243. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1244. bool IsInitialized() const final;
  1245. size_t ByteSizeLong() const final;
  1246. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1247. uint8_t* _InternalSerialize(
  1248. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1249. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  1250. private:
  1251. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  1252. void SharedDtor();
  1253. void SetCachedSize(int size) const final;
  1254. void InternalSwap(DescriptorProto* other);
  1255. private:
  1256. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1257. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1258. return "google.protobuf.DescriptorProto";
  1259. }
  1260. protected:
  1261. explicit DescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1262. bool is_message_owned = false);
  1263. public:
  1264. static const ClassData _class_data_;
  1265. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1266. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1267. // nested types ----------------------------------------------------
  1268. typedef DescriptorProto_ExtensionRange ExtensionRange;
  1269. typedef DescriptorProto_ReservedRange ReservedRange;
  1270. // accessors -------------------------------------------------------
  1271. enum : int {
  1272. kFieldFieldNumber = 2,
  1273. kNestedTypeFieldNumber = 3,
  1274. kEnumTypeFieldNumber = 4,
  1275. kExtensionRangeFieldNumber = 5,
  1276. kExtensionFieldNumber = 6,
  1277. kOneofDeclFieldNumber = 8,
  1278. kReservedRangeFieldNumber = 9,
  1279. kReservedNameFieldNumber = 10,
  1280. kNameFieldNumber = 1,
  1281. kOptionsFieldNumber = 7,
  1282. };
  1283. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1284. int field_size() const;
  1285. private:
  1286. int _internal_field_size() const;
  1287. public:
  1288. void clear_field();
  1289. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_field(int index);
  1290. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  1291. mutable_field();
  1292. private:
  1293. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_field(int index) const;
  1294. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_field();
  1295. public:
  1296. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& field(int index) const;
  1297. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_field();
  1298. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  1299. field() const;
  1300. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1301. int nested_type_size() const;
  1302. private:
  1303. int _internal_nested_type_size() const;
  1304. public:
  1305. void clear_nested_type();
  1306. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* mutable_nested_type(int index);
  1307. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  1308. mutable_nested_type();
  1309. private:
  1310. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& _internal_nested_type(int index) const;
  1311. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _internal_add_nested_type();
  1312. public:
  1313. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& nested_type(int index) const;
  1314. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* add_nested_type();
  1315. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  1316. nested_type() const;
  1317. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1318. int enum_type_size() const;
  1319. private:
  1320. int _internal_enum_type_size() const;
  1321. public:
  1322. void clear_enum_type();
  1323. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* mutable_enum_type(int index);
  1324. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  1325. mutable_enum_type();
  1326. private:
  1327. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& _internal_enum_type(int index) const;
  1328. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _internal_add_enum_type();
  1329. public:
  1330. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& enum_type(int index) const;
  1331. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* add_enum_type();
  1332. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  1333. enum_type() const;
  1334. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1335. int extension_range_size() const;
  1336. private:
  1337. int _internal_extension_range_size() const;
  1338. public:
  1339. void clear_extension_range();
  1340. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
  1341. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >*
  1342. mutable_extension_range();
  1343. private:
  1344. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& _internal_extension_range(int index) const;
  1345. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* _internal_add_extension_range();
  1346. public:
  1347. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& extension_range(int index) const;
  1348. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* add_extension_range();
  1349. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >&
  1350. extension_range() const;
  1351. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1352. int extension_size() const;
  1353. private:
  1354. int _internal_extension_size() const;
  1355. public:
  1356. void clear_extension();
  1357. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index);
  1358. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  1359. mutable_extension();
  1360. private:
  1361. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_extension(int index) const;
  1362. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_extension();
  1363. public:
  1364. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& extension(int index) const;
  1365. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_extension();
  1366. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  1367. extension() const;
  1368. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  1369. int oneof_decl_size() const;
  1370. private:
  1371. int _internal_oneof_decl_size() const;
  1372. public:
  1373. void clear_oneof_decl();
  1374. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* mutable_oneof_decl(int index);
  1375. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >*
  1376. mutable_oneof_decl();
  1377. private:
  1378. const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& _internal_oneof_decl(int index) const;
  1379. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* _internal_add_oneof_decl();
  1380. public:
  1381. const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& oneof_decl(int index) const;
  1382. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* add_oneof_decl();
  1383. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >&
  1384. oneof_decl() const;
  1385. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  1386. int reserved_range_size() const;
  1387. private:
  1388. int _internal_reserved_range_size() const;
  1389. public:
  1390. void clear_reserved_range();
  1391. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* mutable_reserved_range(int index);
  1392. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >*
  1393. mutable_reserved_range();
  1394. private:
  1395. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& _internal_reserved_range(int index) const;
  1396. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* _internal_add_reserved_range();
  1397. public:
  1398. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& reserved_range(int index) const;
  1399. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* add_reserved_range();
  1400. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >&
  1401. reserved_range() const;
  1402. // repeated string reserved_name = 10;
  1403. int reserved_name_size() const;
  1404. private:
  1405. int _internal_reserved_name_size() const;
  1406. public:
  1407. void clear_reserved_name();
  1408. const std::string& reserved_name(int index) const;
  1409. std::string* mutable_reserved_name(int index);
  1410. void set_reserved_name(int index, const std::string& value);
  1411. void set_reserved_name(int index, std::string&& value);
  1412. void set_reserved_name(int index, const char* value);
  1413. void set_reserved_name(int index, const char* value, size_t size);
  1414. std::string* add_reserved_name();
  1415. void add_reserved_name(const std::string& value);
  1416. void add_reserved_name(std::string&& value);
  1417. void add_reserved_name(const char* value);
  1418. void add_reserved_name(const char* value, size_t size);
  1419. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& reserved_name() const;
  1420. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_reserved_name();
  1421. private:
  1422. const std::string& _internal_reserved_name(int index) const;
  1423. std::string* _internal_add_reserved_name();
  1424. public:
  1425. // optional string name = 1;
  1426. bool has_name() const;
  1427. private:
  1428. bool _internal_has_name() const;
  1429. public:
  1430. void clear_name();
  1431. const std::string& name() const;
  1432. template <typename ArgT0 = const std::string&, typename... ArgT>
  1433. void set_name(ArgT0&& arg0, ArgT... args);
  1434. std::string* mutable_name();
  1435. PROTOBUF_NODISCARD std::string* release_name();
  1436. void set_allocated_name(std::string* name);
  1437. private:
  1438. const std::string& _internal_name() const;
  1439. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  1440. std::string* _internal_mutable_name();
  1441. public:
  1442. // optional .google.protobuf.MessageOptions options = 7;
  1443. bool has_options() const;
  1444. private:
  1445. bool _internal_has_options() const;
  1446. public:
  1447. void clear_options();
  1448. const ::PROTOBUF_NAMESPACE_ID::MessageOptions& options() const;
  1449. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::MessageOptions* release_options();
  1450. ::PROTOBUF_NAMESPACE_ID::MessageOptions* mutable_options();
  1451. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::MessageOptions* options);
  1452. private:
  1453. const ::PROTOBUF_NAMESPACE_ID::MessageOptions& _internal_options() const;
  1454. ::PROTOBUF_NAMESPACE_ID::MessageOptions* _internal_mutable_options();
  1455. public:
  1456. void unsafe_arena_set_allocated_options(
  1457. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options);
  1458. ::PROTOBUF_NAMESPACE_ID::MessageOptions* unsafe_arena_release_options();
  1459. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
  1460. private:
  1461. class _Internal;
  1462. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1463. typedef void InternalArenaConstructable_;
  1464. typedef void DestructorSkippable_;
  1465. struct Impl_ {
  1466. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1467. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1468. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > field_;
  1469. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto > nested_type_;
  1470. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto > enum_type_;
  1471. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange > extension_range_;
  1472. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > extension_;
  1473. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto > oneof_decl_;
  1474. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange > reserved_range_;
  1475. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> reserved_name_;
  1476. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  1477. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options_;
  1478. };
  1479. union { Impl_ _impl_; };
  1480. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1481. };
  1482. // -------------------------------------------------------------------
  1483. class PROTOBUF_EXPORT ExtensionRangeOptions final :
  1484. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ExtensionRangeOptions) */ {
  1485. public:
  1486. inline ExtensionRangeOptions() : ExtensionRangeOptions(nullptr) {}
  1487. ~ExtensionRangeOptions() override;
  1488. explicit PROTOBUF_CONSTEXPR ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1489. ExtensionRangeOptions(const ExtensionRangeOptions& from);
  1490. ExtensionRangeOptions(ExtensionRangeOptions&& from) noexcept
  1491. : ExtensionRangeOptions() {
  1492. *this = ::std::move(from);
  1493. }
  1494. inline ExtensionRangeOptions& operator=(const ExtensionRangeOptions& from) {
  1495. CopyFrom(from);
  1496. return *this;
  1497. }
  1498. inline ExtensionRangeOptions& operator=(ExtensionRangeOptions&& from) noexcept {
  1499. if (this == &from) return *this;
  1500. if (GetOwningArena() == from.GetOwningArena()
  1501. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1502. && GetOwningArena() != nullptr
  1503. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1504. ) {
  1505. InternalSwap(&from);
  1506. } else {
  1507. CopyFrom(from);
  1508. }
  1509. return *this;
  1510. }
  1511. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1512. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1513. }
  1514. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1515. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1516. }
  1517. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1518. return GetDescriptor();
  1519. }
  1520. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1521. return default_instance().GetMetadata().descriptor;
  1522. }
  1523. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1524. return default_instance().GetMetadata().reflection;
  1525. }
  1526. static const ExtensionRangeOptions& default_instance() {
  1527. return *internal_default_instance();
  1528. }
  1529. static inline const ExtensionRangeOptions* internal_default_instance() {
  1530. return reinterpret_cast<const ExtensionRangeOptions*>(
  1531. &_ExtensionRangeOptions_default_instance_);
  1532. }
  1533. static constexpr int kIndexInFileMessages =
  1534. 5;
  1535. friend void swap(ExtensionRangeOptions& a, ExtensionRangeOptions& b) {
  1536. a.Swap(&b);
  1537. }
  1538. inline void Swap(ExtensionRangeOptions* other) {
  1539. if (other == this) return;
  1540. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1541. if (GetOwningArena() != nullptr &&
  1542. GetOwningArena() == other->GetOwningArena()) {
  1543. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1544. if (GetOwningArena() == other->GetOwningArena()) {
  1545. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1546. InternalSwap(other);
  1547. } else {
  1548. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1549. }
  1550. }
  1551. void UnsafeArenaSwap(ExtensionRangeOptions* other) {
  1552. if (other == this) return;
  1553. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1554. InternalSwap(other);
  1555. }
  1556. // implements Message ----------------------------------------------
  1557. ExtensionRangeOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1558. return CreateMaybeMessage<ExtensionRangeOptions>(arena);
  1559. }
  1560. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1561. void CopyFrom(const ExtensionRangeOptions& from);
  1562. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1563. void MergeFrom( const ExtensionRangeOptions& from) {
  1564. ExtensionRangeOptions::MergeImpl(*this, from);
  1565. }
  1566. private:
  1567. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  1568. public:
  1569. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1570. bool IsInitialized() const final;
  1571. size_t ByteSizeLong() const final;
  1572. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1573. uint8_t* _InternalSerialize(
  1574. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1575. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  1576. private:
  1577. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  1578. void SharedDtor();
  1579. void SetCachedSize(int size) const final;
  1580. void InternalSwap(ExtensionRangeOptions* other);
  1581. private:
  1582. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1583. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1584. return "google.protobuf.ExtensionRangeOptions";
  1585. }
  1586. protected:
  1587. explicit ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1588. bool is_message_owned = false);
  1589. public:
  1590. static const ClassData _class_data_;
  1591. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1592. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1593. // nested types ----------------------------------------------------
  1594. // accessors -------------------------------------------------------
  1595. enum : int {
  1596. kUninterpretedOptionFieldNumber = 999,
  1597. };
  1598. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1599. int uninterpreted_option_size() const;
  1600. private:
  1601. int _internal_uninterpreted_option_size() const;
  1602. public:
  1603. void clear_uninterpreted_option();
  1604. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  1605. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  1606. mutable_uninterpreted_option();
  1607. private:
  1608. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  1609. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  1610. public:
  1611. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  1612. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  1613. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  1614. uninterpreted_option() const;
  1615. template <typename _proto_TypeTraits,
  1616. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1617. bool _is_packed>
  1618. inline bool HasExtension(
  1619. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1620. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1621. return _impl_._extensions_.Has(id.number());
  1622. }
  1623. template <typename _proto_TypeTraits,
  1624. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1625. bool _is_packed>
  1626. inline void ClearExtension(
  1627. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1628. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1629. _impl_._extensions_.ClearExtension(id.number());
  1630. }
  1631. template <typename _proto_TypeTraits,
  1632. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1633. bool _is_packed>
  1634. inline int ExtensionSize(
  1635. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1636. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1637. return _impl_._extensions_.ExtensionSize(id.number());
  1638. }
  1639. template <typename _proto_TypeTraits,
  1640. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1641. bool _is_packed>
  1642. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  1643. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1644. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1645. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_,
  1646. id.default_value());
  1647. }
  1648. template <typename _proto_TypeTraits,
  1649. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1650. bool _is_packed>
  1651. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  1652. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1653. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1654. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  1655. &_impl_._extensions_);
  1656. }
  1657. template <typename _proto_TypeTraits,
  1658. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1659. bool _is_packed>
  1660. inline void SetExtension(
  1661. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1662. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1663. typename _proto_TypeTraits::Singular::ConstType value) {
  1664. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  1665. }
  1666. template <typename _proto_TypeTraits,
  1667. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1668. bool _is_packed>
  1669. inline void SetAllocatedExtension(
  1670. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1671. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1672. typename _proto_TypeTraits::Singular::MutableType value) {
  1673. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  1674. &_impl_._extensions_);
  1675. }
  1676. template <typename _proto_TypeTraits,
  1677. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1678. bool _is_packed>
  1679. inline void UnsafeArenaSetAllocatedExtension(
  1680. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1681. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1682. typename _proto_TypeTraits::Singular::MutableType value) {
  1683. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  1684. value, &_impl_._extensions_);
  1685. }
  1686. template <typename _proto_TypeTraits,
  1687. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1688. bool _is_packed>
  1689. PROTOBUF_NODISCARD inline
  1690. typename _proto_TypeTraits::Singular::MutableType
  1691. ReleaseExtension(
  1692. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1693. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1694. return _proto_TypeTraits::Release(id.number(), _field_type,
  1695. &_impl_._extensions_);
  1696. }
  1697. template <typename _proto_TypeTraits,
  1698. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1699. bool _is_packed>
  1700. inline typename _proto_TypeTraits::Singular::MutableType
  1701. UnsafeArenaReleaseExtension(
  1702. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1703. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1704. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  1705. &_impl_._extensions_);
  1706. }
  1707. template <typename _proto_TypeTraits,
  1708. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1709. bool _is_packed>
  1710. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  1711. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1712. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1713. int index) const {
  1714. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  1715. }
  1716. template <typename _proto_TypeTraits,
  1717. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1718. bool _is_packed>
  1719. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  1720. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1721. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1722. int index) {
  1723. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  1724. }
  1725. template <typename _proto_TypeTraits,
  1726. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1727. bool _is_packed>
  1728. inline void SetExtension(
  1729. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1730. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1731. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  1732. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  1733. }
  1734. template <typename _proto_TypeTraits,
  1735. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1736. bool _is_packed>
  1737. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  1738. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1739. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1740. typename _proto_TypeTraits::Repeated::MutableType to_add =
  1741. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  1742. return to_add;
  1743. }
  1744. template <typename _proto_TypeTraits,
  1745. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1746. bool _is_packed>
  1747. inline void AddExtension(
  1748. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1749. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1750. typename _proto_TypeTraits::Repeated::ConstType value) {
  1751. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  1752. &_impl_._extensions_);
  1753. }
  1754. template <typename _proto_TypeTraits,
  1755. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1756. bool _is_packed>
  1757. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  1758. GetRepeatedExtension(
  1759. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1760. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1761. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  1762. }
  1763. template <typename _proto_TypeTraits,
  1764. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1765. bool _is_packed>
  1766. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  1767. MutableRepeatedExtension(
  1768. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1769. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1770. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  1771. _is_packed, &_impl_._extensions_);
  1772. }
  1773. // @@protoc_insertion_point(class_scope:google.protobuf.ExtensionRangeOptions)
  1774. private:
  1775. class _Internal;
  1776. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1777. typedef void InternalArenaConstructable_;
  1778. typedef void DestructorSkippable_;
  1779. struct Impl_ {
  1780. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  1781. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  1782. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1783. };
  1784. union { Impl_ _impl_; };
  1785. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1786. };
  1787. // -------------------------------------------------------------------
  1788. class PROTOBUF_EXPORT FieldDescriptorProto final :
  1789. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldDescriptorProto) */ {
  1790. public:
  1791. inline FieldDescriptorProto() : FieldDescriptorProto(nullptr) {}
  1792. ~FieldDescriptorProto() override;
  1793. explicit PROTOBUF_CONSTEXPR FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1794. FieldDescriptorProto(const FieldDescriptorProto& from);
  1795. FieldDescriptorProto(FieldDescriptorProto&& from) noexcept
  1796. : FieldDescriptorProto() {
  1797. *this = ::std::move(from);
  1798. }
  1799. inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) {
  1800. CopyFrom(from);
  1801. return *this;
  1802. }
  1803. inline FieldDescriptorProto& operator=(FieldDescriptorProto&& from) noexcept {
  1804. if (this == &from) return *this;
  1805. if (GetOwningArena() == from.GetOwningArena()
  1806. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1807. && GetOwningArena() != nullptr
  1808. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1809. ) {
  1810. InternalSwap(&from);
  1811. } else {
  1812. CopyFrom(from);
  1813. }
  1814. return *this;
  1815. }
  1816. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1817. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1818. }
  1819. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1820. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1821. }
  1822. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1823. return GetDescriptor();
  1824. }
  1825. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1826. return default_instance().GetMetadata().descriptor;
  1827. }
  1828. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1829. return default_instance().GetMetadata().reflection;
  1830. }
  1831. static const FieldDescriptorProto& default_instance() {
  1832. return *internal_default_instance();
  1833. }
  1834. static inline const FieldDescriptorProto* internal_default_instance() {
  1835. return reinterpret_cast<const FieldDescriptorProto*>(
  1836. &_FieldDescriptorProto_default_instance_);
  1837. }
  1838. static constexpr int kIndexInFileMessages =
  1839. 6;
  1840. friend void swap(FieldDescriptorProto& a, FieldDescriptorProto& b) {
  1841. a.Swap(&b);
  1842. }
  1843. inline void Swap(FieldDescriptorProto* other) {
  1844. if (other == this) return;
  1845. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1846. if (GetOwningArena() != nullptr &&
  1847. GetOwningArena() == other->GetOwningArena()) {
  1848. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1849. if (GetOwningArena() == other->GetOwningArena()) {
  1850. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1851. InternalSwap(other);
  1852. } else {
  1853. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1854. }
  1855. }
  1856. void UnsafeArenaSwap(FieldDescriptorProto* other) {
  1857. if (other == this) return;
  1858. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1859. InternalSwap(other);
  1860. }
  1861. // implements Message ----------------------------------------------
  1862. FieldDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1863. return CreateMaybeMessage<FieldDescriptorProto>(arena);
  1864. }
  1865. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1866. void CopyFrom(const FieldDescriptorProto& from);
  1867. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1868. void MergeFrom( const FieldDescriptorProto& from) {
  1869. FieldDescriptorProto::MergeImpl(*this, from);
  1870. }
  1871. private:
  1872. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  1873. public:
  1874. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1875. bool IsInitialized() const final;
  1876. size_t ByteSizeLong() const final;
  1877. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1878. uint8_t* _InternalSerialize(
  1879. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1880. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  1881. private:
  1882. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  1883. void SharedDtor();
  1884. void SetCachedSize(int size) const final;
  1885. void InternalSwap(FieldDescriptorProto* other);
  1886. private:
  1887. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1888. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1889. return "google.protobuf.FieldDescriptorProto";
  1890. }
  1891. protected:
  1892. explicit FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1893. bool is_message_owned = false);
  1894. public:
  1895. static const ClassData _class_data_;
  1896. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1897. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1898. // nested types ----------------------------------------------------
  1899. typedef FieldDescriptorProto_Type Type;
  1900. static constexpr Type TYPE_DOUBLE =
  1901. FieldDescriptorProto_Type_TYPE_DOUBLE;
  1902. static constexpr Type TYPE_FLOAT =
  1903. FieldDescriptorProto_Type_TYPE_FLOAT;
  1904. static constexpr Type TYPE_INT64 =
  1905. FieldDescriptorProto_Type_TYPE_INT64;
  1906. static constexpr Type TYPE_UINT64 =
  1907. FieldDescriptorProto_Type_TYPE_UINT64;
  1908. static constexpr Type TYPE_INT32 =
  1909. FieldDescriptorProto_Type_TYPE_INT32;
  1910. static constexpr Type TYPE_FIXED64 =
  1911. FieldDescriptorProto_Type_TYPE_FIXED64;
  1912. static constexpr Type TYPE_FIXED32 =
  1913. FieldDescriptorProto_Type_TYPE_FIXED32;
  1914. static constexpr Type TYPE_BOOL =
  1915. FieldDescriptorProto_Type_TYPE_BOOL;
  1916. static constexpr Type TYPE_STRING =
  1917. FieldDescriptorProto_Type_TYPE_STRING;
  1918. static constexpr Type TYPE_GROUP =
  1919. FieldDescriptorProto_Type_TYPE_GROUP;
  1920. static constexpr Type TYPE_MESSAGE =
  1921. FieldDescriptorProto_Type_TYPE_MESSAGE;
  1922. static constexpr Type TYPE_BYTES =
  1923. FieldDescriptorProto_Type_TYPE_BYTES;
  1924. static constexpr Type TYPE_UINT32 =
  1925. FieldDescriptorProto_Type_TYPE_UINT32;
  1926. static constexpr Type TYPE_ENUM =
  1927. FieldDescriptorProto_Type_TYPE_ENUM;
  1928. static constexpr Type TYPE_SFIXED32 =
  1929. FieldDescriptorProto_Type_TYPE_SFIXED32;
  1930. static constexpr Type TYPE_SFIXED64 =
  1931. FieldDescriptorProto_Type_TYPE_SFIXED64;
  1932. static constexpr Type TYPE_SINT32 =
  1933. FieldDescriptorProto_Type_TYPE_SINT32;
  1934. static constexpr Type TYPE_SINT64 =
  1935. FieldDescriptorProto_Type_TYPE_SINT64;
  1936. static inline bool Type_IsValid(int value) {
  1937. return FieldDescriptorProto_Type_IsValid(value);
  1938. }
  1939. static constexpr Type Type_MIN =
  1940. FieldDescriptorProto_Type_Type_MIN;
  1941. static constexpr Type Type_MAX =
  1942. FieldDescriptorProto_Type_Type_MAX;
  1943. static constexpr int Type_ARRAYSIZE =
  1944. FieldDescriptorProto_Type_Type_ARRAYSIZE;
  1945. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  1946. Type_descriptor() {
  1947. return FieldDescriptorProto_Type_descriptor();
  1948. }
  1949. template<typename T>
  1950. static inline const std::string& Type_Name(T enum_t_value) {
  1951. static_assert(::std::is_same<T, Type>::value ||
  1952. ::std::is_integral<T>::value,
  1953. "Incorrect type passed to function Type_Name.");
  1954. return FieldDescriptorProto_Type_Name(enum_t_value);
  1955. }
  1956. static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  1957. Type* value) {
  1958. return FieldDescriptorProto_Type_Parse(name, value);
  1959. }
  1960. typedef FieldDescriptorProto_Label Label;
  1961. static constexpr Label LABEL_OPTIONAL =
  1962. FieldDescriptorProto_Label_LABEL_OPTIONAL;
  1963. static constexpr Label LABEL_REQUIRED =
  1964. FieldDescriptorProto_Label_LABEL_REQUIRED;
  1965. static constexpr Label LABEL_REPEATED =
  1966. FieldDescriptorProto_Label_LABEL_REPEATED;
  1967. static inline bool Label_IsValid(int value) {
  1968. return FieldDescriptorProto_Label_IsValid(value);
  1969. }
  1970. static constexpr Label Label_MIN =
  1971. FieldDescriptorProto_Label_Label_MIN;
  1972. static constexpr Label Label_MAX =
  1973. FieldDescriptorProto_Label_Label_MAX;
  1974. static constexpr int Label_ARRAYSIZE =
  1975. FieldDescriptorProto_Label_Label_ARRAYSIZE;
  1976. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  1977. Label_descriptor() {
  1978. return FieldDescriptorProto_Label_descriptor();
  1979. }
  1980. template<typename T>
  1981. static inline const std::string& Label_Name(T enum_t_value) {
  1982. static_assert(::std::is_same<T, Label>::value ||
  1983. ::std::is_integral<T>::value,
  1984. "Incorrect type passed to function Label_Name.");
  1985. return FieldDescriptorProto_Label_Name(enum_t_value);
  1986. }
  1987. static inline bool Label_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  1988. Label* value) {
  1989. return FieldDescriptorProto_Label_Parse(name, value);
  1990. }
  1991. // accessors -------------------------------------------------------
  1992. enum : int {
  1993. kNameFieldNumber = 1,
  1994. kExtendeeFieldNumber = 2,
  1995. kTypeNameFieldNumber = 6,
  1996. kDefaultValueFieldNumber = 7,
  1997. kJsonNameFieldNumber = 10,
  1998. kOptionsFieldNumber = 8,
  1999. kNumberFieldNumber = 3,
  2000. kOneofIndexFieldNumber = 9,
  2001. kProto3OptionalFieldNumber = 17,
  2002. kLabelFieldNumber = 4,
  2003. kTypeFieldNumber = 5,
  2004. };
  2005. // optional string name = 1;
  2006. bool has_name() const;
  2007. private:
  2008. bool _internal_has_name() const;
  2009. public:
  2010. void clear_name();
  2011. const std::string& name() const;
  2012. template <typename ArgT0 = const std::string&, typename... ArgT>
  2013. void set_name(ArgT0&& arg0, ArgT... args);
  2014. std::string* mutable_name();
  2015. PROTOBUF_NODISCARD std::string* release_name();
  2016. void set_allocated_name(std::string* name);
  2017. private:
  2018. const std::string& _internal_name() const;
  2019. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2020. std::string* _internal_mutable_name();
  2021. public:
  2022. // optional string extendee = 2;
  2023. bool has_extendee() const;
  2024. private:
  2025. bool _internal_has_extendee() const;
  2026. public:
  2027. void clear_extendee();
  2028. const std::string& extendee() const;
  2029. template <typename ArgT0 = const std::string&, typename... ArgT>
  2030. void set_extendee(ArgT0&& arg0, ArgT... args);
  2031. std::string* mutable_extendee();
  2032. PROTOBUF_NODISCARD std::string* release_extendee();
  2033. void set_allocated_extendee(std::string* extendee);
  2034. private:
  2035. const std::string& _internal_extendee() const;
  2036. inline PROTOBUF_ALWAYS_INLINE void _internal_set_extendee(const std::string& value);
  2037. std::string* _internal_mutable_extendee();
  2038. public:
  2039. // optional string type_name = 6;
  2040. bool has_type_name() const;
  2041. private:
  2042. bool _internal_has_type_name() const;
  2043. public:
  2044. void clear_type_name();
  2045. const std::string& type_name() const;
  2046. template <typename ArgT0 = const std::string&, typename... ArgT>
  2047. void set_type_name(ArgT0&& arg0, ArgT... args);
  2048. std::string* mutable_type_name();
  2049. PROTOBUF_NODISCARD std::string* release_type_name();
  2050. void set_allocated_type_name(std::string* type_name);
  2051. private:
  2052. const std::string& _internal_type_name() const;
  2053. inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_name(const std::string& value);
  2054. std::string* _internal_mutable_type_name();
  2055. public:
  2056. // optional string default_value = 7;
  2057. bool has_default_value() const;
  2058. private:
  2059. bool _internal_has_default_value() const;
  2060. public:
  2061. void clear_default_value();
  2062. const std::string& default_value() const;
  2063. template <typename ArgT0 = const std::string&, typename... ArgT>
  2064. void set_default_value(ArgT0&& arg0, ArgT... args);
  2065. std::string* mutable_default_value();
  2066. PROTOBUF_NODISCARD std::string* release_default_value();
  2067. void set_allocated_default_value(std::string* default_value);
  2068. private:
  2069. const std::string& _internal_default_value() const;
  2070. inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_value(const std::string& value);
  2071. std::string* _internal_mutable_default_value();
  2072. public:
  2073. // optional string json_name = 10;
  2074. bool has_json_name() const;
  2075. private:
  2076. bool _internal_has_json_name() const;
  2077. public:
  2078. void clear_json_name();
  2079. const std::string& json_name() const;
  2080. template <typename ArgT0 = const std::string&, typename... ArgT>
  2081. void set_json_name(ArgT0&& arg0, ArgT... args);
  2082. std::string* mutable_json_name();
  2083. PROTOBUF_NODISCARD std::string* release_json_name();
  2084. void set_allocated_json_name(std::string* json_name);
  2085. private:
  2086. const std::string& _internal_json_name() const;
  2087. inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_name(const std::string& value);
  2088. std::string* _internal_mutable_json_name();
  2089. public:
  2090. // optional .google.protobuf.FieldOptions options = 8;
  2091. bool has_options() const;
  2092. private:
  2093. bool _internal_has_options() const;
  2094. public:
  2095. void clear_options();
  2096. const ::PROTOBUF_NAMESPACE_ID::FieldOptions& options() const;
  2097. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FieldOptions* release_options();
  2098. ::PROTOBUF_NAMESPACE_ID::FieldOptions* mutable_options();
  2099. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::FieldOptions* options);
  2100. private:
  2101. const ::PROTOBUF_NAMESPACE_ID::FieldOptions& _internal_options() const;
  2102. ::PROTOBUF_NAMESPACE_ID::FieldOptions* _internal_mutable_options();
  2103. public:
  2104. void unsafe_arena_set_allocated_options(
  2105. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options);
  2106. ::PROTOBUF_NAMESPACE_ID::FieldOptions* unsafe_arena_release_options();
  2107. // optional int32 number = 3;
  2108. bool has_number() const;
  2109. private:
  2110. bool _internal_has_number() const;
  2111. public:
  2112. void clear_number();
  2113. int32_t number() const;
  2114. void set_number(int32_t value);
  2115. private:
  2116. int32_t _internal_number() const;
  2117. void _internal_set_number(int32_t value);
  2118. public:
  2119. // optional int32 oneof_index = 9;
  2120. bool has_oneof_index() const;
  2121. private:
  2122. bool _internal_has_oneof_index() const;
  2123. public:
  2124. void clear_oneof_index();
  2125. int32_t oneof_index() const;
  2126. void set_oneof_index(int32_t value);
  2127. private:
  2128. int32_t _internal_oneof_index() const;
  2129. void _internal_set_oneof_index(int32_t value);
  2130. public:
  2131. // optional bool proto3_optional = 17;
  2132. bool has_proto3_optional() const;
  2133. private:
  2134. bool _internal_has_proto3_optional() const;
  2135. public:
  2136. void clear_proto3_optional();
  2137. bool proto3_optional() const;
  2138. void set_proto3_optional(bool value);
  2139. private:
  2140. bool _internal_proto3_optional() const;
  2141. void _internal_set_proto3_optional(bool value);
  2142. public:
  2143. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2144. bool has_label() const;
  2145. private:
  2146. bool _internal_has_label() const;
  2147. public:
  2148. void clear_label();
  2149. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label label() const;
  2150. void set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value);
  2151. private:
  2152. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label _internal_label() const;
  2153. void _internal_set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value);
  2154. public:
  2155. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2156. bool has_type() const;
  2157. private:
  2158. bool _internal_has_type() const;
  2159. public:
  2160. void clear_type();
  2161. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type type() const;
  2162. void set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value);
  2163. private:
  2164. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type _internal_type() const;
  2165. void _internal_set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value);
  2166. public:
  2167. // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
  2168. private:
  2169. class _Internal;
  2170. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2171. typedef void InternalArenaConstructable_;
  2172. typedef void DestructorSkippable_;
  2173. struct Impl_ {
  2174. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2175. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2176. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2177. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extendee_;
  2178. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_name_;
  2179. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_value_;
  2180. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_name_;
  2181. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options_;
  2182. int32_t number_;
  2183. int32_t oneof_index_;
  2184. bool proto3_optional_;
  2185. int label_;
  2186. int type_;
  2187. };
  2188. union { Impl_ _impl_; };
  2189. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2190. };
  2191. // -------------------------------------------------------------------
  2192. class PROTOBUF_EXPORT OneofDescriptorProto final :
  2193. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofDescriptorProto) */ {
  2194. public:
  2195. inline OneofDescriptorProto() : OneofDescriptorProto(nullptr) {}
  2196. ~OneofDescriptorProto() override;
  2197. explicit PROTOBUF_CONSTEXPR OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2198. OneofDescriptorProto(const OneofDescriptorProto& from);
  2199. OneofDescriptorProto(OneofDescriptorProto&& from) noexcept
  2200. : OneofDescriptorProto() {
  2201. *this = ::std::move(from);
  2202. }
  2203. inline OneofDescriptorProto& operator=(const OneofDescriptorProto& from) {
  2204. CopyFrom(from);
  2205. return *this;
  2206. }
  2207. inline OneofDescriptorProto& operator=(OneofDescriptorProto&& from) noexcept {
  2208. if (this == &from) return *this;
  2209. if (GetOwningArena() == from.GetOwningArena()
  2210. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2211. && GetOwningArena() != nullptr
  2212. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2213. ) {
  2214. InternalSwap(&from);
  2215. } else {
  2216. CopyFrom(from);
  2217. }
  2218. return *this;
  2219. }
  2220. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2221. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2222. }
  2223. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2224. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2225. }
  2226. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2227. return GetDescriptor();
  2228. }
  2229. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2230. return default_instance().GetMetadata().descriptor;
  2231. }
  2232. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2233. return default_instance().GetMetadata().reflection;
  2234. }
  2235. static const OneofDescriptorProto& default_instance() {
  2236. return *internal_default_instance();
  2237. }
  2238. static inline const OneofDescriptorProto* internal_default_instance() {
  2239. return reinterpret_cast<const OneofDescriptorProto*>(
  2240. &_OneofDescriptorProto_default_instance_);
  2241. }
  2242. static constexpr int kIndexInFileMessages =
  2243. 7;
  2244. friend void swap(OneofDescriptorProto& a, OneofDescriptorProto& b) {
  2245. a.Swap(&b);
  2246. }
  2247. inline void Swap(OneofDescriptorProto* other) {
  2248. if (other == this) return;
  2249. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2250. if (GetOwningArena() != nullptr &&
  2251. GetOwningArena() == other->GetOwningArena()) {
  2252. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2253. if (GetOwningArena() == other->GetOwningArena()) {
  2254. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2255. InternalSwap(other);
  2256. } else {
  2257. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2258. }
  2259. }
  2260. void UnsafeArenaSwap(OneofDescriptorProto* other) {
  2261. if (other == this) return;
  2262. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2263. InternalSwap(other);
  2264. }
  2265. // implements Message ----------------------------------------------
  2266. OneofDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2267. return CreateMaybeMessage<OneofDescriptorProto>(arena);
  2268. }
  2269. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2270. void CopyFrom(const OneofDescriptorProto& from);
  2271. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2272. void MergeFrom( const OneofDescriptorProto& from) {
  2273. OneofDescriptorProto::MergeImpl(*this, from);
  2274. }
  2275. private:
  2276. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  2277. public:
  2278. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2279. bool IsInitialized() const final;
  2280. size_t ByteSizeLong() const final;
  2281. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2282. uint8_t* _InternalSerialize(
  2283. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2284. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  2285. private:
  2286. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  2287. void SharedDtor();
  2288. void SetCachedSize(int size) const final;
  2289. void InternalSwap(OneofDescriptorProto* other);
  2290. private:
  2291. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2292. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2293. return "google.protobuf.OneofDescriptorProto";
  2294. }
  2295. protected:
  2296. explicit OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2297. bool is_message_owned = false);
  2298. public:
  2299. static const ClassData _class_data_;
  2300. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2301. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2302. // nested types ----------------------------------------------------
  2303. // accessors -------------------------------------------------------
  2304. enum : int {
  2305. kNameFieldNumber = 1,
  2306. kOptionsFieldNumber = 2,
  2307. };
  2308. // optional string name = 1;
  2309. bool has_name() const;
  2310. private:
  2311. bool _internal_has_name() const;
  2312. public:
  2313. void clear_name();
  2314. const std::string& name() const;
  2315. template <typename ArgT0 = const std::string&, typename... ArgT>
  2316. void set_name(ArgT0&& arg0, ArgT... args);
  2317. std::string* mutable_name();
  2318. PROTOBUF_NODISCARD std::string* release_name();
  2319. void set_allocated_name(std::string* name);
  2320. private:
  2321. const std::string& _internal_name() const;
  2322. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2323. std::string* _internal_mutable_name();
  2324. public:
  2325. // optional .google.protobuf.OneofOptions options = 2;
  2326. bool has_options() const;
  2327. private:
  2328. bool _internal_has_options() const;
  2329. public:
  2330. void clear_options();
  2331. const ::PROTOBUF_NAMESPACE_ID::OneofOptions& options() const;
  2332. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::OneofOptions* release_options();
  2333. ::PROTOBUF_NAMESPACE_ID::OneofOptions* mutable_options();
  2334. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::OneofOptions* options);
  2335. private:
  2336. const ::PROTOBUF_NAMESPACE_ID::OneofOptions& _internal_options() const;
  2337. ::PROTOBUF_NAMESPACE_ID::OneofOptions* _internal_mutable_options();
  2338. public:
  2339. void unsafe_arena_set_allocated_options(
  2340. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options);
  2341. ::PROTOBUF_NAMESPACE_ID::OneofOptions* unsafe_arena_release_options();
  2342. // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto)
  2343. private:
  2344. class _Internal;
  2345. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2346. typedef void InternalArenaConstructable_;
  2347. typedef void DestructorSkippable_;
  2348. struct Impl_ {
  2349. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2350. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2351. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2352. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options_;
  2353. };
  2354. union { Impl_ _impl_; };
  2355. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2356. };
  2357. // -------------------------------------------------------------------
  2358. class PROTOBUF_EXPORT EnumDescriptorProto_EnumReservedRange final :
  2359. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto.EnumReservedRange) */ {
  2360. public:
  2361. inline EnumDescriptorProto_EnumReservedRange() : EnumDescriptorProto_EnumReservedRange(nullptr) {}
  2362. ~EnumDescriptorProto_EnumReservedRange() override;
  2363. explicit PROTOBUF_CONSTEXPR EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2364. EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from);
  2365. EnumDescriptorProto_EnumReservedRange(EnumDescriptorProto_EnumReservedRange&& from) noexcept
  2366. : EnumDescriptorProto_EnumReservedRange() {
  2367. *this = ::std::move(from);
  2368. }
  2369. inline EnumDescriptorProto_EnumReservedRange& operator=(const EnumDescriptorProto_EnumReservedRange& from) {
  2370. CopyFrom(from);
  2371. return *this;
  2372. }
  2373. inline EnumDescriptorProto_EnumReservedRange& operator=(EnumDescriptorProto_EnumReservedRange&& from) noexcept {
  2374. if (this == &from) return *this;
  2375. if (GetOwningArena() == from.GetOwningArena()
  2376. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2377. && GetOwningArena() != nullptr
  2378. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2379. ) {
  2380. InternalSwap(&from);
  2381. } else {
  2382. CopyFrom(from);
  2383. }
  2384. return *this;
  2385. }
  2386. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2387. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2388. }
  2389. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2390. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2391. }
  2392. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2393. return GetDescriptor();
  2394. }
  2395. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2396. return default_instance().GetMetadata().descriptor;
  2397. }
  2398. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2399. return default_instance().GetMetadata().reflection;
  2400. }
  2401. static const EnumDescriptorProto_EnumReservedRange& default_instance() {
  2402. return *internal_default_instance();
  2403. }
  2404. static inline const EnumDescriptorProto_EnumReservedRange* internal_default_instance() {
  2405. return reinterpret_cast<const EnumDescriptorProto_EnumReservedRange*>(
  2406. &_EnumDescriptorProto_EnumReservedRange_default_instance_);
  2407. }
  2408. static constexpr int kIndexInFileMessages =
  2409. 8;
  2410. friend void swap(EnumDescriptorProto_EnumReservedRange& a, EnumDescriptorProto_EnumReservedRange& b) {
  2411. a.Swap(&b);
  2412. }
  2413. inline void Swap(EnumDescriptorProto_EnumReservedRange* other) {
  2414. if (other == this) return;
  2415. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2416. if (GetOwningArena() != nullptr &&
  2417. GetOwningArena() == other->GetOwningArena()) {
  2418. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2419. if (GetOwningArena() == other->GetOwningArena()) {
  2420. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2421. InternalSwap(other);
  2422. } else {
  2423. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2424. }
  2425. }
  2426. void UnsafeArenaSwap(EnumDescriptorProto_EnumReservedRange* other) {
  2427. if (other == this) return;
  2428. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2429. InternalSwap(other);
  2430. }
  2431. // implements Message ----------------------------------------------
  2432. EnumDescriptorProto_EnumReservedRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2433. return CreateMaybeMessage<EnumDescriptorProto_EnumReservedRange>(arena);
  2434. }
  2435. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2436. void CopyFrom(const EnumDescriptorProto_EnumReservedRange& from);
  2437. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2438. void MergeFrom( const EnumDescriptorProto_EnumReservedRange& from) {
  2439. EnumDescriptorProto_EnumReservedRange::MergeImpl(*this, from);
  2440. }
  2441. private:
  2442. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  2443. public:
  2444. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2445. bool IsInitialized() const final;
  2446. size_t ByteSizeLong() const final;
  2447. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2448. uint8_t* _InternalSerialize(
  2449. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2450. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  2451. private:
  2452. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  2453. void SharedDtor();
  2454. void SetCachedSize(int size) const final;
  2455. void InternalSwap(EnumDescriptorProto_EnumReservedRange* other);
  2456. private:
  2457. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2458. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2459. return "google.protobuf.EnumDescriptorProto.EnumReservedRange";
  2460. }
  2461. protected:
  2462. explicit EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2463. bool is_message_owned = false);
  2464. public:
  2465. static const ClassData _class_data_;
  2466. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2467. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2468. // nested types ----------------------------------------------------
  2469. // accessors -------------------------------------------------------
  2470. enum : int {
  2471. kStartFieldNumber = 1,
  2472. kEndFieldNumber = 2,
  2473. };
  2474. // optional int32 start = 1;
  2475. bool has_start() const;
  2476. private:
  2477. bool _internal_has_start() const;
  2478. public:
  2479. void clear_start();
  2480. int32_t start() const;
  2481. void set_start(int32_t value);
  2482. private:
  2483. int32_t _internal_start() const;
  2484. void _internal_set_start(int32_t value);
  2485. public:
  2486. // optional int32 end = 2;
  2487. bool has_end() const;
  2488. private:
  2489. bool _internal_has_end() const;
  2490. public:
  2491. void clear_end();
  2492. int32_t end() const;
  2493. void set_end(int32_t value);
  2494. private:
  2495. int32_t _internal_end() const;
  2496. void _internal_set_end(int32_t value);
  2497. public:
  2498. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  2499. private:
  2500. class _Internal;
  2501. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2502. typedef void InternalArenaConstructable_;
  2503. typedef void DestructorSkippable_;
  2504. struct Impl_ {
  2505. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2506. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2507. int32_t start_;
  2508. int32_t end_;
  2509. };
  2510. union { Impl_ _impl_; };
  2511. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2512. };
  2513. // -------------------------------------------------------------------
  2514. class PROTOBUF_EXPORT EnumDescriptorProto final :
  2515. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto) */ {
  2516. public:
  2517. inline EnumDescriptorProto() : EnumDescriptorProto(nullptr) {}
  2518. ~EnumDescriptorProto() override;
  2519. explicit PROTOBUF_CONSTEXPR EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2520. EnumDescriptorProto(const EnumDescriptorProto& from);
  2521. EnumDescriptorProto(EnumDescriptorProto&& from) noexcept
  2522. : EnumDescriptorProto() {
  2523. *this = ::std::move(from);
  2524. }
  2525. inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) {
  2526. CopyFrom(from);
  2527. return *this;
  2528. }
  2529. inline EnumDescriptorProto& operator=(EnumDescriptorProto&& from) noexcept {
  2530. if (this == &from) return *this;
  2531. if (GetOwningArena() == from.GetOwningArena()
  2532. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2533. && GetOwningArena() != nullptr
  2534. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2535. ) {
  2536. InternalSwap(&from);
  2537. } else {
  2538. CopyFrom(from);
  2539. }
  2540. return *this;
  2541. }
  2542. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2543. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2544. }
  2545. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2546. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2547. }
  2548. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2549. return GetDescriptor();
  2550. }
  2551. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2552. return default_instance().GetMetadata().descriptor;
  2553. }
  2554. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2555. return default_instance().GetMetadata().reflection;
  2556. }
  2557. static const EnumDescriptorProto& default_instance() {
  2558. return *internal_default_instance();
  2559. }
  2560. static inline const EnumDescriptorProto* internal_default_instance() {
  2561. return reinterpret_cast<const EnumDescriptorProto*>(
  2562. &_EnumDescriptorProto_default_instance_);
  2563. }
  2564. static constexpr int kIndexInFileMessages =
  2565. 9;
  2566. friend void swap(EnumDescriptorProto& a, EnumDescriptorProto& b) {
  2567. a.Swap(&b);
  2568. }
  2569. inline void Swap(EnumDescriptorProto* other) {
  2570. if (other == this) return;
  2571. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2572. if (GetOwningArena() != nullptr &&
  2573. GetOwningArena() == other->GetOwningArena()) {
  2574. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2575. if (GetOwningArena() == other->GetOwningArena()) {
  2576. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2577. InternalSwap(other);
  2578. } else {
  2579. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2580. }
  2581. }
  2582. void UnsafeArenaSwap(EnumDescriptorProto* other) {
  2583. if (other == this) return;
  2584. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2585. InternalSwap(other);
  2586. }
  2587. // implements Message ----------------------------------------------
  2588. EnumDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2589. return CreateMaybeMessage<EnumDescriptorProto>(arena);
  2590. }
  2591. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2592. void CopyFrom(const EnumDescriptorProto& from);
  2593. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2594. void MergeFrom( const EnumDescriptorProto& from) {
  2595. EnumDescriptorProto::MergeImpl(*this, from);
  2596. }
  2597. private:
  2598. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  2599. public:
  2600. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2601. bool IsInitialized() const final;
  2602. size_t ByteSizeLong() const final;
  2603. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2604. uint8_t* _InternalSerialize(
  2605. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2606. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  2607. private:
  2608. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  2609. void SharedDtor();
  2610. void SetCachedSize(int size) const final;
  2611. void InternalSwap(EnumDescriptorProto* other);
  2612. private:
  2613. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2614. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2615. return "google.protobuf.EnumDescriptorProto";
  2616. }
  2617. protected:
  2618. explicit EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2619. bool is_message_owned = false);
  2620. public:
  2621. static const ClassData _class_data_;
  2622. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2623. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2624. // nested types ----------------------------------------------------
  2625. typedef EnumDescriptorProto_EnumReservedRange EnumReservedRange;
  2626. // accessors -------------------------------------------------------
  2627. enum : int {
  2628. kValueFieldNumber = 2,
  2629. kReservedRangeFieldNumber = 4,
  2630. kReservedNameFieldNumber = 5,
  2631. kNameFieldNumber = 1,
  2632. kOptionsFieldNumber = 3,
  2633. };
  2634. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2635. int value_size() const;
  2636. private:
  2637. int _internal_value_size() const;
  2638. public:
  2639. void clear_value();
  2640. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* mutable_value(int index);
  2641. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >*
  2642. mutable_value();
  2643. private:
  2644. const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& _internal_value(int index) const;
  2645. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* _internal_add_value();
  2646. public:
  2647. const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& value(int index) const;
  2648. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* add_value();
  2649. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >&
  2650. value() const;
  2651. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  2652. int reserved_range_size() const;
  2653. private:
  2654. int _internal_reserved_range_size() const;
  2655. public:
  2656. void clear_reserved_range();
  2657. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* mutable_reserved_range(int index);
  2658. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >*
  2659. mutable_reserved_range();
  2660. private:
  2661. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& _internal_reserved_range(int index) const;
  2662. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* _internal_add_reserved_range();
  2663. public:
  2664. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& reserved_range(int index) const;
  2665. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* add_reserved_range();
  2666. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >&
  2667. reserved_range() const;
  2668. // repeated string reserved_name = 5;
  2669. int reserved_name_size() const;
  2670. private:
  2671. int _internal_reserved_name_size() const;
  2672. public:
  2673. void clear_reserved_name();
  2674. const std::string& reserved_name(int index) const;
  2675. std::string* mutable_reserved_name(int index);
  2676. void set_reserved_name(int index, const std::string& value);
  2677. void set_reserved_name(int index, std::string&& value);
  2678. void set_reserved_name(int index, const char* value);
  2679. void set_reserved_name(int index, const char* value, size_t size);
  2680. std::string* add_reserved_name();
  2681. void add_reserved_name(const std::string& value);
  2682. void add_reserved_name(std::string&& value);
  2683. void add_reserved_name(const char* value);
  2684. void add_reserved_name(const char* value, size_t size);
  2685. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& reserved_name() const;
  2686. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_reserved_name();
  2687. private:
  2688. const std::string& _internal_reserved_name(int index) const;
  2689. std::string* _internal_add_reserved_name();
  2690. public:
  2691. // optional string name = 1;
  2692. bool has_name() const;
  2693. private:
  2694. bool _internal_has_name() const;
  2695. public:
  2696. void clear_name();
  2697. const std::string& name() const;
  2698. template <typename ArgT0 = const std::string&, typename... ArgT>
  2699. void set_name(ArgT0&& arg0, ArgT... args);
  2700. std::string* mutable_name();
  2701. PROTOBUF_NODISCARD std::string* release_name();
  2702. void set_allocated_name(std::string* name);
  2703. private:
  2704. const std::string& _internal_name() const;
  2705. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2706. std::string* _internal_mutable_name();
  2707. public:
  2708. // optional .google.protobuf.EnumOptions options = 3;
  2709. bool has_options() const;
  2710. private:
  2711. bool _internal_has_options() const;
  2712. public:
  2713. void clear_options();
  2714. const ::PROTOBUF_NAMESPACE_ID::EnumOptions& options() const;
  2715. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::EnumOptions* release_options();
  2716. ::PROTOBUF_NAMESPACE_ID::EnumOptions* mutable_options();
  2717. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumOptions* options);
  2718. private:
  2719. const ::PROTOBUF_NAMESPACE_ID::EnumOptions& _internal_options() const;
  2720. ::PROTOBUF_NAMESPACE_ID::EnumOptions* _internal_mutable_options();
  2721. public:
  2722. void unsafe_arena_set_allocated_options(
  2723. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options);
  2724. ::PROTOBUF_NAMESPACE_ID::EnumOptions* unsafe_arena_release_options();
  2725. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
  2726. private:
  2727. class _Internal;
  2728. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2729. typedef void InternalArenaConstructable_;
  2730. typedef void DestructorSkippable_;
  2731. struct Impl_ {
  2732. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2733. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2734. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto > value_;
  2735. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange > reserved_range_;
  2736. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> reserved_name_;
  2737. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2738. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options_;
  2739. };
  2740. union { Impl_ _impl_; };
  2741. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2742. };
  2743. // -------------------------------------------------------------------
  2744. class PROTOBUF_EXPORT EnumValueDescriptorProto final :
  2745. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueDescriptorProto) */ {
  2746. public:
  2747. inline EnumValueDescriptorProto() : EnumValueDescriptorProto(nullptr) {}
  2748. ~EnumValueDescriptorProto() override;
  2749. explicit PROTOBUF_CONSTEXPR EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2750. EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
  2751. EnumValueDescriptorProto(EnumValueDescriptorProto&& from) noexcept
  2752. : EnumValueDescriptorProto() {
  2753. *this = ::std::move(from);
  2754. }
  2755. inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) {
  2756. CopyFrom(from);
  2757. return *this;
  2758. }
  2759. inline EnumValueDescriptorProto& operator=(EnumValueDescriptorProto&& from) noexcept {
  2760. if (this == &from) return *this;
  2761. if (GetOwningArena() == from.GetOwningArena()
  2762. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2763. && GetOwningArena() != nullptr
  2764. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2765. ) {
  2766. InternalSwap(&from);
  2767. } else {
  2768. CopyFrom(from);
  2769. }
  2770. return *this;
  2771. }
  2772. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2773. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2774. }
  2775. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2776. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2777. }
  2778. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2779. return GetDescriptor();
  2780. }
  2781. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2782. return default_instance().GetMetadata().descriptor;
  2783. }
  2784. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2785. return default_instance().GetMetadata().reflection;
  2786. }
  2787. static const EnumValueDescriptorProto& default_instance() {
  2788. return *internal_default_instance();
  2789. }
  2790. static inline const EnumValueDescriptorProto* internal_default_instance() {
  2791. return reinterpret_cast<const EnumValueDescriptorProto*>(
  2792. &_EnumValueDescriptorProto_default_instance_);
  2793. }
  2794. static constexpr int kIndexInFileMessages =
  2795. 10;
  2796. friend void swap(EnumValueDescriptorProto& a, EnumValueDescriptorProto& b) {
  2797. a.Swap(&b);
  2798. }
  2799. inline void Swap(EnumValueDescriptorProto* other) {
  2800. if (other == this) return;
  2801. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2802. if (GetOwningArena() != nullptr &&
  2803. GetOwningArena() == other->GetOwningArena()) {
  2804. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2805. if (GetOwningArena() == other->GetOwningArena()) {
  2806. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2807. InternalSwap(other);
  2808. } else {
  2809. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2810. }
  2811. }
  2812. void UnsafeArenaSwap(EnumValueDescriptorProto* other) {
  2813. if (other == this) return;
  2814. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2815. InternalSwap(other);
  2816. }
  2817. // implements Message ----------------------------------------------
  2818. EnumValueDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2819. return CreateMaybeMessage<EnumValueDescriptorProto>(arena);
  2820. }
  2821. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2822. void CopyFrom(const EnumValueDescriptorProto& from);
  2823. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2824. void MergeFrom( const EnumValueDescriptorProto& from) {
  2825. EnumValueDescriptorProto::MergeImpl(*this, from);
  2826. }
  2827. private:
  2828. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  2829. public:
  2830. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2831. bool IsInitialized() const final;
  2832. size_t ByteSizeLong() const final;
  2833. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2834. uint8_t* _InternalSerialize(
  2835. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2836. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  2837. private:
  2838. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  2839. void SharedDtor();
  2840. void SetCachedSize(int size) const final;
  2841. void InternalSwap(EnumValueDescriptorProto* other);
  2842. private:
  2843. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2844. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2845. return "google.protobuf.EnumValueDescriptorProto";
  2846. }
  2847. protected:
  2848. explicit EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2849. bool is_message_owned = false);
  2850. public:
  2851. static const ClassData _class_data_;
  2852. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2853. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2854. // nested types ----------------------------------------------------
  2855. // accessors -------------------------------------------------------
  2856. enum : int {
  2857. kNameFieldNumber = 1,
  2858. kOptionsFieldNumber = 3,
  2859. kNumberFieldNumber = 2,
  2860. };
  2861. // optional string name = 1;
  2862. bool has_name() const;
  2863. private:
  2864. bool _internal_has_name() const;
  2865. public:
  2866. void clear_name();
  2867. const std::string& name() const;
  2868. template <typename ArgT0 = const std::string&, typename... ArgT>
  2869. void set_name(ArgT0&& arg0, ArgT... args);
  2870. std::string* mutable_name();
  2871. PROTOBUF_NODISCARD std::string* release_name();
  2872. void set_allocated_name(std::string* name);
  2873. private:
  2874. const std::string& _internal_name() const;
  2875. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2876. std::string* _internal_mutable_name();
  2877. public:
  2878. // optional .google.protobuf.EnumValueOptions options = 3;
  2879. bool has_options() const;
  2880. private:
  2881. bool _internal_has_options() const;
  2882. public:
  2883. void clear_options();
  2884. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& options() const;
  2885. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* release_options();
  2886. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* mutable_options();
  2887. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options);
  2888. private:
  2889. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& _internal_options() const;
  2890. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* _internal_mutable_options();
  2891. public:
  2892. void unsafe_arena_set_allocated_options(
  2893. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options);
  2894. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* unsafe_arena_release_options();
  2895. // optional int32 number = 2;
  2896. bool has_number() const;
  2897. private:
  2898. bool _internal_has_number() const;
  2899. public:
  2900. void clear_number();
  2901. int32_t number() const;
  2902. void set_number(int32_t value);
  2903. private:
  2904. int32_t _internal_number() const;
  2905. void _internal_set_number(int32_t value);
  2906. public:
  2907. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
  2908. private:
  2909. class _Internal;
  2910. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2911. typedef void InternalArenaConstructable_;
  2912. typedef void DestructorSkippable_;
  2913. struct Impl_ {
  2914. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2915. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2916. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2917. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options_;
  2918. int32_t number_;
  2919. };
  2920. union { Impl_ _impl_; };
  2921. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2922. };
  2923. // -------------------------------------------------------------------
  2924. class PROTOBUF_EXPORT ServiceDescriptorProto final :
  2925. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceDescriptorProto) */ {
  2926. public:
  2927. inline ServiceDescriptorProto() : ServiceDescriptorProto(nullptr) {}
  2928. ~ServiceDescriptorProto() override;
  2929. explicit PROTOBUF_CONSTEXPR ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2930. ServiceDescriptorProto(const ServiceDescriptorProto& from);
  2931. ServiceDescriptorProto(ServiceDescriptorProto&& from) noexcept
  2932. : ServiceDescriptorProto() {
  2933. *this = ::std::move(from);
  2934. }
  2935. inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) {
  2936. CopyFrom(from);
  2937. return *this;
  2938. }
  2939. inline ServiceDescriptorProto& operator=(ServiceDescriptorProto&& from) noexcept {
  2940. if (this == &from) return *this;
  2941. if (GetOwningArena() == from.GetOwningArena()
  2942. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2943. && GetOwningArena() != nullptr
  2944. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2945. ) {
  2946. InternalSwap(&from);
  2947. } else {
  2948. CopyFrom(from);
  2949. }
  2950. return *this;
  2951. }
  2952. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2953. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2954. }
  2955. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2956. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2957. }
  2958. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2959. return GetDescriptor();
  2960. }
  2961. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2962. return default_instance().GetMetadata().descriptor;
  2963. }
  2964. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2965. return default_instance().GetMetadata().reflection;
  2966. }
  2967. static const ServiceDescriptorProto& default_instance() {
  2968. return *internal_default_instance();
  2969. }
  2970. static inline const ServiceDescriptorProto* internal_default_instance() {
  2971. return reinterpret_cast<const ServiceDescriptorProto*>(
  2972. &_ServiceDescriptorProto_default_instance_);
  2973. }
  2974. static constexpr int kIndexInFileMessages =
  2975. 11;
  2976. friend void swap(ServiceDescriptorProto& a, ServiceDescriptorProto& b) {
  2977. a.Swap(&b);
  2978. }
  2979. inline void Swap(ServiceDescriptorProto* other) {
  2980. if (other == this) return;
  2981. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2982. if (GetOwningArena() != nullptr &&
  2983. GetOwningArena() == other->GetOwningArena()) {
  2984. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2985. if (GetOwningArena() == other->GetOwningArena()) {
  2986. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2987. InternalSwap(other);
  2988. } else {
  2989. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2990. }
  2991. }
  2992. void UnsafeArenaSwap(ServiceDescriptorProto* other) {
  2993. if (other == this) return;
  2994. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2995. InternalSwap(other);
  2996. }
  2997. // implements Message ----------------------------------------------
  2998. ServiceDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2999. return CreateMaybeMessage<ServiceDescriptorProto>(arena);
  3000. }
  3001. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3002. void CopyFrom(const ServiceDescriptorProto& from);
  3003. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3004. void MergeFrom( const ServiceDescriptorProto& from) {
  3005. ServiceDescriptorProto::MergeImpl(*this, from);
  3006. }
  3007. private:
  3008. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  3009. public:
  3010. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3011. bool IsInitialized() const final;
  3012. size_t ByteSizeLong() const final;
  3013. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3014. uint8_t* _InternalSerialize(
  3015. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3016. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  3017. private:
  3018. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  3019. void SharedDtor();
  3020. void SetCachedSize(int size) const final;
  3021. void InternalSwap(ServiceDescriptorProto* other);
  3022. private:
  3023. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3024. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3025. return "google.protobuf.ServiceDescriptorProto";
  3026. }
  3027. protected:
  3028. explicit ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3029. bool is_message_owned = false);
  3030. public:
  3031. static const ClassData _class_data_;
  3032. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  3033. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3034. // nested types ----------------------------------------------------
  3035. // accessors -------------------------------------------------------
  3036. enum : int {
  3037. kMethodFieldNumber = 2,
  3038. kNameFieldNumber = 1,
  3039. kOptionsFieldNumber = 3,
  3040. };
  3041. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3042. int method_size() const;
  3043. private:
  3044. int _internal_method_size() const;
  3045. public:
  3046. void clear_method();
  3047. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* mutable_method(int index);
  3048. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >*
  3049. mutable_method();
  3050. private:
  3051. const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& _internal_method(int index) const;
  3052. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* _internal_add_method();
  3053. public:
  3054. const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& method(int index) const;
  3055. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* add_method();
  3056. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >&
  3057. method() const;
  3058. // optional string name = 1;
  3059. bool has_name() const;
  3060. private:
  3061. bool _internal_has_name() const;
  3062. public:
  3063. void clear_name();
  3064. const std::string& name() const;
  3065. template <typename ArgT0 = const std::string&, typename... ArgT>
  3066. void set_name(ArgT0&& arg0, ArgT... args);
  3067. std::string* mutable_name();
  3068. PROTOBUF_NODISCARD std::string* release_name();
  3069. void set_allocated_name(std::string* name);
  3070. private:
  3071. const std::string& _internal_name() const;
  3072. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  3073. std::string* _internal_mutable_name();
  3074. public:
  3075. // optional .google.protobuf.ServiceOptions options = 3;
  3076. bool has_options() const;
  3077. private:
  3078. bool _internal_has_options() const;
  3079. public:
  3080. void clear_options();
  3081. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& options() const;
  3082. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::ServiceOptions* release_options();
  3083. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* mutable_options();
  3084. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::ServiceOptions* options);
  3085. private:
  3086. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& _internal_options() const;
  3087. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* _internal_mutable_options();
  3088. public:
  3089. void unsafe_arena_set_allocated_options(
  3090. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options);
  3091. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* unsafe_arena_release_options();
  3092. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
  3093. private:
  3094. class _Internal;
  3095. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3096. typedef void InternalArenaConstructable_;
  3097. typedef void DestructorSkippable_;
  3098. struct Impl_ {
  3099. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3100. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3101. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto > method_;
  3102. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3103. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options_;
  3104. };
  3105. union { Impl_ _impl_; };
  3106. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3107. };
  3108. // -------------------------------------------------------------------
  3109. class PROTOBUF_EXPORT MethodDescriptorProto final :
  3110. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodDescriptorProto) */ {
  3111. public:
  3112. inline MethodDescriptorProto() : MethodDescriptorProto(nullptr) {}
  3113. ~MethodDescriptorProto() override;
  3114. explicit PROTOBUF_CONSTEXPR MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3115. MethodDescriptorProto(const MethodDescriptorProto& from);
  3116. MethodDescriptorProto(MethodDescriptorProto&& from) noexcept
  3117. : MethodDescriptorProto() {
  3118. *this = ::std::move(from);
  3119. }
  3120. inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) {
  3121. CopyFrom(from);
  3122. return *this;
  3123. }
  3124. inline MethodDescriptorProto& operator=(MethodDescriptorProto&& from) noexcept {
  3125. if (this == &from) return *this;
  3126. if (GetOwningArena() == from.GetOwningArena()
  3127. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3128. && GetOwningArena() != nullptr
  3129. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3130. ) {
  3131. InternalSwap(&from);
  3132. } else {
  3133. CopyFrom(from);
  3134. }
  3135. return *this;
  3136. }
  3137. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  3138. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  3139. }
  3140. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  3141. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3142. }
  3143. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3144. return GetDescriptor();
  3145. }
  3146. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3147. return default_instance().GetMetadata().descriptor;
  3148. }
  3149. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3150. return default_instance().GetMetadata().reflection;
  3151. }
  3152. static const MethodDescriptorProto& default_instance() {
  3153. return *internal_default_instance();
  3154. }
  3155. static inline const MethodDescriptorProto* internal_default_instance() {
  3156. return reinterpret_cast<const MethodDescriptorProto*>(
  3157. &_MethodDescriptorProto_default_instance_);
  3158. }
  3159. static constexpr int kIndexInFileMessages =
  3160. 12;
  3161. friend void swap(MethodDescriptorProto& a, MethodDescriptorProto& b) {
  3162. a.Swap(&b);
  3163. }
  3164. inline void Swap(MethodDescriptorProto* other) {
  3165. if (other == this) return;
  3166. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3167. if (GetOwningArena() != nullptr &&
  3168. GetOwningArena() == other->GetOwningArena()) {
  3169. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3170. if (GetOwningArena() == other->GetOwningArena()) {
  3171. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3172. InternalSwap(other);
  3173. } else {
  3174. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3175. }
  3176. }
  3177. void UnsafeArenaSwap(MethodDescriptorProto* other) {
  3178. if (other == this) return;
  3179. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  3180. InternalSwap(other);
  3181. }
  3182. // implements Message ----------------------------------------------
  3183. MethodDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  3184. return CreateMaybeMessage<MethodDescriptorProto>(arena);
  3185. }
  3186. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3187. void CopyFrom(const MethodDescriptorProto& from);
  3188. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3189. void MergeFrom( const MethodDescriptorProto& from) {
  3190. MethodDescriptorProto::MergeImpl(*this, from);
  3191. }
  3192. private:
  3193. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  3194. public:
  3195. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3196. bool IsInitialized() const final;
  3197. size_t ByteSizeLong() const final;
  3198. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3199. uint8_t* _InternalSerialize(
  3200. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3201. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  3202. private:
  3203. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  3204. void SharedDtor();
  3205. void SetCachedSize(int size) const final;
  3206. void InternalSwap(MethodDescriptorProto* other);
  3207. private:
  3208. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3209. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3210. return "google.protobuf.MethodDescriptorProto";
  3211. }
  3212. protected:
  3213. explicit MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3214. bool is_message_owned = false);
  3215. public:
  3216. static const ClassData _class_data_;
  3217. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  3218. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3219. // nested types ----------------------------------------------------
  3220. // accessors -------------------------------------------------------
  3221. enum : int {
  3222. kNameFieldNumber = 1,
  3223. kInputTypeFieldNumber = 2,
  3224. kOutputTypeFieldNumber = 3,
  3225. kOptionsFieldNumber = 4,
  3226. kClientStreamingFieldNumber = 5,
  3227. kServerStreamingFieldNumber = 6,
  3228. };
  3229. // optional string name = 1;
  3230. bool has_name() const;
  3231. private:
  3232. bool _internal_has_name() const;
  3233. public:
  3234. void clear_name();
  3235. const std::string& name() const;
  3236. template <typename ArgT0 = const std::string&, typename... ArgT>
  3237. void set_name(ArgT0&& arg0, ArgT... args);
  3238. std::string* mutable_name();
  3239. PROTOBUF_NODISCARD std::string* release_name();
  3240. void set_allocated_name(std::string* name);
  3241. private:
  3242. const std::string& _internal_name() const;
  3243. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  3244. std::string* _internal_mutable_name();
  3245. public:
  3246. // optional string input_type = 2;
  3247. bool has_input_type() const;
  3248. private:
  3249. bool _internal_has_input_type() const;
  3250. public:
  3251. void clear_input_type();
  3252. const std::string& input_type() const;
  3253. template <typename ArgT0 = const std::string&, typename... ArgT>
  3254. void set_input_type(ArgT0&& arg0, ArgT... args);
  3255. std::string* mutable_input_type();
  3256. PROTOBUF_NODISCARD std::string* release_input_type();
  3257. void set_allocated_input_type(std::string* input_type);
  3258. private:
  3259. const std::string& _internal_input_type() const;
  3260. inline PROTOBUF_ALWAYS_INLINE void _internal_set_input_type(const std::string& value);
  3261. std::string* _internal_mutable_input_type();
  3262. public:
  3263. // optional string output_type = 3;
  3264. bool has_output_type() const;
  3265. private:
  3266. bool _internal_has_output_type() const;
  3267. public:
  3268. void clear_output_type();
  3269. const std::string& output_type() const;
  3270. template <typename ArgT0 = const std::string&, typename... ArgT>
  3271. void set_output_type(ArgT0&& arg0, ArgT... args);
  3272. std::string* mutable_output_type();
  3273. PROTOBUF_NODISCARD std::string* release_output_type();
  3274. void set_allocated_output_type(std::string* output_type);
  3275. private:
  3276. const std::string& _internal_output_type() const;
  3277. inline PROTOBUF_ALWAYS_INLINE void _internal_set_output_type(const std::string& value);
  3278. std::string* _internal_mutable_output_type();
  3279. public:
  3280. // optional .google.protobuf.MethodOptions options = 4;
  3281. bool has_options() const;
  3282. private:
  3283. bool _internal_has_options() const;
  3284. public:
  3285. void clear_options();
  3286. const ::PROTOBUF_NAMESPACE_ID::MethodOptions& options() const;
  3287. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::MethodOptions* release_options();
  3288. ::PROTOBUF_NAMESPACE_ID::MethodOptions* mutable_options();
  3289. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::MethodOptions* options);
  3290. private:
  3291. const ::PROTOBUF_NAMESPACE_ID::MethodOptions& _internal_options() const;
  3292. ::PROTOBUF_NAMESPACE_ID::MethodOptions* _internal_mutable_options();
  3293. public:
  3294. void unsafe_arena_set_allocated_options(
  3295. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options);
  3296. ::PROTOBUF_NAMESPACE_ID::MethodOptions* unsafe_arena_release_options();
  3297. // optional bool client_streaming = 5 [default = false];
  3298. bool has_client_streaming() const;
  3299. private:
  3300. bool _internal_has_client_streaming() const;
  3301. public:
  3302. void clear_client_streaming();
  3303. bool client_streaming() const;
  3304. void set_client_streaming(bool value);
  3305. private:
  3306. bool _internal_client_streaming() const;
  3307. void _internal_set_client_streaming(bool value);
  3308. public:
  3309. // optional bool server_streaming = 6 [default = false];
  3310. bool has_server_streaming() const;
  3311. private:
  3312. bool _internal_has_server_streaming() const;
  3313. public:
  3314. void clear_server_streaming();
  3315. bool server_streaming() const;
  3316. void set_server_streaming(bool value);
  3317. private:
  3318. bool _internal_server_streaming() const;
  3319. void _internal_set_server_streaming(bool value);
  3320. public:
  3321. // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
  3322. private:
  3323. class _Internal;
  3324. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3325. typedef void InternalArenaConstructable_;
  3326. typedef void DestructorSkippable_;
  3327. struct Impl_ {
  3328. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3329. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3330. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3331. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr input_type_;
  3332. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr output_type_;
  3333. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options_;
  3334. bool client_streaming_;
  3335. bool server_streaming_;
  3336. };
  3337. union { Impl_ _impl_; };
  3338. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3339. };
  3340. // -------------------------------------------------------------------
  3341. class PROTOBUF_EXPORT FileOptions final :
  3342. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileOptions) */ {
  3343. public:
  3344. inline FileOptions() : FileOptions(nullptr) {}
  3345. ~FileOptions() override;
  3346. explicit PROTOBUF_CONSTEXPR FileOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3347. FileOptions(const FileOptions& from);
  3348. FileOptions(FileOptions&& from) noexcept
  3349. : FileOptions() {
  3350. *this = ::std::move(from);
  3351. }
  3352. inline FileOptions& operator=(const FileOptions& from) {
  3353. CopyFrom(from);
  3354. return *this;
  3355. }
  3356. inline FileOptions& operator=(FileOptions&& from) noexcept {
  3357. if (this == &from) return *this;
  3358. if (GetOwningArena() == from.GetOwningArena()
  3359. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3360. && GetOwningArena() != nullptr
  3361. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3362. ) {
  3363. InternalSwap(&from);
  3364. } else {
  3365. CopyFrom(from);
  3366. }
  3367. return *this;
  3368. }
  3369. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  3370. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  3371. }
  3372. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  3373. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3374. }
  3375. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3376. return GetDescriptor();
  3377. }
  3378. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3379. return default_instance().GetMetadata().descriptor;
  3380. }
  3381. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3382. return default_instance().GetMetadata().reflection;
  3383. }
  3384. static const FileOptions& default_instance() {
  3385. return *internal_default_instance();
  3386. }
  3387. static inline const FileOptions* internal_default_instance() {
  3388. return reinterpret_cast<const FileOptions*>(
  3389. &_FileOptions_default_instance_);
  3390. }
  3391. static constexpr int kIndexInFileMessages =
  3392. 13;
  3393. friend void swap(FileOptions& a, FileOptions& b) {
  3394. a.Swap(&b);
  3395. }
  3396. inline void Swap(FileOptions* other) {
  3397. if (other == this) return;
  3398. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3399. if (GetOwningArena() != nullptr &&
  3400. GetOwningArena() == other->GetOwningArena()) {
  3401. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3402. if (GetOwningArena() == other->GetOwningArena()) {
  3403. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3404. InternalSwap(other);
  3405. } else {
  3406. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3407. }
  3408. }
  3409. void UnsafeArenaSwap(FileOptions* other) {
  3410. if (other == this) return;
  3411. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  3412. InternalSwap(other);
  3413. }
  3414. // implements Message ----------------------------------------------
  3415. FileOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  3416. return CreateMaybeMessage<FileOptions>(arena);
  3417. }
  3418. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3419. void CopyFrom(const FileOptions& from);
  3420. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3421. void MergeFrom( const FileOptions& from) {
  3422. FileOptions::MergeImpl(*this, from);
  3423. }
  3424. private:
  3425. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  3426. public:
  3427. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3428. bool IsInitialized() const final;
  3429. size_t ByteSizeLong() const final;
  3430. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3431. uint8_t* _InternalSerialize(
  3432. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3433. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  3434. private:
  3435. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  3436. void SharedDtor();
  3437. void SetCachedSize(int size) const final;
  3438. void InternalSwap(FileOptions* other);
  3439. private:
  3440. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3441. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3442. return "google.protobuf.FileOptions";
  3443. }
  3444. protected:
  3445. explicit FileOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3446. bool is_message_owned = false);
  3447. public:
  3448. static const ClassData _class_data_;
  3449. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  3450. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3451. // nested types ----------------------------------------------------
  3452. typedef FileOptions_OptimizeMode OptimizeMode;
  3453. static constexpr OptimizeMode SPEED =
  3454. FileOptions_OptimizeMode_SPEED;
  3455. static constexpr OptimizeMode CODE_SIZE =
  3456. FileOptions_OptimizeMode_CODE_SIZE;
  3457. static constexpr OptimizeMode LITE_RUNTIME =
  3458. FileOptions_OptimizeMode_LITE_RUNTIME;
  3459. static inline bool OptimizeMode_IsValid(int value) {
  3460. return FileOptions_OptimizeMode_IsValid(value);
  3461. }
  3462. static constexpr OptimizeMode OptimizeMode_MIN =
  3463. FileOptions_OptimizeMode_OptimizeMode_MIN;
  3464. static constexpr OptimizeMode OptimizeMode_MAX =
  3465. FileOptions_OptimizeMode_OptimizeMode_MAX;
  3466. static constexpr int OptimizeMode_ARRAYSIZE =
  3467. FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
  3468. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  3469. OptimizeMode_descriptor() {
  3470. return FileOptions_OptimizeMode_descriptor();
  3471. }
  3472. template<typename T>
  3473. static inline const std::string& OptimizeMode_Name(T enum_t_value) {
  3474. static_assert(::std::is_same<T, OptimizeMode>::value ||
  3475. ::std::is_integral<T>::value,
  3476. "Incorrect type passed to function OptimizeMode_Name.");
  3477. return FileOptions_OptimizeMode_Name(enum_t_value);
  3478. }
  3479. static inline bool OptimizeMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  3480. OptimizeMode* value) {
  3481. return FileOptions_OptimizeMode_Parse(name, value);
  3482. }
  3483. // accessors -------------------------------------------------------
  3484. enum : int {
  3485. kUninterpretedOptionFieldNumber = 999,
  3486. kJavaPackageFieldNumber = 1,
  3487. kJavaOuterClassnameFieldNumber = 8,
  3488. kGoPackageFieldNumber = 11,
  3489. kObjcClassPrefixFieldNumber = 36,
  3490. kCsharpNamespaceFieldNumber = 37,
  3491. kSwiftPrefixFieldNumber = 39,
  3492. kPhpClassPrefixFieldNumber = 40,
  3493. kPhpNamespaceFieldNumber = 41,
  3494. kPhpMetadataNamespaceFieldNumber = 44,
  3495. kRubyPackageFieldNumber = 45,
  3496. kJavaMultipleFilesFieldNumber = 10,
  3497. kJavaGenerateEqualsAndHashFieldNumber = 20,
  3498. kJavaStringCheckUtf8FieldNumber = 27,
  3499. kCcGenericServicesFieldNumber = 16,
  3500. kJavaGenericServicesFieldNumber = 17,
  3501. kPyGenericServicesFieldNumber = 18,
  3502. kPhpGenericServicesFieldNumber = 42,
  3503. kDeprecatedFieldNumber = 23,
  3504. kOptimizeForFieldNumber = 9,
  3505. kCcEnableArenasFieldNumber = 31,
  3506. };
  3507. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3508. int uninterpreted_option_size() const;
  3509. private:
  3510. int _internal_uninterpreted_option_size() const;
  3511. public:
  3512. void clear_uninterpreted_option();
  3513. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  3514. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  3515. mutable_uninterpreted_option();
  3516. private:
  3517. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  3518. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  3519. public:
  3520. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  3521. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  3522. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  3523. uninterpreted_option() const;
  3524. // optional string java_package = 1;
  3525. bool has_java_package() const;
  3526. private:
  3527. bool _internal_has_java_package() const;
  3528. public:
  3529. void clear_java_package();
  3530. const std::string& java_package() const;
  3531. template <typename ArgT0 = const std::string&, typename... ArgT>
  3532. void set_java_package(ArgT0&& arg0, ArgT... args);
  3533. std::string* mutable_java_package();
  3534. PROTOBUF_NODISCARD std::string* release_java_package();
  3535. void set_allocated_java_package(std::string* java_package);
  3536. private:
  3537. const std::string& _internal_java_package() const;
  3538. inline PROTOBUF_ALWAYS_INLINE void _internal_set_java_package(const std::string& value);
  3539. std::string* _internal_mutable_java_package();
  3540. public:
  3541. // optional string java_outer_classname = 8;
  3542. bool has_java_outer_classname() const;
  3543. private:
  3544. bool _internal_has_java_outer_classname() const;
  3545. public:
  3546. void clear_java_outer_classname();
  3547. const std::string& java_outer_classname() const;
  3548. template <typename ArgT0 = const std::string&, typename... ArgT>
  3549. void set_java_outer_classname(ArgT0&& arg0, ArgT... args);
  3550. std::string* mutable_java_outer_classname();
  3551. PROTOBUF_NODISCARD std::string* release_java_outer_classname();
  3552. void set_allocated_java_outer_classname(std::string* java_outer_classname);
  3553. private:
  3554. const std::string& _internal_java_outer_classname() const;
  3555. inline PROTOBUF_ALWAYS_INLINE void _internal_set_java_outer_classname(const std::string& value);
  3556. std::string* _internal_mutable_java_outer_classname();
  3557. public:
  3558. // optional string go_package = 11;
  3559. bool has_go_package() const;
  3560. private:
  3561. bool _internal_has_go_package() const;
  3562. public:
  3563. void clear_go_package();
  3564. const std::string& go_package() const;
  3565. template <typename ArgT0 = const std::string&, typename... ArgT>
  3566. void set_go_package(ArgT0&& arg0, ArgT... args);
  3567. std::string* mutable_go_package();
  3568. PROTOBUF_NODISCARD std::string* release_go_package();
  3569. void set_allocated_go_package(std::string* go_package);
  3570. private:
  3571. const std::string& _internal_go_package() const;
  3572. inline PROTOBUF_ALWAYS_INLINE void _internal_set_go_package(const std::string& value);
  3573. std::string* _internal_mutable_go_package();
  3574. public:
  3575. // optional string objc_class_prefix = 36;
  3576. bool has_objc_class_prefix() const;
  3577. private:
  3578. bool _internal_has_objc_class_prefix() const;
  3579. public:
  3580. void clear_objc_class_prefix();
  3581. const std::string& objc_class_prefix() const;
  3582. template <typename ArgT0 = const std::string&, typename... ArgT>
  3583. void set_objc_class_prefix(ArgT0&& arg0, ArgT... args);
  3584. std::string* mutable_objc_class_prefix();
  3585. PROTOBUF_NODISCARD std::string* release_objc_class_prefix();
  3586. void set_allocated_objc_class_prefix(std::string* objc_class_prefix);
  3587. private:
  3588. const std::string& _internal_objc_class_prefix() const;
  3589. inline PROTOBUF_ALWAYS_INLINE void _internal_set_objc_class_prefix(const std::string& value);
  3590. std::string* _internal_mutable_objc_class_prefix();
  3591. public:
  3592. // optional string csharp_namespace = 37;
  3593. bool has_csharp_namespace() const;
  3594. private:
  3595. bool _internal_has_csharp_namespace() const;
  3596. public:
  3597. void clear_csharp_namespace();
  3598. const std::string& csharp_namespace() const;
  3599. template <typename ArgT0 = const std::string&, typename... ArgT>
  3600. void set_csharp_namespace(ArgT0&& arg0, ArgT... args);
  3601. std::string* mutable_csharp_namespace();
  3602. PROTOBUF_NODISCARD std::string* release_csharp_namespace();
  3603. void set_allocated_csharp_namespace(std::string* csharp_namespace);
  3604. private:
  3605. const std::string& _internal_csharp_namespace() const;
  3606. inline PROTOBUF_ALWAYS_INLINE void _internal_set_csharp_namespace(const std::string& value);
  3607. std::string* _internal_mutable_csharp_namespace();
  3608. public:
  3609. // optional string swift_prefix = 39;
  3610. bool has_swift_prefix() const;
  3611. private:
  3612. bool _internal_has_swift_prefix() const;
  3613. public:
  3614. void clear_swift_prefix();
  3615. const std::string& swift_prefix() const;
  3616. template <typename ArgT0 = const std::string&, typename... ArgT>
  3617. void set_swift_prefix(ArgT0&& arg0, ArgT... args);
  3618. std::string* mutable_swift_prefix();
  3619. PROTOBUF_NODISCARD std::string* release_swift_prefix();
  3620. void set_allocated_swift_prefix(std::string* swift_prefix);
  3621. private:
  3622. const std::string& _internal_swift_prefix() const;
  3623. inline PROTOBUF_ALWAYS_INLINE void _internal_set_swift_prefix(const std::string& value);
  3624. std::string* _internal_mutable_swift_prefix();
  3625. public:
  3626. // optional string php_class_prefix = 40;
  3627. bool has_php_class_prefix() const;
  3628. private:
  3629. bool _internal_has_php_class_prefix() const;
  3630. public:
  3631. void clear_php_class_prefix();
  3632. const std::string& php_class_prefix() const;
  3633. template <typename ArgT0 = const std::string&, typename... ArgT>
  3634. void set_php_class_prefix(ArgT0&& arg0, ArgT... args);
  3635. std::string* mutable_php_class_prefix();
  3636. PROTOBUF_NODISCARD std::string* release_php_class_prefix();
  3637. void set_allocated_php_class_prefix(std::string* php_class_prefix);
  3638. private:
  3639. const std::string& _internal_php_class_prefix() const;
  3640. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_class_prefix(const std::string& value);
  3641. std::string* _internal_mutable_php_class_prefix();
  3642. public:
  3643. // optional string php_namespace = 41;
  3644. bool has_php_namespace() const;
  3645. private:
  3646. bool _internal_has_php_namespace() const;
  3647. public:
  3648. void clear_php_namespace();
  3649. const std::string& php_namespace() const;
  3650. template <typename ArgT0 = const std::string&, typename... ArgT>
  3651. void set_php_namespace(ArgT0&& arg0, ArgT... args);
  3652. std::string* mutable_php_namespace();
  3653. PROTOBUF_NODISCARD std::string* release_php_namespace();
  3654. void set_allocated_php_namespace(std::string* php_namespace);
  3655. private:
  3656. const std::string& _internal_php_namespace() const;
  3657. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_namespace(const std::string& value);
  3658. std::string* _internal_mutable_php_namespace();
  3659. public:
  3660. // optional string php_metadata_namespace = 44;
  3661. bool has_php_metadata_namespace() const;
  3662. private:
  3663. bool _internal_has_php_metadata_namespace() const;
  3664. public:
  3665. void clear_php_metadata_namespace();
  3666. const std::string& php_metadata_namespace() const;
  3667. template <typename ArgT0 = const std::string&, typename... ArgT>
  3668. void set_php_metadata_namespace(ArgT0&& arg0, ArgT... args);
  3669. std::string* mutable_php_metadata_namespace();
  3670. PROTOBUF_NODISCARD std::string* release_php_metadata_namespace();
  3671. void set_allocated_php_metadata_namespace(std::string* php_metadata_namespace);
  3672. private:
  3673. const std::string& _internal_php_metadata_namespace() const;
  3674. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_metadata_namespace(const std::string& value);
  3675. std::string* _internal_mutable_php_metadata_namespace();
  3676. public:
  3677. // optional string ruby_package = 45;
  3678. bool has_ruby_package() const;
  3679. private:
  3680. bool _internal_has_ruby_package() const;
  3681. public:
  3682. void clear_ruby_package();
  3683. const std::string& ruby_package() const;
  3684. template <typename ArgT0 = const std::string&, typename... ArgT>
  3685. void set_ruby_package(ArgT0&& arg0, ArgT... args);
  3686. std::string* mutable_ruby_package();
  3687. PROTOBUF_NODISCARD std::string* release_ruby_package();
  3688. void set_allocated_ruby_package(std::string* ruby_package);
  3689. private:
  3690. const std::string& _internal_ruby_package() const;
  3691. inline PROTOBUF_ALWAYS_INLINE void _internal_set_ruby_package(const std::string& value);
  3692. std::string* _internal_mutable_ruby_package();
  3693. public:
  3694. // optional bool java_multiple_files = 10 [default = false];
  3695. bool has_java_multiple_files() const;
  3696. private:
  3697. bool _internal_has_java_multiple_files() const;
  3698. public:
  3699. void clear_java_multiple_files();
  3700. bool java_multiple_files() const;
  3701. void set_java_multiple_files(bool value);
  3702. private:
  3703. bool _internal_java_multiple_files() const;
  3704. void _internal_set_java_multiple_files(bool value);
  3705. public:
  3706. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  3707. PROTOBUF_DEPRECATED bool has_java_generate_equals_and_hash() const;
  3708. private:
  3709. bool _internal_has_java_generate_equals_and_hash() const;
  3710. public:
  3711. PROTOBUF_DEPRECATED void clear_java_generate_equals_and_hash();
  3712. PROTOBUF_DEPRECATED bool java_generate_equals_and_hash() const;
  3713. PROTOBUF_DEPRECATED void set_java_generate_equals_and_hash(bool value);
  3714. private:
  3715. bool _internal_java_generate_equals_and_hash() const;
  3716. void _internal_set_java_generate_equals_and_hash(bool value);
  3717. public:
  3718. // optional bool java_string_check_utf8 = 27 [default = false];
  3719. bool has_java_string_check_utf8() const;
  3720. private:
  3721. bool _internal_has_java_string_check_utf8() const;
  3722. public:
  3723. void clear_java_string_check_utf8();
  3724. bool java_string_check_utf8() const;
  3725. void set_java_string_check_utf8(bool value);
  3726. private:
  3727. bool _internal_java_string_check_utf8() const;
  3728. void _internal_set_java_string_check_utf8(bool value);
  3729. public:
  3730. // optional bool cc_generic_services = 16 [default = false];
  3731. bool has_cc_generic_services() const;
  3732. private:
  3733. bool _internal_has_cc_generic_services() const;
  3734. public:
  3735. void clear_cc_generic_services();
  3736. bool cc_generic_services() const;
  3737. void set_cc_generic_services(bool value);
  3738. private:
  3739. bool _internal_cc_generic_services() const;
  3740. void _internal_set_cc_generic_services(bool value);
  3741. public:
  3742. // optional bool java_generic_services = 17 [default = false];
  3743. bool has_java_generic_services() const;
  3744. private:
  3745. bool _internal_has_java_generic_services() const;
  3746. public:
  3747. void clear_java_generic_services();
  3748. bool java_generic_services() const;
  3749. void set_java_generic_services(bool value);
  3750. private:
  3751. bool _internal_java_generic_services() const;
  3752. void _internal_set_java_generic_services(bool value);
  3753. public:
  3754. // optional bool py_generic_services = 18 [default = false];
  3755. bool has_py_generic_services() const;
  3756. private:
  3757. bool _internal_has_py_generic_services() const;
  3758. public:
  3759. void clear_py_generic_services();
  3760. bool py_generic_services() const;
  3761. void set_py_generic_services(bool value);
  3762. private:
  3763. bool _internal_py_generic_services() const;
  3764. void _internal_set_py_generic_services(bool value);
  3765. public:
  3766. // optional bool php_generic_services = 42 [default = false];
  3767. bool has_php_generic_services() const;
  3768. private:
  3769. bool _internal_has_php_generic_services() const;
  3770. public:
  3771. void clear_php_generic_services();
  3772. bool php_generic_services() const;
  3773. void set_php_generic_services(bool value);
  3774. private:
  3775. bool _internal_php_generic_services() const;
  3776. void _internal_set_php_generic_services(bool value);
  3777. public:
  3778. // optional bool deprecated = 23 [default = false];
  3779. bool has_deprecated() const;
  3780. private:
  3781. bool _internal_has_deprecated() const;
  3782. public:
  3783. void clear_deprecated();
  3784. bool deprecated() const;
  3785. void set_deprecated(bool value);
  3786. private:
  3787. bool _internal_deprecated() const;
  3788. void _internal_set_deprecated(bool value);
  3789. public:
  3790. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  3791. bool has_optimize_for() const;
  3792. private:
  3793. bool _internal_has_optimize_for() const;
  3794. public:
  3795. void clear_optimize_for();
  3796. ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode optimize_for() const;
  3797. void set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value);
  3798. private:
  3799. ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode _internal_optimize_for() const;
  3800. void _internal_set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value);
  3801. public:
  3802. // optional bool cc_enable_arenas = 31 [default = true];
  3803. bool has_cc_enable_arenas() const;
  3804. private:
  3805. bool _internal_has_cc_enable_arenas() const;
  3806. public:
  3807. void clear_cc_enable_arenas();
  3808. bool cc_enable_arenas() const;
  3809. void set_cc_enable_arenas(bool value);
  3810. private:
  3811. bool _internal_cc_enable_arenas() const;
  3812. void _internal_set_cc_enable_arenas(bool value);
  3813. public:
  3814. template <typename _proto_TypeTraits,
  3815. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3816. bool _is_packed>
  3817. inline bool HasExtension(
  3818. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3819. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3820. return _impl_._extensions_.Has(id.number());
  3821. }
  3822. template <typename _proto_TypeTraits,
  3823. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3824. bool _is_packed>
  3825. inline void ClearExtension(
  3826. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3827. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3828. _impl_._extensions_.ClearExtension(id.number());
  3829. }
  3830. template <typename _proto_TypeTraits,
  3831. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3832. bool _is_packed>
  3833. inline int ExtensionSize(
  3834. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3835. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3836. return _impl_._extensions_.ExtensionSize(id.number());
  3837. }
  3838. template <typename _proto_TypeTraits,
  3839. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3840. bool _is_packed>
  3841. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  3842. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3843. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3844. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_,
  3845. id.default_value());
  3846. }
  3847. template <typename _proto_TypeTraits,
  3848. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3849. bool _is_packed>
  3850. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  3851. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3852. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3853. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  3854. &_impl_._extensions_);
  3855. }
  3856. template <typename _proto_TypeTraits,
  3857. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3858. bool _is_packed>
  3859. inline void SetExtension(
  3860. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3861. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3862. typename _proto_TypeTraits::Singular::ConstType value) {
  3863. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  3864. }
  3865. template <typename _proto_TypeTraits,
  3866. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3867. bool _is_packed>
  3868. inline void SetAllocatedExtension(
  3869. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3870. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3871. typename _proto_TypeTraits::Singular::MutableType value) {
  3872. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  3873. &_impl_._extensions_);
  3874. }
  3875. template <typename _proto_TypeTraits,
  3876. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3877. bool _is_packed>
  3878. inline void UnsafeArenaSetAllocatedExtension(
  3879. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3880. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3881. typename _proto_TypeTraits::Singular::MutableType value) {
  3882. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  3883. value, &_impl_._extensions_);
  3884. }
  3885. template <typename _proto_TypeTraits,
  3886. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3887. bool _is_packed>
  3888. PROTOBUF_NODISCARD inline
  3889. typename _proto_TypeTraits::Singular::MutableType
  3890. ReleaseExtension(
  3891. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3892. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3893. return _proto_TypeTraits::Release(id.number(), _field_type,
  3894. &_impl_._extensions_);
  3895. }
  3896. template <typename _proto_TypeTraits,
  3897. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3898. bool _is_packed>
  3899. inline typename _proto_TypeTraits::Singular::MutableType
  3900. UnsafeArenaReleaseExtension(
  3901. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3902. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3903. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  3904. &_impl_._extensions_);
  3905. }
  3906. template <typename _proto_TypeTraits,
  3907. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3908. bool _is_packed>
  3909. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  3910. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3911. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3912. int index) const {
  3913. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  3914. }
  3915. template <typename _proto_TypeTraits,
  3916. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3917. bool _is_packed>
  3918. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  3919. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3920. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3921. int index) {
  3922. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  3923. }
  3924. template <typename _proto_TypeTraits,
  3925. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3926. bool _is_packed>
  3927. inline void SetExtension(
  3928. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3929. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3930. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  3931. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  3932. }
  3933. template <typename _proto_TypeTraits,
  3934. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3935. bool _is_packed>
  3936. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  3937. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3938. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3939. typename _proto_TypeTraits::Repeated::MutableType to_add =
  3940. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  3941. return to_add;
  3942. }
  3943. template <typename _proto_TypeTraits,
  3944. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3945. bool _is_packed>
  3946. inline void AddExtension(
  3947. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3948. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3949. typename _proto_TypeTraits::Repeated::ConstType value) {
  3950. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  3951. &_impl_._extensions_);
  3952. }
  3953. template <typename _proto_TypeTraits,
  3954. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3955. bool _is_packed>
  3956. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  3957. GetRepeatedExtension(
  3958. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3959. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3960. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  3961. }
  3962. template <typename _proto_TypeTraits,
  3963. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3964. bool _is_packed>
  3965. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  3966. MutableRepeatedExtension(
  3967. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3968. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3969. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  3970. _is_packed, &_impl_._extensions_);
  3971. }
  3972. // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
  3973. private:
  3974. class _Internal;
  3975. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3976. typedef void InternalArenaConstructable_;
  3977. typedef void DestructorSkippable_;
  3978. struct Impl_ {
  3979. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  3980. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3981. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3982. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  3983. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr java_package_;
  3984. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr java_outer_classname_;
  3985. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr go_package_;
  3986. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr objc_class_prefix_;
  3987. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr csharp_namespace_;
  3988. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr swift_prefix_;
  3989. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_class_prefix_;
  3990. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_namespace_;
  3991. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_metadata_namespace_;
  3992. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ruby_package_;
  3993. bool java_multiple_files_;
  3994. bool java_generate_equals_and_hash_;
  3995. bool java_string_check_utf8_;
  3996. bool cc_generic_services_;
  3997. bool java_generic_services_;
  3998. bool py_generic_services_;
  3999. bool php_generic_services_;
  4000. bool deprecated_;
  4001. int optimize_for_;
  4002. bool cc_enable_arenas_;
  4003. };
  4004. union { Impl_ _impl_; };
  4005. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4006. };
  4007. // -------------------------------------------------------------------
  4008. class PROTOBUF_EXPORT MessageOptions final :
  4009. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MessageOptions) */ {
  4010. public:
  4011. inline MessageOptions() : MessageOptions(nullptr) {}
  4012. ~MessageOptions() override;
  4013. explicit PROTOBUF_CONSTEXPR MessageOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  4014. MessageOptions(const MessageOptions& from);
  4015. MessageOptions(MessageOptions&& from) noexcept
  4016. : MessageOptions() {
  4017. *this = ::std::move(from);
  4018. }
  4019. inline MessageOptions& operator=(const MessageOptions& from) {
  4020. CopyFrom(from);
  4021. return *this;
  4022. }
  4023. inline MessageOptions& operator=(MessageOptions&& from) noexcept {
  4024. if (this == &from) return *this;
  4025. if (GetOwningArena() == from.GetOwningArena()
  4026. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4027. && GetOwningArena() != nullptr
  4028. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4029. ) {
  4030. InternalSwap(&from);
  4031. } else {
  4032. CopyFrom(from);
  4033. }
  4034. return *this;
  4035. }
  4036. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4037. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  4038. }
  4039. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4040. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4041. }
  4042. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4043. return GetDescriptor();
  4044. }
  4045. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4046. return default_instance().GetMetadata().descriptor;
  4047. }
  4048. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4049. return default_instance().GetMetadata().reflection;
  4050. }
  4051. static const MessageOptions& default_instance() {
  4052. return *internal_default_instance();
  4053. }
  4054. static inline const MessageOptions* internal_default_instance() {
  4055. return reinterpret_cast<const MessageOptions*>(
  4056. &_MessageOptions_default_instance_);
  4057. }
  4058. static constexpr int kIndexInFileMessages =
  4059. 14;
  4060. friend void swap(MessageOptions& a, MessageOptions& b) {
  4061. a.Swap(&b);
  4062. }
  4063. inline void Swap(MessageOptions* other) {
  4064. if (other == this) return;
  4065. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4066. if (GetOwningArena() != nullptr &&
  4067. GetOwningArena() == other->GetOwningArena()) {
  4068. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4069. if (GetOwningArena() == other->GetOwningArena()) {
  4070. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4071. InternalSwap(other);
  4072. } else {
  4073. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4074. }
  4075. }
  4076. void UnsafeArenaSwap(MessageOptions* other) {
  4077. if (other == this) return;
  4078. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  4079. InternalSwap(other);
  4080. }
  4081. // implements Message ----------------------------------------------
  4082. MessageOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  4083. return CreateMaybeMessage<MessageOptions>(arena);
  4084. }
  4085. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  4086. void CopyFrom(const MessageOptions& from);
  4087. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  4088. void MergeFrom( const MessageOptions& from) {
  4089. MessageOptions::MergeImpl(*this, from);
  4090. }
  4091. private:
  4092. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  4093. public:
  4094. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4095. bool IsInitialized() const final;
  4096. size_t ByteSizeLong() const final;
  4097. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4098. uint8_t* _InternalSerialize(
  4099. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4100. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  4101. private:
  4102. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  4103. void SharedDtor();
  4104. void SetCachedSize(int size) const final;
  4105. void InternalSwap(MessageOptions* other);
  4106. private:
  4107. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4108. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4109. return "google.protobuf.MessageOptions";
  4110. }
  4111. protected:
  4112. explicit MessageOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4113. bool is_message_owned = false);
  4114. public:
  4115. static const ClassData _class_data_;
  4116. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  4117. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4118. // nested types ----------------------------------------------------
  4119. // accessors -------------------------------------------------------
  4120. enum : int {
  4121. kUninterpretedOptionFieldNumber = 999,
  4122. kMessageSetWireFormatFieldNumber = 1,
  4123. kNoStandardDescriptorAccessorFieldNumber = 2,
  4124. kDeprecatedFieldNumber = 3,
  4125. kMapEntryFieldNumber = 7,
  4126. };
  4127. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4128. int uninterpreted_option_size() const;
  4129. private:
  4130. int _internal_uninterpreted_option_size() const;
  4131. public:
  4132. void clear_uninterpreted_option();
  4133. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4134. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4135. mutable_uninterpreted_option();
  4136. private:
  4137. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4138. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4139. public:
  4140. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4141. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4142. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4143. uninterpreted_option() const;
  4144. // optional bool message_set_wire_format = 1 [default = false];
  4145. bool has_message_set_wire_format() const;
  4146. private:
  4147. bool _internal_has_message_set_wire_format() const;
  4148. public:
  4149. void clear_message_set_wire_format();
  4150. bool message_set_wire_format() const;
  4151. void set_message_set_wire_format(bool value);
  4152. private:
  4153. bool _internal_message_set_wire_format() const;
  4154. void _internal_set_message_set_wire_format(bool value);
  4155. public:
  4156. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  4157. bool has_no_standard_descriptor_accessor() const;
  4158. private:
  4159. bool _internal_has_no_standard_descriptor_accessor() const;
  4160. public:
  4161. void clear_no_standard_descriptor_accessor();
  4162. bool no_standard_descriptor_accessor() const;
  4163. void set_no_standard_descriptor_accessor(bool value);
  4164. private:
  4165. bool _internal_no_standard_descriptor_accessor() const;
  4166. void _internal_set_no_standard_descriptor_accessor(bool value);
  4167. public:
  4168. // optional bool deprecated = 3 [default = false];
  4169. bool has_deprecated() const;
  4170. private:
  4171. bool _internal_has_deprecated() const;
  4172. public:
  4173. void clear_deprecated();
  4174. bool deprecated() const;
  4175. void set_deprecated(bool value);
  4176. private:
  4177. bool _internal_deprecated() const;
  4178. void _internal_set_deprecated(bool value);
  4179. public:
  4180. // optional bool map_entry = 7;
  4181. bool has_map_entry() const;
  4182. private:
  4183. bool _internal_has_map_entry() const;
  4184. public:
  4185. void clear_map_entry();
  4186. bool map_entry() const;
  4187. void set_map_entry(bool value);
  4188. private:
  4189. bool _internal_map_entry() const;
  4190. void _internal_set_map_entry(bool value);
  4191. public:
  4192. template <typename _proto_TypeTraits,
  4193. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4194. bool _is_packed>
  4195. inline bool HasExtension(
  4196. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4197. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4198. return _impl_._extensions_.Has(id.number());
  4199. }
  4200. template <typename _proto_TypeTraits,
  4201. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4202. bool _is_packed>
  4203. inline void ClearExtension(
  4204. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4205. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4206. _impl_._extensions_.ClearExtension(id.number());
  4207. }
  4208. template <typename _proto_TypeTraits,
  4209. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4210. bool _is_packed>
  4211. inline int ExtensionSize(
  4212. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4213. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4214. return _impl_._extensions_.ExtensionSize(id.number());
  4215. }
  4216. template <typename _proto_TypeTraits,
  4217. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4218. bool _is_packed>
  4219. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  4220. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4221. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4222. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_,
  4223. id.default_value());
  4224. }
  4225. template <typename _proto_TypeTraits,
  4226. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4227. bool _is_packed>
  4228. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  4229. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4230. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4231. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  4232. &_impl_._extensions_);
  4233. }
  4234. template <typename _proto_TypeTraits,
  4235. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4236. bool _is_packed>
  4237. inline void SetExtension(
  4238. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4239. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4240. typename _proto_TypeTraits::Singular::ConstType value) {
  4241. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  4242. }
  4243. template <typename _proto_TypeTraits,
  4244. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4245. bool _is_packed>
  4246. inline void SetAllocatedExtension(
  4247. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4248. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4249. typename _proto_TypeTraits::Singular::MutableType value) {
  4250. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  4251. &_impl_._extensions_);
  4252. }
  4253. template <typename _proto_TypeTraits,
  4254. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4255. bool _is_packed>
  4256. inline void UnsafeArenaSetAllocatedExtension(
  4257. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4258. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4259. typename _proto_TypeTraits::Singular::MutableType value) {
  4260. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  4261. value, &_impl_._extensions_);
  4262. }
  4263. template <typename _proto_TypeTraits,
  4264. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4265. bool _is_packed>
  4266. PROTOBUF_NODISCARD inline
  4267. typename _proto_TypeTraits::Singular::MutableType
  4268. ReleaseExtension(
  4269. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4270. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4271. return _proto_TypeTraits::Release(id.number(), _field_type,
  4272. &_impl_._extensions_);
  4273. }
  4274. template <typename _proto_TypeTraits,
  4275. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4276. bool _is_packed>
  4277. inline typename _proto_TypeTraits::Singular::MutableType
  4278. UnsafeArenaReleaseExtension(
  4279. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4280. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4281. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  4282. &_impl_._extensions_);
  4283. }
  4284. template <typename _proto_TypeTraits,
  4285. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4286. bool _is_packed>
  4287. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  4288. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4289. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4290. int index) const {
  4291. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  4292. }
  4293. template <typename _proto_TypeTraits,
  4294. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4295. bool _is_packed>
  4296. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  4297. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4298. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4299. int index) {
  4300. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  4301. }
  4302. template <typename _proto_TypeTraits,
  4303. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4304. bool _is_packed>
  4305. inline void SetExtension(
  4306. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4307. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4308. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  4309. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  4310. }
  4311. template <typename _proto_TypeTraits,
  4312. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4313. bool _is_packed>
  4314. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  4315. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4316. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4317. typename _proto_TypeTraits::Repeated::MutableType to_add =
  4318. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  4319. return to_add;
  4320. }
  4321. template <typename _proto_TypeTraits,
  4322. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4323. bool _is_packed>
  4324. inline void AddExtension(
  4325. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4326. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4327. typename _proto_TypeTraits::Repeated::ConstType value) {
  4328. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  4329. &_impl_._extensions_);
  4330. }
  4331. template <typename _proto_TypeTraits,
  4332. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4333. bool _is_packed>
  4334. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  4335. GetRepeatedExtension(
  4336. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4337. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4338. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  4339. }
  4340. template <typename _proto_TypeTraits,
  4341. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4342. bool _is_packed>
  4343. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  4344. MutableRepeatedExtension(
  4345. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4346. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4347. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  4348. _is_packed, &_impl_._extensions_);
  4349. }
  4350. // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
  4351. private:
  4352. class _Internal;
  4353. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4354. typedef void InternalArenaConstructable_;
  4355. typedef void DestructorSkippable_;
  4356. struct Impl_ {
  4357. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4358. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4359. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4360. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  4361. bool message_set_wire_format_;
  4362. bool no_standard_descriptor_accessor_;
  4363. bool deprecated_;
  4364. bool map_entry_;
  4365. };
  4366. union { Impl_ _impl_; };
  4367. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4368. };
  4369. // -------------------------------------------------------------------
  4370. class PROTOBUF_EXPORT FieldOptions final :
  4371. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldOptions) */ {
  4372. public:
  4373. inline FieldOptions() : FieldOptions(nullptr) {}
  4374. ~FieldOptions() override;
  4375. explicit PROTOBUF_CONSTEXPR FieldOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  4376. FieldOptions(const FieldOptions& from);
  4377. FieldOptions(FieldOptions&& from) noexcept
  4378. : FieldOptions() {
  4379. *this = ::std::move(from);
  4380. }
  4381. inline FieldOptions& operator=(const FieldOptions& from) {
  4382. CopyFrom(from);
  4383. return *this;
  4384. }
  4385. inline FieldOptions& operator=(FieldOptions&& from) noexcept {
  4386. if (this == &from) return *this;
  4387. if (GetOwningArena() == from.GetOwningArena()
  4388. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4389. && GetOwningArena() != nullptr
  4390. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4391. ) {
  4392. InternalSwap(&from);
  4393. } else {
  4394. CopyFrom(from);
  4395. }
  4396. return *this;
  4397. }
  4398. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4399. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  4400. }
  4401. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4402. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4403. }
  4404. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4405. return GetDescriptor();
  4406. }
  4407. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4408. return default_instance().GetMetadata().descriptor;
  4409. }
  4410. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4411. return default_instance().GetMetadata().reflection;
  4412. }
  4413. static const FieldOptions& default_instance() {
  4414. return *internal_default_instance();
  4415. }
  4416. static inline const FieldOptions* internal_default_instance() {
  4417. return reinterpret_cast<const FieldOptions*>(
  4418. &_FieldOptions_default_instance_);
  4419. }
  4420. static constexpr int kIndexInFileMessages =
  4421. 15;
  4422. friend void swap(FieldOptions& a, FieldOptions& b) {
  4423. a.Swap(&b);
  4424. }
  4425. inline void Swap(FieldOptions* other) {
  4426. if (other == this) return;
  4427. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4428. if (GetOwningArena() != nullptr &&
  4429. GetOwningArena() == other->GetOwningArena()) {
  4430. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4431. if (GetOwningArena() == other->GetOwningArena()) {
  4432. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4433. InternalSwap(other);
  4434. } else {
  4435. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4436. }
  4437. }
  4438. void UnsafeArenaSwap(FieldOptions* other) {
  4439. if (other == this) return;
  4440. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  4441. InternalSwap(other);
  4442. }
  4443. // implements Message ----------------------------------------------
  4444. FieldOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  4445. return CreateMaybeMessage<FieldOptions>(arena);
  4446. }
  4447. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  4448. void CopyFrom(const FieldOptions& from);
  4449. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  4450. void MergeFrom( const FieldOptions& from) {
  4451. FieldOptions::MergeImpl(*this, from);
  4452. }
  4453. private:
  4454. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  4455. public:
  4456. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4457. bool IsInitialized() const final;
  4458. size_t ByteSizeLong() const final;
  4459. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4460. uint8_t* _InternalSerialize(
  4461. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4462. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  4463. private:
  4464. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  4465. void SharedDtor();
  4466. void SetCachedSize(int size) const final;
  4467. void InternalSwap(FieldOptions* other);
  4468. private:
  4469. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4470. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4471. return "google.protobuf.FieldOptions";
  4472. }
  4473. protected:
  4474. explicit FieldOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4475. bool is_message_owned = false);
  4476. public:
  4477. static const ClassData _class_data_;
  4478. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  4479. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4480. // nested types ----------------------------------------------------
  4481. typedef FieldOptions_CType CType;
  4482. static constexpr CType STRING =
  4483. FieldOptions_CType_STRING;
  4484. static constexpr CType CORD =
  4485. FieldOptions_CType_CORD;
  4486. static constexpr CType STRING_PIECE =
  4487. FieldOptions_CType_STRING_PIECE;
  4488. static inline bool CType_IsValid(int value) {
  4489. return FieldOptions_CType_IsValid(value);
  4490. }
  4491. static constexpr CType CType_MIN =
  4492. FieldOptions_CType_CType_MIN;
  4493. static constexpr CType CType_MAX =
  4494. FieldOptions_CType_CType_MAX;
  4495. static constexpr int CType_ARRAYSIZE =
  4496. FieldOptions_CType_CType_ARRAYSIZE;
  4497. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4498. CType_descriptor() {
  4499. return FieldOptions_CType_descriptor();
  4500. }
  4501. template<typename T>
  4502. static inline const std::string& CType_Name(T enum_t_value) {
  4503. static_assert(::std::is_same<T, CType>::value ||
  4504. ::std::is_integral<T>::value,
  4505. "Incorrect type passed to function CType_Name.");
  4506. return FieldOptions_CType_Name(enum_t_value);
  4507. }
  4508. static inline bool CType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  4509. CType* value) {
  4510. return FieldOptions_CType_Parse(name, value);
  4511. }
  4512. typedef FieldOptions_JSType JSType;
  4513. static constexpr JSType JS_NORMAL =
  4514. FieldOptions_JSType_JS_NORMAL;
  4515. static constexpr JSType JS_STRING =
  4516. FieldOptions_JSType_JS_STRING;
  4517. static constexpr JSType JS_NUMBER =
  4518. FieldOptions_JSType_JS_NUMBER;
  4519. static inline bool JSType_IsValid(int value) {
  4520. return FieldOptions_JSType_IsValid(value);
  4521. }
  4522. static constexpr JSType JSType_MIN =
  4523. FieldOptions_JSType_JSType_MIN;
  4524. static constexpr JSType JSType_MAX =
  4525. FieldOptions_JSType_JSType_MAX;
  4526. static constexpr int JSType_ARRAYSIZE =
  4527. FieldOptions_JSType_JSType_ARRAYSIZE;
  4528. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4529. JSType_descriptor() {
  4530. return FieldOptions_JSType_descriptor();
  4531. }
  4532. template<typename T>
  4533. static inline const std::string& JSType_Name(T enum_t_value) {
  4534. static_assert(::std::is_same<T, JSType>::value ||
  4535. ::std::is_integral<T>::value,
  4536. "Incorrect type passed to function JSType_Name.");
  4537. return FieldOptions_JSType_Name(enum_t_value);
  4538. }
  4539. static inline bool JSType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  4540. JSType* value) {
  4541. return FieldOptions_JSType_Parse(name, value);
  4542. }
  4543. // accessors -------------------------------------------------------
  4544. enum : int {
  4545. kUninterpretedOptionFieldNumber = 999,
  4546. kCtypeFieldNumber = 1,
  4547. kJstypeFieldNumber = 6,
  4548. kPackedFieldNumber = 2,
  4549. kLazyFieldNumber = 5,
  4550. kUnverifiedLazyFieldNumber = 15,
  4551. kDeprecatedFieldNumber = 3,
  4552. kWeakFieldNumber = 10,
  4553. };
  4554. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4555. int uninterpreted_option_size() const;
  4556. private:
  4557. int _internal_uninterpreted_option_size() const;
  4558. public:
  4559. void clear_uninterpreted_option();
  4560. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4561. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4562. mutable_uninterpreted_option();
  4563. private:
  4564. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4565. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4566. public:
  4567. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4568. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4569. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4570. uninterpreted_option() const;
  4571. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  4572. bool has_ctype() const;
  4573. private:
  4574. bool _internal_has_ctype() const;
  4575. public:
  4576. void clear_ctype();
  4577. ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType ctype() const;
  4578. void set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value);
  4579. private:
  4580. ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType _internal_ctype() const;
  4581. void _internal_set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value);
  4582. public:
  4583. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  4584. bool has_jstype() const;
  4585. private:
  4586. bool _internal_has_jstype() const;
  4587. public:
  4588. void clear_jstype();
  4589. ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType jstype() const;
  4590. void set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value);
  4591. private:
  4592. ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType _internal_jstype() const;
  4593. void _internal_set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value);
  4594. public:
  4595. // optional bool packed = 2;
  4596. bool has_packed() const;
  4597. private:
  4598. bool _internal_has_packed() const;
  4599. public:
  4600. void clear_packed();
  4601. bool packed() const;
  4602. void set_packed(bool value);
  4603. private:
  4604. bool _internal_packed() const;
  4605. void _internal_set_packed(bool value);
  4606. public:
  4607. // optional bool lazy = 5 [default = false];
  4608. bool has_lazy() const;
  4609. private:
  4610. bool _internal_has_lazy() const;
  4611. public:
  4612. void clear_lazy();
  4613. bool lazy() const;
  4614. void set_lazy(bool value);
  4615. private:
  4616. bool _internal_lazy() const;
  4617. void _internal_set_lazy(bool value);
  4618. public:
  4619. // optional bool unverified_lazy = 15 [default = false];
  4620. bool has_unverified_lazy() const;
  4621. private:
  4622. bool _internal_has_unverified_lazy() const;
  4623. public:
  4624. void clear_unverified_lazy();
  4625. bool unverified_lazy() const;
  4626. void set_unverified_lazy(bool value);
  4627. private:
  4628. bool _internal_unverified_lazy() const;
  4629. void _internal_set_unverified_lazy(bool value);
  4630. public:
  4631. // optional bool deprecated = 3 [default = false];
  4632. bool has_deprecated() const;
  4633. private:
  4634. bool _internal_has_deprecated() const;
  4635. public:
  4636. void clear_deprecated();
  4637. bool deprecated() const;
  4638. void set_deprecated(bool value);
  4639. private:
  4640. bool _internal_deprecated() const;
  4641. void _internal_set_deprecated(bool value);
  4642. public:
  4643. // optional bool weak = 10 [default = false];
  4644. bool has_weak() const;
  4645. private:
  4646. bool _internal_has_weak() const;
  4647. public:
  4648. void clear_weak();
  4649. bool weak() const;
  4650. void set_weak(bool value);
  4651. private:
  4652. bool _internal_weak() const;
  4653. void _internal_set_weak(bool value);
  4654. public:
  4655. template <typename _proto_TypeTraits,
  4656. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4657. bool _is_packed>
  4658. inline bool HasExtension(
  4659. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4660. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4661. return _impl_._extensions_.Has(id.number());
  4662. }
  4663. template <typename _proto_TypeTraits,
  4664. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4665. bool _is_packed>
  4666. inline void ClearExtension(
  4667. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4668. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4669. _impl_._extensions_.ClearExtension(id.number());
  4670. }
  4671. template <typename _proto_TypeTraits,
  4672. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4673. bool _is_packed>
  4674. inline int ExtensionSize(
  4675. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4676. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4677. return _impl_._extensions_.ExtensionSize(id.number());
  4678. }
  4679. template <typename _proto_TypeTraits,
  4680. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4681. bool _is_packed>
  4682. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  4683. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4684. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4685. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_,
  4686. id.default_value());
  4687. }
  4688. template <typename _proto_TypeTraits,
  4689. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4690. bool _is_packed>
  4691. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  4692. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4693. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4694. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  4695. &_impl_._extensions_);
  4696. }
  4697. template <typename _proto_TypeTraits,
  4698. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4699. bool _is_packed>
  4700. inline void SetExtension(
  4701. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4702. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4703. typename _proto_TypeTraits::Singular::ConstType value) {
  4704. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  4705. }
  4706. template <typename _proto_TypeTraits,
  4707. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4708. bool _is_packed>
  4709. inline void SetAllocatedExtension(
  4710. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4711. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4712. typename _proto_TypeTraits::Singular::MutableType value) {
  4713. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  4714. &_impl_._extensions_);
  4715. }
  4716. template <typename _proto_TypeTraits,
  4717. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4718. bool _is_packed>
  4719. inline void UnsafeArenaSetAllocatedExtension(
  4720. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4721. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4722. typename _proto_TypeTraits::Singular::MutableType value) {
  4723. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  4724. value, &_impl_._extensions_);
  4725. }
  4726. template <typename _proto_TypeTraits,
  4727. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4728. bool _is_packed>
  4729. PROTOBUF_NODISCARD inline
  4730. typename _proto_TypeTraits::Singular::MutableType
  4731. ReleaseExtension(
  4732. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4733. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4734. return _proto_TypeTraits::Release(id.number(), _field_type,
  4735. &_impl_._extensions_);
  4736. }
  4737. template <typename _proto_TypeTraits,
  4738. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4739. bool _is_packed>
  4740. inline typename _proto_TypeTraits::Singular::MutableType
  4741. UnsafeArenaReleaseExtension(
  4742. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4743. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4744. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  4745. &_impl_._extensions_);
  4746. }
  4747. template <typename _proto_TypeTraits,
  4748. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4749. bool _is_packed>
  4750. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  4751. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4752. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4753. int index) const {
  4754. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  4755. }
  4756. template <typename _proto_TypeTraits,
  4757. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4758. bool _is_packed>
  4759. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  4760. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4761. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4762. int index) {
  4763. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  4764. }
  4765. template <typename _proto_TypeTraits,
  4766. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4767. bool _is_packed>
  4768. inline void SetExtension(
  4769. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4770. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4771. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  4772. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  4773. }
  4774. template <typename _proto_TypeTraits,
  4775. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4776. bool _is_packed>
  4777. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  4778. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4779. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4780. typename _proto_TypeTraits::Repeated::MutableType to_add =
  4781. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  4782. return to_add;
  4783. }
  4784. template <typename _proto_TypeTraits,
  4785. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4786. bool _is_packed>
  4787. inline void AddExtension(
  4788. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4789. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4790. typename _proto_TypeTraits::Repeated::ConstType value) {
  4791. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  4792. &_impl_._extensions_);
  4793. }
  4794. template <typename _proto_TypeTraits,
  4795. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4796. bool _is_packed>
  4797. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  4798. GetRepeatedExtension(
  4799. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4800. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4801. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  4802. }
  4803. template <typename _proto_TypeTraits,
  4804. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4805. bool _is_packed>
  4806. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  4807. MutableRepeatedExtension(
  4808. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4809. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4810. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  4811. _is_packed, &_impl_._extensions_);
  4812. }
  4813. // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
  4814. private:
  4815. class _Internal;
  4816. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4817. typedef void InternalArenaConstructable_;
  4818. typedef void DestructorSkippable_;
  4819. struct Impl_ {
  4820. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4821. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4822. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4823. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  4824. int ctype_;
  4825. int jstype_;
  4826. bool packed_;
  4827. bool lazy_;
  4828. bool unverified_lazy_;
  4829. bool deprecated_;
  4830. bool weak_;
  4831. };
  4832. union { Impl_ _impl_; };
  4833. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4834. };
  4835. // -------------------------------------------------------------------
  4836. class PROTOBUF_EXPORT OneofOptions final :
  4837. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofOptions) */ {
  4838. public:
  4839. inline OneofOptions() : OneofOptions(nullptr) {}
  4840. ~OneofOptions() override;
  4841. explicit PROTOBUF_CONSTEXPR OneofOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  4842. OneofOptions(const OneofOptions& from);
  4843. OneofOptions(OneofOptions&& from) noexcept
  4844. : OneofOptions() {
  4845. *this = ::std::move(from);
  4846. }
  4847. inline OneofOptions& operator=(const OneofOptions& from) {
  4848. CopyFrom(from);
  4849. return *this;
  4850. }
  4851. inline OneofOptions& operator=(OneofOptions&& from) noexcept {
  4852. if (this == &from) return *this;
  4853. if (GetOwningArena() == from.GetOwningArena()
  4854. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4855. && GetOwningArena() != nullptr
  4856. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4857. ) {
  4858. InternalSwap(&from);
  4859. } else {
  4860. CopyFrom(from);
  4861. }
  4862. return *this;
  4863. }
  4864. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4865. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  4866. }
  4867. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4868. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4869. }
  4870. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4871. return GetDescriptor();
  4872. }
  4873. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4874. return default_instance().GetMetadata().descriptor;
  4875. }
  4876. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4877. return default_instance().GetMetadata().reflection;
  4878. }
  4879. static const OneofOptions& default_instance() {
  4880. return *internal_default_instance();
  4881. }
  4882. static inline const OneofOptions* internal_default_instance() {
  4883. return reinterpret_cast<const OneofOptions*>(
  4884. &_OneofOptions_default_instance_);
  4885. }
  4886. static constexpr int kIndexInFileMessages =
  4887. 16;
  4888. friend void swap(OneofOptions& a, OneofOptions& b) {
  4889. a.Swap(&b);
  4890. }
  4891. inline void Swap(OneofOptions* other) {
  4892. if (other == this) return;
  4893. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4894. if (GetOwningArena() != nullptr &&
  4895. GetOwningArena() == other->GetOwningArena()) {
  4896. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4897. if (GetOwningArena() == other->GetOwningArena()) {
  4898. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4899. InternalSwap(other);
  4900. } else {
  4901. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4902. }
  4903. }
  4904. void UnsafeArenaSwap(OneofOptions* other) {
  4905. if (other == this) return;
  4906. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  4907. InternalSwap(other);
  4908. }
  4909. // implements Message ----------------------------------------------
  4910. OneofOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  4911. return CreateMaybeMessage<OneofOptions>(arena);
  4912. }
  4913. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  4914. void CopyFrom(const OneofOptions& from);
  4915. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  4916. void MergeFrom( const OneofOptions& from) {
  4917. OneofOptions::MergeImpl(*this, from);
  4918. }
  4919. private:
  4920. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  4921. public:
  4922. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4923. bool IsInitialized() const final;
  4924. size_t ByteSizeLong() const final;
  4925. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4926. uint8_t* _InternalSerialize(
  4927. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4928. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  4929. private:
  4930. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  4931. void SharedDtor();
  4932. void SetCachedSize(int size) const final;
  4933. void InternalSwap(OneofOptions* other);
  4934. private:
  4935. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4936. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4937. return "google.protobuf.OneofOptions";
  4938. }
  4939. protected:
  4940. explicit OneofOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4941. bool is_message_owned = false);
  4942. public:
  4943. static const ClassData _class_data_;
  4944. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  4945. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4946. // nested types ----------------------------------------------------
  4947. // accessors -------------------------------------------------------
  4948. enum : int {
  4949. kUninterpretedOptionFieldNumber = 999,
  4950. };
  4951. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4952. int uninterpreted_option_size() const;
  4953. private:
  4954. int _internal_uninterpreted_option_size() const;
  4955. public:
  4956. void clear_uninterpreted_option();
  4957. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4958. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4959. mutable_uninterpreted_option();
  4960. private:
  4961. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4962. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4963. public:
  4964. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4965. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4966. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4967. uninterpreted_option() const;
  4968. template <typename _proto_TypeTraits,
  4969. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4970. bool _is_packed>
  4971. inline bool HasExtension(
  4972. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4973. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4974. return _impl_._extensions_.Has(id.number());
  4975. }
  4976. template <typename _proto_TypeTraits,
  4977. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4978. bool _is_packed>
  4979. inline void ClearExtension(
  4980. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4981. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4982. _impl_._extensions_.ClearExtension(id.number());
  4983. }
  4984. template <typename _proto_TypeTraits,
  4985. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4986. bool _is_packed>
  4987. inline int ExtensionSize(
  4988. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4989. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4990. return _impl_._extensions_.ExtensionSize(id.number());
  4991. }
  4992. template <typename _proto_TypeTraits,
  4993. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4994. bool _is_packed>
  4995. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  4996. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4997. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4998. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_,
  4999. id.default_value());
  5000. }
  5001. template <typename _proto_TypeTraits,
  5002. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5003. bool _is_packed>
  5004. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5005. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5006. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5007. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  5008. &_impl_._extensions_);
  5009. }
  5010. template <typename _proto_TypeTraits,
  5011. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5012. bool _is_packed>
  5013. inline void SetExtension(
  5014. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5015. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5016. typename _proto_TypeTraits::Singular::ConstType value) {
  5017. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  5018. }
  5019. template <typename _proto_TypeTraits,
  5020. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5021. bool _is_packed>
  5022. inline void SetAllocatedExtension(
  5023. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5024. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5025. typename _proto_TypeTraits::Singular::MutableType value) {
  5026. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  5027. &_impl_._extensions_);
  5028. }
  5029. template <typename _proto_TypeTraits,
  5030. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5031. bool _is_packed>
  5032. inline void UnsafeArenaSetAllocatedExtension(
  5033. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5034. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5035. typename _proto_TypeTraits::Singular::MutableType value) {
  5036. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  5037. value, &_impl_._extensions_);
  5038. }
  5039. template <typename _proto_TypeTraits,
  5040. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5041. bool _is_packed>
  5042. PROTOBUF_NODISCARD inline
  5043. typename _proto_TypeTraits::Singular::MutableType
  5044. ReleaseExtension(
  5045. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5046. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5047. return _proto_TypeTraits::Release(id.number(), _field_type,
  5048. &_impl_._extensions_);
  5049. }
  5050. template <typename _proto_TypeTraits,
  5051. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5052. bool _is_packed>
  5053. inline typename _proto_TypeTraits::Singular::MutableType
  5054. UnsafeArenaReleaseExtension(
  5055. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5056. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5057. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  5058. &_impl_._extensions_);
  5059. }
  5060. template <typename _proto_TypeTraits,
  5061. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5062. bool _is_packed>
  5063. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5064. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5065. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5066. int index) const {
  5067. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  5068. }
  5069. template <typename _proto_TypeTraits,
  5070. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5071. bool _is_packed>
  5072. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  5073. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5074. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5075. int index) {
  5076. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  5077. }
  5078. template <typename _proto_TypeTraits,
  5079. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5080. bool _is_packed>
  5081. inline void SetExtension(
  5082. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5083. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5084. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  5085. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  5086. }
  5087. template <typename _proto_TypeTraits,
  5088. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5089. bool _is_packed>
  5090. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  5091. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5092. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5093. typename _proto_TypeTraits::Repeated::MutableType to_add =
  5094. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  5095. return to_add;
  5096. }
  5097. template <typename _proto_TypeTraits,
  5098. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5099. bool _is_packed>
  5100. inline void AddExtension(
  5101. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5102. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5103. typename _proto_TypeTraits::Repeated::ConstType value) {
  5104. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  5105. &_impl_._extensions_);
  5106. }
  5107. template <typename _proto_TypeTraits,
  5108. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5109. bool _is_packed>
  5110. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  5111. GetRepeatedExtension(
  5112. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5113. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5114. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  5115. }
  5116. template <typename _proto_TypeTraits,
  5117. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5118. bool _is_packed>
  5119. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  5120. MutableRepeatedExtension(
  5121. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5122. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5123. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  5124. _is_packed, &_impl_._extensions_);
  5125. }
  5126. // @@protoc_insertion_point(class_scope:google.protobuf.OneofOptions)
  5127. private:
  5128. class _Internal;
  5129. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5130. typedef void InternalArenaConstructable_;
  5131. typedef void DestructorSkippable_;
  5132. struct Impl_ {
  5133. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5134. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5135. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5136. };
  5137. union { Impl_ _impl_; };
  5138. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5139. };
  5140. // -------------------------------------------------------------------
  5141. class PROTOBUF_EXPORT EnumOptions final :
  5142. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumOptions) */ {
  5143. public:
  5144. inline EnumOptions() : EnumOptions(nullptr) {}
  5145. ~EnumOptions() override;
  5146. explicit PROTOBUF_CONSTEXPR EnumOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  5147. EnumOptions(const EnumOptions& from);
  5148. EnumOptions(EnumOptions&& from) noexcept
  5149. : EnumOptions() {
  5150. *this = ::std::move(from);
  5151. }
  5152. inline EnumOptions& operator=(const EnumOptions& from) {
  5153. CopyFrom(from);
  5154. return *this;
  5155. }
  5156. inline EnumOptions& operator=(EnumOptions&& from) noexcept {
  5157. if (this == &from) return *this;
  5158. if (GetOwningArena() == from.GetOwningArena()
  5159. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5160. && GetOwningArena() != nullptr
  5161. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5162. ) {
  5163. InternalSwap(&from);
  5164. } else {
  5165. CopyFrom(from);
  5166. }
  5167. return *this;
  5168. }
  5169. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5170. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  5171. }
  5172. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5173. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5174. }
  5175. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5176. return GetDescriptor();
  5177. }
  5178. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5179. return default_instance().GetMetadata().descriptor;
  5180. }
  5181. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5182. return default_instance().GetMetadata().reflection;
  5183. }
  5184. static const EnumOptions& default_instance() {
  5185. return *internal_default_instance();
  5186. }
  5187. static inline const EnumOptions* internal_default_instance() {
  5188. return reinterpret_cast<const EnumOptions*>(
  5189. &_EnumOptions_default_instance_);
  5190. }
  5191. static constexpr int kIndexInFileMessages =
  5192. 17;
  5193. friend void swap(EnumOptions& a, EnumOptions& b) {
  5194. a.Swap(&b);
  5195. }
  5196. inline void Swap(EnumOptions* other) {
  5197. if (other == this) return;
  5198. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5199. if (GetOwningArena() != nullptr &&
  5200. GetOwningArena() == other->GetOwningArena()) {
  5201. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5202. if (GetOwningArena() == other->GetOwningArena()) {
  5203. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5204. InternalSwap(other);
  5205. } else {
  5206. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5207. }
  5208. }
  5209. void UnsafeArenaSwap(EnumOptions* other) {
  5210. if (other == this) return;
  5211. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  5212. InternalSwap(other);
  5213. }
  5214. // implements Message ----------------------------------------------
  5215. EnumOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  5216. return CreateMaybeMessage<EnumOptions>(arena);
  5217. }
  5218. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  5219. void CopyFrom(const EnumOptions& from);
  5220. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  5221. void MergeFrom( const EnumOptions& from) {
  5222. EnumOptions::MergeImpl(*this, from);
  5223. }
  5224. private:
  5225. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  5226. public:
  5227. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5228. bool IsInitialized() const final;
  5229. size_t ByteSizeLong() const final;
  5230. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5231. uint8_t* _InternalSerialize(
  5232. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5233. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  5234. private:
  5235. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  5236. void SharedDtor();
  5237. void SetCachedSize(int size) const final;
  5238. void InternalSwap(EnumOptions* other);
  5239. private:
  5240. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5241. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5242. return "google.protobuf.EnumOptions";
  5243. }
  5244. protected:
  5245. explicit EnumOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5246. bool is_message_owned = false);
  5247. public:
  5248. static const ClassData _class_data_;
  5249. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  5250. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5251. // nested types ----------------------------------------------------
  5252. // accessors -------------------------------------------------------
  5253. enum : int {
  5254. kUninterpretedOptionFieldNumber = 999,
  5255. kAllowAliasFieldNumber = 2,
  5256. kDeprecatedFieldNumber = 3,
  5257. };
  5258. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5259. int uninterpreted_option_size() const;
  5260. private:
  5261. int _internal_uninterpreted_option_size() const;
  5262. public:
  5263. void clear_uninterpreted_option();
  5264. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5265. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  5266. mutable_uninterpreted_option();
  5267. private:
  5268. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5269. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5270. public:
  5271. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5272. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5273. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  5274. uninterpreted_option() const;
  5275. // optional bool allow_alias = 2;
  5276. bool has_allow_alias() const;
  5277. private:
  5278. bool _internal_has_allow_alias() const;
  5279. public:
  5280. void clear_allow_alias();
  5281. bool allow_alias() const;
  5282. void set_allow_alias(bool value);
  5283. private:
  5284. bool _internal_allow_alias() const;
  5285. void _internal_set_allow_alias(bool value);
  5286. public:
  5287. // optional bool deprecated = 3 [default = false];
  5288. bool has_deprecated() const;
  5289. private:
  5290. bool _internal_has_deprecated() const;
  5291. public:
  5292. void clear_deprecated();
  5293. bool deprecated() const;
  5294. void set_deprecated(bool value);
  5295. private:
  5296. bool _internal_deprecated() const;
  5297. void _internal_set_deprecated(bool value);
  5298. public:
  5299. template <typename _proto_TypeTraits,
  5300. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5301. bool _is_packed>
  5302. inline bool HasExtension(
  5303. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5304. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5305. return _impl_._extensions_.Has(id.number());
  5306. }
  5307. template <typename _proto_TypeTraits,
  5308. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5309. bool _is_packed>
  5310. inline void ClearExtension(
  5311. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5312. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5313. _impl_._extensions_.ClearExtension(id.number());
  5314. }
  5315. template <typename _proto_TypeTraits,
  5316. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5317. bool _is_packed>
  5318. inline int ExtensionSize(
  5319. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5320. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5321. return _impl_._extensions_.ExtensionSize(id.number());
  5322. }
  5323. template <typename _proto_TypeTraits,
  5324. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5325. bool _is_packed>
  5326. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  5327. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5328. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5329. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_,
  5330. id.default_value());
  5331. }
  5332. template <typename _proto_TypeTraits,
  5333. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5334. bool _is_packed>
  5335. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5336. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5337. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5338. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  5339. &_impl_._extensions_);
  5340. }
  5341. template <typename _proto_TypeTraits,
  5342. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5343. bool _is_packed>
  5344. inline void SetExtension(
  5345. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5346. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5347. typename _proto_TypeTraits::Singular::ConstType value) {
  5348. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  5349. }
  5350. template <typename _proto_TypeTraits,
  5351. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5352. bool _is_packed>
  5353. inline void SetAllocatedExtension(
  5354. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5355. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5356. typename _proto_TypeTraits::Singular::MutableType value) {
  5357. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  5358. &_impl_._extensions_);
  5359. }
  5360. template <typename _proto_TypeTraits,
  5361. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5362. bool _is_packed>
  5363. inline void UnsafeArenaSetAllocatedExtension(
  5364. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5365. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5366. typename _proto_TypeTraits::Singular::MutableType value) {
  5367. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  5368. value, &_impl_._extensions_);
  5369. }
  5370. template <typename _proto_TypeTraits,
  5371. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5372. bool _is_packed>
  5373. PROTOBUF_NODISCARD inline
  5374. typename _proto_TypeTraits::Singular::MutableType
  5375. ReleaseExtension(
  5376. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5377. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5378. return _proto_TypeTraits::Release(id.number(), _field_type,
  5379. &_impl_._extensions_);
  5380. }
  5381. template <typename _proto_TypeTraits,
  5382. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5383. bool _is_packed>
  5384. inline typename _proto_TypeTraits::Singular::MutableType
  5385. UnsafeArenaReleaseExtension(
  5386. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5387. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5388. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  5389. &_impl_._extensions_);
  5390. }
  5391. template <typename _proto_TypeTraits,
  5392. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5393. bool _is_packed>
  5394. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5395. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5396. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5397. int index) const {
  5398. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  5399. }
  5400. template <typename _proto_TypeTraits,
  5401. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5402. bool _is_packed>
  5403. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  5404. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5405. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5406. int index) {
  5407. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  5408. }
  5409. template <typename _proto_TypeTraits,
  5410. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5411. bool _is_packed>
  5412. inline void SetExtension(
  5413. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5414. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5415. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  5416. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  5417. }
  5418. template <typename _proto_TypeTraits,
  5419. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5420. bool _is_packed>
  5421. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  5422. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5423. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5424. typename _proto_TypeTraits::Repeated::MutableType to_add =
  5425. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  5426. return to_add;
  5427. }
  5428. template <typename _proto_TypeTraits,
  5429. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5430. bool _is_packed>
  5431. inline void AddExtension(
  5432. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5433. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5434. typename _proto_TypeTraits::Repeated::ConstType value) {
  5435. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  5436. &_impl_._extensions_);
  5437. }
  5438. template <typename _proto_TypeTraits,
  5439. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5440. bool _is_packed>
  5441. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  5442. GetRepeatedExtension(
  5443. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5444. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5445. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  5446. }
  5447. template <typename _proto_TypeTraits,
  5448. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5449. bool _is_packed>
  5450. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  5451. MutableRepeatedExtension(
  5452. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5453. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5454. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  5455. _is_packed, &_impl_._extensions_);
  5456. }
  5457. // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
  5458. private:
  5459. class _Internal;
  5460. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5461. typedef void InternalArenaConstructable_;
  5462. typedef void DestructorSkippable_;
  5463. struct Impl_ {
  5464. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5465. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5466. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5467. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5468. bool allow_alias_;
  5469. bool deprecated_;
  5470. };
  5471. union { Impl_ _impl_; };
  5472. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5473. };
  5474. // -------------------------------------------------------------------
  5475. class PROTOBUF_EXPORT EnumValueOptions final :
  5476. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueOptions) */ {
  5477. public:
  5478. inline EnumValueOptions() : EnumValueOptions(nullptr) {}
  5479. ~EnumValueOptions() override;
  5480. explicit PROTOBUF_CONSTEXPR EnumValueOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  5481. EnumValueOptions(const EnumValueOptions& from);
  5482. EnumValueOptions(EnumValueOptions&& from) noexcept
  5483. : EnumValueOptions() {
  5484. *this = ::std::move(from);
  5485. }
  5486. inline EnumValueOptions& operator=(const EnumValueOptions& from) {
  5487. CopyFrom(from);
  5488. return *this;
  5489. }
  5490. inline EnumValueOptions& operator=(EnumValueOptions&& from) noexcept {
  5491. if (this == &from) return *this;
  5492. if (GetOwningArena() == from.GetOwningArena()
  5493. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5494. && GetOwningArena() != nullptr
  5495. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5496. ) {
  5497. InternalSwap(&from);
  5498. } else {
  5499. CopyFrom(from);
  5500. }
  5501. return *this;
  5502. }
  5503. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5504. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  5505. }
  5506. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5507. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5508. }
  5509. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5510. return GetDescriptor();
  5511. }
  5512. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5513. return default_instance().GetMetadata().descriptor;
  5514. }
  5515. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5516. return default_instance().GetMetadata().reflection;
  5517. }
  5518. static const EnumValueOptions& default_instance() {
  5519. return *internal_default_instance();
  5520. }
  5521. static inline const EnumValueOptions* internal_default_instance() {
  5522. return reinterpret_cast<const EnumValueOptions*>(
  5523. &_EnumValueOptions_default_instance_);
  5524. }
  5525. static constexpr int kIndexInFileMessages =
  5526. 18;
  5527. friend void swap(EnumValueOptions& a, EnumValueOptions& b) {
  5528. a.Swap(&b);
  5529. }
  5530. inline void Swap(EnumValueOptions* other) {
  5531. if (other == this) return;
  5532. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5533. if (GetOwningArena() != nullptr &&
  5534. GetOwningArena() == other->GetOwningArena()) {
  5535. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5536. if (GetOwningArena() == other->GetOwningArena()) {
  5537. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5538. InternalSwap(other);
  5539. } else {
  5540. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5541. }
  5542. }
  5543. void UnsafeArenaSwap(EnumValueOptions* other) {
  5544. if (other == this) return;
  5545. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  5546. InternalSwap(other);
  5547. }
  5548. // implements Message ----------------------------------------------
  5549. EnumValueOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  5550. return CreateMaybeMessage<EnumValueOptions>(arena);
  5551. }
  5552. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  5553. void CopyFrom(const EnumValueOptions& from);
  5554. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  5555. void MergeFrom( const EnumValueOptions& from) {
  5556. EnumValueOptions::MergeImpl(*this, from);
  5557. }
  5558. private:
  5559. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  5560. public:
  5561. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5562. bool IsInitialized() const final;
  5563. size_t ByteSizeLong() const final;
  5564. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5565. uint8_t* _InternalSerialize(
  5566. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5567. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  5568. private:
  5569. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  5570. void SharedDtor();
  5571. void SetCachedSize(int size) const final;
  5572. void InternalSwap(EnumValueOptions* other);
  5573. private:
  5574. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5575. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5576. return "google.protobuf.EnumValueOptions";
  5577. }
  5578. protected:
  5579. explicit EnumValueOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5580. bool is_message_owned = false);
  5581. public:
  5582. static const ClassData _class_data_;
  5583. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  5584. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5585. // nested types ----------------------------------------------------
  5586. // accessors -------------------------------------------------------
  5587. enum : int {
  5588. kUninterpretedOptionFieldNumber = 999,
  5589. kDeprecatedFieldNumber = 1,
  5590. };
  5591. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5592. int uninterpreted_option_size() const;
  5593. private:
  5594. int _internal_uninterpreted_option_size() const;
  5595. public:
  5596. void clear_uninterpreted_option();
  5597. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5598. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  5599. mutable_uninterpreted_option();
  5600. private:
  5601. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5602. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5603. public:
  5604. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5605. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5606. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  5607. uninterpreted_option() const;
  5608. // optional bool deprecated = 1 [default = false];
  5609. bool has_deprecated() const;
  5610. private:
  5611. bool _internal_has_deprecated() const;
  5612. public:
  5613. void clear_deprecated();
  5614. bool deprecated() const;
  5615. void set_deprecated(bool value);
  5616. private:
  5617. bool _internal_deprecated() const;
  5618. void _internal_set_deprecated(bool value);
  5619. public:
  5620. template <typename _proto_TypeTraits,
  5621. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5622. bool _is_packed>
  5623. inline bool HasExtension(
  5624. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5625. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5626. return _impl_._extensions_.Has(id.number());
  5627. }
  5628. template <typename _proto_TypeTraits,
  5629. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5630. bool _is_packed>
  5631. inline void ClearExtension(
  5632. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5633. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5634. _impl_._extensions_.ClearExtension(id.number());
  5635. }
  5636. template <typename _proto_TypeTraits,
  5637. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5638. bool _is_packed>
  5639. inline int ExtensionSize(
  5640. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5641. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5642. return _impl_._extensions_.ExtensionSize(id.number());
  5643. }
  5644. template <typename _proto_TypeTraits,
  5645. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5646. bool _is_packed>
  5647. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  5648. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5649. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5650. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_,
  5651. id.default_value());
  5652. }
  5653. template <typename _proto_TypeTraits,
  5654. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5655. bool _is_packed>
  5656. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5657. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5658. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5659. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  5660. &_impl_._extensions_);
  5661. }
  5662. template <typename _proto_TypeTraits,
  5663. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5664. bool _is_packed>
  5665. inline void SetExtension(
  5666. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5667. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5668. typename _proto_TypeTraits::Singular::ConstType value) {
  5669. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  5670. }
  5671. template <typename _proto_TypeTraits,
  5672. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5673. bool _is_packed>
  5674. inline void SetAllocatedExtension(
  5675. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5676. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5677. typename _proto_TypeTraits::Singular::MutableType value) {
  5678. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  5679. &_impl_._extensions_);
  5680. }
  5681. template <typename _proto_TypeTraits,
  5682. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5683. bool _is_packed>
  5684. inline void UnsafeArenaSetAllocatedExtension(
  5685. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5686. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5687. typename _proto_TypeTraits::Singular::MutableType value) {
  5688. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  5689. value, &_impl_._extensions_);
  5690. }
  5691. template <typename _proto_TypeTraits,
  5692. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5693. bool _is_packed>
  5694. PROTOBUF_NODISCARD inline
  5695. typename _proto_TypeTraits::Singular::MutableType
  5696. ReleaseExtension(
  5697. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5698. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5699. return _proto_TypeTraits::Release(id.number(), _field_type,
  5700. &_impl_._extensions_);
  5701. }
  5702. template <typename _proto_TypeTraits,
  5703. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5704. bool _is_packed>
  5705. inline typename _proto_TypeTraits::Singular::MutableType
  5706. UnsafeArenaReleaseExtension(
  5707. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5708. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5709. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  5710. &_impl_._extensions_);
  5711. }
  5712. template <typename _proto_TypeTraits,
  5713. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5714. bool _is_packed>
  5715. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5716. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5717. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5718. int index) const {
  5719. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  5720. }
  5721. template <typename _proto_TypeTraits,
  5722. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5723. bool _is_packed>
  5724. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  5725. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5726. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5727. int index) {
  5728. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  5729. }
  5730. template <typename _proto_TypeTraits,
  5731. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5732. bool _is_packed>
  5733. inline void SetExtension(
  5734. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5735. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5736. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  5737. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  5738. }
  5739. template <typename _proto_TypeTraits,
  5740. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5741. bool _is_packed>
  5742. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  5743. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5744. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5745. typename _proto_TypeTraits::Repeated::MutableType to_add =
  5746. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  5747. return to_add;
  5748. }
  5749. template <typename _proto_TypeTraits,
  5750. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5751. bool _is_packed>
  5752. inline void AddExtension(
  5753. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5754. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5755. typename _proto_TypeTraits::Repeated::ConstType value) {
  5756. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  5757. &_impl_._extensions_);
  5758. }
  5759. template <typename _proto_TypeTraits,
  5760. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5761. bool _is_packed>
  5762. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  5763. GetRepeatedExtension(
  5764. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5765. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5766. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  5767. }
  5768. template <typename _proto_TypeTraits,
  5769. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5770. bool _is_packed>
  5771. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  5772. MutableRepeatedExtension(
  5773. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5774. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5775. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  5776. _is_packed, &_impl_._extensions_);
  5777. }
  5778. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
  5779. private:
  5780. class _Internal;
  5781. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5782. typedef void InternalArenaConstructable_;
  5783. typedef void DestructorSkippable_;
  5784. struct Impl_ {
  5785. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5786. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5787. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5788. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5789. bool deprecated_;
  5790. };
  5791. union { Impl_ _impl_; };
  5792. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5793. };
  5794. // -------------------------------------------------------------------
  5795. class PROTOBUF_EXPORT ServiceOptions final :
  5796. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceOptions) */ {
  5797. public:
  5798. inline ServiceOptions() : ServiceOptions(nullptr) {}
  5799. ~ServiceOptions() override;
  5800. explicit PROTOBUF_CONSTEXPR ServiceOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  5801. ServiceOptions(const ServiceOptions& from);
  5802. ServiceOptions(ServiceOptions&& from) noexcept
  5803. : ServiceOptions() {
  5804. *this = ::std::move(from);
  5805. }
  5806. inline ServiceOptions& operator=(const ServiceOptions& from) {
  5807. CopyFrom(from);
  5808. return *this;
  5809. }
  5810. inline ServiceOptions& operator=(ServiceOptions&& from) noexcept {
  5811. if (this == &from) return *this;
  5812. if (GetOwningArena() == from.GetOwningArena()
  5813. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5814. && GetOwningArena() != nullptr
  5815. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5816. ) {
  5817. InternalSwap(&from);
  5818. } else {
  5819. CopyFrom(from);
  5820. }
  5821. return *this;
  5822. }
  5823. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5824. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  5825. }
  5826. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5827. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5828. }
  5829. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5830. return GetDescriptor();
  5831. }
  5832. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5833. return default_instance().GetMetadata().descriptor;
  5834. }
  5835. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5836. return default_instance().GetMetadata().reflection;
  5837. }
  5838. static const ServiceOptions& default_instance() {
  5839. return *internal_default_instance();
  5840. }
  5841. static inline const ServiceOptions* internal_default_instance() {
  5842. return reinterpret_cast<const ServiceOptions*>(
  5843. &_ServiceOptions_default_instance_);
  5844. }
  5845. static constexpr int kIndexInFileMessages =
  5846. 19;
  5847. friend void swap(ServiceOptions& a, ServiceOptions& b) {
  5848. a.Swap(&b);
  5849. }
  5850. inline void Swap(ServiceOptions* other) {
  5851. if (other == this) return;
  5852. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5853. if (GetOwningArena() != nullptr &&
  5854. GetOwningArena() == other->GetOwningArena()) {
  5855. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5856. if (GetOwningArena() == other->GetOwningArena()) {
  5857. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5858. InternalSwap(other);
  5859. } else {
  5860. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5861. }
  5862. }
  5863. void UnsafeArenaSwap(ServiceOptions* other) {
  5864. if (other == this) return;
  5865. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  5866. InternalSwap(other);
  5867. }
  5868. // implements Message ----------------------------------------------
  5869. ServiceOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  5870. return CreateMaybeMessage<ServiceOptions>(arena);
  5871. }
  5872. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  5873. void CopyFrom(const ServiceOptions& from);
  5874. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  5875. void MergeFrom( const ServiceOptions& from) {
  5876. ServiceOptions::MergeImpl(*this, from);
  5877. }
  5878. private:
  5879. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  5880. public:
  5881. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5882. bool IsInitialized() const final;
  5883. size_t ByteSizeLong() const final;
  5884. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5885. uint8_t* _InternalSerialize(
  5886. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5887. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  5888. private:
  5889. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  5890. void SharedDtor();
  5891. void SetCachedSize(int size) const final;
  5892. void InternalSwap(ServiceOptions* other);
  5893. private:
  5894. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5895. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5896. return "google.protobuf.ServiceOptions";
  5897. }
  5898. protected:
  5899. explicit ServiceOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5900. bool is_message_owned = false);
  5901. public:
  5902. static const ClassData _class_data_;
  5903. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  5904. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5905. // nested types ----------------------------------------------------
  5906. // accessors -------------------------------------------------------
  5907. enum : int {
  5908. kUninterpretedOptionFieldNumber = 999,
  5909. kDeprecatedFieldNumber = 33,
  5910. };
  5911. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5912. int uninterpreted_option_size() const;
  5913. private:
  5914. int _internal_uninterpreted_option_size() const;
  5915. public:
  5916. void clear_uninterpreted_option();
  5917. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5918. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  5919. mutable_uninterpreted_option();
  5920. private:
  5921. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5922. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5923. public:
  5924. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5925. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5926. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  5927. uninterpreted_option() const;
  5928. // optional bool deprecated = 33 [default = false];
  5929. bool has_deprecated() const;
  5930. private:
  5931. bool _internal_has_deprecated() const;
  5932. public:
  5933. void clear_deprecated();
  5934. bool deprecated() const;
  5935. void set_deprecated(bool value);
  5936. private:
  5937. bool _internal_deprecated() const;
  5938. void _internal_set_deprecated(bool value);
  5939. public:
  5940. template <typename _proto_TypeTraits,
  5941. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5942. bool _is_packed>
  5943. inline bool HasExtension(
  5944. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5945. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5946. return _impl_._extensions_.Has(id.number());
  5947. }
  5948. template <typename _proto_TypeTraits,
  5949. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5950. bool _is_packed>
  5951. inline void ClearExtension(
  5952. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5953. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5954. _impl_._extensions_.ClearExtension(id.number());
  5955. }
  5956. template <typename _proto_TypeTraits,
  5957. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5958. bool _is_packed>
  5959. inline int ExtensionSize(
  5960. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5961. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5962. return _impl_._extensions_.ExtensionSize(id.number());
  5963. }
  5964. template <typename _proto_TypeTraits,
  5965. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5966. bool _is_packed>
  5967. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  5968. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5969. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5970. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_,
  5971. id.default_value());
  5972. }
  5973. template <typename _proto_TypeTraits,
  5974. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5975. bool _is_packed>
  5976. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5977. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5978. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5979. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  5980. &_impl_._extensions_);
  5981. }
  5982. template <typename _proto_TypeTraits,
  5983. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5984. bool _is_packed>
  5985. inline void SetExtension(
  5986. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5987. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5988. typename _proto_TypeTraits::Singular::ConstType value) {
  5989. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  5990. }
  5991. template <typename _proto_TypeTraits,
  5992. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5993. bool _is_packed>
  5994. inline void SetAllocatedExtension(
  5995. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5996. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5997. typename _proto_TypeTraits::Singular::MutableType value) {
  5998. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  5999. &_impl_._extensions_);
  6000. }
  6001. template <typename _proto_TypeTraits,
  6002. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6003. bool _is_packed>
  6004. inline void UnsafeArenaSetAllocatedExtension(
  6005. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6006. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6007. typename _proto_TypeTraits::Singular::MutableType value) {
  6008. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  6009. value, &_impl_._extensions_);
  6010. }
  6011. template <typename _proto_TypeTraits,
  6012. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6013. bool _is_packed>
  6014. PROTOBUF_NODISCARD inline
  6015. typename _proto_TypeTraits::Singular::MutableType
  6016. ReleaseExtension(
  6017. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6018. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6019. return _proto_TypeTraits::Release(id.number(), _field_type,
  6020. &_impl_._extensions_);
  6021. }
  6022. template <typename _proto_TypeTraits,
  6023. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6024. bool _is_packed>
  6025. inline typename _proto_TypeTraits::Singular::MutableType
  6026. UnsafeArenaReleaseExtension(
  6027. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6028. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6029. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  6030. &_impl_._extensions_);
  6031. }
  6032. template <typename _proto_TypeTraits,
  6033. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6034. bool _is_packed>
  6035. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  6036. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6037. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6038. int index) const {
  6039. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  6040. }
  6041. template <typename _proto_TypeTraits,
  6042. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6043. bool _is_packed>
  6044. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  6045. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6046. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6047. int index) {
  6048. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  6049. }
  6050. template <typename _proto_TypeTraits,
  6051. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6052. bool _is_packed>
  6053. inline void SetExtension(
  6054. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6055. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6056. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  6057. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  6058. }
  6059. template <typename _proto_TypeTraits,
  6060. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6061. bool _is_packed>
  6062. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  6063. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6064. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6065. typename _proto_TypeTraits::Repeated::MutableType to_add =
  6066. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  6067. return to_add;
  6068. }
  6069. template <typename _proto_TypeTraits,
  6070. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6071. bool _is_packed>
  6072. inline void AddExtension(
  6073. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6074. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6075. typename _proto_TypeTraits::Repeated::ConstType value) {
  6076. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  6077. &_impl_._extensions_);
  6078. }
  6079. template <typename _proto_TypeTraits,
  6080. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6081. bool _is_packed>
  6082. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  6083. GetRepeatedExtension(
  6084. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6085. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6086. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  6087. }
  6088. template <typename _proto_TypeTraits,
  6089. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6090. bool _is_packed>
  6091. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  6092. MutableRepeatedExtension(
  6093. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6094. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6095. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  6096. _is_packed, &_impl_._extensions_);
  6097. }
  6098. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
  6099. private:
  6100. class _Internal;
  6101. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6102. typedef void InternalArenaConstructable_;
  6103. typedef void DestructorSkippable_;
  6104. struct Impl_ {
  6105. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  6106. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6107. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6108. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  6109. bool deprecated_;
  6110. };
  6111. union { Impl_ _impl_; };
  6112. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6113. };
  6114. // -------------------------------------------------------------------
  6115. class PROTOBUF_EXPORT MethodOptions final :
  6116. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodOptions) */ {
  6117. public:
  6118. inline MethodOptions() : MethodOptions(nullptr) {}
  6119. ~MethodOptions() override;
  6120. explicit PROTOBUF_CONSTEXPR MethodOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6121. MethodOptions(const MethodOptions& from);
  6122. MethodOptions(MethodOptions&& from) noexcept
  6123. : MethodOptions() {
  6124. *this = ::std::move(from);
  6125. }
  6126. inline MethodOptions& operator=(const MethodOptions& from) {
  6127. CopyFrom(from);
  6128. return *this;
  6129. }
  6130. inline MethodOptions& operator=(MethodOptions&& from) noexcept {
  6131. if (this == &from) return *this;
  6132. if (GetOwningArena() == from.GetOwningArena()
  6133. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6134. && GetOwningArena() != nullptr
  6135. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6136. ) {
  6137. InternalSwap(&from);
  6138. } else {
  6139. CopyFrom(from);
  6140. }
  6141. return *this;
  6142. }
  6143. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6144. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6145. }
  6146. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6147. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6148. }
  6149. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6150. return GetDescriptor();
  6151. }
  6152. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6153. return default_instance().GetMetadata().descriptor;
  6154. }
  6155. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6156. return default_instance().GetMetadata().reflection;
  6157. }
  6158. static const MethodOptions& default_instance() {
  6159. return *internal_default_instance();
  6160. }
  6161. static inline const MethodOptions* internal_default_instance() {
  6162. return reinterpret_cast<const MethodOptions*>(
  6163. &_MethodOptions_default_instance_);
  6164. }
  6165. static constexpr int kIndexInFileMessages =
  6166. 20;
  6167. friend void swap(MethodOptions& a, MethodOptions& b) {
  6168. a.Swap(&b);
  6169. }
  6170. inline void Swap(MethodOptions* other) {
  6171. if (other == this) return;
  6172. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6173. if (GetOwningArena() != nullptr &&
  6174. GetOwningArena() == other->GetOwningArena()) {
  6175. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6176. if (GetOwningArena() == other->GetOwningArena()) {
  6177. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6178. InternalSwap(other);
  6179. } else {
  6180. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6181. }
  6182. }
  6183. void UnsafeArenaSwap(MethodOptions* other) {
  6184. if (other == this) return;
  6185. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6186. InternalSwap(other);
  6187. }
  6188. // implements Message ----------------------------------------------
  6189. MethodOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6190. return CreateMaybeMessage<MethodOptions>(arena);
  6191. }
  6192. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6193. void CopyFrom(const MethodOptions& from);
  6194. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6195. void MergeFrom( const MethodOptions& from) {
  6196. MethodOptions::MergeImpl(*this, from);
  6197. }
  6198. private:
  6199. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  6200. public:
  6201. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6202. bool IsInitialized() const final;
  6203. size_t ByteSizeLong() const final;
  6204. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6205. uint8_t* _InternalSerialize(
  6206. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6207. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  6208. private:
  6209. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  6210. void SharedDtor();
  6211. void SetCachedSize(int size) const final;
  6212. void InternalSwap(MethodOptions* other);
  6213. private:
  6214. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6215. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6216. return "google.protobuf.MethodOptions";
  6217. }
  6218. protected:
  6219. explicit MethodOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6220. bool is_message_owned = false);
  6221. public:
  6222. static const ClassData _class_data_;
  6223. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6224. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6225. // nested types ----------------------------------------------------
  6226. typedef MethodOptions_IdempotencyLevel IdempotencyLevel;
  6227. static constexpr IdempotencyLevel IDEMPOTENCY_UNKNOWN =
  6228. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  6229. static constexpr IdempotencyLevel NO_SIDE_EFFECTS =
  6230. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS;
  6231. static constexpr IdempotencyLevel IDEMPOTENT =
  6232. MethodOptions_IdempotencyLevel_IDEMPOTENT;
  6233. static inline bool IdempotencyLevel_IsValid(int value) {
  6234. return MethodOptions_IdempotencyLevel_IsValid(value);
  6235. }
  6236. static constexpr IdempotencyLevel IdempotencyLevel_MIN =
  6237. MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN;
  6238. static constexpr IdempotencyLevel IdempotencyLevel_MAX =
  6239. MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX;
  6240. static constexpr int IdempotencyLevel_ARRAYSIZE =
  6241. MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE;
  6242. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  6243. IdempotencyLevel_descriptor() {
  6244. return MethodOptions_IdempotencyLevel_descriptor();
  6245. }
  6246. template<typename T>
  6247. static inline const std::string& IdempotencyLevel_Name(T enum_t_value) {
  6248. static_assert(::std::is_same<T, IdempotencyLevel>::value ||
  6249. ::std::is_integral<T>::value,
  6250. "Incorrect type passed to function IdempotencyLevel_Name.");
  6251. return MethodOptions_IdempotencyLevel_Name(enum_t_value);
  6252. }
  6253. static inline bool IdempotencyLevel_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  6254. IdempotencyLevel* value) {
  6255. return MethodOptions_IdempotencyLevel_Parse(name, value);
  6256. }
  6257. // accessors -------------------------------------------------------
  6258. enum : int {
  6259. kUninterpretedOptionFieldNumber = 999,
  6260. kDeprecatedFieldNumber = 33,
  6261. kIdempotencyLevelFieldNumber = 34,
  6262. };
  6263. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  6264. int uninterpreted_option_size() const;
  6265. private:
  6266. int _internal_uninterpreted_option_size() const;
  6267. public:
  6268. void clear_uninterpreted_option();
  6269. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  6270. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  6271. mutable_uninterpreted_option();
  6272. private:
  6273. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  6274. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  6275. public:
  6276. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  6277. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  6278. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  6279. uninterpreted_option() const;
  6280. // optional bool deprecated = 33 [default = false];
  6281. bool has_deprecated() const;
  6282. private:
  6283. bool _internal_has_deprecated() const;
  6284. public:
  6285. void clear_deprecated();
  6286. bool deprecated() const;
  6287. void set_deprecated(bool value);
  6288. private:
  6289. bool _internal_deprecated() const;
  6290. void _internal_set_deprecated(bool value);
  6291. public:
  6292. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  6293. bool has_idempotency_level() const;
  6294. private:
  6295. bool _internal_has_idempotency_level() const;
  6296. public:
  6297. void clear_idempotency_level();
  6298. ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel idempotency_level() const;
  6299. void set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value);
  6300. private:
  6301. ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel _internal_idempotency_level() const;
  6302. void _internal_set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value);
  6303. public:
  6304. template <typename _proto_TypeTraits,
  6305. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6306. bool _is_packed>
  6307. inline bool HasExtension(
  6308. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6309. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6310. return _impl_._extensions_.Has(id.number());
  6311. }
  6312. template <typename _proto_TypeTraits,
  6313. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6314. bool _is_packed>
  6315. inline void ClearExtension(
  6316. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6317. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6318. _impl_._extensions_.ClearExtension(id.number());
  6319. }
  6320. template <typename _proto_TypeTraits,
  6321. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6322. bool _is_packed>
  6323. inline int ExtensionSize(
  6324. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6325. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6326. return _impl_._extensions_.ExtensionSize(id.number());
  6327. }
  6328. template <typename _proto_TypeTraits,
  6329. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6330. bool _is_packed>
  6331. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  6332. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6333. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6334. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_,
  6335. id.default_value());
  6336. }
  6337. template <typename _proto_TypeTraits,
  6338. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6339. bool _is_packed>
  6340. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  6341. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6342. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6343. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  6344. &_impl_._extensions_);
  6345. }
  6346. template <typename _proto_TypeTraits,
  6347. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6348. bool _is_packed>
  6349. inline void SetExtension(
  6350. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6351. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6352. typename _proto_TypeTraits::Singular::ConstType value) {
  6353. _proto_TypeTraits::Set(id.number(), _field_type, value, &_impl_._extensions_);
  6354. }
  6355. template <typename _proto_TypeTraits,
  6356. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6357. bool _is_packed>
  6358. inline void SetAllocatedExtension(
  6359. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6360. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6361. typename _proto_TypeTraits::Singular::MutableType value) {
  6362. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  6363. &_impl_._extensions_);
  6364. }
  6365. template <typename _proto_TypeTraits,
  6366. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6367. bool _is_packed>
  6368. inline void UnsafeArenaSetAllocatedExtension(
  6369. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6370. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6371. typename _proto_TypeTraits::Singular::MutableType value) {
  6372. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  6373. value, &_impl_._extensions_);
  6374. }
  6375. template <typename _proto_TypeTraits,
  6376. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6377. bool _is_packed>
  6378. PROTOBUF_NODISCARD inline
  6379. typename _proto_TypeTraits::Singular::MutableType
  6380. ReleaseExtension(
  6381. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6382. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6383. return _proto_TypeTraits::Release(id.number(), _field_type,
  6384. &_impl_._extensions_);
  6385. }
  6386. template <typename _proto_TypeTraits,
  6387. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6388. bool _is_packed>
  6389. inline typename _proto_TypeTraits::Singular::MutableType
  6390. UnsafeArenaReleaseExtension(
  6391. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6392. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6393. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  6394. &_impl_._extensions_);
  6395. }
  6396. template <typename _proto_TypeTraits,
  6397. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6398. bool _is_packed>
  6399. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  6400. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6401. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6402. int index) const {
  6403. return _proto_TypeTraits::Get(id.number(), _impl_._extensions_, index);
  6404. }
  6405. template <typename _proto_TypeTraits,
  6406. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6407. bool _is_packed>
  6408. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  6409. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6410. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6411. int index) {
  6412. return _proto_TypeTraits::Mutable(id.number(), index, &_impl_._extensions_);
  6413. }
  6414. template <typename _proto_TypeTraits,
  6415. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6416. bool _is_packed>
  6417. inline void SetExtension(
  6418. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6419. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6420. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  6421. _proto_TypeTraits::Set(id.number(), index, value, &_impl_._extensions_);
  6422. }
  6423. template <typename _proto_TypeTraits,
  6424. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6425. bool _is_packed>
  6426. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  6427. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6428. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6429. typename _proto_TypeTraits::Repeated::MutableType to_add =
  6430. _proto_TypeTraits::Add(id.number(), _field_type, &_impl_._extensions_);
  6431. return to_add;
  6432. }
  6433. template <typename _proto_TypeTraits,
  6434. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6435. bool _is_packed>
  6436. inline void AddExtension(
  6437. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6438. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6439. typename _proto_TypeTraits::Repeated::ConstType value) {
  6440. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  6441. &_impl_._extensions_);
  6442. }
  6443. template <typename _proto_TypeTraits,
  6444. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6445. bool _is_packed>
  6446. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  6447. GetRepeatedExtension(
  6448. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6449. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6450. return _proto_TypeTraits::GetRepeated(id.number(), _impl_._extensions_);
  6451. }
  6452. template <typename _proto_TypeTraits,
  6453. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6454. bool _is_packed>
  6455. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  6456. MutableRepeatedExtension(
  6457. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6458. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6459. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  6460. _is_packed, &_impl_._extensions_);
  6461. }
  6462. // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
  6463. private:
  6464. class _Internal;
  6465. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6466. typedef void InternalArenaConstructable_;
  6467. typedef void DestructorSkippable_;
  6468. struct Impl_ {
  6469. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  6470. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6471. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6472. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  6473. bool deprecated_;
  6474. int idempotency_level_;
  6475. };
  6476. union { Impl_ _impl_; };
  6477. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6478. };
  6479. // -------------------------------------------------------------------
  6480. class PROTOBUF_EXPORT UninterpretedOption_NamePart final :
  6481. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption.NamePart) */ {
  6482. public:
  6483. inline UninterpretedOption_NamePart() : UninterpretedOption_NamePart(nullptr) {}
  6484. ~UninterpretedOption_NamePart() override;
  6485. explicit PROTOBUF_CONSTEXPR UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6486. UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from);
  6487. UninterpretedOption_NamePart(UninterpretedOption_NamePart&& from) noexcept
  6488. : UninterpretedOption_NamePart() {
  6489. *this = ::std::move(from);
  6490. }
  6491. inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) {
  6492. CopyFrom(from);
  6493. return *this;
  6494. }
  6495. inline UninterpretedOption_NamePart& operator=(UninterpretedOption_NamePart&& from) noexcept {
  6496. if (this == &from) return *this;
  6497. if (GetOwningArena() == from.GetOwningArena()
  6498. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6499. && GetOwningArena() != nullptr
  6500. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6501. ) {
  6502. InternalSwap(&from);
  6503. } else {
  6504. CopyFrom(from);
  6505. }
  6506. return *this;
  6507. }
  6508. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6509. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6510. }
  6511. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6512. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6513. }
  6514. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6515. return GetDescriptor();
  6516. }
  6517. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6518. return default_instance().GetMetadata().descriptor;
  6519. }
  6520. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6521. return default_instance().GetMetadata().reflection;
  6522. }
  6523. static const UninterpretedOption_NamePart& default_instance() {
  6524. return *internal_default_instance();
  6525. }
  6526. static inline const UninterpretedOption_NamePart* internal_default_instance() {
  6527. return reinterpret_cast<const UninterpretedOption_NamePart*>(
  6528. &_UninterpretedOption_NamePart_default_instance_);
  6529. }
  6530. static constexpr int kIndexInFileMessages =
  6531. 21;
  6532. friend void swap(UninterpretedOption_NamePart& a, UninterpretedOption_NamePart& b) {
  6533. a.Swap(&b);
  6534. }
  6535. inline void Swap(UninterpretedOption_NamePart* other) {
  6536. if (other == this) return;
  6537. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6538. if (GetOwningArena() != nullptr &&
  6539. GetOwningArena() == other->GetOwningArena()) {
  6540. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6541. if (GetOwningArena() == other->GetOwningArena()) {
  6542. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6543. InternalSwap(other);
  6544. } else {
  6545. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6546. }
  6547. }
  6548. void UnsafeArenaSwap(UninterpretedOption_NamePart* other) {
  6549. if (other == this) return;
  6550. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6551. InternalSwap(other);
  6552. }
  6553. // implements Message ----------------------------------------------
  6554. UninterpretedOption_NamePart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6555. return CreateMaybeMessage<UninterpretedOption_NamePart>(arena);
  6556. }
  6557. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6558. void CopyFrom(const UninterpretedOption_NamePart& from);
  6559. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6560. void MergeFrom( const UninterpretedOption_NamePart& from) {
  6561. UninterpretedOption_NamePart::MergeImpl(*this, from);
  6562. }
  6563. private:
  6564. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  6565. public:
  6566. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6567. bool IsInitialized() const final;
  6568. size_t ByteSizeLong() const final;
  6569. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6570. uint8_t* _InternalSerialize(
  6571. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6572. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  6573. private:
  6574. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  6575. void SharedDtor();
  6576. void SetCachedSize(int size) const final;
  6577. void InternalSwap(UninterpretedOption_NamePart* other);
  6578. private:
  6579. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6580. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6581. return "google.protobuf.UninterpretedOption.NamePart";
  6582. }
  6583. protected:
  6584. explicit UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6585. bool is_message_owned = false);
  6586. public:
  6587. static const ClassData _class_data_;
  6588. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6589. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6590. // nested types ----------------------------------------------------
  6591. // accessors -------------------------------------------------------
  6592. enum : int {
  6593. kNamePartFieldNumber = 1,
  6594. kIsExtensionFieldNumber = 2,
  6595. };
  6596. // required string name_part = 1;
  6597. bool has_name_part() const;
  6598. private:
  6599. bool _internal_has_name_part() const;
  6600. public:
  6601. void clear_name_part();
  6602. const std::string& name_part() const;
  6603. template <typename ArgT0 = const std::string&, typename... ArgT>
  6604. void set_name_part(ArgT0&& arg0, ArgT... args);
  6605. std::string* mutable_name_part();
  6606. PROTOBUF_NODISCARD std::string* release_name_part();
  6607. void set_allocated_name_part(std::string* name_part);
  6608. private:
  6609. const std::string& _internal_name_part() const;
  6610. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name_part(const std::string& value);
  6611. std::string* _internal_mutable_name_part();
  6612. public:
  6613. // required bool is_extension = 2;
  6614. bool has_is_extension() const;
  6615. private:
  6616. bool _internal_has_is_extension() const;
  6617. public:
  6618. void clear_is_extension();
  6619. bool is_extension() const;
  6620. void set_is_extension(bool value);
  6621. private:
  6622. bool _internal_is_extension() const;
  6623. void _internal_set_is_extension(bool value);
  6624. public:
  6625. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
  6626. private:
  6627. class _Internal;
  6628. // helper for ByteSizeLong()
  6629. size_t RequiredFieldsByteSizeFallback() const;
  6630. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6631. typedef void InternalArenaConstructable_;
  6632. typedef void DestructorSkippable_;
  6633. struct Impl_ {
  6634. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6635. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6636. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_part_;
  6637. bool is_extension_;
  6638. };
  6639. union { Impl_ _impl_; };
  6640. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6641. };
  6642. // -------------------------------------------------------------------
  6643. class PROTOBUF_EXPORT UninterpretedOption final :
  6644. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption) */ {
  6645. public:
  6646. inline UninterpretedOption() : UninterpretedOption(nullptr) {}
  6647. ~UninterpretedOption() override;
  6648. explicit PROTOBUF_CONSTEXPR UninterpretedOption(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6649. UninterpretedOption(const UninterpretedOption& from);
  6650. UninterpretedOption(UninterpretedOption&& from) noexcept
  6651. : UninterpretedOption() {
  6652. *this = ::std::move(from);
  6653. }
  6654. inline UninterpretedOption& operator=(const UninterpretedOption& from) {
  6655. CopyFrom(from);
  6656. return *this;
  6657. }
  6658. inline UninterpretedOption& operator=(UninterpretedOption&& from) noexcept {
  6659. if (this == &from) return *this;
  6660. if (GetOwningArena() == from.GetOwningArena()
  6661. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6662. && GetOwningArena() != nullptr
  6663. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6664. ) {
  6665. InternalSwap(&from);
  6666. } else {
  6667. CopyFrom(from);
  6668. }
  6669. return *this;
  6670. }
  6671. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6672. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6673. }
  6674. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6675. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6676. }
  6677. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6678. return GetDescriptor();
  6679. }
  6680. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6681. return default_instance().GetMetadata().descriptor;
  6682. }
  6683. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6684. return default_instance().GetMetadata().reflection;
  6685. }
  6686. static const UninterpretedOption& default_instance() {
  6687. return *internal_default_instance();
  6688. }
  6689. static inline const UninterpretedOption* internal_default_instance() {
  6690. return reinterpret_cast<const UninterpretedOption*>(
  6691. &_UninterpretedOption_default_instance_);
  6692. }
  6693. static constexpr int kIndexInFileMessages =
  6694. 22;
  6695. friend void swap(UninterpretedOption& a, UninterpretedOption& b) {
  6696. a.Swap(&b);
  6697. }
  6698. inline void Swap(UninterpretedOption* other) {
  6699. if (other == this) return;
  6700. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6701. if (GetOwningArena() != nullptr &&
  6702. GetOwningArena() == other->GetOwningArena()) {
  6703. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6704. if (GetOwningArena() == other->GetOwningArena()) {
  6705. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6706. InternalSwap(other);
  6707. } else {
  6708. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6709. }
  6710. }
  6711. void UnsafeArenaSwap(UninterpretedOption* other) {
  6712. if (other == this) return;
  6713. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6714. InternalSwap(other);
  6715. }
  6716. // implements Message ----------------------------------------------
  6717. UninterpretedOption* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6718. return CreateMaybeMessage<UninterpretedOption>(arena);
  6719. }
  6720. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6721. void CopyFrom(const UninterpretedOption& from);
  6722. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6723. void MergeFrom( const UninterpretedOption& from) {
  6724. UninterpretedOption::MergeImpl(*this, from);
  6725. }
  6726. private:
  6727. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  6728. public:
  6729. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6730. bool IsInitialized() const final;
  6731. size_t ByteSizeLong() const final;
  6732. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6733. uint8_t* _InternalSerialize(
  6734. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6735. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  6736. private:
  6737. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  6738. void SharedDtor();
  6739. void SetCachedSize(int size) const final;
  6740. void InternalSwap(UninterpretedOption* other);
  6741. private:
  6742. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6743. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6744. return "google.protobuf.UninterpretedOption";
  6745. }
  6746. protected:
  6747. explicit UninterpretedOption(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6748. bool is_message_owned = false);
  6749. public:
  6750. static const ClassData _class_data_;
  6751. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6752. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6753. // nested types ----------------------------------------------------
  6754. typedef UninterpretedOption_NamePart NamePart;
  6755. // accessors -------------------------------------------------------
  6756. enum : int {
  6757. kNameFieldNumber = 2,
  6758. kIdentifierValueFieldNumber = 3,
  6759. kStringValueFieldNumber = 7,
  6760. kAggregateValueFieldNumber = 8,
  6761. kPositiveIntValueFieldNumber = 4,
  6762. kNegativeIntValueFieldNumber = 5,
  6763. kDoubleValueFieldNumber = 6,
  6764. };
  6765. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  6766. int name_size() const;
  6767. private:
  6768. int _internal_name_size() const;
  6769. public:
  6770. void clear_name();
  6771. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* mutable_name(int index);
  6772. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >*
  6773. mutable_name();
  6774. private:
  6775. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& _internal_name(int index) const;
  6776. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* _internal_add_name();
  6777. public:
  6778. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& name(int index) const;
  6779. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* add_name();
  6780. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >&
  6781. name() const;
  6782. // optional string identifier_value = 3;
  6783. bool has_identifier_value() const;
  6784. private:
  6785. bool _internal_has_identifier_value() const;
  6786. public:
  6787. void clear_identifier_value();
  6788. const std::string& identifier_value() const;
  6789. template <typename ArgT0 = const std::string&, typename... ArgT>
  6790. void set_identifier_value(ArgT0&& arg0, ArgT... args);
  6791. std::string* mutable_identifier_value();
  6792. PROTOBUF_NODISCARD std::string* release_identifier_value();
  6793. void set_allocated_identifier_value(std::string* identifier_value);
  6794. private:
  6795. const std::string& _internal_identifier_value() const;
  6796. inline PROTOBUF_ALWAYS_INLINE void _internal_set_identifier_value(const std::string& value);
  6797. std::string* _internal_mutable_identifier_value();
  6798. public:
  6799. // optional bytes string_value = 7;
  6800. bool has_string_value() const;
  6801. private:
  6802. bool _internal_has_string_value() const;
  6803. public:
  6804. void clear_string_value();
  6805. const std::string& string_value() const;
  6806. template <typename ArgT0 = const std::string&, typename... ArgT>
  6807. void set_string_value(ArgT0&& arg0, ArgT... args);
  6808. std::string* mutable_string_value();
  6809. PROTOBUF_NODISCARD std::string* release_string_value();
  6810. void set_allocated_string_value(std::string* string_value);
  6811. private:
  6812. const std::string& _internal_string_value() const;
  6813. inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value);
  6814. std::string* _internal_mutable_string_value();
  6815. public:
  6816. // optional string aggregate_value = 8;
  6817. bool has_aggregate_value() const;
  6818. private:
  6819. bool _internal_has_aggregate_value() const;
  6820. public:
  6821. void clear_aggregate_value();
  6822. const std::string& aggregate_value() const;
  6823. template <typename ArgT0 = const std::string&, typename... ArgT>
  6824. void set_aggregate_value(ArgT0&& arg0, ArgT... args);
  6825. std::string* mutable_aggregate_value();
  6826. PROTOBUF_NODISCARD std::string* release_aggregate_value();
  6827. void set_allocated_aggregate_value(std::string* aggregate_value);
  6828. private:
  6829. const std::string& _internal_aggregate_value() const;
  6830. inline PROTOBUF_ALWAYS_INLINE void _internal_set_aggregate_value(const std::string& value);
  6831. std::string* _internal_mutable_aggregate_value();
  6832. public:
  6833. // optional uint64 positive_int_value = 4;
  6834. bool has_positive_int_value() const;
  6835. private:
  6836. bool _internal_has_positive_int_value() const;
  6837. public:
  6838. void clear_positive_int_value();
  6839. uint64_t positive_int_value() const;
  6840. void set_positive_int_value(uint64_t value);
  6841. private:
  6842. uint64_t _internal_positive_int_value() const;
  6843. void _internal_set_positive_int_value(uint64_t value);
  6844. public:
  6845. // optional int64 negative_int_value = 5;
  6846. bool has_negative_int_value() const;
  6847. private:
  6848. bool _internal_has_negative_int_value() const;
  6849. public:
  6850. void clear_negative_int_value();
  6851. int64_t negative_int_value() const;
  6852. void set_negative_int_value(int64_t value);
  6853. private:
  6854. int64_t _internal_negative_int_value() const;
  6855. void _internal_set_negative_int_value(int64_t value);
  6856. public:
  6857. // optional double double_value = 6;
  6858. bool has_double_value() const;
  6859. private:
  6860. bool _internal_has_double_value() const;
  6861. public:
  6862. void clear_double_value();
  6863. double double_value() const;
  6864. void set_double_value(double value);
  6865. private:
  6866. double _internal_double_value() const;
  6867. void _internal_set_double_value(double value);
  6868. public:
  6869. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
  6870. private:
  6871. class _Internal;
  6872. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6873. typedef void InternalArenaConstructable_;
  6874. typedef void DestructorSkippable_;
  6875. struct Impl_ {
  6876. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6877. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6878. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart > name_;
  6879. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr identifier_value_;
  6880. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_;
  6881. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr aggregate_value_;
  6882. uint64_t positive_int_value_;
  6883. int64_t negative_int_value_;
  6884. double double_value_;
  6885. };
  6886. union { Impl_ _impl_; };
  6887. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6888. };
  6889. // -------------------------------------------------------------------
  6890. class PROTOBUF_EXPORT SourceCodeInfo_Location final :
  6891. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo.Location) */ {
  6892. public:
  6893. inline SourceCodeInfo_Location() : SourceCodeInfo_Location(nullptr) {}
  6894. ~SourceCodeInfo_Location() override;
  6895. explicit PROTOBUF_CONSTEXPR SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6896. SourceCodeInfo_Location(const SourceCodeInfo_Location& from);
  6897. SourceCodeInfo_Location(SourceCodeInfo_Location&& from) noexcept
  6898. : SourceCodeInfo_Location() {
  6899. *this = ::std::move(from);
  6900. }
  6901. inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) {
  6902. CopyFrom(from);
  6903. return *this;
  6904. }
  6905. inline SourceCodeInfo_Location& operator=(SourceCodeInfo_Location&& from) noexcept {
  6906. if (this == &from) return *this;
  6907. if (GetOwningArena() == from.GetOwningArena()
  6908. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6909. && GetOwningArena() != nullptr
  6910. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6911. ) {
  6912. InternalSwap(&from);
  6913. } else {
  6914. CopyFrom(from);
  6915. }
  6916. return *this;
  6917. }
  6918. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6919. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6920. }
  6921. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6922. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6923. }
  6924. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6925. return GetDescriptor();
  6926. }
  6927. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6928. return default_instance().GetMetadata().descriptor;
  6929. }
  6930. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6931. return default_instance().GetMetadata().reflection;
  6932. }
  6933. static const SourceCodeInfo_Location& default_instance() {
  6934. return *internal_default_instance();
  6935. }
  6936. static inline const SourceCodeInfo_Location* internal_default_instance() {
  6937. return reinterpret_cast<const SourceCodeInfo_Location*>(
  6938. &_SourceCodeInfo_Location_default_instance_);
  6939. }
  6940. static constexpr int kIndexInFileMessages =
  6941. 23;
  6942. friend void swap(SourceCodeInfo_Location& a, SourceCodeInfo_Location& b) {
  6943. a.Swap(&b);
  6944. }
  6945. inline void Swap(SourceCodeInfo_Location* other) {
  6946. if (other == this) return;
  6947. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6948. if (GetOwningArena() != nullptr &&
  6949. GetOwningArena() == other->GetOwningArena()) {
  6950. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6951. if (GetOwningArena() == other->GetOwningArena()) {
  6952. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6953. InternalSwap(other);
  6954. } else {
  6955. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6956. }
  6957. }
  6958. void UnsafeArenaSwap(SourceCodeInfo_Location* other) {
  6959. if (other == this) return;
  6960. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6961. InternalSwap(other);
  6962. }
  6963. // implements Message ----------------------------------------------
  6964. SourceCodeInfo_Location* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6965. return CreateMaybeMessage<SourceCodeInfo_Location>(arena);
  6966. }
  6967. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6968. void CopyFrom(const SourceCodeInfo_Location& from);
  6969. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6970. void MergeFrom( const SourceCodeInfo_Location& from) {
  6971. SourceCodeInfo_Location::MergeImpl(*this, from);
  6972. }
  6973. private:
  6974. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  6975. public:
  6976. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6977. bool IsInitialized() const final;
  6978. size_t ByteSizeLong() const final;
  6979. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6980. uint8_t* _InternalSerialize(
  6981. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6982. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  6983. private:
  6984. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  6985. void SharedDtor();
  6986. void SetCachedSize(int size) const final;
  6987. void InternalSwap(SourceCodeInfo_Location* other);
  6988. private:
  6989. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6990. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6991. return "google.protobuf.SourceCodeInfo.Location";
  6992. }
  6993. protected:
  6994. explicit SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6995. bool is_message_owned = false);
  6996. public:
  6997. static const ClassData _class_data_;
  6998. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6999. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7000. // nested types ----------------------------------------------------
  7001. // accessors -------------------------------------------------------
  7002. enum : int {
  7003. kPathFieldNumber = 1,
  7004. kSpanFieldNumber = 2,
  7005. kLeadingDetachedCommentsFieldNumber = 6,
  7006. kLeadingCommentsFieldNumber = 3,
  7007. kTrailingCommentsFieldNumber = 4,
  7008. };
  7009. // repeated int32 path = 1 [packed = true];
  7010. int path_size() const;
  7011. private:
  7012. int _internal_path_size() const;
  7013. public:
  7014. void clear_path();
  7015. private:
  7016. int32_t _internal_path(int index) const;
  7017. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7018. _internal_path() const;
  7019. void _internal_add_path(int32_t value);
  7020. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7021. _internal_mutable_path();
  7022. public:
  7023. int32_t path(int index) const;
  7024. void set_path(int index, int32_t value);
  7025. void add_path(int32_t value);
  7026. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7027. path() const;
  7028. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7029. mutable_path();
  7030. // repeated int32 span = 2 [packed = true];
  7031. int span_size() const;
  7032. private:
  7033. int _internal_span_size() const;
  7034. public:
  7035. void clear_span();
  7036. private:
  7037. int32_t _internal_span(int index) const;
  7038. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7039. _internal_span() const;
  7040. void _internal_add_span(int32_t value);
  7041. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7042. _internal_mutable_span();
  7043. public:
  7044. int32_t span(int index) const;
  7045. void set_span(int index, int32_t value);
  7046. void add_span(int32_t value);
  7047. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7048. span() const;
  7049. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7050. mutable_span();
  7051. // repeated string leading_detached_comments = 6;
  7052. int leading_detached_comments_size() const;
  7053. private:
  7054. int _internal_leading_detached_comments_size() const;
  7055. public:
  7056. void clear_leading_detached_comments();
  7057. const std::string& leading_detached_comments(int index) const;
  7058. std::string* mutable_leading_detached_comments(int index);
  7059. void set_leading_detached_comments(int index, const std::string& value);
  7060. void set_leading_detached_comments(int index, std::string&& value);
  7061. void set_leading_detached_comments(int index, const char* value);
  7062. void set_leading_detached_comments(int index, const char* value, size_t size);
  7063. std::string* add_leading_detached_comments();
  7064. void add_leading_detached_comments(const std::string& value);
  7065. void add_leading_detached_comments(std::string&& value);
  7066. void add_leading_detached_comments(const char* value);
  7067. void add_leading_detached_comments(const char* value, size_t size);
  7068. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& leading_detached_comments() const;
  7069. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_leading_detached_comments();
  7070. private:
  7071. const std::string& _internal_leading_detached_comments(int index) const;
  7072. std::string* _internal_add_leading_detached_comments();
  7073. public:
  7074. // optional string leading_comments = 3;
  7075. bool has_leading_comments() const;
  7076. private:
  7077. bool _internal_has_leading_comments() const;
  7078. public:
  7079. void clear_leading_comments();
  7080. const std::string& leading_comments() const;
  7081. template <typename ArgT0 = const std::string&, typename... ArgT>
  7082. void set_leading_comments(ArgT0&& arg0, ArgT... args);
  7083. std::string* mutable_leading_comments();
  7084. PROTOBUF_NODISCARD std::string* release_leading_comments();
  7085. void set_allocated_leading_comments(std::string* leading_comments);
  7086. private:
  7087. const std::string& _internal_leading_comments() const;
  7088. inline PROTOBUF_ALWAYS_INLINE void _internal_set_leading_comments(const std::string& value);
  7089. std::string* _internal_mutable_leading_comments();
  7090. public:
  7091. // optional string trailing_comments = 4;
  7092. bool has_trailing_comments() const;
  7093. private:
  7094. bool _internal_has_trailing_comments() const;
  7095. public:
  7096. void clear_trailing_comments();
  7097. const std::string& trailing_comments() const;
  7098. template <typename ArgT0 = const std::string&, typename... ArgT>
  7099. void set_trailing_comments(ArgT0&& arg0, ArgT... args);
  7100. std::string* mutable_trailing_comments();
  7101. PROTOBUF_NODISCARD std::string* release_trailing_comments();
  7102. void set_allocated_trailing_comments(std::string* trailing_comments);
  7103. private:
  7104. const std::string& _internal_trailing_comments() const;
  7105. inline PROTOBUF_ALWAYS_INLINE void _internal_set_trailing_comments(const std::string& value);
  7106. std::string* _internal_mutable_trailing_comments();
  7107. public:
  7108. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location)
  7109. private:
  7110. class _Internal;
  7111. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7112. typedef void InternalArenaConstructable_;
  7113. typedef void DestructorSkippable_;
  7114. struct Impl_ {
  7115. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  7116. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7117. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > path_;
  7118. mutable std::atomic<int> _path_cached_byte_size_;
  7119. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > span_;
  7120. mutable std::atomic<int> _span_cached_byte_size_;
  7121. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> leading_detached_comments_;
  7122. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr leading_comments_;
  7123. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trailing_comments_;
  7124. };
  7125. union { Impl_ _impl_; };
  7126. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7127. };
  7128. // -------------------------------------------------------------------
  7129. class PROTOBUF_EXPORT SourceCodeInfo final :
  7130. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo) */ {
  7131. public:
  7132. inline SourceCodeInfo() : SourceCodeInfo(nullptr) {}
  7133. ~SourceCodeInfo() override;
  7134. explicit PROTOBUF_CONSTEXPR SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  7135. SourceCodeInfo(const SourceCodeInfo& from);
  7136. SourceCodeInfo(SourceCodeInfo&& from) noexcept
  7137. : SourceCodeInfo() {
  7138. *this = ::std::move(from);
  7139. }
  7140. inline SourceCodeInfo& operator=(const SourceCodeInfo& from) {
  7141. CopyFrom(from);
  7142. return *this;
  7143. }
  7144. inline SourceCodeInfo& operator=(SourceCodeInfo&& from) noexcept {
  7145. if (this == &from) return *this;
  7146. if (GetOwningArena() == from.GetOwningArena()
  7147. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  7148. && GetOwningArena() != nullptr
  7149. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  7150. ) {
  7151. InternalSwap(&from);
  7152. } else {
  7153. CopyFrom(from);
  7154. }
  7155. return *this;
  7156. }
  7157. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  7158. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  7159. }
  7160. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  7161. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7162. }
  7163. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  7164. return GetDescriptor();
  7165. }
  7166. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  7167. return default_instance().GetMetadata().descriptor;
  7168. }
  7169. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  7170. return default_instance().GetMetadata().reflection;
  7171. }
  7172. static const SourceCodeInfo& default_instance() {
  7173. return *internal_default_instance();
  7174. }
  7175. static inline const SourceCodeInfo* internal_default_instance() {
  7176. return reinterpret_cast<const SourceCodeInfo*>(
  7177. &_SourceCodeInfo_default_instance_);
  7178. }
  7179. static constexpr int kIndexInFileMessages =
  7180. 24;
  7181. friend void swap(SourceCodeInfo& a, SourceCodeInfo& b) {
  7182. a.Swap(&b);
  7183. }
  7184. inline void Swap(SourceCodeInfo* other) {
  7185. if (other == this) return;
  7186. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7187. if (GetOwningArena() != nullptr &&
  7188. GetOwningArena() == other->GetOwningArena()) {
  7189. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7190. if (GetOwningArena() == other->GetOwningArena()) {
  7191. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7192. InternalSwap(other);
  7193. } else {
  7194. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7195. }
  7196. }
  7197. void UnsafeArenaSwap(SourceCodeInfo* other) {
  7198. if (other == this) return;
  7199. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7200. InternalSwap(other);
  7201. }
  7202. // implements Message ----------------------------------------------
  7203. SourceCodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  7204. return CreateMaybeMessage<SourceCodeInfo>(arena);
  7205. }
  7206. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7207. void CopyFrom(const SourceCodeInfo& from);
  7208. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7209. void MergeFrom( const SourceCodeInfo& from) {
  7210. SourceCodeInfo::MergeImpl(*this, from);
  7211. }
  7212. private:
  7213. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  7214. public:
  7215. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7216. bool IsInitialized() const final;
  7217. size_t ByteSizeLong() const final;
  7218. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7219. uint8_t* _InternalSerialize(
  7220. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  7221. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  7222. private:
  7223. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  7224. void SharedDtor();
  7225. void SetCachedSize(int size) const final;
  7226. void InternalSwap(SourceCodeInfo* other);
  7227. private:
  7228. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7229. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  7230. return "google.protobuf.SourceCodeInfo";
  7231. }
  7232. protected:
  7233. explicit SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7234. bool is_message_owned = false);
  7235. public:
  7236. static const ClassData _class_data_;
  7237. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  7238. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7239. // nested types ----------------------------------------------------
  7240. typedef SourceCodeInfo_Location Location;
  7241. // accessors -------------------------------------------------------
  7242. enum : int {
  7243. kLocationFieldNumber = 1,
  7244. };
  7245. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  7246. int location_size() const;
  7247. private:
  7248. int _internal_location_size() const;
  7249. public:
  7250. void clear_location();
  7251. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* mutable_location(int index);
  7252. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >*
  7253. mutable_location();
  7254. private:
  7255. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& _internal_location(int index) const;
  7256. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* _internal_add_location();
  7257. public:
  7258. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& location(int index) const;
  7259. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* add_location();
  7260. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >&
  7261. location() const;
  7262. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo)
  7263. private:
  7264. class _Internal;
  7265. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7266. typedef void InternalArenaConstructable_;
  7267. typedef void DestructorSkippable_;
  7268. struct Impl_ {
  7269. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location > location_;
  7270. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7271. };
  7272. union { Impl_ _impl_; };
  7273. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7274. };
  7275. // -------------------------------------------------------------------
  7276. class PROTOBUF_EXPORT GeneratedCodeInfo_Annotation final :
  7277. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo.Annotation) */ {
  7278. public:
  7279. inline GeneratedCodeInfo_Annotation() : GeneratedCodeInfo_Annotation(nullptr) {}
  7280. ~GeneratedCodeInfo_Annotation() override;
  7281. explicit PROTOBUF_CONSTEXPR GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  7282. GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from);
  7283. GeneratedCodeInfo_Annotation(GeneratedCodeInfo_Annotation&& from) noexcept
  7284. : GeneratedCodeInfo_Annotation() {
  7285. *this = ::std::move(from);
  7286. }
  7287. inline GeneratedCodeInfo_Annotation& operator=(const GeneratedCodeInfo_Annotation& from) {
  7288. CopyFrom(from);
  7289. return *this;
  7290. }
  7291. inline GeneratedCodeInfo_Annotation& operator=(GeneratedCodeInfo_Annotation&& from) noexcept {
  7292. if (this == &from) return *this;
  7293. if (GetOwningArena() == from.GetOwningArena()
  7294. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  7295. && GetOwningArena() != nullptr
  7296. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  7297. ) {
  7298. InternalSwap(&from);
  7299. } else {
  7300. CopyFrom(from);
  7301. }
  7302. return *this;
  7303. }
  7304. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  7305. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  7306. }
  7307. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  7308. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7309. }
  7310. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  7311. return GetDescriptor();
  7312. }
  7313. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  7314. return default_instance().GetMetadata().descriptor;
  7315. }
  7316. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  7317. return default_instance().GetMetadata().reflection;
  7318. }
  7319. static const GeneratedCodeInfo_Annotation& default_instance() {
  7320. return *internal_default_instance();
  7321. }
  7322. static inline const GeneratedCodeInfo_Annotation* internal_default_instance() {
  7323. return reinterpret_cast<const GeneratedCodeInfo_Annotation*>(
  7324. &_GeneratedCodeInfo_Annotation_default_instance_);
  7325. }
  7326. static constexpr int kIndexInFileMessages =
  7327. 25;
  7328. friend void swap(GeneratedCodeInfo_Annotation& a, GeneratedCodeInfo_Annotation& b) {
  7329. a.Swap(&b);
  7330. }
  7331. inline void Swap(GeneratedCodeInfo_Annotation* other) {
  7332. if (other == this) return;
  7333. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7334. if (GetOwningArena() != nullptr &&
  7335. GetOwningArena() == other->GetOwningArena()) {
  7336. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7337. if (GetOwningArena() == other->GetOwningArena()) {
  7338. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7339. InternalSwap(other);
  7340. } else {
  7341. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7342. }
  7343. }
  7344. void UnsafeArenaSwap(GeneratedCodeInfo_Annotation* other) {
  7345. if (other == this) return;
  7346. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7347. InternalSwap(other);
  7348. }
  7349. // implements Message ----------------------------------------------
  7350. GeneratedCodeInfo_Annotation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  7351. return CreateMaybeMessage<GeneratedCodeInfo_Annotation>(arena);
  7352. }
  7353. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7354. void CopyFrom(const GeneratedCodeInfo_Annotation& from);
  7355. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7356. void MergeFrom( const GeneratedCodeInfo_Annotation& from) {
  7357. GeneratedCodeInfo_Annotation::MergeImpl(*this, from);
  7358. }
  7359. private:
  7360. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  7361. public:
  7362. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7363. bool IsInitialized() const final;
  7364. size_t ByteSizeLong() const final;
  7365. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7366. uint8_t* _InternalSerialize(
  7367. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  7368. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  7369. private:
  7370. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  7371. void SharedDtor();
  7372. void SetCachedSize(int size) const final;
  7373. void InternalSwap(GeneratedCodeInfo_Annotation* other);
  7374. private:
  7375. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7376. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  7377. return "google.protobuf.GeneratedCodeInfo.Annotation";
  7378. }
  7379. protected:
  7380. explicit GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7381. bool is_message_owned = false);
  7382. public:
  7383. static const ClassData _class_data_;
  7384. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  7385. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7386. // nested types ----------------------------------------------------
  7387. // accessors -------------------------------------------------------
  7388. enum : int {
  7389. kPathFieldNumber = 1,
  7390. kSourceFileFieldNumber = 2,
  7391. kBeginFieldNumber = 3,
  7392. kEndFieldNumber = 4,
  7393. };
  7394. // repeated int32 path = 1 [packed = true];
  7395. int path_size() const;
  7396. private:
  7397. int _internal_path_size() const;
  7398. public:
  7399. void clear_path();
  7400. private:
  7401. int32_t _internal_path(int index) const;
  7402. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7403. _internal_path() const;
  7404. void _internal_add_path(int32_t value);
  7405. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7406. _internal_mutable_path();
  7407. public:
  7408. int32_t path(int index) const;
  7409. void set_path(int index, int32_t value);
  7410. void add_path(int32_t value);
  7411. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7412. path() const;
  7413. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7414. mutable_path();
  7415. // optional string source_file = 2;
  7416. bool has_source_file() const;
  7417. private:
  7418. bool _internal_has_source_file() const;
  7419. public:
  7420. void clear_source_file();
  7421. const std::string& source_file() const;
  7422. template <typename ArgT0 = const std::string&, typename... ArgT>
  7423. void set_source_file(ArgT0&& arg0, ArgT... args);
  7424. std::string* mutable_source_file();
  7425. PROTOBUF_NODISCARD std::string* release_source_file();
  7426. void set_allocated_source_file(std::string* source_file);
  7427. private:
  7428. const std::string& _internal_source_file() const;
  7429. inline PROTOBUF_ALWAYS_INLINE void _internal_set_source_file(const std::string& value);
  7430. std::string* _internal_mutable_source_file();
  7431. public:
  7432. // optional int32 begin = 3;
  7433. bool has_begin() const;
  7434. private:
  7435. bool _internal_has_begin() const;
  7436. public:
  7437. void clear_begin();
  7438. int32_t begin() const;
  7439. void set_begin(int32_t value);
  7440. private:
  7441. int32_t _internal_begin() const;
  7442. void _internal_set_begin(int32_t value);
  7443. public:
  7444. // optional int32 end = 4;
  7445. bool has_end() const;
  7446. private:
  7447. bool _internal_has_end() const;
  7448. public:
  7449. void clear_end();
  7450. int32_t end() const;
  7451. void set_end(int32_t value);
  7452. private:
  7453. int32_t _internal_end() const;
  7454. void _internal_set_end(int32_t value);
  7455. public:
  7456. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo.Annotation)
  7457. private:
  7458. class _Internal;
  7459. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7460. typedef void InternalArenaConstructable_;
  7461. typedef void DestructorSkippable_;
  7462. struct Impl_ {
  7463. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  7464. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7465. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > path_;
  7466. mutable std::atomic<int> _path_cached_byte_size_;
  7467. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_file_;
  7468. int32_t begin_;
  7469. int32_t end_;
  7470. };
  7471. union { Impl_ _impl_; };
  7472. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7473. };
  7474. // -------------------------------------------------------------------
  7475. class PROTOBUF_EXPORT GeneratedCodeInfo final :
  7476. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo) */ {
  7477. public:
  7478. inline GeneratedCodeInfo() : GeneratedCodeInfo(nullptr) {}
  7479. ~GeneratedCodeInfo() override;
  7480. explicit PROTOBUF_CONSTEXPR GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  7481. GeneratedCodeInfo(const GeneratedCodeInfo& from);
  7482. GeneratedCodeInfo(GeneratedCodeInfo&& from) noexcept
  7483. : GeneratedCodeInfo() {
  7484. *this = ::std::move(from);
  7485. }
  7486. inline GeneratedCodeInfo& operator=(const GeneratedCodeInfo& from) {
  7487. CopyFrom(from);
  7488. return *this;
  7489. }
  7490. inline GeneratedCodeInfo& operator=(GeneratedCodeInfo&& from) noexcept {
  7491. if (this == &from) return *this;
  7492. if (GetOwningArena() == from.GetOwningArena()
  7493. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  7494. && GetOwningArena() != nullptr
  7495. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  7496. ) {
  7497. InternalSwap(&from);
  7498. } else {
  7499. CopyFrom(from);
  7500. }
  7501. return *this;
  7502. }
  7503. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  7504. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  7505. }
  7506. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  7507. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7508. }
  7509. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  7510. return GetDescriptor();
  7511. }
  7512. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  7513. return default_instance().GetMetadata().descriptor;
  7514. }
  7515. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  7516. return default_instance().GetMetadata().reflection;
  7517. }
  7518. static const GeneratedCodeInfo& default_instance() {
  7519. return *internal_default_instance();
  7520. }
  7521. static inline const GeneratedCodeInfo* internal_default_instance() {
  7522. return reinterpret_cast<const GeneratedCodeInfo*>(
  7523. &_GeneratedCodeInfo_default_instance_);
  7524. }
  7525. static constexpr int kIndexInFileMessages =
  7526. 26;
  7527. friend void swap(GeneratedCodeInfo& a, GeneratedCodeInfo& b) {
  7528. a.Swap(&b);
  7529. }
  7530. inline void Swap(GeneratedCodeInfo* other) {
  7531. if (other == this) return;
  7532. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7533. if (GetOwningArena() != nullptr &&
  7534. GetOwningArena() == other->GetOwningArena()) {
  7535. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7536. if (GetOwningArena() == other->GetOwningArena()) {
  7537. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7538. InternalSwap(other);
  7539. } else {
  7540. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7541. }
  7542. }
  7543. void UnsafeArenaSwap(GeneratedCodeInfo* other) {
  7544. if (other == this) return;
  7545. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7546. InternalSwap(other);
  7547. }
  7548. // implements Message ----------------------------------------------
  7549. GeneratedCodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  7550. return CreateMaybeMessage<GeneratedCodeInfo>(arena);
  7551. }
  7552. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7553. void CopyFrom(const GeneratedCodeInfo& from);
  7554. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7555. void MergeFrom( const GeneratedCodeInfo& from) {
  7556. GeneratedCodeInfo::MergeImpl(*this, from);
  7557. }
  7558. private:
  7559. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
  7560. public:
  7561. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7562. bool IsInitialized() const final;
  7563. size_t ByteSizeLong() const final;
  7564. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7565. uint8_t* _InternalSerialize(
  7566. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  7567. int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
  7568. private:
  7569. void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
  7570. void SharedDtor();
  7571. void SetCachedSize(int size) const final;
  7572. void InternalSwap(GeneratedCodeInfo* other);
  7573. private:
  7574. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7575. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  7576. return "google.protobuf.GeneratedCodeInfo";
  7577. }
  7578. protected:
  7579. explicit GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7580. bool is_message_owned = false);
  7581. public:
  7582. static const ClassData _class_data_;
  7583. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  7584. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7585. // nested types ----------------------------------------------------
  7586. typedef GeneratedCodeInfo_Annotation Annotation;
  7587. // accessors -------------------------------------------------------
  7588. enum : int {
  7589. kAnnotationFieldNumber = 1,
  7590. };
  7591. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  7592. int annotation_size() const;
  7593. private:
  7594. int _internal_annotation_size() const;
  7595. public:
  7596. void clear_annotation();
  7597. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* mutable_annotation(int index);
  7598. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >*
  7599. mutable_annotation();
  7600. private:
  7601. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& _internal_annotation(int index) const;
  7602. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* _internal_add_annotation();
  7603. public:
  7604. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& annotation(int index) const;
  7605. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* add_annotation();
  7606. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >&
  7607. annotation() const;
  7608. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo)
  7609. private:
  7610. class _Internal;
  7611. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7612. typedef void InternalArenaConstructable_;
  7613. typedef void DestructorSkippable_;
  7614. struct Impl_ {
  7615. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation > annotation_;
  7616. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7617. };
  7618. union { Impl_ _impl_; };
  7619. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7620. };
  7621. // ===================================================================
  7622. // ===================================================================
  7623. #ifdef __GNUC__
  7624. #pragma GCC diagnostic push
  7625. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  7626. #endif // __GNUC__
  7627. // FileDescriptorSet
  7628. // repeated .google.protobuf.FileDescriptorProto file = 1;
  7629. inline int FileDescriptorSet::_internal_file_size() const {
  7630. return _impl_.file_.size();
  7631. }
  7632. inline int FileDescriptorSet::file_size() const {
  7633. return _internal_file_size();
  7634. }
  7635. inline void FileDescriptorSet::clear_file() {
  7636. _impl_.file_.Clear();
  7637. }
  7638. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
  7639. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
  7640. return _impl_.file_.Mutable(index);
  7641. }
  7642. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  7643. FileDescriptorSet::mutable_file() {
  7644. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
  7645. return &_impl_.file_;
  7646. }
  7647. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& FileDescriptorSet::_internal_file(int index) const {
  7648. return _impl_.file_.Get(index);
  7649. }
  7650. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& FileDescriptorSet::file(int index) const {
  7651. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
  7652. return _internal_file(index);
  7653. }
  7654. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::_internal_add_file() {
  7655. return _impl_.file_.Add();
  7656. }
  7657. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::add_file() {
  7658. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _add = _internal_add_file();
  7659. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
  7660. return _add;
  7661. }
  7662. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  7663. FileDescriptorSet::file() const {
  7664. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
  7665. return _impl_.file_;
  7666. }
  7667. // -------------------------------------------------------------------
  7668. // FileDescriptorProto
  7669. // optional string name = 1;
  7670. inline bool FileDescriptorProto::_internal_has_name() const {
  7671. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  7672. return value;
  7673. }
  7674. inline bool FileDescriptorProto::has_name() const {
  7675. return _internal_has_name();
  7676. }
  7677. inline void FileDescriptorProto::clear_name() {
  7678. _impl_.name_.ClearToEmpty();
  7679. _impl_._has_bits_[0] &= ~0x00000001u;
  7680. }
  7681. inline const std::string& FileDescriptorProto::name() const {
  7682. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
  7683. return _internal_name();
  7684. }
  7685. template <typename ArgT0, typename... ArgT>
  7686. inline PROTOBUF_ALWAYS_INLINE
  7687. void FileDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  7688. _impl_._has_bits_[0] |= 0x00000001u;
  7689. _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  7690. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
  7691. }
  7692. inline std::string* FileDescriptorProto::mutable_name() {
  7693. std::string* _s = _internal_mutable_name();
  7694. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
  7695. return _s;
  7696. }
  7697. inline const std::string& FileDescriptorProto::_internal_name() const {
  7698. return _impl_.name_.Get();
  7699. }
  7700. inline void FileDescriptorProto::_internal_set_name(const std::string& value) {
  7701. _impl_._has_bits_[0] |= 0x00000001u;
  7702. _impl_.name_.Set(value, GetArenaForAllocation());
  7703. }
  7704. inline std::string* FileDescriptorProto::_internal_mutable_name() {
  7705. _impl_._has_bits_[0] |= 0x00000001u;
  7706. return _impl_.name_.Mutable(GetArenaForAllocation());
  7707. }
  7708. inline std::string* FileDescriptorProto::release_name() {
  7709. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name)
  7710. if (!_internal_has_name()) {
  7711. return nullptr;
  7712. }
  7713. _impl_._has_bits_[0] &= ~0x00000001u;
  7714. auto* p = _impl_.name_.Release();
  7715. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7716. if (_impl_.name_.IsDefault()) {
  7717. _impl_.name_.Set("", GetArenaForAllocation());
  7718. }
  7719. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7720. return p;
  7721. }
  7722. inline void FileDescriptorProto::set_allocated_name(std::string* name) {
  7723. if (name != nullptr) {
  7724. _impl_._has_bits_[0] |= 0x00000001u;
  7725. } else {
  7726. _impl_._has_bits_[0] &= ~0x00000001u;
  7727. }
  7728. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  7729. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7730. if (_impl_.name_.IsDefault()) {
  7731. _impl_.name_.Set("", GetArenaForAllocation());
  7732. }
  7733. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7734. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
  7735. }
  7736. // optional string package = 2;
  7737. inline bool FileDescriptorProto::_internal_has_package() const {
  7738. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  7739. return value;
  7740. }
  7741. inline bool FileDescriptorProto::has_package() const {
  7742. return _internal_has_package();
  7743. }
  7744. inline void FileDescriptorProto::clear_package() {
  7745. _impl_.package_.ClearToEmpty();
  7746. _impl_._has_bits_[0] &= ~0x00000002u;
  7747. }
  7748. inline const std::string& FileDescriptorProto::package() const {
  7749. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
  7750. return _internal_package();
  7751. }
  7752. template <typename ArgT0, typename... ArgT>
  7753. inline PROTOBUF_ALWAYS_INLINE
  7754. void FileDescriptorProto::set_package(ArgT0&& arg0, ArgT... args) {
  7755. _impl_._has_bits_[0] |= 0x00000002u;
  7756. _impl_.package_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  7757. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
  7758. }
  7759. inline std::string* FileDescriptorProto::mutable_package() {
  7760. std::string* _s = _internal_mutable_package();
  7761. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
  7762. return _s;
  7763. }
  7764. inline const std::string& FileDescriptorProto::_internal_package() const {
  7765. return _impl_.package_.Get();
  7766. }
  7767. inline void FileDescriptorProto::_internal_set_package(const std::string& value) {
  7768. _impl_._has_bits_[0] |= 0x00000002u;
  7769. _impl_.package_.Set(value, GetArenaForAllocation());
  7770. }
  7771. inline std::string* FileDescriptorProto::_internal_mutable_package() {
  7772. _impl_._has_bits_[0] |= 0x00000002u;
  7773. return _impl_.package_.Mutable(GetArenaForAllocation());
  7774. }
  7775. inline std::string* FileDescriptorProto::release_package() {
  7776. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package)
  7777. if (!_internal_has_package()) {
  7778. return nullptr;
  7779. }
  7780. _impl_._has_bits_[0] &= ~0x00000002u;
  7781. auto* p = _impl_.package_.Release();
  7782. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7783. if (_impl_.package_.IsDefault()) {
  7784. _impl_.package_.Set("", GetArenaForAllocation());
  7785. }
  7786. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7787. return p;
  7788. }
  7789. inline void FileDescriptorProto::set_allocated_package(std::string* package) {
  7790. if (package != nullptr) {
  7791. _impl_._has_bits_[0] |= 0x00000002u;
  7792. } else {
  7793. _impl_._has_bits_[0] &= ~0x00000002u;
  7794. }
  7795. _impl_.package_.SetAllocated(package, GetArenaForAllocation());
  7796. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7797. if (_impl_.package_.IsDefault()) {
  7798. _impl_.package_.Set("", GetArenaForAllocation());
  7799. }
  7800. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7801. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
  7802. }
  7803. // repeated string dependency = 3;
  7804. inline int FileDescriptorProto::_internal_dependency_size() const {
  7805. return _impl_.dependency_.size();
  7806. }
  7807. inline int FileDescriptorProto::dependency_size() const {
  7808. return _internal_dependency_size();
  7809. }
  7810. inline void FileDescriptorProto::clear_dependency() {
  7811. _impl_.dependency_.Clear();
  7812. }
  7813. inline std::string* FileDescriptorProto::add_dependency() {
  7814. std::string* _s = _internal_add_dependency();
  7815. // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency)
  7816. return _s;
  7817. }
  7818. inline const std::string& FileDescriptorProto::_internal_dependency(int index) const {
  7819. return _impl_.dependency_.Get(index);
  7820. }
  7821. inline const std::string& FileDescriptorProto::dependency(int index) const {
  7822. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
  7823. return _internal_dependency(index);
  7824. }
  7825. inline std::string* FileDescriptorProto::mutable_dependency(int index) {
  7826. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
  7827. return _impl_.dependency_.Mutable(index);
  7828. }
  7829. inline void FileDescriptorProto::set_dependency(int index, const std::string& value) {
  7830. _impl_.dependency_.Mutable(index)->assign(value);
  7831. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  7832. }
  7833. inline void FileDescriptorProto::set_dependency(int index, std::string&& value) {
  7834. _impl_.dependency_.Mutable(index)->assign(std::move(value));
  7835. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  7836. }
  7837. inline void FileDescriptorProto::set_dependency(int index, const char* value) {
  7838. GOOGLE_DCHECK(value != nullptr);
  7839. _impl_.dependency_.Mutable(index)->assign(value);
  7840. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
  7841. }
  7842. inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
  7843. _impl_.dependency_.Mutable(index)->assign(
  7844. reinterpret_cast<const char*>(value), size);
  7845. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
  7846. }
  7847. inline std::string* FileDescriptorProto::_internal_add_dependency() {
  7848. return _impl_.dependency_.Add();
  7849. }
  7850. inline void FileDescriptorProto::add_dependency(const std::string& value) {
  7851. _impl_.dependency_.Add()->assign(value);
  7852. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  7853. }
  7854. inline void FileDescriptorProto::add_dependency(std::string&& value) {
  7855. _impl_.dependency_.Add(std::move(value));
  7856. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  7857. }
  7858. inline void FileDescriptorProto::add_dependency(const char* value) {
  7859. GOOGLE_DCHECK(value != nullptr);
  7860. _impl_.dependency_.Add()->assign(value);
  7861. // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
  7862. }
  7863. inline void FileDescriptorProto::add_dependency(const char* value, size_t size) {
  7864. _impl_.dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
  7865. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
  7866. }
  7867. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  7868. FileDescriptorProto::dependency() const {
  7869. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
  7870. return _impl_.dependency_;
  7871. }
  7872. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  7873. FileDescriptorProto::mutable_dependency() {
  7874. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
  7875. return &_impl_.dependency_;
  7876. }
  7877. // repeated int32 public_dependency = 10;
  7878. inline int FileDescriptorProto::_internal_public_dependency_size() const {
  7879. return _impl_.public_dependency_.size();
  7880. }
  7881. inline int FileDescriptorProto::public_dependency_size() const {
  7882. return _internal_public_dependency_size();
  7883. }
  7884. inline void FileDescriptorProto::clear_public_dependency() {
  7885. _impl_.public_dependency_.Clear();
  7886. }
  7887. inline int32_t FileDescriptorProto::_internal_public_dependency(int index) const {
  7888. return _impl_.public_dependency_.Get(index);
  7889. }
  7890. inline int32_t FileDescriptorProto::public_dependency(int index) const {
  7891. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
  7892. return _internal_public_dependency(index);
  7893. }
  7894. inline void FileDescriptorProto::set_public_dependency(int index, int32_t value) {
  7895. _impl_.public_dependency_.Set(index, value);
  7896. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
  7897. }
  7898. inline void FileDescriptorProto::_internal_add_public_dependency(int32_t value) {
  7899. _impl_.public_dependency_.Add(value);
  7900. }
  7901. inline void FileDescriptorProto::add_public_dependency(int32_t value) {
  7902. _internal_add_public_dependency(value);
  7903. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
  7904. }
  7905. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7906. FileDescriptorProto::_internal_public_dependency() const {
  7907. return _impl_.public_dependency_;
  7908. }
  7909. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7910. FileDescriptorProto::public_dependency() const {
  7911. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
  7912. return _internal_public_dependency();
  7913. }
  7914. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7915. FileDescriptorProto::_internal_mutable_public_dependency() {
  7916. return &_impl_.public_dependency_;
  7917. }
  7918. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7919. FileDescriptorProto::mutable_public_dependency() {
  7920. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
  7921. return _internal_mutable_public_dependency();
  7922. }
  7923. // repeated int32 weak_dependency = 11;
  7924. inline int FileDescriptorProto::_internal_weak_dependency_size() const {
  7925. return _impl_.weak_dependency_.size();
  7926. }
  7927. inline int FileDescriptorProto::weak_dependency_size() const {
  7928. return _internal_weak_dependency_size();
  7929. }
  7930. inline void FileDescriptorProto::clear_weak_dependency() {
  7931. _impl_.weak_dependency_.Clear();
  7932. }
  7933. inline int32_t FileDescriptorProto::_internal_weak_dependency(int index) const {
  7934. return _impl_.weak_dependency_.Get(index);
  7935. }
  7936. inline int32_t FileDescriptorProto::weak_dependency(int index) const {
  7937. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
  7938. return _internal_weak_dependency(index);
  7939. }
  7940. inline void FileDescriptorProto::set_weak_dependency(int index, int32_t value) {
  7941. _impl_.weak_dependency_.Set(index, value);
  7942. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
  7943. }
  7944. inline void FileDescriptorProto::_internal_add_weak_dependency(int32_t value) {
  7945. _impl_.weak_dependency_.Add(value);
  7946. }
  7947. inline void FileDescriptorProto::add_weak_dependency(int32_t value) {
  7948. _internal_add_weak_dependency(value);
  7949. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
  7950. }
  7951. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7952. FileDescriptorProto::_internal_weak_dependency() const {
  7953. return _impl_.weak_dependency_;
  7954. }
  7955. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7956. FileDescriptorProto::weak_dependency() const {
  7957. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
  7958. return _internal_weak_dependency();
  7959. }
  7960. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7961. FileDescriptorProto::_internal_mutable_weak_dependency() {
  7962. return &_impl_.weak_dependency_;
  7963. }
  7964. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7965. FileDescriptorProto::mutable_weak_dependency() {
  7966. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
  7967. return _internal_mutable_weak_dependency();
  7968. }
  7969. // repeated .google.protobuf.DescriptorProto message_type = 4;
  7970. inline int FileDescriptorProto::_internal_message_type_size() const {
  7971. return _impl_.message_type_.size();
  7972. }
  7973. inline int FileDescriptorProto::message_type_size() const {
  7974. return _internal_message_type_size();
  7975. }
  7976. inline void FileDescriptorProto::clear_message_type() {
  7977. _impl_.message_type_.Clear();
  7978. }
  7979. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
  7980. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
  7981. return _impl_.message_type_.Mutable(index);
  7982. }
  7983. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  7984. FileDescriptorProto::mutable_message_type() {
  7985. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
  7986. return &_impl_.message_type_;
  7987. }
  7988. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& FileDescriptorProto::_internal_message_type(int index) const {
  7989. return _impl_.message_type_.Get(index);
  7990. }
  7991. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& FileDescriptorProto::message_type(int index) const {
  7992. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
  7993. return _internal_message_type(index);
  7994. }
  7995. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::_internal_add_message_type() {
  7996. return _impl_.message_type_.Add();
  7997. }
  7998. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::add_message_type() {
  7999. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _add = _internal_add_message_type();
  8000. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
  8001. return _add;
  8002. }
  8003. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  8004. FileDescriptorProto::message_type() const {
  8005. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
  8006. return _impl_.message_type_;
  8007. }
  8008. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  8009. inline int FileDescriptorProto::_internal_enum_type_size() const {
  8010. return _impl_.enum_type_.size();
  8011. }
  8012. inline int FileDescriptorProto::enum_type_size() const {
  8013. return _internal_enum_type_size();
  8014. }
  8015. inline void FileDescriptorProto::clear_enum_type() {
  8016. _impl_.enum_type_.Clear();
  8017. }
  8018. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
  8019. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
  8020. return _impl_.enum_type_.Mutable(index);
  8021. }
  8022. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  8023. FileDescriptorProto::mutable_enum_type() {
  8024. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
  8025. return &_impl_.enum_type_;
  8026. }
  8027. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& FileDescriptorProto::_internal_enum_type(int index) const {
  8028. return _impl_.enum_type_.Get(index);
  8029. }
  8030. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
  8031. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
  8032. return _internal_enum_type(index);
  8033. }
  8034. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::_internal_add_enum_type() {
  8035. return _impl_.enum_type_.Add();
  8036. }
  8037. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
  8038. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _add = _internal_add_enum_type();
  8039. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
  8040. return _add;
  8041. }
  8042. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  8043. FileDescriptorProto::enum_type() const {
  8044. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
  8045. return _impl_.enum_type_;
  8046. }
  8047. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  8048. inline int FileDescriptorProto::_internal_service_size() const {
  8049. return _impl_.service_.size();
  8050. }
  8051. inline int FileDescriptorProto::service_size() const {
  8052. return _internal_service_size();
  8053. }
  8054. inline void FileDescriptorProto::clear_service() {
  8055. _impl_.service_.Clear();
  8056. }
  8057. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
  8058. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
  8059. return _impl_.service_.Mutable(index);
  8060. }
  8061. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >*
  8062. FileDescriptorProto::mutable_service() {
  8063. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
  8064. return &_impl_.service_;
  8065. }
  8066. inline const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& FileDescriptorProto::_internal_service(int index) const {
  8067. return _impl_.service_.Get(index);
  8068. }
  8069. inline const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
  8070. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
  8071. return _internal_service(index);
  8072. }
  8073. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::_internal_add_service() {
  8074. return _impl_.service_.Add();
  8075. }
  8076. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::add_service() {
  8077. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* _add = _internal_add_service();
  8078. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
  8079. return _add;
  8080. }
  8081. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >&
  8082. FileDescriptorProto::service() const {
  8083. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
  8084. return _impl_.service_;
  8085. }
  8086. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  8087. inline int FileDescriptorProto::_internal_extension_size() const {
  8088. return _impl_.extension_.size();
  8089. }
  8090. inline int FileDescriptorProto::extension_size() const {
  8091. return _internal_extension_size();
  8092. }
  8093. inline void FileDescriptorProto::clear_extension() {
  8094. _impl_.extension_.Clear();
  8095. }
  8096. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
  8097. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
  8098. return _impl_.extension_.Mutable(index);
  8099. }
  8100. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  8101. FileDescriptorProto::mutable_extension() {
  8102. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
  8103. return &_impl_.extension_;
  8104. }
  8105. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& FileDescriptorProto::_internal_extension(int index) const {
  8106. return _impl_.extension_.Get(index);
  8107. }
  8108. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
  8109. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
  8110. return _internal_extension(index);
  8111. }
  8112. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::_internal_add_extension() {
  8113. return _impl_.extension_.Add();
  8114. }
  8115. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::add_extension() {
  8116. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_extension();
  8117. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
  8118. return _add;
  8119. }
  8120. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  8121. FileDescriptorProto::extension() const {
  8122. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
  8123. return _impl_.extension_;
  8124. }
  8125. // optional .google.protobuf.FileOptions options = 8;
  8126. inline bool FileDescriptorProto::_internal_has_options() const {
  8127. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  8128. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  8129. return value;
  8130. }
  8131. inline bool FileDescriptorProto::has_options() const {
  8132. return _internal_has_options();
  8133. }
  8134. inline void FileDescriptorProto::clear_options() {
  8135. if (_impl_.options_ != nullptr) _impl_.options_->Clear();
  8136. _impl_._has_bits_[0] &= ~0x00000008u;
  8137. }
  8138. inline const ::PROTOBUF_NAMESPACE_ID::FileOptions& FileDescriptorProto::_internal_options() const {
  8139. const ::PROTOBUF_NAMESPACE_ID::FileOptions* p = _impl_.options_;
  8140. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::FileOptions&>(
  8141. ::PROTOBUF_NAMESPACE_ID::_FileOptions_default_instance_);
  8142. }
  8143. inline const ::PROTOBUF_NAMESPACE_ID::FileOptions& FileDescriptorProto::options() const {
  8144. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
  8145. return _internal_options();
  8146. }
  8147. inline void FileDescriptorProto::unsafe_arena_set_allocated_options(
  8148. ::PROTOBUF_NAMESPACE_ID::FileOptions* options) {
  8149. if (GetArenaForAllocation() == nullptr) {
  8150. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  8151. }
  8152. _impl_.options_ = options;
  8153. if (options) {
  8154. _impl_._has_bits_[0] |= 0x00000008u;
  8155. } else {
  8156. _impl_._has_bits_[0] &= ~0x00000008u;
  8157. }
  8158. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.options)
  8159. }
  8160. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::release_options() {
  8161. _impl_._has_bits_[0] &= ~0x00000008u;
  8162. ::PROTOBUF_NAMESPACE_ID::FileOptions* temp = _impl_.options_;
  8163. _impl_.options_ = nullptr;
  8164. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8165. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8166. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8167. if (GetArenaForAllocation() == nullptr) { delete old; }
  8168. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8169. if (GetArenaForAllocation() != nullptr) {
  8170. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8171. }
  8172. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8173. return temp;
  8174. }
  8175. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::unsafe_arena_release_options() {
  8176. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.options)
  8177. _impl_._has_bits_[0] &= ~0x00000008u;
  8178. ::PROTOBUF_NAMESPACE_ID::FileOptions* temp = _impl_.options_;
  8179. _impl_.options_ = nullptr;
  8180. return temp;
  8181. }
  8182. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::_internal_mutable_options() {
  8183. _impl_._has_bits_[0] |= 0x00000008u;
  8184. if (_impl_.options_ == nullptr) {
  8185. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileOptions>(GetArenaForAllocation());
  8186. _impl_.options_ = p;
  8187. }
  8188. return _impl_.options_;
  8189. }
  8190. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::mutable_options() {
  8191. ::PROTOBUF_NAMESPACE_ID::FileOptions* _msg = _internal_mutable_options();
  8192. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
  8193. return _msg;
  8194. }
  8195. inline void FileDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::FileOptions* options) {
  8196. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8197. if (message_arena == nullptr) {
  8198. delete _impl_.options_;
  8199. }
  8200. if (options) {
  8201. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8202. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  8203. if (message_arena != submessage_arena) {
  8204. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8205. message_arena, options, submessage_arena);
  8206. }
  8207. _impl_._has_bits_[0] |= 0x00000008u;
  8208. } else {
  8209. _impl_._has_bits_[0] &= ~0x00000008u;
  8210. }
  8211. _impl_.options_ = options;
  8212. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
  8213. }
  8214. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  8215. inline bool FileDescriptorProto::_internal_has_source_code_info() const {
  8216. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  8217. PROTOBUF_ASSUME(!value || _impl_.source_code_info_ != nullptr);
  8218. return value;
  8219. }
  8220. inline bool FileDescriptorProto::has_source_code_info() const {
  8221. return _internal_has_source_code_info();
  8222. }
  8223. inline void FileDescriptorProto::clear_source_code_info() {
  8224. if (_impl_.source_code_info_ != nullptr) _impl_.source_code_info_->Clear();
  8225. _impl_._has_bits_[0] &= ~0x00000010u;
  8226. }
  8227. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& FileDescriptorProto::_internal_source_code_info() const {
  8228. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* p = _impl_.source_code_info_;
  8229. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo&>(
  8230. ::PROTOBUF_NAMESPACE_ID::_SourceCodeInfo_default_instance_);
  8231. }
  8232. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
  8233. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
  8234. return _internal_source_code_info();
  8235. }
  8236. inline void FileDescriptorProto::unsafe_arena_set_allocated_source_code_info(
  8237. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info) {
  8238. if (GetArenaForAllocation() == nullptr) {
  8239. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.source_code_info_);
  8240. }
  8241. _impl_.source_code_info_ = source_code_info;
  8242. if (source_code_info) {
  8243. _impl_._has_bits_[0] |= 0x00000010u;
  8244. } else {
  8245. _impl_._has_bits_[0] &= ~0x00000010u;
  8246. }
  8247. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  8248. }
  8249. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
  8250. _impl_._has_bits_[0] &= ~0x00000010u;
  8251. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* temp = _impl_.source_code_info_;
  8252. _impl_.source_code_info_ = nullptr;
  8253. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8254. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8255. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8256. if (GetArenaForAllocation() == nullptr) { delete old; }
  8257. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8258. if (GetArenaForAllocation() != nullptr) {
  8259. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8260. }
  8261. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8262. return temp;
  8263. }
  8264. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::unsafe_arena_release_source_code_info() {
  8265. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.source_code_info)
  8266. _impl_._has_bits_[0] &= ~0x00000010u;
  8267. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* temp = _impl_.source_code_info_;
  8268. _impl_.source_code_info_ = nullptr;
  8269. return temp;
  8270. }
  8271. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::_internal_mutable_source_code_info() {
  8272. _impl_._has_bits_[0] |= 0x00000010u;
  8273. if (_impl_.source_code_info_ == nullptr) {
  8274. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo>(GetArenaForAllocation());
  8275. _impl_.source_code_info_ = p;
  8276. }
  8277. return _impl_.source_code_info_;
  8278. }
  8279. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
  8280. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* _msg = _internal_mutable_source_code_info();
  8281. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
  8282. return _msg;
  8283. }
  8284. inline void FileDescriptorProto::set_allocated_source_code_info(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info) {
  8285. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8286. if (message_arena == nullptr) {
  8287. delete _impl_.source_code_info_;
  8288. }
  8289. if (source_code_info) {
  8290. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8291. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(source_code_info);
  8292. if (message_arena != submessage_arena) {
  8293. source_code_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8294. message_arena, source_code_info, submessage_arena);
  8295. }
  8296. _impl_._has_bits_[0] |= 0x00000010u;
  8297. } else {
  8298. _impl_._has_bits_[0] &= ~0x00000010u;
  8299. }
  8300. _impl_.source_code_info_ = source_code_info;
  8301. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  8302. }
  8303. // optional string syntax = 12;
  8304. inline bool FileDescriptorProto::_internal_has_syntax() const {
  8305. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  8306. return value;
  8307. }
  8308. inline bool FileDescriptorProto::has_syntax() const {
  8309. return _internal_has_syntax();
  8310. }
  8311. inline void FileDescriptorProto::clear_syntax() {
  8312. _impl_.syntax_.ClearToEmpty();
  8313. _impl_._has_bits_[0] &= ~0x00000004u;
  8314. }
  8315. inline const std::string& FileDescriptorProto::syntax() const {
  8316. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
  8317. return _internal_syntax();
  8318. }
  8319. template <typename ArgT0, typename... ArgT>
  8320. inline PROTOBUF_ALWAYS_INLINE
  8321. void FileDescriptorProto::set_syntax(ArgT0&& arg0, ArgT... args) {
  8322. _impl_._has_bits_[0] |= 0x00000004u;
  8323. _impl_.syntax_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  8324. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
  8325. }
  8326. inline std::string* FileDescriptorProto::mutable_syntax() {
  8327. std::string* _s = _internal_mutable_syntax();
  8328. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
  8329. return _s;
  8330. }
  8331. inline const std::string& FileDescriptorProto::_internal_syntax() const {
  8332. return _impl_.syntax_.Get();
  8333. }
  8334. inline void FileDescriptorProto::_internal_set_syntax(const std::string& value) {
  8335. _impl_._has_bits_[0] |= 0x00000004u;
  8336. _impl_.syntax_.Set(value, GetArenaForAllocation());
  8337. }
  8338. inline std::string* FileDescriptorProto::_internal_mutable_syntax() {
  8339. _impl_._has_bits_[0] |= 0x00000004u;
  8340. return _impl_.syntax_.Mutable(GetArenaForAllocation());
  8341. }
  8342. inline std::string* FileDescriptorProto::release_syntax() {
  8343. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax)
  8344. if (!_internal_has_syntax()) {
  8345. return nullptr;
  8346. }
  8347. _impl_._has_bits_[0] &= ~0x00000004u;
  8348. auto* p = _impl_.syntax_.Release();
  8349. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8350. if (_impl_.syntax_.IsDefault()) {
  8351. _impl_.syntax_.Set("", GetArenaForAllocation());
  8352. }
  8353. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8354. return p;
  8355. }
  8356. inline void FileDescriptorProto::set_allocated_syntax(std::string* syntax) {
  8357. if (syntax != nullptr) {
  8358. _impl_._has_bits_[0] |= 0x00000004u;
  8359. } else {
  8360. _impl_._has_bits_[0] &= ~0x00000004u;
  8361. }
  8362. _impl_.syntax_.SetAllocated(syntax, GetArenaForAllocation());
  8363. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8364. if (_impl_.syntax_.IsDefault()) {
  8365. _impl_.syntax_.Set("", GetArenaForAllocation());
  8366. }
  8367. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8368. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
  8369. }
  8370. // -------------------------------------------------------------------
  8371. // DescriptorProto_ExtensionRange
  8372. // optional int32 start = 1;
  8373. inline bool DescriptorProto_ExtensionRange::_internal_has_start() const {
  8374. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  8375. return value;
  8376. }
  8377. inline bool DescriptorProto_ExtensionRange::has_start() const {
  8378. return _internal_has_start();
  8379. }
  8380. inline void DescriptorProto_ExtensionRange::clear_start() {
  8381. _impl_.start_ = 0;
  8382. _impl_._has_bits_[0] &= ~0x00000002u;
  8383. }
  8384. inline int32_t DescriptorProto_ExtensionRange::_internal_start() const {
  8385. return _impl_.start_;
  8386. }
  8387. inline int32_t DescriptorProto_ExtensionRange::start() const {
  8388. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
  8389. return _internal_start();
  8390. }
  8391. inline void DescriptorProto_ExtensionRange::_internal_set_start(int32_t value) {
  8392. _impl_._has_bits_[0] |= 0x00000002u;
  8393. _impl_.start_ = value;
  8394. }
  8395. inline void DescriptorProto_ExtensionRange::set_start(int32_t value) {
  8396. _internal_set_start(value);
  8397. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
  8398. }
  8399. // optional int32 end = 2;
  8400. inline bool DescriptorProto_ExtensionRange::_internal_has_end() const {
  8401. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  8402. return value;
  8403. }
  8404. inline bool DescriptorProto_ExtensionRange::has_end() const {
  8405. return _internal_has_end();
  8406. }
  8407. inline void DescriptorProto_ExtensionRange::clear_end() {
  8408. _impl_.end_ = 0;
  8409. _impl_._has_bits_[0] &= ~0x00000004u;
  8410. }
  8411. inline int32_t DescriptorProto_ExtensionRange::_internal_end() const {
  8412. return _impl_.end_;
  8413. }
  8414. inline int32_t DescriptorProto_ExtensionRange::end() const {
  8415. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
  8416. return _internal_end();
  8417. }
  8418. inline void DescriptorProto_ExtensionRange::_internal_set_end(int32_t value) {
  8419. _impl_._has_bits_[0] |= 0x00000004u;
  8420. _impl_.end_ = value;
  8421. }
  8422. inline void DescriptorProto_ExtensionRange::set_end(int32_t value) {
  8423. _internal_set_end(value);
  8424. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
  8425. }
  8426. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  8427. inline bool DescriptorProto_ExtensionRange::_internal_has_options() const {
  8428. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  8429. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  8430. return value;
  8431. }
  8432. inline bool DescriptorProto_ExtensionRange::has_options() const {
  8433. return _internal_has_options();
  8434. }
  8435. inline void DescriptorProto_ExtensionRange::clear_options() {
  8436. if (_impl_.options_ != nullptr) _impl_.options_->Clear();
  8437. _impl_._has_bits_[0] &= ~0x00000001u;
  8438. }
  8439. inline const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& DescriptorProto_ExtensionRange::_internal_options() const {
  8440. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* p = _impl_.options_;
  8441. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions&>(
  8442. ::PROTOBUF_NAMESPACE_ID::_ExtensionRangeOptions_default_instance_);
  8443. }
  8444. inline const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& DescriptorProto_ExtensionRange::options() const {
  8445. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.options)
  8446. return _internal_options();
  8447. }
  8448. inline void DescriptorProto_ExtensionRange::unsafe_arena_set_allocated_options(
  8449. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options) {
  8450. if (GetArenaForAllocation() == nullptr) {
  8451. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  8452. }
  8453. _impl_.options_ = options;
  8454. if (options) {
  8455. _impl_._has_bits_[0] |= 0x00000001u;
  8456. } else {
  8457. _impl_._has_bits_[0] &= ~0x00000001u;
  8458. }
  8459. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  8460. }
  8461. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::release_options() {
  8462. _impl_._has_bits_[0] &= ~0x00000001u;
  8463. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* temp = _impl_.options_;
  8464. _impl_.options_ = nullptr;
  8465. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8466. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8467. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8468. if (GetArenaForAllocation() == nullptr) { delete old; }
  8469. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8470. if (GetArenaForAllocation() != nullptr) {
  8471. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8472. }
  8473. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8474. return temp;
  8475. }
  8476. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::unsafe_arena_release_options() {
  8477. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.ExtensionRange.options)
  8478. _impl_._has_bits_[0] &= ~0x00000001u;
  8479. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* temp = _impl_.options_;
  8480. _impl_.options_ = nullptr;
  8481. return temp;
  8482. }
  8483. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::_internal_mutable_options() {
  8484. _impl_._has_bits_[0] |= 0x00000001u;
  8485. if (_impl_.options_ == nullptr) {
  8486. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>(GetArenaForAllocation());
  8487. _impl_.options_ = p;
  8488. }
  8489. return _impl_.options_;
  8490. }
  8491. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::mutable_options() {
  8492. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* _msg = _internal_mutable_options();
  8493. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.ExtensionRange.options)
  8494. return _msg;
  8495. }
  8496. inline void DescriptorProto_ExtensionRange::set_allocated_options(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options) {
  8497. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8498. if (message_arena == nullptr) {
  8499. delete _impl_.options_;
  8500. }
  8501. if (options) {
  8502. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8503. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  8504. if (message_arena != submessage_arena) {
  8505. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8506. message_arena, options, submessage_arena);
  8507. }
  8508. _impl_._has_bits_[0] |= 0x00000001u;
  8509. } else {
  8510. _impl_._has_bits_[0] &= ~0x00000001u;
  8511. }
  8512. _impl_.options_ = options;
  8513. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  8514. }
  8515. // -------------------------------------------------------------------
  8516. // DescriptorProto_ReservedRange
  8517. // optional int32 start = 1;
  8518. inline bool DescriptorProto_ReservedRange::_internal_has_start() const {
  8519. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  8520. return value;
  8521. }
  8522. inline bool DescriptorProto_ReservedRange::has_start() const {
  8523. return _internal_has_start();
  8524. }
  8525. inline void DescriptorProto_ReservedRange::clear_start() {
  8526. _impl_.start_ = 0;
  8527. _impl_._has_bits_[0] &= ~0x00000001u;
  8528. }
  8529. inline int32_t DescriptorProto_ReservedRange::_internal_start() const {
  8530. return _impl_.start_;
  8531. }
  8532. inline int32_t DescriptorProto_ReservedRange::start() const {
  8533. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
  8534. return _internal_start();
  8535. }
  8536. inline void DescriptorProto_ReservedRange::_internal_set_start(int32_t value) {
  8537. _impl_._has_bits_[0] |= 0x00000001u;
  8538. _impl_.start_ = value;
  8539. }
  8540. inline void DescriptorProto_ReservedRange::set_start(int32_t value) {
  8541. _internal_set_start(value);
  8542. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
  8543. }
  8544. // optional int32 end = 2;
  8545. inline bool DescriptorProto_ReservedRange::_internal_has_end() const {
  8546. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  8547. return value;
  8548. }
  8549. inline bool DescriptorProto_ReservedRange::has_end() const {
  8550. return _internal_has_end();
  8551. }
  8552. inline void DescriptorProto_ReservedRange::clear_end() {
  8553. _impl_.end_ = 0;
  8554. _impl_._has_bits_[0] &= ~0x00000002u;
  8555. }
  8556. inline int32_t DescriptorProto_ReservedRange::_internal_end() const {
  8557. return _impl_.end_;
  8558. }
  8559. inline int32_t DescriptorProto_ReservedRange::end() const {
  8560. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
  8561. return _internal_end();
  8562. }
  8563. inline void DescriptorProto_ReservedRange::_internal_set_end(int32_t value) {
  8564. _impl_._has_bits_[0] |= 0x00000002u;
  8565. _impl_.end_ = value;
  8566. }
  8567. inline void DescriptorProto_ReservedRange::set_end(int32_t value) {
  8568. _internal_set_end(value);
  8569. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
  8570. }
  8571. // -------------------------------------------------------------------
  8572. // DescriptorProto
  8573. // optional string name = 1;
  8574. inline bool DescriptorProto::_internal_has_name() const {
  8575. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  8576. return value;
  8577. }
  8578. inline bool DescriptorProto::has_name() const {
  8579. return _internal_has_name();
  8580. }
  8581. inline void DescriptorProto::clear_name() {
  8582. _impl_.name_.ClearToEmpty();
  8583. _impl_._has_bits_[0] &= ~0x00000001u;
  8584. }
  8585. inline const std::string& DescriptorProto::name() const {
  8586. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
  8587. return _internal_name();
  8588. }
  8589. template <typename ArgT0, typename... ArgT>
  8590. inline PROTOBUF_ALWAYS_INLINE
  8591. void DescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  8592. _impl_._has_bits_[0] |= 0x00000001u;
  8593. _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  8594. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
  8595. }
  8596. inline std::string* DescriptorProto::mutable_name() {
  8597. std::string* _s = _internal_mutable_name();
  8598. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
  8599. return _s;
  8600. }
  8601. inline const std::string& DescriptorProto::_internal_name() const {
  8602. return _impl_.name_.Get();
  8603. }
  8604. inline void DescriptorProto::_internal_set_name(const std::string& value) {
  8605. _impl_._has_bits_[0] |= 0x00000001u;
  8606. _impl_.name_.Set(value, GetArenaForAllocation());
  8607. }
  8608. inline std::string* DescriptorProto::_internal_mutable_name() {
  8609. _impl_._has_bits_[0] |= 0x00000001u;
  8610. return _impl_.name_.Mutable(GetArenaForAllocation());
  8611. }
  8612. inline std::string* DescriptorProto::release_name() {
  8613. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name)
  8614. if (!_internal_has_name()) {
  8615. return nullptr;
  8616. }
  8617. _impl_._has_bits_[0] &= ~0x00000001u;
  8618. auto* p = _impl_.name_.Release();
  8619. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8620. if (_impl_.name_.IsDefault()) {
  8621. _impl_.name_.Set("", GetArenaForAllocation());
  8622. }
  8623. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8624. return p;
  8625. }
  8626. inline void DescriptorProto::set_allocated_name(std::string* name) {
  8627. if (name != nullptr) {
  8628. _impl_._has_bits_[0] |= 0x00000001u;
  8629. } else {
  8630. _impl_._has_bits_[0] &= ~0x00000001u;
  8631. }
  8632. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  8633. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8634. if (_impl_.name_.IsDefault()) {
  8635. _impl_.name_.Set("", GetArenaForAllocation());
  8636. }
  8637. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8638. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
  8639. }
  8640. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  8641. inline int DescriptorProto::_internal_field_size() const {
  8642. return _impl_.field_.size();
  8643. }
  8644. inline int DescriptorProto::field_size() const {
  8645. return _internal_field_size();
  8646. }
  8647. inline void DescriptorProto::clear_field() {
  8648. _impl_.field_.Clear();
  8649. }
  8650. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
  8651. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
  8652. return _impl_.field_.Mutable(index);
  8653. }
  8654. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  8655. DescriptorProto::mutable_field() {
  8656. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
  8657. return &_impl_.field_;
  8658. }
  8659. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::_internal_field(int index) const {
  8660. return _impl_.field_.Get(index);
  8661. }
  8662. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::field(int index) const {
  8663. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
  8664. return _internal_field(index);
  8665. }
  8666. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::_internal_add_field() {
  8667. return _impl_.field_.Add();
  8668. }
  8669. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::add_field() {
  8670. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_field();
  8671. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
  8672. return _add;
  8673. }
  8674. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  8675. DescriptorProto::field() const {
  8676. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
  8677. return _impl_.field_;
  8678. }
  8679. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  8680. inline int DescriptorProto::_internal_extension_size() const {
  8681. return _impl_.extension_.size();
  8682. }
  8683. inline int DescriptorProto::extension_size() const {
  8684. return _internal_extension_size();
  8685. }
  8686. inline void DescriptorProto::clear_extension() {
  8687. _impl_.extension_.Clear();
  8688. }
  8689. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
  8690. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
  8691. return _impl_.extension_.Mutable(index);
  8692. }
  8693. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  8694. DescriptorProto::mutable_extension() {
  8695. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
  8696. return &_impl_.extension_;
  8697. }
  8698. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::_internal_extension(int index) const {
  8699. return _impl_.extension_.Get(index);
  8700. }
  8701. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::extension(int index) const {
  8702. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
  8703. return _internal_extension(index);
  8704. }
  8705. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::_internal_add_extension() {
  8706. return _impl_.extension_.Add();
  8707. }
  8708. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::add_extension() {
  8709. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_extension();
  8710. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
  8711. return _add;
  8712. }
  8713. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  8714. DescriptorProto::extension() const {
  8715. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
  8716. return _impl_.extension_;
  8717. }
  8718. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  8719. inline int DescriptorProto::_internal_nested_type_size() const {
  8720. return _impl_.nested_type_.size();
  8721. }
  8722. inline int DescriptorProto::nested_type_size() const {
  8723. return _internal_nested_type_size();
  8724. }
  8725. inline void DescriptorProto::clear_nested_type() {
  8726. _impl_.nested_type_.Clear();
  8727. }
  8728. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
  8729. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
  8730. return _impl_.nested_type_.Mutable(index);
  8731. }
  8732. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  8733. DescriptorProto::mutable_nested_type() {
  8734. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
  8735. return &_impl_.nested_type_;
  8736. }
  8737. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& DescriptorProto::_internal_nested_type(int index) const {
  8738. return _impl_.nested_type_.Get(index);
  8739. }
  8740. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& DescriptorProto::nested_type(int index) const {
  8741. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
  8742. return _internal_nested_type(index);
  8743. }
  8744. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::_internal_add_nested_type() {
  8745. return _impl_.nested_type_.Add();
  8746. }
  8747. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::add_nested_type() {
  8748. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _add = _internal_add_nested_type();
  8749. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
  8750. return _add;
  8751. }
  8752. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  8753. DescriptorProto::nested_type() const {
  8754. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
  8755. return _impl_.nested_type_;
  8756. }
  8757. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  8758. inline int DescriptorProto::_internal_enum_type_size() const {
  8759. return _impl_.enum_type_.size();
  8760. }
  8761. inline int DescriptorProto::enum_type_size() const {
  8762. return _internal_enum_type_size();
  8763. }
  8764. inline void DescriptorProto::clear_enum_type() {
  8765. _impl_.enum_type_.Clear();
  8766. }
  8767. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
  8768. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
  8769. return _impl_.enum_type_.Mutable(index);
  8770. }
  8771. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  8772. DescriptorProto::mutable_enum_type() {
  8773. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
  8774. return &_impl_.enum_type_;
  8775. }
  8776. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& DescriptorProto::_internal_enum_type(int index) const {
  8777. return _impl_.enum_type_.Get(index);
  8778. }
  8779. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
  8780. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
  8781. return _internal_enum_type(index);
  8782. }
  8783. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::_internal_add_enum_type() {
  8784. return _impl_.enum_type_.Add();
  8785. }
  8786. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::add_enum_type() {
  8787. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _add = _internal_add_enum_type();
  8788. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
  8789. return _add;
  8790. }
  8791. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  8792. DescriptorProto::enum_type() const {
  8793. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
  8794. return _impl_.enum_type_;
  8795. }
  8796. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  8797. inline int DescriptorProto::_internal_extension_range_size() const {
  8798. return _impl_.extension_range_.size();
  8799. }
  8800. inline int DescriptorProto::extension_range_size() const {
  8801. return _internal_extension_range_size();
  8802. }
  8803. inline void DescriptorProto::clear_extension_range() {
  8804. _impl_.extension_range_.Clear();
  8805. }
  8806. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
  8807. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
  8808. return _impl_.extension_range_.Mutable(index);
  8809. }
  8810. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >*
  8811. DescriptorProto::mutable_extension_range() {
  8812. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
  8813. return &_impl_.extension_range_;
  8814. }
  8815. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& DescriptorProto::_internal_extension_range(int index) const {
  8816. return _impl_.extension_range_.Get(index);
  8817. }
  8818. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
  8819. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
  8820. return _internal_extension_range(index);
  8821. }
  8822. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::_internal_add_extension_range() {
  8823. return _impl_.extension_range_.Add();
  8824. }
  8825. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
  8826. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* _add = _internal_add_extension_range();
  8827. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
  8828. return _add;
  8829. }
  8830. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >&
  8831. DescriptorProto::extension_range() const {
  8832. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
  8833. return _impl_.extension_range_;
  8834. }
  8835. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  8836. inline int DescriptorProto::_internal_oneof_decl_size() const {
  8837. return _impl_.oneof_decl_.size();
  8838. }
  8839. inline int DescriptorProto::oneof_decl_size() const {
  8840. return _internal_oneof_decl_size();
  8841. }
  8842. inline void DescriptorProto::clear_oneof_decl() {
  8843. _impl_.oneof_decl_.Clear();
  8844. }
  8845. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
  8846. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
  8847. return _impl_.oneof_decl_.Mutable(index);
  8848. }
  8849. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >*
  8850. DescriptorProto::mutable_oneof_decl() {
  8851. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
  8852. return &_impl_.oneof_decl_;
  8853. }
  8854. inline const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& DescriptorProto::_internal_oneof_decl(int index) const {
  8855. return _impl_.oneof_decl_.Get(index);
  8856. }
  8857. inline const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
  8858. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
  8859. return _internal_oneof_decl(index);
  8860. }
  8861. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::_internal_add_oneof_decl() {
  8862. return _impl_.oneof_decl_.Add();
  8863. }
  8864. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
  8865. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* _add = _internal_add_oneof_decl();
  8866. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
  8867. return _add;
  8868. }
  8869. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >&
  8870. DescriptorProto::oneof_decl() const {
  8871. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
  8872. return _impl_.oneof_decl_;
  8873. }
  8874. // optional .google.protobuf.MessageOptions options = 7;
  8875. inline bool DescriptorProto::_internal_has_options() const {
  8876. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  8877. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  8878. return value;
  8879. }
  8880. inline bool DescriptorProto::has_options() const {
  8881. return _internal_has_options();
  8882. }
  8883. inline void DescriptorProto::clear_options() {
  8884. if (_impl_.options_ != nullptr) _impl_.options_->Clear();
  8885. _impl_._has_bits_[0] &= ~0x00000002u;
  8886. }
  8887. inline const ::PROTOBUF_NAMESPACE_ID::MessageOptions& DescriptorProto::_internal_options() const {
  8888. const ::PROTOBUF_NAMESPACE_ID::MessageOptions* p = _impl_.options_;
  8889. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::MessageOptions&>(
  8890. ::PROTOBUF_NAMESPACE_ID::_MessageOptions_default_instance_);
  8891. }
  8892. inline const ::PROTOBUF_NAMESPACE_ID::MessageOptions& DescriptorProto::options() const {
  8893. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
  8894. return _internal_options();
  8895. }
  8896. inline void DescriptorProto::unsafe_arena_set_allocated_options(
  8897. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options) {
  8898. if (GetArenaForAllocation() == nullptr) {
  8899. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  8900. }
  8901. _impl_.options_ = options;
  8902. if (options) {
  8903. _impl_._has_bits_[0] |= 0x00000002u;
  8904. } else {
  8905. _impl_._has_bits_[0] &= ~0x00000002u;
  8906. }
  8907. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.options)
  8908. }
  8909. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::release_options() {
  8910. _impl_._has_bits_[0] &= ~0x00000002u;
  8911. ::PROTOBUF_NAMESPACE_ID::MessageOptions* temp = _impl_.options_;
  8912. _impl_.options_ = nullptr;
  8913. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8914. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8915. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8916. if (GetArenaForAllocation() == nullptr) { delete old; }
  8917. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8918. if (GetArenaForAllocation() != nullptr) {
  8919. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8920. }
  8921. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8922. return temp;
  8923. }
  8924. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::unsafe_arena_release_options() {
  8925. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.options)
  8926. _impl_._has_bits_[0] &= ~0x00000002u;
  8927. ::PROTOBUF_NAMESPACE_ID::MessageOptions* temp = _impl_.options_;
  8928. _impl_.options_ = nullptr;
  8929. return temp;
  8930. }
  8931. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::_internal_mutable_options() {
  8932. _impl_._has_bits_[0] |= 0x00000002u;
  8933. if (_impl_.options_ == nullptr) {
  8934. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MessageOptions>(GetArenaForAllocation());
  8935. _impl_.options_ = p;
  8936. }
  8937. return _impl_.options_;
  8938. }
  8939. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::mutable_options() {
  8940. ::PROTOBUF_NAMESPACE_ID::MessageOptions* _msg = _internal_mutable_options();
  8941. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
  8942. return _msg;
  8943. }
  8944. inline void DescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::MessageOptions* options) {
  8945. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8946. if (message_arena == nullptr) {
  8947. delete _impl_.options_;
  8948. }
  8949. if (options) {
  8950. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8951. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  8952. if (message_arena != submessage_arena) {
  8953. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8954. message_arena, options, submessage_arena);
  8955. }
  8956. _impl_._has_bits_[0] |= 0x00000002u;
  8957. } else {
  8958. _impl_._has_bits_[0] &= ~0x00000002u;
  8959. }
  8960. _impl_.options_ = options;
  8961. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
  8962. }
  8963. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  8964. inline int DescriptorProto::_internal_reserved_range_size() const {
  8965. return _impl_.reserved_range_.size();
  8966. }
  8967. inline int DescriptorProto::reserved_range_size() const {
  8968. return _internal_reserved_range_size();
  8969. }
  8970. inline void DescriptorProto::clear_reserved_range() {
  8971. _impl_.reserved_range_.Clear();
  8972. }
  8973. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) {
  8974. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
  8975. return _impl_.reserved_range_.Mutable(index);
  8976. }
  8977. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >*
  8978. DescriptorProto::mutable_reserved_range() {
  8979. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
  8980. return &_impl_.reserved_range_;
  8981. }
  8982. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& DescriptorProto::_internal_reserved_range(int index) const {
  8983. return _impl_.reserved_range_.Get(index);
  8984. }
  8985. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const {
  8986. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
  8987. return _internal_reserved_range(index);
  8988. }
  8989. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::_internal_add_reserved_range() {
  8990. return _impl_.reserved_range_.Add();
  8991. }
  8992. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() {
  8993. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* _add = _internal_add_reserved_range();
  8994. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
  8995. return _add;
  8996. }
  8997. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >&
  8998. DescriptorProto::reserved_range() const {
  8999. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
  9000. return _impl_.reserved_range_;
  9001. }
  9002. // repeated string reserved_name = 10;
  9003. inline int DescriptorProto::_internal_reserved_name_size() const {
  9004. return _impl_.reserved_name_.size();
  9005. }
  9006. inline int DescriptorProto::reserved_name_size() const {
  9007. return _internal_reserved_name_size();
  9008. }
  9009. inline void DescriptorProto::clear_reserved_name() {
  9010. _impl_.reserved_name_.Clear();
  9011. }
  9012. inline std::string* DescriptorProto::add_reserved_name() {
  9013. std::string* _s = _internal_add_reserved_name();
  9014. // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name)
  9015. return _s;
  9016. }
  9017. inline const std::string& DescriptorProto::_internal_reserved_name(int index) const {
  9018. return _impl_.reserved_name_.Get(index);
  9019. }
  9020. inline const std::string& DescriptorProto::reserved_name(int index) const {
  9021. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
  9022. return _internal_reserved_name(index);
  9023. }
  9024. inline std::string* DescriptorProto::mutable_reserved_name(int index) {
  9025. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
  9026. return _impl_.reserved_name_.Mutable(index);
  9027. }
  9028. inline void DescriptorProto::set_reserved_name(int index, const std::string& value) {
  9029. _impl_.reserved_name_.Mutable(index)->assign(value);
  9030. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  9031. }
  9032. inline void DescriptorProto::set_reserved_name(int index, std::string&& value) {
  9033. _impl_.reserved_name_.Mutable(index)->assign(std::move(value));
  9034. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  9035. }
  9036. inline void DescriptorProto::set_reserved_name(int index, const char* value) {
  9037. GOOGLE_DCHECK(value != nullptr);
  9038. _impl_.reserved_name_.Mutable(index)->assign(value);
  9039. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
  9040. }
  9041. inline void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  9042. _impl_.reserved_name_.Mutable(index)->assign(
  9043. reinterpret_cast<const char*>(value), size);
  9044. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
  9045. }
  9046. inline std::string* DescriptorProto::_internal_add_reserved_name() {
  9047. return _impl_.reserved_name_.Add();
  9048. }
  9049. inline void DescriptorProto::add_reserved_name(const std::string& value) {
  9050. _impl_.reserved_name_.Add()->assign(value);
  9051. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  9052. }
  9053. inline void DescriptorProto::add_reserved_name(std::string&& value) {
  9054. _impl_.reserved_name_.Add(std::move(value));
  9055. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  9056. }
  9057. inline void DescriptorProto::add_reserved_name(const char* value) {
  9058. GOOGLE_DCHECK(value != nullptr);
  9059. _impl_.reserved_name_.Add()->assign(value);
  9060. // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
  9061. }
  9062. inline void DescriptorProto::add_reserved_name(const char* value, size_t size) {
  9063. _impl_.reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  9064. // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
  9065. }
  9066. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  9067. DescriptorProto::reserved_name() const {
  9068. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
  9069. return _impl_.reserved_name_;
  9070. }
  9071. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  9072. DescriptorProto::mutable_reserved_name() {
  9073. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
  9074. return &_impl_.reserved_name_;
  9075. }
  9076. // -------------------------------------------------------------------
  9077. // ExtensionRangeOptions
  9078. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9079. inline int ExtensionRangeOptions::_internal_uninterpreted_option_size() const {
  9080. return _impl_.uninterpreted_option_.size();
  9081. }
  9082. inline int ExtensionRangeOptions::uninterpreted_option_size() const {
  9083. return _internal_uninterpreted_option_size();
  9084. }
  9085. inline void ExtensionRangeOptions::clear_uninterpreted_option() {
  9086. _impl_.uninterpreted_option_.Clear();
  9087. }
  9088. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::mutable_uninterpreted_option(int index) {
  9089. // @@protoc_insertion_point(field_mutable:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9090. return _impl_.uninterpreted_option_.Mutable(index);
  9091. }
  9092. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  9093. ExtensionRangeOptions::mutable_uninterpreted_option() {
  9094. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9095. return &_impl_.uninterpreted_option_;
  9096. }
  9097. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ExtensionRangeOptions::_internal_uninterpreted_option(int index) const {
  9098. return _impl_.uninterpreted_option_.Get(index);
  9099. }
  9100. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ExtensionRangeOptions::uninterpreted_option(int index) const {
  9101. // @@protoc_insertion_point(field_get:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9102. return _internal_uninterpreted_option(index);
  9103. }
  9104. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::_internal_add_uninterpreted_option() {
  9105. return _impl_.uninterpreted_option_.Add();
  9106. }
  9107. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::add_uninterpreted_option() {
  9108. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  9109. // @@protoc_insertion_point(field_add:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9110. return _add;
  9111. }
  9112. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  9113. ExtensionRangeOptions::uninterpreted_option() const {
  9114. // @@protoc_insertion_point(field_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9115. return _impl_.uninterpreted_option_;
  9116. }
  9117. // -------------------------------------------------------------------
  9118. // FieldDescriptorProto
  9119. // optional string name = 1;
  9120. inline bool FieldDescriptorProto::_internal_has_name() const {
  9121. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  9122. return value;
  9123. }
  9124. inline bool FieldDescriptorProto::has_name() const {
  9125. return _internal_has_name();
  9126. }
  9127. inline void FieldDescriptorProto::clear_name() {
  9128. _impl_.name_.ClearToEmpty();
  9129. _impl_._has_bits_[0] &= ~0x00000001u;
  9130. }
  9131. inline const std::string& FieldDescriptorProto::name() const {
  9132. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
  9133. return _internal_name();
  9134. }
  9135. template <typename ArgT0, typename... ArgT>
  9136. inline PROTOBUF_ALWAYS_INLINE
  9137. void FieldDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  9138. _impl_._has_bits_[0] |= 0x00000001u;
  9139. _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9140. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
  9141. }
  9142. inline std::string* FieldDescriptorProto::mutable_name() {
  9143. std::string* _s = _internal_mutable_name();
  9144. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
  9145. return _s;
  9146. }
  9147. inline const std::string& FieldDescriptorProto::_internal_name() const {
  9148. return _impl_.name_.Get();
  9149. }
  9150. inline void FieldDescriptorProto::_internal_set_name(const std::string& value) {
  9151. _impl_._has_bits_[0] |= 0x00000001u;
  9152. _impl_.name_.Set(value, GetArenaForAllocation());
  9153. }
  9154. inline std::string* FieldDescriptorProto::_internal_mutable_name() {
  9155. _impl_._has_bits_[0] |= 0x00000001u;
  9156. return _impl_.name_.Mutable(GetArenaForAllocation());
  9157. }
  9158. inline std::string* FieldDescriptorProto::release_name() {
  9159. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name)
  9160. if (!_internal_has_name()) {
  9161. return nullptr;
  9162. }
  9163. _impl_._has_bits_[0] &= ~0x00000001u;
  9164. auto* p = _impl_.name_.Release();
  9165. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9166. if (_impl_.name_.IsDefault()) {
  9167. _impl_.name_.Set("", GetArenaForAllocation());
  9168. }
  9169. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9170. return p;
  9171. }
  9172. inline void FieldDescriptorProto::set_allocated_name(std::string* name) {
  9173. if (name != nullptr) {
  9174. _impl_._has_bits_[0] |= 0x00000001u;
  9175. } else {
  9176. _impl_._has_bits_[0] &= ~0x00000001u;
  9177. }
  9178. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  9179. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9180. if (_impl_.name_.IsDefault()) {
  9181. _impl_.name_.Set("", GetArenaForAllocation());
  9182. }
  9183. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9184. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
  9185. }
  9186. // optional int32 number = 3;
  9187. inline bool FieldDescriptorProto::_internal_has_number() const {
  9188. bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
  9189. return value;
  9190. }
  9191. inline bool FieldDescriptorProto::has_number() const {
  9192. return _internal_has_number();
  9193. }
  9194. inline void FieldDescriptorProto::clear_number() {
  9195. _impl_.number_ = 0;
  9196. _impl_._has_bits_[0] &= ~0x00000040u;
  9197. }
  9198. inline int32_t FieldDescriptorProto::_internal_number() const {
  9199. return _impl_.number_;
  9200. }
  9201. inline int32_t FieldDescriptorProto::number() const {
  9202. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
  9203. return _internal_number();
  9204. }
  9205. inline void FieldDescriptorProto::_internal_set_number(int32_t value) {
  9206. _impl_._has_bits_[0] |= 0x00000040u;
  9207. _impl_.number_ = value;
  9208. }
  9209. inline void FieldDescriptorProto::set_number(int32_t value) {
  9210. _internal_set_number(value);
  9211. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
  9212. }
  9213. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  9214. inline bool FieldDescriptorProto::_internal_has_label() const {
  9215. bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
  9216. return value;
  9217. }
  9218. inline bool FieldDescriptorProto::has_label() const {
  9219. return _internal_has_label();
  9220. }
  9221. inline void FieldDescriptorProto::clear_label() {
  9222. _impl_.label_ = 1;
  9223. _impl_._has_bits_[0] &= ~0x00000200u;
  9224. }
  9225. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label FieldDescriptorProto::_internal_label() const {
  9226. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label >(_impl_.label_);
  9227. }
  9228. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
  9229. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
  9230. return _internal_label();
  9231. }
  9232. inline void FieldDescriptorProto::_internal_set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value) {
  9233. assert(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_IsValid(value));
  9234. _impl_._has_bits_[0] |= 0x00000200u;
  9235. _impl_.label_ = value;
  9236. }
  9237. inline void FieldDescriptorProto::set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value) {
  9238. _internal_set_label(value);
  9239. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
  9240. }
  9241. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  9242. inline bool FieldDescriptorProto::_internal_has_type() const {
  9243. bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
  9244. return value;
  9245. }
  9246. inline bool FieldDescriptorProto::has_type() const {
  9247. return _internal_has_type();
  9248. }
  9249. inline void FieldDescriptorProto::clear_type() {
  9250. _impl_.type_ = 1;
  9251. _impl_._has_bits_[0] &= ~0x00000400u;
  9252. }
  9253. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type FieldDescriptorProto::_internal_type() const {
  9254. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type >(_impl_.type_);
  9255. }
  9256. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
  9257. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
  9258. return _internal_type();
  9259. }
  9260. inline void FieldDescriptorProto::_internal_set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value) {
  9261. assert(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_IsValid(value));
  9262. _impl_._has_bits_[0] |= 0x00000400u;
  9263. _impl_.type_ = value;
  9264. }
  9265. inline void FieldDescriptorProto::set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value) {
  9266. _internal_set_type(value);
  9267. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
  9268. }
  9269. // optional string type_name = 6;
  9270. inline bool FieldDescriptorProto::_internal_has_type_name() const {
  9271. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  9272. return value;
  9273. }
  9274. inline bool FieldDescriptorProto::has_type_name() const {
  9275. return _internal_has_type_name();
  9276. }
  9277. inline void FieldDescriptorProto::clear_type_name() {
  9278. _impl_.type_name_.ClearToEmpty();
  9279. _impl_._has_bits_[0] &= ~0x00000004u;
  9280. }
  9281. inline const std::string& FieldDescriptorProto::type_name() const {
  9282. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
  9283. return _internal_type_name();
  9284. }
  9285. template <typename ArgT0, typename... ArgT>
  9286. inline PROTOBUF_ALWAYS_INLINE
  9287. void FieldDescriptorProto::set_type_name(ArgT0&& arg0, ArgT... args) {
  9288. _impl_._has_bits_[0] |= 0x00000004u;
  9289. _impl_.type_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9290. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
  9291. }
  9292. inline std::string* FieldDescriptorProto::mutable_type_name() {
  9293. std::string* _s = _internal_mutable_type_name();
  9294. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
  9295. return _s;
  9296. }
  9297. inline const std::string& FieldDescriptorProto::_internal_type_name() const {
  9298. return _impl_.type_name_.Get();
  9299. }
  9300. inline void FieldDescriptorProto::_internal_set_type_name(const std::string& value) {
  9301. _impl_._has_bits_[0] |= 0x00000004u;
  9302. _impl_.type_name_.Set(value, GetArenaForAllocation());
  9303. }
  9304. inline std::string* FieldDescriptorProto::_internal_mutable_type_name() {
  9305. _impl_._has_bits_[0] |= 0x00000004u;
  9306. return _impl_.type_name_.Mutable(GetArenaForAllocation());
  9307. }
  9308. inline std::string* FieldDescriptorProto::release_type_name() {
  9309. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name)
  9310. if (!_internal_has_type_name()) {
  9311. return nullptr;
  9312. }
  9313. _impl_._has_bits_[0] &= ~0x00000004u;
  9314. auto* p = _impl_.type_name_.Release();
  9315. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9316. if (_impl_.type_name_.IsDefault()) {
  9317. _impl_.type_name_.Set("", GetArenaForAllocation());
  9318. }
  9319. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9320. return p;
  9321. }
  9322. inline void FieldDescriptorProto::set_allocated_type_name(std::string* type_name) {
  9323. if (type_name != nullptr) {
  9324. _impl_._has_bits_[0] |= 0x00000004u;
  9325. } else {
  9326. _impl_._has_bits_[0] &= ~0x00000004u;
  9327. }
  9328. _impl_.type_name_.SetAllocated(type_name, GetArenaForAllocation());
  9329. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9330. if (_impl_.type_name_.IsDefault()) {
  9331. _impl_.type_name_.Set("", GetArenaForAllocation());
  9332. }
  9333. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9334. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  9335. }
  9336. // optional string extendee = 2;
  9337. inline bool FieldDescriptorProto::_internal_has_extendee() const {
  9338. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  9339. return value;
  9340. }
  9341. inline bool FieldDescriptorProto::has_extendee() const {
  9342. return _internal_has_extendee();
  9343. }
  9344. inline void FieldDescriptorProto::clear_extendee() {
  9345. _impl_.extendee_.ClearToEmpty();
  9346. _impl_._has_bits_[0] &= ~0x00000002u;
  9347. }
  9348. inline const std::string& FieldDescriptorProto::extendee() const {
  9349. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
  9350. return _internal_extendee();
  9351. }
  9352. template <typename ArgT0, typename... ArgT>
  9353. inline PROTOBUF_ALWAYS_INLINE
  9354. void FieldDescriptorProto::set_extendee(ArgT0&& arg0, ArgT... args) {
  9355. _impl_._has_bits_[0] |= 0x00000002u;
  9356. _impl_.extendee_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9357. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
  9358. }
  9359. inline std::string* FieldDescriptorProto::mutable_extendee() {
  9360. std::string* _s = _internal_mutable_extendee();
  9361. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
  9362. return _s;
  9363. }
  9364. inline const std::string& FieldDescriptorProto::_internal_extendee() const {
  9365. return _impl_.extendee_.Get();
  9366. }
  9367. inline void FieldDescriptorProto::_internal_set_extendee(const std::string& value) {
  9368. _impl_._has_bits_[0] |= 0x00000002u;
  9369. _impl_.extendee_.Set(value, GetArenaForAllocation());
  9370. }
  9371. inline std::string* FieldDescriptorProto::_internal_mutable_extendee() {
  9372. _impl_._has_bits_[0] |= 0x00000002u;
  9373. return _impl_.extendee_.Mutable(GetArenaForAllocation());
  9374. }
  9375. inline std::string* FieldDescriptorProto::release_extendee() {
  9376. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee)
  9377. if (!_internal_has_extendee()) {
  9378. return nullptr;
  9379. }
  9380. _impl_._has_bits_[0] &= ~0x00000002u;
  9381. auto* p = _impl_.extendee_.Release();
  9382. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9383. if (_impl_.extendee_.IsDefault()) {
  9384. _impl_.extendee_.Set("", GetArenaForAllocation());
  9385. }
  9386. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9387. return p;
  9388. }
  9389. inline void FieldDescriptorProto::set_allocated_extendee(std::string* extendee) {
  9390. if (extendee != nullptr) {
  9391. _impl_._has_bits_[0] |= 0x00000002u;
  9392. } else {
  9393. _impl_._has_bits_[0] &= ~0x00000002u;
  9394. }
  9395. _impl_.extendee_.SetAllocated(extendee, GetArenaForAllocation());
  9396. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9397. if (_impl_.extendee_.IsDefault()) {
  9398. _impl_.extendee_.Set("", GetArenaForAllocation());
  9399. }
  9400. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9401. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  9402. }
  9403. // optional string default_value = 7;
  9404. inline bool FieldDescriptorProto::_internal_has_default_value() const {
  9405. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  9406. return value;
  9407. }
  9408. inline bool FieldDescriptorProto::has_default_value() const {
  9409. return _internal_has_default_value();
  9410. }
  9411. inline void FieldDescriptorProto::clear_default_value() {
  9412. _impl_.default_value_.ClearToEmpty();
  9413. _impl_._has_bits_[0] &= ~0x00000008u;
  9414. }
  9415. inline const std::string& FieldDescriptorProto::default_value() const {
  9416. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
  9417. return _internal_default_value();
  9418. }
  9419. template <typename ArgT0, typename... ArgT>
  9420. inline PROTOBUF_ALWAYS_INLINE
  9421. void FieldDescriptorProto::set_default_value(ArgT0&& arg0, ArgT... args) {
  9422. _impl_._has_bits_[0] |= 0x00000008u;
  9423. _impl_.default_value_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9424. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
  9425. }
  9426. inline std::string* FieldDescriptorProto::mutable_default_value() {
  9427. std::string* _s = _internal_mutable_default_value();
  9428. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
  9429. return _s;
  9430. }
  9431. inline const std::string& FieldDescriptorProto::_internal_default_value() const {
  9432. return _impl_.default_value_.Get();
  9433. }
  9434. inline void FieldDescriptorProto::_internal_set_default_value(const std::string& value) {
  9435. _impl_._has_bits_[0] |= 0x00000008u;
  9436. _impl_.default_value_.Set(value, GetArenaForAllocation());
  9437. }
  9438. inline std::string* FieldDescriptorProto::_internal_mutable_default_value() {
  9439. _impl_._has_bits_[0] |= 0x00000008u;
  9440. return _impl_.default_value_.Mutable(GetArenaForAllocation());
  9441. }
  9442. inline std::string* FieldDescriptorProto::release_default_value() {
  9443. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value)
  9444. if (!_internal_has_default_value()) {
  9445. return nullptr;
  9446. }
  9447. _impl_._has_bits_[0] &= ~0x00000008u;
  9448. auto* p = _impl_.default_value_.Release();
  9449. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9450. if (_impl_.default_value_.IsDefault()) {
  9451. _impl_.default_value_.Set("", GetArenaForAllocation());
  9452. }
  9453. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9454. return p;
  9455. }
  9456. inline void FieldDescriptorProto::set_allocated_default_value(std::string* default_value) {
  9457. if (default_value != nullptr) {
  9458. _impl_._has_bits_[0] |= 0x00000008u;
  9459. } else {
  9460. _impl_._has_bits_[0] &= ~0x00000008u;
  9461. }
  9462. _impl_.default_value_.SetAllocated(default_value, GetArenaForAllocation());
  9463. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9464. if (_impl_.default_value_.IsDefault()) {
  9465. _impl_.default_value_.Set("", GetArenaForAllocation());
  9466. }
  9467. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9468. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  9469. }
  9470. // optional int32 oneof_index = 9;
  9471. inline bool FieldDescriptorProto::_internal_has_oneof_index() const {
  9472. bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
  9473. return value;
  9474. }
  9475. inline bool FieldDescriptorProto::has_oneof_index() const {
  9476. return _internal_has_oneof_index();
  9477. }
  9478. inline void FieldDescriptorProto::clear_oneof_index() {
  9479. _impl_.oneof_index_ = 0;
  9480. _impl_._has_bits_[0] &= ~0x00000080u;
  9481. }
  9482. inline int32_t FieldDescriptorProto::_internal_oneof_index() const {
  9483. return _impl_.oneof_index_;
  9484. }
  9485. inline int32_t FieldDescriptorProto::oneof_index() const {
  9486. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
  9487. return _internal_oneof_index();
  9488. }
  9489. inline void FieldDescriptorProto::_internal_set_oneof_index(int32_t value) {
  9490. _impl_._has_bits_[0] |= 0x00000080u;
  9491. _impl_.oneof_index_ = value;
  9492. }
  9493. inline void FieldDescriptorProto::set_oneof_index(int32_t value) {
  9494. _internal_set_oneof_index(value);
  9495. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
  9496. }
  9497. // optional string json_name = 10;
  9498. inline bool FieldDescriptorProto::_internal_has_json_name() const {
  9499. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  9500. return value;
  9501. }
  9502. inline bool FieldDescriptorProto::has_json_name() const {
  9503. return _internal_has_json_name();
  9504. }
  9505. inline void FieldDescriptorProto::clear_json_name() {
  9506. _impl_.json_name_.ClearToEmpty();
  9507. _impl_._has_bits_[0] &= ~0x00000010u;
  9508. }
  9509. inline const std::string& FieldDescriptorProto::json_name() const {
  9510. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name)
  9511. return _internal_json_name();
  9512. }
  9513. template <typename ArgT0, typename... ArgT>
  9514. inline PROTOBUF_ALWAYS_INLINE
  9515. void FieldDescriptorProto::set_json_name(ArgT0&& arg0, ArgT... args) {
  9516. _impl_._has_bits_[0] |= 0x00000010u;
  9517. _impl_.json_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9518. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name)
  9519. }
  9520. inline std::string* FieldDescriptorProto::mutable_json_name() {
  9521. std::string* _s = _internal_mutable_json_name();
  9522. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name)
  9523. return _s;
  9524. }
  9525. inline const std::string& FieldDescriptorProto::_internal_json_name() const {
  9526. return _impl_.json_name_.Get();
  9527. }
  9528. inline void FieldDescriptorProto::_internal_set_json_name(const std::string& value) {
  9529. _impl_._has_bits_[0] |= 0x00000010u;
  9530. _impl_.json_name_.Set(value, GetArenaForAllocation());
  9531. }
  9532. inline std::string* FieldDescriptorProto::_internal_mutable_json_name() {
  9533. _impl_._has_bits_[0] |= 0x00000010u;
  9534. return _impl_.json_name_.Mutable(GetArenaForAllocation());
  9535. }
  9536. inline std::string* FieldDescriptorProto::release_json_name() {
  9537. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name)
  9538. if (!_internal_has_json_name()) {
  9539. return nullptr;
  9540. }
  9541. _impl_._has_bits_[0] &= ~0x00000010u;
  9542. auto* p = _impl_.json_name_.Release();
  9543. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9544. if (_impl_.json_name_.IsDefault()) {
  9545. _impl_.json_name_.Set("", GetArenaForAllocation());
  9546. }
  9547. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9548. return p;
  9549. }
  9550. inline void FieldDescriptorProto::set_allocated_json_name(std::string* json_name) {
  9551. if (json_name != nullptr) {
  9552. _impl_._has_bits_[0] |= 0x00000010u;
  9553. } else {
  9554. _impl_._has_bits_[0] &= ~0x00000010u;
  9555. }
  9556. _impl_.json_name_.SetAllocated(json_name, GetArenaForAllocation());
  9557. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9558. if (_impl_.json_name_.IsDefault()) {
  9559. _impl_.json_name_.Set("", GetArenaForAllocation());
  9560. }
  9561. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9562. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
  9563. }
  9564. // optional .google.protobuf.FieldOptions options = 8;
  9565. inline bool FieldDescriptorProto::_internal_has_options() const {
  9566. bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  9567. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  9568. return value;
  9569. }
  9570. inline bool FieldDescriptorProto::has_options() const {
  9571. return _internal_has_options();
  9572. }
  9573. inline void FieldDescriptorProto::clear_options() {
  9574. if (_impl_.options_ != nullptr) _impl_.options_->Clear();
  9575. _impl_._has_bits_[0] &= ~0x00000020u;
  9576. }
  9577. inline const ::PROTOBUF_NAMESPACE_ID::FieldOptions& FieldDescriptorProto::_internal_options() const {
  9578. const ::PROTOBUF_NAMESPACE_ID::FieldOptions* p = _impl_.options_;
  9579. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::FieldOptions&>(
  9580. ::PROTOBUF_NAMESPACE_ID::_FieldOptions_default_instance_);
  9581. }
  9582. inline const ::PROTOBUF_NAMESPACE_ID::FieldOptions& FieldDescriptorProto::options() const {
  9583. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
  9584. return _internal_options();
  9585. }
  9586. inline void FieldDescriptorProto::unsafe_arena_set_allocated_options(
  9587. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options) {
  9588. if (GetArenaForAllocation() == nullptr) {
  9589. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  9590. }
  9591. _impl_.options_ = options;
  9592. if (options) {
  9593. _impl_._has_bits_[0] |= 0x00000020u;
  9594. } else {
  9595. _impl_._has_bits_[0] &= ~0x00000020u;
  9596. }
  9597. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.options)
  9598. }
  9599. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::release_options() {
  9600. _impl_._has_bits_[0] &= ~0x00000020u;
  9601. ::PROTOBUF_NAMESPACE_ID::FieldOptions* temp = _impl_.options_;
  9602. _impl_.options_ = nullptr;
  9603. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9604. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  9605. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9606. if (GetArenaForAllocation() == nullptr) { delete old; }
  9607. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9608. if (GetArenaForAllocation() != nullptr) {
  9609. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9610. }
  9611. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  9612. return temp;
  9613. }
  9614. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::unsafe_arena_release_options() {
  9615. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.options)
  9616. _impl_._has_bits_[0] &= ~0x00000020u;
  9617. ::PROTOBUF_NAMESPACE_ID::FieldOptions* temp = _impl_.options_;
  9618. _impl_.options_ = nullptr;
  9619. return temp;
  9620. }
  9621. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::_internal_mutable_options() {
  9622. _impl_._has_bits_[0] |= 0x00000020u;
  9623. if (_impl_.options_ == nullptr) {
  9624. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldOptions>(GetArenaForAllocation());
  9625. _impl_.options_ = p;
  9626. }
  9627. return _impl_.options_;
  9628. }
  9629. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::mutable_options() {
  9630. ::PROTOBUF_NAMESPACE_ID::FieldOptions* _msg = _internal_mutable_options();
  9631. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
  9632. return _msg;
  9633. }
  9634. inline void FieldDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::FieldOptions* options) {
  9635. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  9636. if (message_arena == nullptr) {
  9637. delete _impl_.options_;
  9638. }
  9639. if (options) {
  9640. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9641. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  9642. if (message_arena != submessage_arena) {
  9643. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9644. message_arena, options, submessage_arena);
  9645. }
  9646. _impl_._has_bits_[0] |= 0x00000020u;
  9647. } else {
  9648. _impl_._has_bits_[0] &= ~0x00000020u;
  9649. }
  9650. _impl_.options_ = options;
  9651. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
  9652. }
  9653. // optional bool proto3_optional = 17;
  9654. inline bool FieldDescriptorProto::_internal_has_proto3_optional() const {
  9655. bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
  9656. return value;
  9657. }
  9658. inline bool FieldDescriptorProto::has_proto3_optional() const {
  9659. return _internal_has_proto3_optional();
  9660. }
  9661. inline void FieldDescriptorProto::clear_proto3_optional() {
  9662. _impl_.proto3_optional_ = false;
  9663. _impl_._has_bits_[0] &= ~0x00000100u;
  9664. }
  9665. inline bool FieldDescriptorProto::_internal_proto3_optional() const {
  9666. return _impl_.proto3_optional_;
  9667. }
  9668. inline bool FieldDescriptorProto::proto3_optional() const {
  9669. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.proto3_optional)
  9670. return _internal_proto3_optional();
  9671. }
  9672. inline void FieldDescriptorProto::_internal_set_proto3_optional(bool value) {
  9673. _impl_._has_bits_[0] |= 0x00000100u;
  9674. _impl_.proto3_optional_ = value;
  9675. }
  9676. inline void FieldDescriptorProto::set_proto3_optional(bool value) {
  9677. _internal_set_proto3_optional(value);
  9678. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.proto3_optional)
  9679. }
  9680. // -------------------------------------------------------------------
  9681. // OneofDescriptorProto
  9682. // optional string name = 1;
  9683. inline bool OneofDescriptorProto::_internal_has_name() const {
  9684. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  9685. return value;
  9686. }
  9687. inline bool OneofDescriptorProto::has_name() const {
  9688. return _internal_has_name();
  9689. }
  9690. inline void OneofDescriptorProto::clear_name() {
  9691. _impl_.name_.ClearToEmpty();
  9692. _impl_._has_bits_[0] &= ~0x00000001u;
  9693. }
  9694. inline const std::string& OneofDescriptorProto::name() const {
  9695. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
  9696. return _internal_name();
  9697. }
  9698. template <typename ArgT0, typename... ArgT>
  9699. inline PROTOBUF_ALWAYS_INLINE
  9700. void OneofDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  9701. _impl_._has_bits_[0] |= 0x00000001u;
  9702. _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9703. // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
  9704. }
  9705. inline std::string* OneofDescriptorProto::mutable_name() {
  9706. std::string* _s = _internal_mutable_name();
  9707. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
  9708. return _s;
  9709. }
  9710. inline const std::string& OneofDescriptorProto::_internal_name() const {
  9711. return _impl_.name_.Get();
  9712. }
  9713. inline void OneofDescriptorProto::_internal_set_name(const std::string& value) {
  9714. _impl_._has_bits_[0] |= 0x00000001u;
  9715. _impl_.name_.Set(value, GetArenaForAllocation());
  9716. }
  9717. inline std::string* OneofDescriptorProto::_internal_mutable_name() {
  9718. _impl_._has_bits_[0] |= 0x00000001u;
  9719. return _impl_.name_.Mutable(GetArenaForAllocation());
  9720. }
  9721. inline std::string* OneofDescriptorProto::release_name() {
  9722. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.name)
  9723. if (!_internal_has_name()) {
  9724. return nullptr;
  9725. }
  9726. _impl_._has_bits_[0] &= ~0x00000001u;
  9727. auto* p = _impl_.name_.Release();
  9728. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9729. if (_impl_.name_.IsDefault()) {
  9730. _impl_.name_.Set("", GetArenaForAllocation());
  9731. }
  9732. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9733. return p;
  9734. }
  9735. inline void OneofDescriptorProto::set_allocated_name(std::string* name) {
  9736. if (name != nullptr) {
  9737. _impl_._has_bits_[0] |= 0x00000001u;
  9738. } else {
  9739. _impl_._has_bits_[0] &= ~0x00000001u;
  9740. }
  9741. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  9742. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9743. if (_impl_.name_.IsDefault()) {
  9744. _impl_.name_.Set("", GetArenaForAllocation());
  9745. }
  9746. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9747. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
  9748. }
  9749. // optional .google.protobuf.OneofOptions options = 2;
  9750. inline bool OneofDescriptorProto::_internal_has_options() const {
  9751. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  9752. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  9753. return value;
  9754. }
  9755. inline bool OneofDescriptorProto::has_options() const {
  9756. return _internal_has_options();
  9757. }
  9758. inline void OneofDescriptorProto::clear_options() {
  9759. if (_impl_.options_ != nullptr) _impl_.options_->Clear();
  9760. _impl_._has_bits_[0] &= ~0x00000002u;
  9761. }
  9762. inline const ::PROTOBUF_NAMESPACE_ID::OneofOptions& OneofDescriptorProto::_internal_options() const {
  9763. const ::PROTOBUF_NAMESPACE_ID::OneofOptions* p = _impl_.options_;
  9764. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::OneofOptions&>(
  9765. ::PROTOBUF_NAMESPACE_ID::_OneofOptions_default_instance_);
  9766. }
  9767. inline const ::PROTOBUF_NAMESPACE_ID::OneofOptions& OneofDescriptorProto::options() const {
  9768. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.options)
  9769. return _internal_options();
  9770. }
  9771. inline void OneofDescriptorProto::unsafe_arena_set_allocated_options(
  9772. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options) {
  9773. if (GetArenaForAllocation() == nullptr) {
  9774. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  9775. }
  9776. _impl_.options_ = options;
  9777. if (options) {
  9778. _impl_._has_bits_[0] |= 0x00000002u;
  9779. } else {
  9780. _impl_._has_bits_[0] &= ~0x00000002u;
  9781. }
  9782. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.OneofDescriptorProto.options)
  9783. }
  9784. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::release_options() {
  9785. _impl_._has_bits_[0] &= ~0x00000002u;
  9786. ::PROTOBUF_NAMESPACE_ID::OneofOptions* temp = _impl_.options_;
  9787. _impl_.options_ = nullptr;
  9788. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9789. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  9790. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9791. if (GetArenaForAllocation() == nullptr) { delete old; }
  9792. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9793. if (GetArenaForAllocation() != nullptr) {
  9794. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9795. }
  9796. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  9797. return temp;
  9798. }
  9799. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::unsafe_arena_release_options() {
  9800. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.options)
  9801. _impl_._has_bits_[0] &= ~0x00000002u;
  9802. ::PROTOBUF_NAMESPACE_ID::OneofOptions* temp = _impl_.options_;
  9803. _impl_.options_ = nullptr;
  9804. return temp;
  9805. }
  9806. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::_internal_mutable_options() {
  9807. _impl_._has_bits_[0] |= 0x00000002u;
  9808. if (_impl_.options_ == nullptr) {
  9809. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofOptions>(GetArenaForAllocation());
  9810. _impl_.options_ = p;
  9811. }
  9812. return _impl_.options_;
  9813. }
  9814. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::mutable_options() {
  9815. ::PROTOBUF_NAMESPACE_ID::OneofOptions* _msg = _internal_mutable_options();
  9816. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.options)
  9817. return _msg;
  9818. }
  9819. inline void OneofDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::OneofOptions* options) {
  9820. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  9821. if (message_arena == nullptr) {
  9822. delete _impl_.options_;
  9823. }
  9824. if (options) {
  9825. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9826. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  9827. if (message_arena != submessage_arena) {
  9828. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9829. message_arena, options, submessage_arena);
  9830. }
  9831. _impl_._has_bits_[0] |= 0x00000002u;
  9832. } else {
  9833. _impl_._has_bits_[0] &= ~0x00000002u;
  9834. }
  9835. _impl_.options_ = options;
  9836. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.options)
  9837. }
  9838. // -------------------------------------------------------------------
  9839. // EnumDescriptorProto_EnumReservedRange
  9840. // optional int32 start = 1;
  9841. inline bool EnumDescriptorProto_EnumReservedRange::_internal_has_start() const {
  9842. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  9843. return value;
  9844. }
  9845. inline bool EnumDescriptorProto_EnumReservedRange::has_start() const {
  9846. return _internal_has_start();
  9847. }
  9848. inline void EnumDescriptorProto_EnumReservedRange::clear_start() {
  9849. _impl_.start_ = 0;
  9850. _impl_._has_bits_[0] &= ~0x00000001u;
  9851. }
  9852. inline int32_t EnumDescriptorProto_EnumReservedRange::_internal_start() const {
  9853. return _impl_.start_;
  9854. }
  9855. inline int32_t EnumDescriptorProto_EnumReservedRange::start() const {
  9856. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  9857. return _internal_start();
  9858. }
  9859. inline void EnumDescriptorProto_EnumReservedRange::_internal_set_start(int32_t value) {
  9860. _impl_._has_bits_[0] |= 0x00000001u;
  9861. _impl_.start_ = value;
  9862. }
  9863. inline void EnumDescriptorProto_EnumReservedRange::set_start(int32_t value) {
  9864. _internal_set_start(value);
  9865. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  9866. }
  9867. // optional int32 end = 2;
  9868. inline bool EnumDescriptorProto_EnumReservedRange::_internal_has_end() const {
  9869. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  9870. return value;
  9871. }
  9872. inline bool EnumDescriptorProto_EnumReservedRange::has_end() const {
  9873. return _internal_has_end();
  9874. }
  9875. inline void EnumDescriptorProto_EnumReservedRange::clear_end() {
  9876. _impl_.end_ = 0;
  9877. _impl_._has_bits_[0] &= ~0x00000002u;
  9878. }
  9879. inline int32_t EnumDescriptorProto_EnumReservedRange::_internal_end() const {
  9880. return _impl_.end_;
  9881. }
  9882. inline int32_t EnumDescriptorProto_EnumReservedRange::end() const {
  9883. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  9884. return _internal_end();
  9885. }
  9886. inline void EnumDescriptorProto_EnumReservedRange::_internal_set_end(int32_t value) {
  9887. _impl_._has_bits_[0] |= 0x00000002u;
  9888. _impl_.end_ = value;
  9889. }
  9890. inline void EnumDescriptorProto_EnumReservedRange::set_end(int32_t value) {
  9891. _internal_set_end(value);
  9892. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  9893. }
  9894. // -------------------------------------------------------------------
  9895. // EnumDescriptorProto
  9896. // optional string name = 1;
  9897. inline bool EnumDescriptorProto::_internal_has_name() const {
  9898. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  9899. return value;
  9900. }
  9901. inline bool EnumDescriptorProto::has_name() const {
  9902. return _internal_has_name();
  9903. }
  9904. inline void EnumDescriptorProto::clear_name() {
  9905. _impl_.name_.ClearToEmpty();
  9906. _impl_._has_bits_[0] &= ~0x00000001u;
  9907. }
  9908. inline const std::string& EnumDescriptorProto::name() const {
  9909. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
  9910. return _internal_name();
  9911. }
  9912. template <typename ArgT0, typename... ArgT>
  9913. inline PROTOBUF_ALWAYS_INLINE
  9914. void EnumDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  9915. _impl_._has_bits_[0] |= 0x00000001u;
  9916. _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9917. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
  9918. }
  9919. inline std::string* EnumDescriptorProto::mutable_name() {
  9920. std::string* _s = _internal_mutable_name();
  9921. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
  9922. return _s;
  9923. }
  9924. inline const std::string& EnumDescriptorProto::_internal_name() const {
  9925. return _impl_.name_.Get();
  9926. }
  9927. inline void EnumDescriptorProto::_internal_set_name(const std::string& value) {
  9928. _impl_._has_bits_[0] |= 0x00000001u;
  9929. _impl_.name_.Set(value, GetArenaForAllocation());
  9930. }
  9931. inline std::string* EnumDescriptorProto::_internal_mutable_name() {
  9932. _impl_._has_bits_[0] |= 0x00000001u;
  9933. return _impl_.name_.Mutable(GetArenaForAllocation());
  9934. }
  9935. inline std::string* EnumDescriptorProto::release_name() {
  9936. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.name)
  9937. if (!_internal_has_name()) {
  9938. return nullptr;
  9939. }
  9940. _impl_._has_bits_[0] &= ~0x00000001u;
  9941. auto* p = _impl_.name_.Release();
  9942. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9943. if (_impl_.name_.IsDefault()) {
  9944. _impl_.name_.Set("", GetArenaForAllocation());
  9945. }
  9946. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9947. return p;
  9948. }
  9949. inline void EnumDescriptorProto::set_allocated_name(std::string* name) {
  9950. if (name != nullptr) {
  9951. _impl_._has_bits_[0] |= 0x00000001u;
  9952. } else {
  9953. _impl_._has_bits_[0] &= ~0x00000001u;
  9954. }
  9955. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  9956. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9957. if (_impl_.name_.IsDefault()) {
  9958. _impl_.name_.Set("", GetArenaForAllocation());
  9959. }
  9960. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9961. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
  9962. }
  9963. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  9964. inline int EnumDescriptorProto::_internal_value_size() const {
  9965. return _impl_.value_.size();
  9966. }
  9967. inline int EnumDescriptorProto::value_size() const {
  9968. return _internal_value_size();
  9969. }
  9970. inline void EnumDescriptorProto::clear_value() {
  9971. _impl_.value_.Clear();
  9972. }
  9973. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
  9974. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
  9975. return _impl_.value_.Mutable(index);
  9976. }
  9977. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >*
  9978. EnumDescriptorProto::mutable_value() {
  9979. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
  9980. return &_impl_.value_;
  9981. }
  9982. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& EnumDescriptorProto::_internal_value(int index) const {
  9983. return _impl_.value_.Get(index);
  9984. }
  9985. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
  9986. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
  9987. return _internal_value(index);
  9988. }
  9989. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::_internal_add_value() {
  9990. return _impl_.value_.Add();
  9991. }
  9992. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
  9993. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* _add = _internal_add_value();
  9994. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
  9995. return _add;
  9996. }
  9997. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >&
  9998. EnumDescriptorProto::value() const {
  9999. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
  10000. return _impl_.value_;
  10001. }
  10002. // optional .google.protobuf.EnumOptions options = 3;
  10003. inline bool EnumDescriptorProto::_internal_has_options() const {
  10004. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  10005. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  10006. return value;
  10007. }
  10008. inline bool EnumDescriptorProto::has_options() const {
  10009. return _internal_has_options();
  10010. }
  10011. inline void EnumDescriptorProto::clear_options() {
  10012. if (_impl_.options_ != nullptr) _impl_.options_->Clear();
  10013. _impl_._has_bits_[0] &= ~0x00000002u;
  10014. }
  10015. inline const ::PROTOBUF_NAMESPACE_ID::EnumOptions& EnumDescriptorProto::_internal_options() const {
  10016. const ::PROTOBUF_NAMESPACE_ID::EnumOptions* p = _impl_.options_;
  10017. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::EnumOptions&>(
  10018. ::PROTOBUF_NAMESPACE_ID::_EnumOptions_default_instance_);
  10019. }
  10020. inline const ::PROTOBUF_NAMESPACE_ID::EnumOptions& EnumDescriptorProto::options() const {
  10021. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
  10022. return _internal_options();
  10023. }
  10024. inline void EnumDescriptorProto::unsafe_arena_set_allocated_options(
  10025. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options) {
  10026. if (GetArenaForAllocation() == nullptr) {
  10027. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  10028. }
  10029. _impl_.options_ = options;
  10030. if (options) {
  10031. _impl_._has_bits_[0] |= 0x00000002u;
  10032. } else {
  10033. _impl_._has_bits_[0] &= ~0x00000002u;
  10034. }
  10035. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumDescriptorProto.options)
  10036. }
  10037. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::release_options() {
  10038. _impl_._has_bits_[0] &= ~0x00000002u;
  10039. ::PROTOBUF_NAMESPACE_ID::EnumOptions* temp = _impl_.options_;
  10040. _impl_.options_ = nullptr;
  10041. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10042. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10043. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10044. if (GetArenaForAllocation() == nullptr) { delete old; }
  10045. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10046. if (GetArenaForAllocation() != nullptr) {
  10047. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10048. }
  10049. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10050. return temp;
  10051. }
  10052. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::unsafe_arena_release_options() {
  10053. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.options)
  10054. _impl_._has_bits_[0] &= ~0x00000002u;
  10055. ::PROTOBUF_NAMESPACE_ID::EnumOptions* temp = _impl_.options_;
  10056. _impl_.options_ = nullptr;
  10057. return temp;
  10058. }
  10059. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::_internal_mutable_options() {
  10060. _impl_._has_bits_[0] |= 0x00000002u;
  10061. if (_impl_.options_ == nullptr) {
  10062. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumOptions>(GetArenaForAllocation());
  10063. _impl_.options_ = p;
  10064. }
  10065. return _impl_.options_;
  10066. }
  10067. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::mutable_options() {
  10068. ::PROTOBUF_NAMESPACE_ID::EnumOptions* _msg = _internal_mutable_options();
  10069. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
  10070. return _msg;
  10071. }
  10072. inline void EnumDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumOptions* options) {
  10073. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10074. if (message_arena == nullptr) {
  10075. delete _impl_.options_;
  10076. }
  10077. if (options) {
  10078. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10079. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  10080. if (message_arena != submessage_arena) {
  10081. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10082. message_arena, options, submessage_arena);
  10083. }
  10084. _impl_._has_bits_[0] |= 0x00000002u;
  10085. } else {
  10086. _impl_._has_bits_[0] &= ~0x00000002u;
  10087. }
  10088. _impl_.options_ = options;
  10089. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
  10090. }
  10091. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  10092. inline int EnumDescriptorProto::_internal_reserved_range_size() const {
  10093. return _impl_.reserved_range_.size();
  10094. }
  10095. inline int EnumDescriptorProto::reserved_range_size() const {
  10096. return _internal_reserved_range_size();
  10097. }
  10098. inline void EnumDescriptorProto::clear_reserved_range() {
  10099. _impl_.reserved_range_.Clear();
  10100. }
  10101. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::mutable_reserved_range(int index) {
  10102. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_range)
  10103. return _impl_.reserved_range_.Mutable(index);
  10104. }
  10105. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >*
  10106. EnumDescriptorProto::mutable_reserved_range() {
  10107. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_range)
  10108. return &_impl_.reserved_range_;
  10109. }
  10110. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::_internal_reserved_range(int index) const {
  10111. return _impl_.reserved_range_.Get(index);
  10112. }
  10113. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::reserved_range(int index) const {
  10114. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_range)
  10115. return _internal_reserved_range(index);
  10116. }
  10117. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::_internal_add_reserved_range() {
  10118. return _impl_.reserved_range_.Add();
  10119. }
  10120. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::add_reserved_range() {
  10121. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* _add = _internal_add_reserved_range();
  10122. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_range)
  10123. return _add;
  10124. }
  10125. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >&
  10126. EnumDescriptorProto::reserved_range() const {
  10127. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_range)
  10128. return _impl_.reserved_range_;
  10129. }
  10130. // repeated string reserved_name = 5;
  10131. inline int EnumDescriptorProto::_internal_reserved_name_size() const {
  10132. return _impl_.reserved_name_.size();
  10133. }
  10134. inline int EnumDescriptorProto::reserved_name_size() const {
  10135. return _internal_reserved_name_size();
  10136. }
  10137. inline void EnumDescriptorProto::clear_reserved_name() {
  10138. _impl_.reserved_name_.Clear();
  10139. }
  10140. inline std::string* EnumDescriptorProto::add_reserved_name() {
  10141. std::string* _s = _internal_add_reserved_name();
  10142. // @@protoc_insertion_point(field_add_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  10143. return _s;
  10144. }
  10145. inline const std::string& EnumDescriptorProto::_internal_reserved_name(int index) const {
  10146. return _impl_.reserved_name_.Get(index);
  10147. }
  10148. inline const std::string& EnumDescriptorProto::reserved_name(int index) const {
  10149. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_name)
  10150. return _internal_reserved_name(index);
  10151. }
  10152. inline std::string* EnumDescriptorProto::mutable_reserved_name(int index) {
  10153. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  10154. return _impl_.reserved_name_.Mutable(index);
  10155. }
  10156. inline void EnumDescriptorProto::set_reserved_name(int index, const std::string& value) {
  10157. _impl_.reserved_name_.Mutable(index)->assign(value);
  10158. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  10159. }
  10160. inline void EnumDescriptorProto::set_reserved_name(int index, std::string&& value) {
  10161. _impl_.reserved_name_.Mutable(index)->assign(std::move(value));
  10162. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  10163. }
  10164. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value) {
  10165. GOOGLE_DCHECK(value != nullptr);
  10166. _impl_.reserved_name_.Mutable(index)->assign(value);
  10167. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.reserved_name)
  10168. }
  10169. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  10170. _impl_.reserved_name_.Mutable(index)->assign(
  10171. reinterpret_cast<const char*>(value), size);
  10172. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  10173. }
  10174. inline std::string* EnumDescriptorProto::_internal_add_reserved_name() {
  10175. return _impl_.reserved_name_.Add();
  10176. }
  10177. inline void EnumDescriptorProto::add_reserved_name(const std::string& value) {
  10178. _impl_.reserved_name_.Add()->assign(value);
  10179. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  10180. }
  10181. inline void EnumDescriptorProto::add_reserved_name(std::string&& value) {
  10182. _impl_.reserved_name_.Add(std::move(value));
  10183. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  10184. }
  10185. inline void EnumDescriptorProto::add_reserved_name(const char* value) {
  10186. GOOGLE_DCHECK(value != nullptr);
  10187. _impl_.reserved_name_.Add()->assign(value);
  10188. // @@protoc_insertion_point(field_add_char:google.protobuf.EnumDescriptorProto.reserved_name)
  10189. }
  10190. inline void EnumDescriptorProto::add_reserved_name(const char* value, size_t size) {
  10191. _impl_.reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  10192. // @@protoc_insertion_point(field_add_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  10193. }
  10194. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  10195. EnumDescriptorProto::reserved_name() const {
  10196. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_name)
  10197. return _impl_.reserved_name_;
  10198. }
  10199. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  10200. EnumDescriptorProto::mutable_reserved_name() {
  10201. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_name)
  10202. return &_impl_.reserved_name_;
  10203. }
  10204. // -------------------------------------------------------------------
  10205. // EnumValueDescriptorProto
  10206. // optional string name = 1;
  10207. inline bool EnumValueDescriptorProto::_internal_has_name() const {
  10208. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  10209. return value;
  10210. }
  10211. inline bool EnumValueDescriptorProto::has_name() const {
  10212. return _internal_has_name();
  10213. }
  10214. inline void EnumValueDescriptorProto::clear_name() {
  10215. _impl_.name_.ClearToEmpty();
  10216. _impl_._has_bits_[0] &= ~0x00000001u;
  10217. }
  10218. inline const std::string& EnumValueDescriptorProto::name() const {
  10219. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
  10220. return _internal_name();
  10221. }
  10222. template <typename ArgT0, typename... ArgT>
  10223. inline PROTOBUF_ALWAYS_INLINE
  10224. void EnumValueDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  10225. _impl_._has_bits_[0] |= 0x00000001u;
  10226. _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10227. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
  10228. }
  10229. inline std::string* EnumValueDescriptorProto::mutable_name() {
  10230. std::string* _s = _internal_mutable_name();
  10231. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
  10232. return _s;
  10233. }
  10234. inline const std::string& EnumValueDescriptorProto::_internal_name() const {
  10235. return _impl_.name_.Get();
  10236. }
  10237. inline void EnumValueDescriptorProto::_internal_set_name(const std::string& value) {
  10238. _impl_._has_bits_[0] |= 0x00000001u;
  10239. _impl_.name_.Set(value, GetArenaForAllocation());
  10240. }
  10241. inline std::string* EnumValueDescriptorProto::_internal_mutable_name() {
  10242. _impl_._has_bits_[0] |= 0x00000001u;
  10243. return _impl_.name_.Mutable(GetArenaForAllocation());
  10244. }
  10245. inline std::string* EnumValueDescriptorProto::release_name() {
  10246. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.name)
  10247. if (!_internal_has_name()) {
  10248. return nullptr;
  10249. }
  10250. _impl_._has_bits_[0] &= ~0x00000001u;
  10251. auto* p = _impl_.name_.Release();
  10252. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10253. if (_impl_.name_.IsDefault()) {
  10254. _impl_.name_.Set("", GetArenaForAllocation());
  10255. }
  10256. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10257. return p;
  10258. }
  10259. inline void EnumValueDescriptorProto::set_allocated_name(std::string* name) {
  10260. if (name != nullptr) {
  10261. _impl_._has_bits_[0] |= 0x00000001u;
  10262. } else {
  10263. _impl_._has_bits_[0] &= ~0x00000001u;
  10264. }
  10265. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  10266. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10267. if (_impl_.name_.IsDefault()) {
  10268. _impl_.name_.Set("", GetArenaForAllocation());
  10269. }
  10270. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10271. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  10272. }
  10273. // optional int32 number = 2;
  10274. inline bool EnumValueDescriptorProto::_internal_has_number() const {
  10275. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  10276. return value;
  10277. }
  10278. inline bool EnumValueDescriptorProto::has_number() const {
  10279. return _internal_has_number();
  10280. }
  10281. inline void EnumValueDescriptorProto::clear_number() {
  10282. _impl_.number_ = 0;
  10283. _impl_._has_bits_[0] &= ~0x00000004u;
  10284. }
  10285. inline int32_t EnumValueDescriptorProto::_internal_number() const {
  10286. return _impl_.number_;
  10287. }
  10288. inline int32_t EnumValueDescriptorProto::number() const {
  10289. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
  10290. return _internal_number();
  10291. }
  10292. inline void EnumValueDescriptorProto::_internal_set_number(int32_t value) {
  10293. _impl_._has_bits_[0] |= 0x00000004u;
  10294. _impl_.number_ = value;
  10295. }
  10296. inline void EnumValueDescriptorProto::set_number(int32_t value) {
  10297. _internal_set_number(value);
  10298. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
  10299. }
  10300. // optional .google.protobuf.EnumValueOptions options = 3;
  10301. inline bool EnumValueDescriptorProto::_internal_has_options() const {
  10302. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  10303. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  10304. return value;
  10305. }
  10306. inline bool EnumValueDescriptorProto::has_options() const {
  10307. return _internal_has_options();
  10308. }
  10309. inline void EnumValueDescriptorProto::clear_options() {
  10310. if (_impl_.options_ != nullptr) _impl_.options_->Clear();
  10311. _impl_._has_bits_[0] &= ~0x00000002u;
  10312. }
  10313. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& EnumValueDescriptorProto::_internal_options() const {
  10314. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* p = _impl_.options_;
  10315. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions&>(
  10316. ::PROTOBUF_NAMESPACE_ID::_EnumValueOptions_default_instance_);
  10317. }
  10318. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& EnumValueDescriptorProto::options() const {
  10319. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
  10320. return _internal_options();
  10321. }
  10322. inline void EnumValueDescriptorProto::unsafe_arena_set_allocated_options(
  10323. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options) {
  10324. if (GetArenaForAllocation() == nullptr) {
  10325. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  10326. }
  10327. _impl_.options_ = options;
  10328. if (options) {
  10329. _impl_._has_bits_[0] |= 0x00000002u;
  10330. } else {
  10331. _impl_._has_bits_[0] &= ~0x00000002u;
  10332. }
  10333. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  10334. }
  10335. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::release_options() {
  10336. _impl_._has_bits_[0] &= ~0x00000002u;
  10337. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* temp = _impl_.options_;
  10338. _impl_.options_ = nullptr;
  10339. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10340. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10341. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10342. if (GetArenaForAllocation() == nullptr) { delete old; }
  10343. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10344. if (GetArenaForAllocation() != nullptr) {
  10345. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10346. }
  10347. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10348. return temp;
  10349. }
  10350. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::unsafe_arena_release_options() {
  10351. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.options)
  10352. _impl_._has_bits_[0] &= ~0x00000002u;
  10353. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* temp = _impl_.options_;
  10354. _impl_.options_ = nullptr;
  10355. return temp;
  10356. }
  10357. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::_internal_mutable_options() {
  10358. _impl_._has_bits_[0] |= 0x00000002u;
  10359. if (_impl_.options_ == nullptr) {
  10360. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueOptions>(GetArenaForAllocation());
  10361. _impl_.options_ = p;
  10362. }
  10363. return _impl_.options_;
  10364. }
  10365. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
  10366. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* _msg = _internal_mutable_options();
  10367. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
  10368. return _msg;
  10369. }
  10370. inline void EnumValueDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options) {
  10371. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10372. if (message_arena == nullptr) {
  10373. delete _impl_.options_;
  10374. }
  10375. if (options) {
  10376. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10377. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  10378. if (message_arena != submessage_arena) {
  10379. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10380. message_arena, options, submessage_arena);
  10381. }
  10382. _impl_._has_bits_[0] |= 0x00000002u;
  10383. } else {
  10384. _impl_._has_bits_[0] &= ~0x00000002u;
  10385. }
  10386. _impl_.options_ = options;
  10387. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  10388. }
  10389. // -------------------------------------------------------------------
  10390. // ServiceDescriptorProto
  10391. // optional string name = 1;
  10392. inline bool ServiceDescriptorProto::_internal_has_name() const {
  10393. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  10394. return value;
  10395. }
  10396. inline bool ServiceDescriptorProto::has_name() const {
  10397. return _internal_has_name();
  10398. }
  10399. inline void ServiceDescriptorProto::clear_name() {
  10400. _impl_.name_.ClearToEmpty();
  10401. _impl_._has_bits_[0] &= ~0x00000001u;
  10402. }
  10403. inline const std::string& ServiceDescriptorProto::name() const {
  10404. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
  10405. return _internal_name();
  10406. }
  10407. template <typename ArgT0, typename... ArgT>
  10408. inline PROTOBUF_ALWAYS_INLINE
  10409. void ServiceDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  10410. _impl_._has_bits_[0] |= 0x00000001u;
  10411. _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10412. // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
  10413. }
  10414. inline std::string* ServiceDescriptorProto::mutable_name() {
  10415. std::string* _s = _internal_mutable_name();
  10416. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
  10417. return _s;
  10418. }
  10419. inline const std::string& ServiceDescriptorProto::_internal_name() const {
  10420. return _impl_.name_.Get();
  10421. }
  10422. inline void ServiceDescriptorProto::_internal_set_name(const std::string& value) {
  10423. _impl_._has_bits_[0] |= 0x00000001u;
  10424. _impl_.name_.Set(value, GetArenaForAllocation());
  10425. }
  10426. inline std::string* ServiceDescriptorProto::_internal_mutable_name() {
  10427. _impl_._has_bits_[0] |= 0x00000001u;
  10428. return _impl_.name_.Mutable(GetArenaForAllocation());
  10429. }
  10430. inline std::string* ServiceDescriptorProto::release_name() {
  10431. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.name)
  10432. if (!_internal_has_name()) {
  10433. return nullptr;
  10434. }
  10435. _impl_._has_bits_[0] &= ~0x00000001u;
  10436. auto* p = _impl_.name_.Release();
  10437. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10438. if (_impl_.name_.IsDefault()) {
  10439. _impl_.name_.Set("", GetArenaForAllocation());
  10440. }
  10441. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10442. return p;
  10443. }
  10444. inline void ServiceDescriptorProto::set_allocated_name(std::string* name) {
  10445. if (name != nullptr) {
  10446. _impl_._has_bits_[0] |= 0x00000001u;
  10447. } else {
  10448. _impl_._has_bits_[0] &= ~0x00000001u;
  10449. }
  10450. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  10451. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10452. if (_impl_.name_.IsDefault()) {
  10453. _impl_.name_.Set("", GetArenaForAllocation());
  10454. }
  10455. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10456. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  10457. }
  10458. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  10459. inline int ServiceDescriptorProto::_internal_method_size() const {
  10460. return _impl_.method_.size();
  10461. }
  10462. inline int ServiceDescriptorProto::method_size() const {
  10463. return _internal_method_size();
  10464. }
  10465. inline void ServiceDescriptorProto::clear_method() {
  10466. _impl_.method_.Clear();
  10467. }
  10468. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
  10469. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
  10470. return _impl_.method_.Mutable(index);
  10471. }
  10472. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >*
  10473. ServiceDescriptorProto::mutable_method() {
  10474. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
  10475. return &_impl_.method_;
  10476. }
  10477. inline const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& ServiceDescriptorProto::_internal_method(int index) const {
  10478. return _impl_.method_.Get(index);
  10479. }
  10480. inline const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
  10481. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
  10482. return _internal_method(index);
  10483. }
  10484. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::_internal_add_method() {
  10485. return _impl_.method_.Add();
  10486. }
  10487. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
  10488. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* _add = _internal_add_method();
  10489. // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
  10490. return _add;
  10491. }
  10492. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >&
  10493. ServiceDescriptorProto::method() const {
  10494. // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
  10495. return _impl_.method_;
  10496. }
  10497. // optional .google.protobuf.ServiceOptions options = 3;
  10498. inline bool ServiceDescriptorProto::_internal_has_options() const {
  10499. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  10500. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  10501. return value;
  10502. }
  10503. inline bool ServiceDescriptorProto::has_options() const {
  10504. return _internal_has_options();
  10505. }
  10506. inline void ServiceDescriptorProto::clear_options() {
  10507. if (_impl_.options_ != nullptr) _impl_.options_->Clear();
  10508. _impl_._has_bits_[0] &= ~0x00000002u;
  10509. }
  10510. inline const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& ServiceDescriptorProto::_internal_options() const {
  10511. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions* p = _impl_.options_;
  10512. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::ServiceOptions&>(
  10513. ::PROTOBUF_NAMESPACE_ID::_ServiceOptions_default_instance_);
  10514. }
  10515. inline const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& ServiceDescriptorProto::options() const {
  10516. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
  10517. return _internal_options();
  10518. }
  10519. inline void ServiceDescriptorProto::unsafe_arena_set_allocated_options(
  10520. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options) {
  10521. if (GetArenaForAllocation() == nullptr) {
  10522. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  10523. }
  10524. _impl_.options_ = options;
  10525. if (options) {
  10526. _impl_._has_bits_[0] |= 0x00000002u;
  10527. } else {
  10528. _impl_._has_bits_[0] &= ~0x00000002u;
  10529. }
  10530. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  10531. }
  10532. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::release_options() {
  10533. _impl_._has_bits_[0] &= ~0x00000002u;
  10534. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* temp = _impl_.options_;
  10535. _impl_.options_ = nullptr;
  10536. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10537. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10538. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10539. if (GetArenaForAllocation() == nullptr) { delete old; }
  10540. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10541. if (GetArenaForAllocation() != nullptr) {
  10542. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10543. }
  10544. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10545. return temp;
  10546. }
  10547. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::unsafe_arena_release_options() {
  10548. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.options)
  10549. _impl_._has_bits_[0] &= ~0x00000002u;
  10550. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* temp = _impl_.options_;
  10551. _impl_.options_ = nullptr;
  10552. return temp;
  10553. }
  10554. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::_internal_mutable_options() {
  10555. _impl_._has_bits_[0] |= 0x00000002u;
  10556. if (_impl_.options_ == nullptr) {
  10557. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceOptions>(GetArenaForAllocation());
  10558. _impl_.options_ = p;
  10559. }
  10560. return _impl_.options_;
  10561. }
  10562. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::mutable_options() {
  10563. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* _msg = _internal_mutable_options();
  10564. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
  10565. return _msg;
  10566. }
  10567. inline void ServiceDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::ServiceOptions* options) {
  10568. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10569. if (message_arena == nullptr) {
  10570. delete _impl_.options_;
  10571. }
  10572. if (options) {
  10573. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10574. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  10575. if (message_arena != submessage_arena) {
  10576. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10577. message_arena, options, submessage_arena);
  10578. }
  10579. _impl_._has_bits_[0] |= 0x00000002u;
  10580. } else {
  10581. _impl_._has_bits_[0] &= ~0x00000002u;
  10582. }
  10583. _impl_.options_ = options;
  10584. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  10585. }
  10586. // -------------------------------------------------------------------
  10587. // MethodDescriptorProto
  10588. // optional string name = 1;
  10589. inline bool MethodDescriptorProto::_internal_has_name() const {
  10590. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  10591. return value;
  10592. }
  10593. inline bool MethodDescriptorProto::has_name() const {
  10594. return _internal_has_name();
  10595. }
  10596. inline void MethodDescriptorProto::clear_name() {
  10597. _impl_.name_.ClearToEmpty();
  10598. _impl_._has_bits_[0] &= ~0x00000001u;
  10599. }
  10600. inline const std::string& MethodDescriptorProto::name() const {
  10601. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
  10602. return _internal_name();
  10603. }
  10604. template <typename ArgT0, typename... ArgT>
  10605. inline PROTOBUF_ALWAYS_INLINE
  10606. void MethodDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  10607. _impl_._has_bits_[0] |= 0x00000001u;
  10608. _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10609. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
  10610. }
  10611. inline std::string* MethodDescriptorProto::mutable_name() {
  10612. std::string* _s = _internal_mutable_name();
  10613. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
  10614. return _s;
  10615. }
  10616. inline const std::string& MethodDescriptorProto::_internal_name() const {
  10617. return _impl_.name_.Get();
  10618. }
  10619. inline void MethodDescriptorProto::_internal_set_name(const std::string& value) {
  10620. _impl_._has_bits_[0] |= 0x00000001u;
  10621. _impl_.name_.Set(value, GetArenaForAllocation());
  10622. }
  10623. inline std::string* MethodDescriptorProto::_internal_mutable_name() {
  10624. _impl_._has_bits_[0] |= 0x00000001u;
  10625. return _impl_.name_.Mutable(GetArenaForAllocation());
  10626. }
  10627. inline std::string* MethodDescriptorProto::release_name() {
  10628. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.name)
  10629. if (!_internal_has_name()) {
  10630. return nullptr;
  10631. }
  10632. _impl_._has_bits_[0] &= ~0x00000001u;
  10633. auto* p = _impl_.name_.Release();
  10634. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10635. if (_impl_.name_.IsDefault()) {
  10636. _impl_.name_.Set("", GetArenaForAllocation());
  10637. }
  10638. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10639. return p;
  10640. }
  10641. inline void MethodDescriptorProto::set_allocated_name(std::string* name) {
  10642. if (name != nullptr) {
  10643. _impl_._has_bits_[0] |= 0x00000001u;
  10644. } else {
  10645. _impl_._has_bits_[0] &= ~0x00000001u;
  10646. }
  10647. _impl_.name_.SetAllocated(name, GetArenaForAllocation());
  10648. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10649. if (_impl_.name_.IsDefault()) {
  10650. _impl_.name_.Set("", GetArenaForAllocation());
  10651. }
  10652. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10653. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
  10654. }
  10655. // optional string input_type = 2;
  10656. inline bool MethodDescriptorProto::_internal_has_input_type() const {
  10657. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  10658. return value;
  10659. }
  10660. inline bool MethodDescriptorProto::has_input_type() const {
  10661. return _internal_has_input_type();
  10662. }
  10663. inline void MethodDescriptorProto::clear_input_type() {
  10664. _impl_.input_type_.ClearToEmpty();
  10665. _impl_._has_bits_[0] &= ~0x00000002u;
  10666. }
  10667. inline const std::string& MethodDescriptorProto::input_type() const {
  10668. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
  10669. return _internal_input_type();
  10670. }
  10671. template <typename ArgT0, typename... ArgT>
  10672. inline PROTOBUF_ALWAYS_INLINE
  10673. void MethodDescriptorProto::set_input_type(ArgT0&& arg0, ArgT... args) {
  10674. _impl_._has_bits_[0] |= 0x00000002u;
  10675. _impl_.input_type_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10676. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
  10677. }
  10678. inline std::string* MethodDescriptorProto::mutable_input_type() {
  10679. std::string* _s = _internal_mutable_input_type();
  10680. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
  10681. return _s;
  10682. }
  10683. inline const std::string& MethodDescriptorProto::_internal_input_type() const {
  10684. return _impl_.input_type_.Get();
  10685. }
  10686. inline void MethodDescriptorProto::_internal_set_input_type(const std::string& value) {
  10687. _impl_._has_bits_[0] |= 0x00000002u;
  10688. _impl_.input_type_.Set(value, GetArenaForAllocation());
  10689. }
  10690. inline std::string* MethodDescriptorProto::_internal_mutable_input_type() {
  10691. _impl_._has_bits_[0] |= 0x00000002u;
  10692. return _impl_.input_type_.Mutable(GetArenaForAllocation());
  10693. }
  10694. inline std::string* MethodDescriptorProto::release_input_type() {
  10695. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.input_type)
  10696. if (!_internal_has_input_type()) {
  10697. return nullptr;
  10698. }
  10699. _impl_._has_bits_[0] &= ~0x00000002u;
  10700. auto* p = _impl_.input_type_.Release();
  10701. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10702. if (_impl_.input_type_.IsDefault()) {
  10703. _impl_.input_type_.Set("", GetArenaForAllocation());
  10704. }
  10705. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10706. return p;
  10707. }
  10708. inline void MethodDescriptorProto::set_allocated_input_type(std::string* input_type) {
  10709. if (input_type != nullptr) {
  10710. _impl_._has_bits_[0] |= 0x00000002u;
  10711. } else {
  10712. _impl_._has_bits_[0] &= ~0x00000002u;
  10713. }
  10714. _impl_.input_type_.SetAllocated(input_type, GetArenaForAllocation());
  10715. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10716. if (_impl_.input_type_.IsDefault()) {
  10717. _impl_.input_type_.Set("", GetArenaForAllocation());
  10718. }
  10719. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10720. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  10721. }
  10722. // optional string output_type = 3;
  10723. inline bool MethodDescriptorProto::_internal_has_output_type() const {
  10724. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  10725. return value;
  10726. }
  10727. inline bool MethodDescriptorProto::has_output_type() const {
  10728. return _internal_has_output_type();
  10729. }
  10730. inline void MethodDescriptorProto::clear_output_type() {
  10731. _impl_.output_type_.ClearToEmpty();
  10732. _impl_._has_bits_[0] &= ~0x00000004u;
  10733. }
  10734. inline const std::string& MethodDescriptorProto::output_type() const {
  10735. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
  10736. return _internal_output_type();
  10737. }
  10738. template <typename ArgT0, typename... ArgT>
  10739. inline PROTOBUF_ALWAYS_INLINE
  10740. void MethodDescriptorProto::set_output_type(ArgT0&& arg0, ArgT... args) {
  10741. _impl_._has_bits_[0] |= 0x00000004u;
  10742. _impl_.output_type_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10743. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
  10744. }
  10745. inline std::string* MethodDescriptorProto::mutable_output_type() {
  10746. std::string* _s = _internal_mutable_output_type();
  10747. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
  10748. return _s;
  10749. }
  10750. inline const std::string& MethodDescriptorProto::_internal_output_type() const {
  10751. return _impl_.output_type_.Get();
  10752. }
  10753. inline void MethodDescriptorProto::_internal_set_output_type(const std::string& value) {
  10754. _impl_._has_bits_[0] |= 0x00000004u;
  10755. _impl_.output_type_.Set(value, GetArenaForAllocation());
  10756. }
  10757. inline std::string* MethodDescriptorProto::_internal_mutable_output_type() {
  10758. _impl_._has_bits_[0] |= 0x00000004u;
  10759. return _impl_.output_type_.Mutable(GetArenaForAllocation());
  10760. }
  10761. inline std::string* MethodDescriptorProto::release_output_type() {
  10762. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.output_type)
  10763. if (!_internal_has_output_type()) {
  10764. return nullptr;
  10765. }
  10766. _impl_._has_bits_[0] &= ~0x00000004u;
  10767. auto* p = _impl_.output_type_.Release();
  10768. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10769. if (_impl_.output_type_.IsDefault()) {
  10770. _impl_.output_type_.Set("", GetArenaForAllocation());
  10771. }
  10772. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10773. return p;
  10774. }
  10775. inline void MethodDescriptorProto::set_allocated_output_type(std::string* output_type) {
  10776. if (output_type != nullptr) {
  10777. _impl_._has_bits_[0] |= 0x00000004u;
  10778. } else {
  10779. _impl_._has_bits_[0] &= ~0x00000004u;
  10780. }
  10781. _impl_.output_type_.SetAllocated(output_type, GetArenaForAllocation());
  10782. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10783. if (_impl_.output_type_.IsDefault()) {
  10784. _impl_.output_type_.Set("", GetArenaForAllocation());
  10785. }
  10786. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10787. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  10788. }
  10789. // optional .google.protobuf.MethodOptions options = 4;
  10790. inline bool MethodDescriptorProto::_internal_has_options() const {
  10791. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  10792. PROTOBUF_ASSUME(!value || _impl_.options_ != nullptr);
  10793. return value;
  10794. }
  10795. inline bool MethodDescriptorProto::has_options() const {
  10796. return _internal_has_options();
  10797. }
  10798. inline void MethodDescriptorProto::clear_options() {
  10799. if (_impl_.options_ != nullptr) _impl_.options_->Clear();
  10800. _impl_._has_bits_[0] &= ~0x00000008u;
  10801. }
  10802. inline const ::PROTOBUF_NAMESPACE_ID::MethodOptions& MethodDescriptorProto::_internal_options() const {
  10803. const ::PROTOBUF_NAMESPACE_ID::MethodOptions* p = _impl_.options_;
  10804. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::MethodOptions&>(
  10805. ::PROTOBUF_NAMESPACE_ID::_MethodOptions_default_instance_);
  10806. }
  10807. inline const ::PROTOBUF_NAMESPACE_ID::MethodOptions& MethodDescriptorProto::options() const {
  10808. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
  10809. return _internal_options();
  10810. }
  10811. inline void MethodDescriptorProto::unsafe_arena_set_allocated_options(
  10812. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options) {
  10813. if (GetArenaForAllocation() == nullptr) {
  10814. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
  10815. }
  10816. _impl_.options_ = options;
  10817. if (options) {
  10818. _impl_._has_bits_[0] |= 0x00000008u;
  10819. } else {
  10820. _impl_._has_bits_[0] &= ~0x00000008u;
  10821. }
  10822. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.options)
  10823. }
  10824. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::release_options() {
  10825. _impl_._has_bits_[0] &= ~0x00000008u;
  10826. ::PROTOBUF_NAMESPACE_ID::MethodOptions* temp = _impl_.options_;
  10827. _impl_.options_ = nullptr;
  10828. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10829. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10830. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10831. if (GetArenaForAllocation() == nullptr) { delete old; }
  10832. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10833. if (GetArenaForAllocation() != nullptr) {
  10834. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10835. }
  10836. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10837. return temp;
  10838. }
  10839. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::unsafe_arena_release_options() {
  10840. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.options)
  10841. _impl_._has_bits_[0] &= ~0x00000008u;
  10842. ::PROTOBUF_NAMESPACE_ID::MethodOptions* temp = _impl_.options_;
  10843. _impl_.options_ = nullptr;
  10844. return temp;
  10845. }
  10846. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::_internal_mutable_options() {
  10847. _impl_._has_bits_[0] |= 0x00000008u;
  10848. if (_impl_.options_ == nullptr) {
  10849. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodOptions>(GetArenaForAllocation());
  10850. _impl_.options_ = p;
  10851. }
  10852. return _impl_.options_;
  10853. }
  10854. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::mutable_options() {
  10855. ::PROTOBUF_NAMESPACE_ID::MethodOptions* _msg = _internal_mutable_options();
  10856. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
  10857. return _msg;
  10858. }
  10859. inline void MethodDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::MethodOptions* options) {
  10860. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10861. if (message_arena == nullptr) {
  10862. delete _impl_.options_;
  10863. }
  10864. if (options) {
  10865. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10866. ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
  10867. if (message_arena != submessage_arena) {
  10868. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10869. message_arena, options, submessage_arena);
  10870. }
  10871. _impl_._has_bits_[0] |= 0x00000008u;
  10872. } else {
  10873. _impl_._has_bits_[0] &= ~0x00000008u;
  10874. }
  10875. _impl_.options_ = options;
  10876. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
  10877. }
  10878. // optional bool client_streaming = 5 [default = false];
  10879. inline bool MethodDescriptorProto::_internal_has_client_streaming() const {
  10880. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  10881. return value;
  10882. }
  10883. inline bool MethodDescriptorProto::has_client_streaming() const {
  10884. return _internal_has_client_streaming();
  10885. }
  10886. inline void MethodDescriptorProto::clear_client_streaming() {
  10887. _impl_.client_streaming_ = false;
  10888. _impl_._has_bits_[0] &= ~0x00000010u;
  10889. }
  10890. inline bool MethodDescriptorProto::_internal_client_streaming() const {
  10891. return _impl_.client_streaming_;
  10892. }
  10893. inline bool MethodDescriptorProto::client_streaming() const {
  10894. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming)
  10895. return _internal_client_streaming();
  10896. }
  10897. inline void MethodDescriptorProto::_internal_set_client_streaming(bool value) {
  10898. _impl_._has_bits_[0] |= 0x00000010u;
  10899. _impl_.client_streaming_ = value;
  10900. }
  10901. inline void MethodDescriptorProto::set_client_streaming(bool value) {
  10902. _internal_set_client_streaming(value);
  10903. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming)
  10904. }
  10905. // optional bool server_streaming = 6 [default = false];
  10906. inline bool MethodDescriptorProto::_internal_has_server_streaming() const {
  10907. bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  10908. return value;
  10909. }
  10910. inline bool MethodDescriptorProto::has_server_streaming() const {
  10911. return _internal_has_server_streaming();
  10912. }
  10913. inline void MethodDescriptorProto::clear_server_streaming() {
  10914. _impl_.server_streaming_ = false;
  10915. _impl_._has_bits_[0] &= ~0x00000020u;
  10916. }
  10917. inline bool MethodDescriptorProto::_internal_server_streaming() const {
  10918. return _impl_.server_streaming_;
  10919. }
  10920. inline bool MethodDescriptorProto::server_streaming() const {
  10921. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming)
  10922. return _internal_server_streaming();
  10923. }
  10924. inline void MethodDescriptorProto::_internal_set_server_streaming(bool value) {
  10925. _impl_._has_bits_[0] |= 0x00000020u;
  10926. _impl_.server_streaming_ = value;
  10927. }
  10928. inline void MethodDescriptorProto::set_server_streaming(bool value) {
  10929. _internal_set_server_streaming(value);
  10930. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming)
  10931. }
  10932. // -------------------------------------------------------------------
  10933. // FileOptions
  10934. // optional string java_package = 1;
  10935. inline bool FileOptions::_internal_has_java_package() const {
  10936. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  10937. return value;
  10938. }
  10939. inline bool FileOptions::has_java_package() const {
  10940. return _internal_has_java_package();
  10941. }
  10942. inline void FileOptions::clear_java_package() {
  10943. _impl_.java_package_.ClearToEmpty();
  10944. _impl_._has_bits_[0] &= ~0x00000001u;
  10945. }
  10946. inline const std::string& FileOptions::java_package() const {
  10947. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
  10948. return _internal_java_package();
  10949. }
  10950. template <typename ArgT0, typename... ArgT>
  10951. inline PROTOBUF_ALWAYS_INLINE
  10952. void FileOptions::set_java_package(ArgT0&& arg0, ArgT... args) {
  10953. _impl_._has_bits_[0] |= 0x00000001u;
  10954. _impl_.java_package_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10955. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
  10956. }
  10957. inline std::string* FileOptions::mutable_java_package() {
  10958. std::string* _s = _internal_mutable_java_package();
  10959. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
  10960. return _s;
  10961. }
  10962. inline const std::string& FileOptions::_internal_java_package() const {
  10963. return _impl_.java_package_.Get();
  10964. }
  10965. inline void FileOptions::_internal_set_java_package(const std::string& value) {
  10966. _impl_._has_bits_[0] |= 0x00000001u;
  10967. _impl_.java_package_.Set(value, GetArenaForAllocation());
  10968. }
  10969. inline std::string* FileOptions::_internal_mutable_java_package() {
  10970. _impl_._has_bits_[0] |= 0x00000001u;
  10971. return _impl_.java_package_.Mutable(GetArenaForAllocation());
  10972. }
  10973. inline std::string* FileOptions::release_java_package() {
  10974. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_package)
  10975. if (!_internal_has_java_package()) {
  10976. return nullptr;
  10977. }
  10978. _impl_._has_bits_[0] &= ~0x00000001u;
  10979. auto* p = _impl_.java_package_.Release();
  10980. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10981. if (_impl_.java_package_.IsDefault()) {
  10982. _impl_.java_package_.Set("", GetArenaForAllocation());
  10983. }
  10984. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10985. return p;
  10986. }
  10987. inline void FileOptions::set_allocated_java_package(std::string* java_package) {
  10988. if (java_package != nullptr) {
  10989. _impl_._has_bits_[0] |= 0x00000001u;
  10990. } else {
  10991. _impl_._has_bits_[0] &= ~0x00000001u;
  10992. }
  10993. _impl_.java_package_.SetAllocated(java_package, GetArenaForAllocation());
  10994. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10995. if (_impl_.java_package_.IsDefault()) {
  10996. _impl_.java_package_.Set("", GetArenaForAllocation());
  10997. }
  10998. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10999. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
  11000. }
  11001. // optional string java_outer_classname = 8;
  11002. inline bool FileOptions::_internal_has_java_outer_classname() const {
  11003. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  11004. return value;
  11005. }
  11006. inline bool FileOptions::has_java_outer_classname() const {
  11007. return _internal_has_java_outer_classname();
  11008. }
  11009. inline void FileOptions::clear_java_outer_classname() {
  11010. _impl_.java_outer_classname_.ClearToEmpty();
  11011. _impl_._has_bits_[0] &= ~0x00000002u;
  11012. }
  11013. inline const std::string& FileOptions::java_outer_classname() const {
  11014. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
  11015. return _internal_java_outer_classname();
  11016. }
  11017. template <typename ArgT0, typename... ArgT>
  11018. inline PROTOBUF_ALWAYS_INLINE
  11019. void FileOptions::set_java_outer_classname(ArgT0&& arg0, ArgT... args) {
  11020. _impl_._has_bits_[0] |= 0x00000002u;
  11021. _impl_.java_outer_classname_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11022. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
  11023. }
  11024. inline std::string* FileOptions::mutable_java_outer_classname() {
  11025. std::string* _s = _internal_mutable_java_outer_classname();
  11026. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
  11027. return _s;
  11028. }
  11029. inline const std::string& FileOptions::_internal_java_outer_classname() const {
  11030. return _impl_.java_outer_classname_.Get();
  11031. }
  11032. inline void FileOptions::_internal_set_java_outer_classname(const std::string& value) {
  11033. _impl_._has_bits_[0] |= 0x00000002u;
  11034. _impl_.java_outer_classname_.Set(value, GetArenaForAllocation());
  11035. }
  11036. inline std::string* FileOptions::_internal_mutable_java_outer_classname() {
  11037. _impl_._has_bits_[0] |= 0x00000002u;
  11038. return _impl_.java_outer_classname_.Mutable(GetArenaForAllocation());
  11039. }
  11040. inline std::string* FileOptions::release_java_outer_classname() {
  11041. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_outer_classname)
  11042. if (!_internal_has_java_outer_classname()) {
  11043. return nullptr;
  11044. }
  11045. _impl_._has_bits_[0] &= ~0x00000002u;
  11046. auto* p = _impl_.java_outer_classname_.Release();
  11047. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11048. if (_impl_.java_outer_classname_.IsDefault()) {
  11049. _impl_.java_outer_classname_.Set("", GetArenaForAllocation());
  11050. }
  11051. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11052. return p;
  11053. }
  11054. inline void FileOptions::set_allocated_java_outer_classname(std::string* java_outer_classname) {
  11055. if (java_outer_classname != nullptr) {
  11056. _impl_._has_bits_[0] |= 0x00000002u;
  11057. } else {
  11058. _impl_._has_bits_[0] &= ~0x00000002u;
  11059. }
  11060. _impl_.java_outer_classname_.SetAllocated(java_outer_classname, GetArenaForAllocation());
  11061. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11062. if (_impl_.java_outer_classname_.IsDefault()) {
  11063. _impl_.java_outer_classname_.Set("", GetArenaForAllocation());
  11064. }
  11065. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11066. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  11067. }
  11068. // optional bool java_multiple_files = 10 [default = false];
  11069. inline bool FileOptions::_internal_has_java_multiple_files() const {
  11070. bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
  11071. return value;
  11072. }
  11073. inline bool FileOptions::has_java_multiple_files() const {
  11074. return _internal_has_java_multiple_files();
  11075. }
  11076. inline void FileOptions::clear_java_multiple_files() {
  11077. _impl_.java_multiple_files_ = false;
  11078. _impl_._has_bits_[0] &= ~0x00000400u;
  11079. }
  11080. inline bool FileOptions::_internal_java_multiple_files() const {
  11081. return _impl_.java_multiple_files_;
  11082. }
  11083. inline bool FileOptions::java_multiple_files() const {
  11084. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
  11085. return _internal_java_multiple_files();
  11086. }
  11087. inline void FileOptions::_internal_set_java_multiple_files(bool value) {
  11088. _impl_._has_bits_[0] |= 0x00000400u;
  11089. _impl_.java_multiple_files_ = value;
  11090. }
  11091. inline void FileOptions::set_java_multiple_files(bool value) {
  11092. _internal_set_java_multiple_files(value);
  11093. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
  11094. }
  11095. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  11096. inline bool FileOptions::_internal_has_java_generate_equals_and_hash() const {
  11097. bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0;
  11098. return value;
  11099. }
  11100. inline bool FileOptions::has_java_generate_equals_and_hash() const {
  11101. return _internal_has_java_generate_equals_and_hash();
  11102. }
  11103. inline void FileOptions::clear_java_generate_equals_and_hash() {
  11104. _impl_.java_generate_equals_and_hash_ = false;
  11105. _impl_._has_bits_[0] &= ~0x00000800u;
  11106. }
  11107. inline bool FileOptions::_internal_java_generate_equals_and_hash() const {
  11108. return _impl_.java_generate_equals_and_hash_;
  11109. }
  11110. inline bool FileOptions::java_generate_equals_and_hash() const {
  11111. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
  11112. return _internal_java_generate_equals_and_hash();
  11113. }
  11114. inline void FileOptions::_internal_set_java_generate_equals_and_hash(bool value) {
  11115. _impl_._has_bits_[0] |= 0x00000800u;
  11116. _impl_.java_generate_equals_and_hash_ = value;
  11117. }
  11118. inline void FileOptions::set_java_generate_equals_and_hash(bool value) {
  11119. _internal_set_java_generate_equals_and_hash(value);
  11120. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
  11121. }
  11122. // optional bool java_string_check_utf8 = 27 [default = false];
  11123. inline bool FileOptions::_internal_has_java_string_check_utf8() const {
  11124. bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0;
  11125. return value;
  11126. }
  11127. inline bool FileOptions::has_java_string_check_utf8() const {
  11128. return _internal_has_java_string_check_utf8();
  11129. }
  11130. inline void FileOptions::clear_java_string_check_utf8() {
  11131. _impl_.java_string_check_utf8_ = false;
  11132. _impl_._has_bits_[0] &= ~0x00001000u;
  11133. }
  11134. inline bool FileOptions::_internal_java_string_check_utf8() const {
  11135. return _impl_.java_string_check_utf8_;
  11136. }
  11137. inline bool FileOptions::java_string_check_utf8() const {
  11138. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
  11139. return _internal_java_string_check_utf8();
  11140. }
  11141. inline void FileOptions::_internal_set_java_string_check_utf8(bool value) {
  11142. _impl_._has_bits_[0] |= 0x00001000u;
  11143. _impl_.java_string_check_utf8_ = value;
  11144. }
  11145. inline void FileOptions::set_java_string_check_utf8(bool value) {
  11146. _internal_set_java_string_check_utf8(value);
  11147. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
  11148. }
  11149. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  11150. inline bool FileOptions::_internal_has_optimize_for() const {
  11151. bool value = (_impl_._has_bits_[0] & 0x00040000u) != 0;
  11152. return value;
  11153. }
  11154. inline bool FileOptions::has_optimize_for() const {
  11155. return _internal_has_optimize_for();
  11156. }
  11157. inline void FileOptions::clear_optimize_for() {
  11158. _impl_.optimize_for_ = 1;
  11159. _impl_._has_bits_[0] &= ~0x00040000u;
  11160. }
  11161. inline ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode FileOptions::_internal_optimize_for() const {
  11162. return static_cast< ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode >(_impl_.optimize_for_);
  11163. }
  11164. inline ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode FileOptions::optimize_for() const {
  11165. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
  11166. return _internal_optimize_for();
  11167. }
  11168. inline void FileOptions::_internal_set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value) {
  11169. assert(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_IsValid(value));
  11170. _impl_._has_bits_[0] |= 0x00040000u;
  11171. _impl_.optimize_for_ = value;
  11172. }
  11173. inline void FileOptions::set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value) {
  11174. _internal_set_optimize_for(value);
  11175. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
  11176. }
  11177. // optional string go_package = 11;
  11178. inline bool FileOptions::_internal_has_go_package() const {
  11179. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  11180. return value;
  11181. }
  11182. inline bool FileOptions::has_go_package() const {
  11183. return _internal_has_go_package();
  11184. }
  11185. inline void FileOptions::clear_go_package() {
  11186. _impl_.go_package_.ClearToEmpty();
  11187. _impl_._has_bits_[0] &= ~0x00000004u;
  11188. }
  11189. inline const std::string& FileOptions::go_package() const {
  11190. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
  11191. return _internal_go_package();
  11192. }
  11193. template <typename ArgT0, typename... ArgT>
  11194. inline PROTOBUF_ALWAYS_INLINE
  11195. void FileOptions::set_go_package(ArgT0&& arg0, ArgT... args) {
  11196. _impl_._has_bits_[0] |= 0x00000004u;
  11197. _impl_.go_package_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11198. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
  11199. }
  11200. inline std::string* FileOptions::mutable_go_package() {
  11201. std::string* _s = _internal_mutable_go_package();
  11202. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
  11203. return _s;
  11204. }
  11205. inline const std::string& FileOptions::_internal_go_package() const {
  11206. return _impl_.go_package_.Get();
  11207. }
  11208. inline void FileOptions::_internal_set_go_package(const std::string& value) {
  11209. _impl_._has_bits_[0] |= 0x00000004u;
  11210. _impl_.go_package_.Set(value, GetArenaForAllocation());
  11211. }
  11212. inline std::string* FileOptions::_internal_mutable_go_package() {
  11213. _impl_._has_bits_[0] |= 0x00000004u;
  11214. return _impl_.go_package_.Mutable(GetArenaForAllocation());
  11215. }
  11216. inline std::string* FileOptions::release_go_package() {
  11217. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_package)
  11218. if (!_internal_has_go_package()) {
  11219. return nullptr;
  11220. }
  11221. _impl_._has_bits_[0] &= ~0x00000004u;
  11222. auto* p = _impl_.go_package_.Release();
  11223. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11224. if (_impl_.go_package_.IsDefault()) {
  11225. _impl_.go_package_.Set("", GetArenaForAllocation());
  11226. }
  11227. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11228. return p;
  11229. }
  11230. inline void FileOptions::set_allocated_go_package(std::string* go_package) {
  11231. if (go_package != nullptr) {
  11232. _impl_._has_bits_[0] |= 0x00000004u;
  11233. } else {
  11234. _impl_._has_bits_[0] &= ~0x00000004u;
  11235. }
  11236. _impl_.go_package_.SetAllocated(go_package, GetArenaForAllocation());
  11237. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11238. if (_impl_.go_package_.IsDefault()) {
  11239. _impl_.go_package_.Set("", GetArenaForAllocation());
  11240. }
  11241. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11242. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
  11243. }
  11244. // optional bool cc_generic_services = 16 [default = false];
  11245. inline bool FileOptions::_internal_has_cc_generic_services() const {
  11246. bool value = (_impl_._has_bits_[0] & 0x00002000u) != 0;
  11247. return value;
  11248. }
  11249. inline bool FileOptions::has_cc_generic_services() const {
  11250. return _internal_has_cc_generic_services();
  11251. }
  11252. inline void FileOptions::clear_cc_generic_services() {
  11253. _impl_.cc_generic_services_ = false;
  11254. _impl_._has_bits_[0] &= ~0x00002000u;
  11255. }
  11256. inline bool FileOptions::_internal_cc_generic_services() const {
  11257. return _impl_.cc_generic_services_;
  11258. }
  11259. inline bool FileOptions::cc_generic_services() const {
  11260. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
  11261. return _internal_cc_generic_services();
  11262. }
  11263. inline void FileOptions::_internal_set_cc_generic_services(bool value) {
  11264. _impl_._has_bits_[0] |= 0x00002000u;
  11265. _impl_.cc_generic_services_ = value;
  11266. }
  11267. inline void FileOptions::set_cc_generic_services(bool value) {
  11268. _internal_set_cc_generic_services(value);
  11269. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
  11270. }
  11271. // optional bool java_generic_services = 17 [default = false];
  11272. inline bool FileOptions::_internal_has_java_generic_services() const {
  11273. bool value = (_impl_._has_bits_[0] & 0x00004000u) != 0;
  11274. return value;
  11275. }
  11276. inline bool FileOptions::has_java_generic_services() const {
  11277. return _internal_has_java_generic_services();
  11278. }
  11279. inline void FileOptions::clear_java_generic_services() {
  11280. _impl_.java_generic_services_ = false;
  11281. _impl_._has_bits_[0] &= ~0x00004000u;
  11282. }
  11283. inline bool FileOptions::_internal_java_generic_services() const {
  11284. return _impl_.java_generic_services_;
  11285. }
  11286. inline bool FileOptions::java_generic_services() const {
  11287. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
  11288. return _internal_java_generic_services();
  11289. }
  11290. inline void FileOptions::_internal_set_java_generic_services(bool value) {
  11291. _impl_._has_bits_[0] |= 0x00004000u;
  11292. _impl_.java_generic_services_ = value;
  11293. }
  11294. inline void FileOptions::set_java_generic_services(bool value) {
  11295. _internal_set_java_generic_services(value);
  11296. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
  11297. }
  11298. // optional bool py_generic_services = 18 [default = false];
  11299. inline bool FileOptions::_internal_has_py_generic_services() const {
  11300. bool value = (_impl_._has_bits_[0] & 0x00008000u) != 0;
  11301. return value;
  11302. }
  11303. inline bool FileOptions::has_py_generic_services() const {
  11304. return _internal_has_py_generic_services();
  11305. }
  11306. inline void FileOptions::clear_py_generic_services() {
  11307. _impl_.py_generic_services_ = false;
  11308. _impl_._has_bits_[0] &= ~0x00008000u;
  11309. }
  11310. inline bool FileOptions::_internal_py_generic_services() const {
  11311. return _impl_.py_generic_services_;
  11312. }
  11313. inline bool FileOptions::py_generic_services() const {
  11314. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
  11315. return _internal_py_generic_services();
  11316. }
  11317. inline void FileOptions::_internal_set_py_generic_services(bool value) {
  11318. _impl_._has_bits_[0] |= 0x00008000u;
  11319. _impl_.py_generic_services_ = value;
  11320. }
  11321. inline void FileOptions::set_py_generic_services(bool value) {
  11322. _internal_set_py_generic_services(value);
  11323. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
  11324. }
  11325. // optional bool php_generic_services = 42 [default = false];
  11326. inline bool FileOptions::_internal_has_php_generic_services() const {
  11327. bool value = (_impl_._has_bits_[0] & 0x00010000u) != 0;
  11328. return value;
  11329. }
  11330. inline bool FileOptions::has_php_generic_services() const {
  11331. return _internal_has_php_generic_services();
  11332. }
  11333. inline void FileOptions::clear_php_generic_services() {
  11334. _impl_.php_generic_services_ = false;
  11335. _impl_._has_bits_[0] &= ~0x00010000u;
  11336. }
  11337. inline bool FileOptions::_internal_php_generic_services() const {
  11338. return _impl_.php_generic_services_;
  11339. }
  11340. inline bool FileOptions::php_generic_services() const {
  11341. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_generic_services)
  11342. return _internal_php_generic_services();
  11343. }
  11344. inline void FileOptions::_internal_set_php_generic_services(bool value) {
  11345. _impl_._has_bits_[0] |= 0x00010000u;
  11346. _impl_.php_generic_services_ = value;
  11347. }
  11348. inline void FileOptions::set_php_generic_services(bool value) {
  11349. _internal_set_php_generic_services(value);
  11350. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_generic_services)
  11351. }
  11352. // optional bool deprecated = 23 [default = false];
  11353. inline bool FileOptions::_internal_has_deprecated() const {
  11354. bool value = (_impl_._has_bits_[0] & 0x00020000u) != 0;
  11355. return value;
  11356. }
  11357. inline bool FileOptions::has_deprecated() const {
  11358. return _internal_has_deprecated();
  11359. }
  11360. inline void FileOptions::clear_deprecated() {
  11361. _impl_.deprecated_ = false;
  11362. _impl_._has_bits_[0] &= ~0x00020000u;
  11363. }
  11364. inline bool FileOptions::_internal_deprecated() const {
  11365. return _impl_.deprecated_;
  11366. }
  11367. inline bool FileOptions::deprecated() const {
  11368. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
  11369. return _internal_deprecated();
  11370. }
  11371. inline void FileOptions::_internal_set_deprecated(bool value) {
  11372. _impl_._has_bits_[0] |= 0x00020000u;
  11373. _impl_.deprecated_ = value;
  11374. }
  11375. inline void FileOptions::set_deprecated(bool value) {
  11376. _internal_set_deprecated(value);
  11377. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
  11378. }
  11379. // optional bool cc_enable_arenas = 31 [default = true];
  11380. inline bool FileOptions::_internal_has_cc_enable_arenas() const {
  11381. bool value = (_impl_._has_bits_[0] & 0x00080000u) != 0;
  11382. return value;
  11383. }
  11384. inline bool FileOptions::has_cc_enable_arenas() const {
  11385. return _internal_has_cc_enable_arenas();
  11386. }
  11387. inline void FileOptions::clear_cc_enable_arenas() {
  11388. _impl_.cc_enable_arenas_ = true;
  11389. _impl_._has_bits_[0] &= ~0x00080000u;
  11390. }
  11391. inline bool FileOptions::_internal_cc_enable_arenas() const {
  11392. return _impl_.cc_enable_arenas_;
  11393. }
  11394. inline bool FileOptions::cc_enable_arenas() const {
  11395. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas)
  11396. return _internal_cc_enable_arenas();
  11397. }
  11398. inline void FileOptions::_internal_set_cc_enable_arenas(bool value) {
  11399. _impl_._has_bits_[0] |= 0x00080000u;
  11400. _impl_.cc_enable_arenas_ = value;
  11401. }
  11402. inline void FileOptions::set_cc_enable_arenas(bool value) {
  11403. _internal_set_cc_enable_arenas(value);
  11404. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas)
  11405. }
  11406. // optional string objc_class_prefix = 36;
  11407. inline bool FileOptions::_internal_has_objc_class_prefix() const {
  11408. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  11409. return value;
  11410. }
  11411. inline bool FileOptions::has_objc_class_prefix() const {
  11412. return _internal_has_objc_class_prefix();
  11413. }
  11414. inline void FileOptions::clear_objc_class_prefix() {
  11415. _impl_.objc_class_prefix_.ClearToEmpty();
  11416. _impl_._has_bits_[0] &= ~0x00000008u;
  11417. }
  11418. inline const std::string& FileOptions::objc_class_prefix() const {
  11419. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix)
  11420. return _internal_objc_class_prefix();
  11421. }
  11422. template <typename ArgT0, typename... ArgT>
  11423. inline PROTOBUF_ALWAYS_INLINE
  11424. void FileOptions::set_objc_class_prefix(ArgT0&& arg0, ArgT... args) {
  11425. _impl_._has_bits_[0] |= 0x00000008u;
  11426. _impl_.objc_class_prefix_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11427. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix)
  11428. }
  11429. inline std::string* FileOptions::mutable_objc_class_prefix() {
  11430. std::string* _s = _internal_mutable_objc_class_prefix();
  11431. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix)
  11432. return _s;
  11433. }
  11434. inline const std::string& FileOptions::_internal_objc_class_prefix() const {
  11435. return _impl_.objc_class_prefix_.Get();
  11436. }
  11437. inline void FileOptions::_internal_set_objc_class_prefix(const std::string& value) {
  11438. _impl_._has_bits_[0] |= 0x00000008u;
  11439. _impl_.objc_class_prefix_.Set(value, GetArenaForAllocation());
  11440. }
  11441. inline std::string* FileOptions::_internal_mutable_objc_class_prefix() {
  11442. _impl_._has_bits_[0] |= 0x00000008u;
  11443. return _impl_.objc_class_prefix_.Mutable(GetArenaForAllocation());
  11444. }
  11445. inline std::string* FileOptions::release_objc_class_prefix() {
  11446. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_class_prefix)
  11447. if (!_internal_has_objc_class_prefix()) {
  11448. return nullptr;
  11449. }
  11450. _impl_._has_bits_[0] &= ~0x00000008u;
  11451. auto* p = _impl_.objc_class_prefix_.Release();
  11452. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11453. if (_impl_.objc_class_prefix_.IsDefault()) {
  11454. _impl_.objc_class_prefix_.Set("", GetArenaForAllocation());
  11455. }
  11456. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11457. return p;
  11458. }
  11459. inline void FileOptions::set_allocated_objc_class_prefix(std::string* objc_class_prefix) {
  11460. if (objc_class_prefix != nullptr) {
  11461. _impl_._has_bits_[0] |= 0x00000008u;
  11462. } else {
  11463. _impl_._has_bits_[0] &= ~0x00000008u;
  11464. }
  11465. _impl_.objc_class_prefix_.SetAllocated(objc_class_prefix, GetArenaForAllocation());
  11466. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11467. if (_impl_.objc_class_prefix_.IsDefault()) {
  11468. _impl_.objc_class_prefix_.Set("", GetArenaForAllocation());
  11469. }
  11470. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11471. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
  11472. }
  11473. // optional string csharp_namespace = 37;
  11474. inline bool FileOptions::_internal_has_csharp_namespace() const {
  11475. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  11476. return value;
  11477. }
  11478. inline bool FileOptions::has_csharp_namespace() const {
  11479. return _internal_has_csharp_namespace();
  11480. }
  11481. inline void FileOptions::clear_csharp_namespace() {
  11482. _impl_.csharp_namespace_.ClearToEmpty();
  11483. _impl_._has_bits_[0] &= ~0x00000010u;
  11484. }
  11485. inline const std::string& FileOptions::csharp_namespace() const {
  11486. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace)
  11487. return _internal_csharp_namespace();
  11488. }
  11489. template <typename ArgT0, typename... ArgT>
  11490. inline PROTOBUF_ALWAYS_INLINE
  11491. void FileOptions::set_csharp_namespace(ArgT0&& arg0, ArgT... args) {
  11492. _impl_._has_bits_[0] |= 0x00000010u;
  11493. _impl_.csharp_namespace_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11494. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace)
  11495. }
  11496. inline std::string* FileOptions::mutable_csharp_namespace() {
  11497. std::string* _s = _internal_mutable_csharp_namespace();
  11498. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace)
  11499. return _s;
  11500. }
  11501. inline const std::string& FileOptions::_internal_csharp_namespace() const {
  11502. return _impl_.csharp_namespace_.Get();
  11503. }
  11504. inline void FileOptions::_internal_set_csharp_namespace(const std::string& value) {
  11505. _impl_._has_bits_[0] |= 0x00000010u;
  11506. _impl_.csharp_namespace_.Set(value, GetArenaForAllocation());
  11507. }
  11508. inline std::string* FileOptions::_internal_mutable_csharp_namespace() {
  11509. _impl_._has_bits_[0] |= 0x00000010u;
  11510. return _impl_.csharp_namespace_.Mutable(GetArenaForAllocation());
  11511. }
  11512. inline std::string* FileOptions::release_csharp_namespace() {
  11513. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_namespace)
  11514. if (!_internal_has_csharp_namespace()) {
  11515. return nullptr;
  11516. }
  11517. _impl_._has_bits_[0] &= ~0x00000010u;
  11518. auto* p = _impl_.csharp_namespace_.Release();
  11519. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11520. if (_impl_.csharp_namespace_.IsDefault()) {
  11521. _impl_.csharp_namespace_.Set("", GetArenaForAllocation());
  11522. }
  11523. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11524. return p;
  11525. }
  11526. inline void FileOptions::set_allocated_csharp_namespace(std::string* csharp_namespace) {
  11527. if (csharp_namespace != nullptr) {
  11528. _impl_._has_bits_[0] |= 0x00000010u;
  11529. } else {
  11530. _impl_._has_bits_[0] &= ~0x00000010u;
  11531. }
  11532. _impl_.csharp_namespace_.SetAllocated(csharp_namespace, GetArenaForAllocation());
  11533. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11534. if (_impl_.csharp_namespace_.IsDefault()) {
  11535. _impl_.csharp_namespace_.Set("", GetArenaForAllocation());
  11536. }
  11537. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11538. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
  11539. }
  11540. // optional string swift_prefix = 39;
  11541. inline bool FileOptions::_internal_has_swift_prefix() const {
  11542. bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  11543. return value;
  11544. }
  11545. inline bool FileOptions::has_swift_prefix() const {
  11546. return _internal_has_swift_prefix();
  11547. }
  11548. inline void FileOptions::clear_swift_prefix() {
  11549. _impl_.swift_prefix_.ClearToEmpty();
  11550. _impl_._has_bits_[0] &= ~0x00000020u;
  11551. }
  11552. inline const std::string& FileOptions::swift_prefix() const {
  11553. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.swift_prefix)
  11554. return _internal_swift_prefix();
  11555. }
  11556. template <typename ArgT0, typename... ArgT>
  11557. inline PROTOBUF_ALWAYS_INLINE
  11558. void FileOptions::set_swift_prefix(ArgT0&& arg0, ArgT... args) {
  11559. _impl_._has_bits_[0] |= 0x00000020u;
  11560. _impl_.swift_prefix_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11561. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.swift_prefix)
  11562. }
  11563. inline std::string* FileOptions::mutable_swift_prefix() {
  11564. std::string* _s = _internal_mutable_swift_prefix();
  11565. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.swift_prefix)
  11566. return _s;
  11567. }
  11568. inline const std::string& FileOptions::_internal_swift_prefix() const {
  11569. return _impl_.swift_prefix_.Get();
  11570. }
  11571. inline void FileOptions::_internal_set_swift_prefix(const std::string& value) {
  11572. _impl_._has_bits_[0] |= 0x00000020u;
  11573. _impl_.swift_prefix_.Set(value, GetArenaForAllocation());
  11574. }
  11575. inline std::string* FileOptions::_internal_mutable_swift_prefix() {
  11576. _impl_._has_bits_[0] |= 0x00000020u;
  11577. return _impl_.swift_prefix_.Mutable(GetArenaForAllocation());
  11578. }
  11579. inline std::string* FileOptions::release_swift_prefix() {
  11580. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.swift_prefix)
  11581. if (!_internal_has_swift_prefix()) {
  11582. return nullptr;
  11583. }
  11584. _impl_._has_bits_[0] &= ~0x00000020u;
  11585. auto* p = _impl_.swift_prefix_.Release();
  11586. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11587. if (_impl_.swift_prefix_.IsDefault()) {
  11588. _impl_.swift_prefix_.Set("", GetArenaForAllocation());
  11589. }
  11590. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11591. return p;
  11592. }
  11593. inline void FileOptions::set_allocated_swift_prefix(std::string* swift_prefix) {
  11594. if (swift_prefix != nullptr) {
  11595. _impl_._has_bits_[0] |= 0x00000020u;
  11596. } else {
  11597. _impl_._has_bits_[0] &= ~0x00000020u;
  11598. }
  11599. _impl_.swift_prefix_.SetAllocated(swift_prefix, GetArenaForAllocation());
  11600. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11601. if (_impl_.swift_prefix_.IsDefault()) {
  11602. _impl_.swift_prefix_.Set("", GetArenaForAllocation());
  11603. }
  11604. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11605. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.swift_prefix)
  11606. }
  11607. // optional string php_class_prefix = 40;
  11608. inline bool FileOptions::_internal_has_php_class_prefix() const {
  11609. bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
  11610. return value;
  11611. }
  11612. inline bool FileOptions::has_php_class_prefix() const {
  11613. return _internal_has_php_class_prefix();
  11614. }
  11615. inline void FileOptions::clear_php_class_prefix() {
  11616. _impl_.php_class_prefix_.ClearToEmpty();
  11617. _impl_._has_bits_[0] &= ~0x00000040u;
  11618. }
  11619. inline const std::string& FileOptions::php_class_prefix() const {
  11620. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_class_prefix)
  11621. return _internal_php_class_prefix();
  11622. }
  11623. template <typename ArgT0, typename... ArgT>
  11624. inline PROTOBUF_ALWAYS_INLINE
  11625. void FileOptions::set_php_class_prefix(ArgT0&& arg0, ArgT... args) {
  11626. _impl_._has_bits_[0] |= 0x00000040u;
  11627. _impl_.php_class_prefix_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11628. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_class_prefix)
  11629. }
  11630. inline std::string* FileOptions::mutable_php_class_prefix() {
  11631. std::string* _s = _internal_mutable_php_class_prefix();
  11632. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_class_prefix)
  11633. return _s;
  11634. }
  11635. inline const std::string& FileOptions::_internal_php_class_prefix() const {
  11636. return _impl_.php_class_prefix_.Get();
  11637. }
  11638. inline void FileOptions::_internal_set_php_class_prefix(const std::string& value) {
  11639. _impl_._has_bits_[0] |= 0x00000040u;
  11640. _impl_.php_class_prefix_.Set(value, GetArenaForAllocation());
  11641. }
  11642. inline std::string* FileOptions::_internal_mutable_php_class_prefix() {
  11643. _impl_._has_bits_[0] |= 0x00000040u;
  11644. return _impl_.php_class_prefix_.Mutable(GetArenaForAllocation());
  11645. }
  11646. inline std::string* FileOptions::release_php_class_prefix() {
  11647. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_class_prefix)
  11648. if (!_internal_has_php_class_prefix()) {
  11649. return nullptr;
  11650. }
  11651. _impl_._has_bits_[0] &= ~0x00000040u;
  11652. auto* p = _impl_.php_class_prefix_.Release();
  11653. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11654. if (_impl_.php_class_prefix_.IsDefault()) {
  11655. _impl_.php_class_prefix_.Set("", GetArenaForAllocation());
  11656. }
  11657. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11658. return p;
  11659. }
  11660. inline void FileOptions::set_allocated_php_class_prefix(std::string* php_class_prefix) {
  11661. if (php_class_prefix != nullptr) {
  11662. _impl_._has_bits_[0] |= 0x00000040u;
  11663. } else {
  11664. _impl_._has_bits_[0] &= ~0x00000040u;
  11665. }
  11666. _impl_.php_class_prefix_.SetAllocated(php_class_prefix, GetArenaForAllocation());
  11667. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11668. if (_impl_.php_class_prefix_.IsDefault()) {
  11669. _impl_.php_class_prefix_.Set("", GetArenaForAllocation());
  11670. }
  11671. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11672. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_class_prefix)
  11673. }
  11674. // optional string php_namespace = 41;
  11675. inline bool FileOptions::_internal_has_php_namespace() const {
  11676. bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
  11677. return value;
  11678. }
  11679. inline bool FileOptions::has_php_namespace() const {
  11680. return _internal_has_php_namespace();
  11681. }
  11682. inline void FileOptions::clear_php_namespace() {
  11683. _impl_.php_namespace_.ClearToEmpty();
  11684. _impl_._has_bits_[0] &= ~0x00000080u;
  11685. }
  11686. inline const std::string& FileOptions::php_namespace() const {
  11687. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_namespace)
  11688. return _internal_php_namespace();
  11689. }
  11690. template <typename ArgT0, typename... ArgT>
  11691. inline PROTOBUF_ALWAYS_INLINE
  11692. void FileOptions::set_php_namespace(ArgT0&& arg0, ArgT... args) {
  11693. _impl_._has_bits_[0] |= 0x00000080u;
  11694. _impl_.php_namespace_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11695. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_namespace)
  11696. }
  11697. inline std::string* FileOptions::mutable_php_namespace() {
  11698. std::string* _s = _internal_mutable_php_namespace();
  11699. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_namespace)
  11700. return _s;
  11701. }
  11702. inline const std::string& FileOptions::_internal_php_namespace() const {
  11703. return _impl_.php_namespace_.Get();
  11704. }
  11705. inline void FileOptions::_internal_set_php_namespace(const std::string& value) {
  11706. _impl_._has_bits_[0] |= 0x00000080u;
  11707. _impl_.php_namespace_.Set(value, GetArenaForAllocation());
  11708. }
  11709. inline std::string* FileOptions::_internal_mutable_php_namespace() {
  11710. _impl_._has_bits_[0] |= 0x00000080u;
  11711. return _impl_.php_namespace_.Mutable(GetArenaForAllocation());
  11712. }
  11713. inline std::string* FileOptions::release_php_namespace() {
  11714. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_namespace)
  11715. if (!_internal_has_php_namespace()) {
  11716. return nullptr;
  11717. }
  11718. _impl_._has_bits_[0] &= ~0x00000080u;
  11719. auto* p = _impl_.php_namespace_.Release();
  11720. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11721. if (_impl_.php_namespace_.IsDefault()) {
  11722. _impl_.php_namespace_.Set("", GetArenaForAllocation());
  11723. }
  11724. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11725. return p;
  11726. }
  11727. inline void FileOptions::set_allocated_php_namespace(std::string* php_namespace) {
  11728. if (php_namespace != nullptr) {
  11729. _impl_._has_bits_[0] |= 0x00000080u;
  11730. } else {
  11731. _impl_._has_bits_[0] &= ~0x00000080u;
  11732. }
  11733. _impl_.php_namespace_.SetAllocated(php_namespace, GetArenaForAllocation());
  11734. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11735. if (_impl_.php_namespace_.IsDefault()) {
  11736. _impl_.php_namespace_.Set("", GetArenaForAllocation());
  11737. }
  11738. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11739. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_namespace)
  11740. }
  11741. // optional string php_metadata_namespace = 44;
  11742. inline bool FileOptions::_internal_has_php_metadata_namespace() const {
  11743. bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
  11744. return value;
  11745. }
  11746. inline bool FileOptions::has_php_metadata_namespace() const {
  11747. return _internal_has_php_metadata_namespace();
  11748. }
  11749. inline void FileOptions::clear_php_metadata_namespace() {
  11750. _impl_.php_metadata_namespace_.ClearToEmpty();
  11751. _impl_._has_bits_[0] &= ~0x00000100u;
  11752. }
  11753. inline const std::string& FileOptions::php_metadata_namespace() const {
  11754. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_metadata_namespace)
  11755. return _internal_php_metadata_namespace();
  11756. }
  11757. template <typename ArgT0, typename... ArgT>
  11758. inline PROTOBUF_ALWAYS_INLINE
  11759. void FileOptions::set_php_metadata_namespace(ArgT0&& arg0, ArgT... args) {
  11760. _impl_._has_bits_[0] |= 0x00000100u;
  11761. _impl_.php_metadata_namespace_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11762. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_metadata_namespace)
  11763. }
  11764. inline std::string* FileOptions::mutable_php_metadata_namespace() {
  11765. std::string* _s = _internal_mutable_php_metadata_namespace();
  11766. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_metadata_namespace)
  11767. return _s;
  11768. }
  11769. inline const std::string& FileOptions::_internal_php_metadata_namespace() const {
  11770. return _impl_.php_metadata_namespace_.Get();
  11771. }
  11772. inline void FileOptions::_internal_set_php_metadata_namespace(const std::string& value) {
  11773. _impl_._has_bits_[0] |= 0x00000100u;
  11774. _impl_.php_metadata_namespace_.Set(value, GetArenaForAllocation());
  11775. }
  11776. inline std::string* FileOptions::_internal_mutable_php_metadata_namespace() {
  11777. _impl_._has_bits_[0] |= 0x00000100u;
  11778. return _impl_.php_metadata_namespace_.Mutable(GetArenaForAllocation());
  11779. }
  11780. inline std::string* FileOptions::release_php_metadata_namespace() {
  11781. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_metadata_namespace)
  11782. if (!_internal_has_php_metadata_namespace()) {
  11783. return nullptr;
  11784. }
  11785. _impl_._has_bits_[0] &= ~0x00000100u;
  11786. auto* p = _impl_.php_metadata_namespace_.Release();
  11787. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11788. if (_impl_.php_metadata_namespace_.IsDefault()) {
  11789. _impl_.php_metadata_namespace_.Set("", GetArenaForAllocation());
  11790. }
  11791. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11792. return p;
  11793. }
  11794. inline void FileOptions::set_allocated_php_metadata_namespace(std::string* php_metadata_namespace) {
  11795. if (php_metadata_namespace != nullptr) {
  11796. _impl_._has_bits_[0] |= 0x00000100u;
  11797. } else {
  11798. _impl_._has_bits_[0] &= ~0x00000100u;
  11799. }
  11800. _impl_.php_metadata_namespace_.SetAllocated(php_metadata_namespace, GetArenaForAllocation());
  11801. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11802. if (_impl_.php_metadata_namespace_.IsDefault()) {
  11803. _impl_.php_metadata_namespace_.Set("", GetArenaForAllocation());
  11804. }
  11805. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11806. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
  11807. }
  11808. // optional string ruby_package = 45;
  11809. inline bool FileOptions::_internal_has_ruby_package() const {
  11810. bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
  11811. return value;
  11812. }
  11813. inline bool FileOptions::has_ruby_package() const {
  11814. return _internal_has_ruby_package();
  11815. }
  11816. inline void FileOptions::clear_ruby_package() {
  11817. _impl_.ruby_package_.ClearToEmpty();
  11818. _impl_._has_bits_[0] &= ~0x00000200u;
  11819. }
  11820. inline const std::string& FileOptions::ruby_package() const {
  11821. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.ruby_package)
  11822. return _internal_ruby_package();
  11823. }
  11824. template <typename ArgT0, typename... ArgT>
  11825. inline PROTOBUF_ALWAYS_INLINE
  11826. void FileOptions::set_ruby_package(ArgT0&& arg0, ArgT... args) {
  11827. _impl_._has_bits_[0] |= 0x00000200u;
  11828. _impl_.ruby_package_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11829. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.ruby_package)
  11830. }
  11831. inline std::string* FileOptions::mutable_ruby_package() {
  11832. std::string* _s = _internal_mutable_ruby_package();
  11833. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.ruby_package)
  11834. return _s;
  11835. }
  11836. inline const std::string& FileOptions::_internal_ruby_package() const {
  11837. return _impl_.ruby_package_.Get();
  11838. }
  11839. inline void FileOptions::_internal_set_ruby_package(const std::string& value) {
  11840. _impl_._has_bits_[0] |= 0x00000200u;
  11841. _impl_.ruby_package_.Set(value, GetArenaForAllocation());
  11842. }
  11843. inline std::string* FileOptions::_internal_mutable_ruby_package() {
  11844. _impl_._has_bits_[0] |= 0x00000200u;
  11845. return _impl_.ruby_package_.Mutable(GetArenaForAllocation());
  11846. }
  11847. inline std::string* FileOptions::release_ruby_package() {
  11848. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.ruby_package)
  11849. if (!_internal_has_ruby_package()) {
  11850. return nullptr;
  11851. }
  11852. _impl_._has_bits_[0] &= ~0x00000200u;
  11853. auto* p = _impl_.ruby_package_.Release();
  11854. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11855. if (_impl_.ruby_package_.IsDefault()) {
  11856. _impl_.ruby_package_.Set("", GetArenaForAllocation());
  11857. }
  11858. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11859. return p;
  11860. }
  11861. inline void FileOptions::set_allocated_ruby_package(std::string* ruby_package) {
  11862. if (ruby_package != nullptr) {
  11863. _impl_._has_bits_[0] |= 0x00000200u;
  11864. } else {
  11865. _impl_._has_bits_[0] &= ~0x00000200u;
  11866. }
  11867. _impl_.ruby_package_.SetAllocated(ruby_package, GetArenaForAllocation());
  11868. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11869. if (_impl_.ruby_package_.IsDefault()) {
  11870. _impl_.ruby_package_.Set("", GetArenaForAllocation());
  11871. }
  11872. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11873. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ruby_package)
  11874. }
  11875. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11876. inline int FileOptions::_internal_uninterpreted_option_size() const {
  11877. return _impl_.uninterpreted_option_.size();
  11878. }
  11879. inline int FileOptions::uninterpreted_option_size() const {
  11880. return _internal_uninterpreted_option_size();
  11881. }
  11882. inline void FileOptions::clear_uninterpreted_option() {
  11883. _impl_.uninterpreted_option_.Clear();
  11884. }
  11885. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
  11886. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
  11887. return _impl_.uninterpreted_option_.Mutable(index);
  11888. }
  11889. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  11890. FileOptions::mutable_uninterpreted_option() {
  11891. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
  11892. return &_impl_.uninterpreted_option_;
  11893. }
  11894. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FileOptions::_internal_uninterpreted_option(int index) const {
  11895. return _impl_.uninterpreted_option_.Get(index);
  11896. }
  11897. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
  11898. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
  11899. return _internal_uninterpreted_option(index);
  11900. }
  11901. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::_internal_add_uninterpreted_option() {
  11902. return _impl_.uninterpreted_option_.Add();
  11903. }
  11904. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::add_uninterpreted_option() {
  11905. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  11906. // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
  11907. return _add;
  11908. }
  11909. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  11910. FileOptions::uninterpreted_option() const {
  11911. // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
  11912. return _impl_.uninterpreted_option_;
  11913. }
  11914. // -------------------------------------------------------------------
  11915. // MessageOptions
  11916. // optional bool message_set_wire_format = 1 [default = false];
  11917. inline bool MessageOptions::_internal_has_message_set_wire_format() const {
  11918. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  11919. return value;
  11920. }
  11921. inline bool MessageOptions::has_message_set_wire_format() const {
  11922. return _internal_has_message_set_wire_format();
  11923. }
  11924. inline void MessageOptions::clear_message_set_wire_format() {
  11925. _impl_.message_set_wire_format_ = false;
  11926. _impl_._has_bits_[0] &= ~0x00000001u;
  11927. }
  11928. inline bool MessageOptions::_internal_message_set_wire_format() const {
  11929. return _impl_.message_set_wire_format_;
  11930. }
  11931. inline bool MessageOptions::message_set_wire_format() const {
  11932. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
  11933. return _internal_message_set_wire_format();
  11934. }
  11935. inline void MessageOptions::_internal_set_message_set_wire_format(bool value) {
  11936. _impl_._has_bits_[0] |= 0x00000001u;
  11937. _impl_.message_set_wire_format_ = value;
  11938. }
  11939. inline void MessageOptions::set_message_set_wire_format(bool value) {
  11940. _internal_set_message_set_wire_format(value);
  11941. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
  11942. }
  11943. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  11944. inline bool MessageOptions::_internal_has_no_standard_descriptor_accessor() const {
  11945. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  11946. return value;
  11947. }
  11948. inline bool MessageOptions::has_no_standard_descriptor_accessor() const {
  11949. return _internal_has_no_standard_descriptor_accessor();
  11950. }
  11951. inline void MessageOptions::clear_no_standard_descriptor_accessor() {
  11952. _impl_.no_standard_descriptor_accessor_ = false;
  11953. _impl_._has_bits_[0] &= ~0x00000002u;
  11954. }
  11955. inline bool MessageOptions::_internal_no_standard_descriptor_accessor() const {
  11956. return _impl_.no_standard_descriptor_accessor_;
  11957. }
  11958. inline bool MessageOptions::no_standard_descriptor_accessor() const {
  11959. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  11960. return _internal_no_standard_descriptor_accessor();
  11961. }
  11962. inline void MessageOptions::_internal_set_no_standard_descriptor_accessor(bool value) {
  11963. _impl_._has_bits_[0] |= 0x00000002u;
  11964. _impl_.no_standard_descriptor_accessor_ = value;
  11965. }
  11966. inline void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
  11967. _internal_set_no_standard_descriptor_accessor(value);
  11968. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  11969. }
  11970. // optional bool deprecated = 3 [default = false];
  11971. inline bool MessageOptions::_internal_has_deprecated() const {
  11972. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  11973. return value;
  11974. }
  11975. inline bool MessageOptions::has_deprecated() const {
  11976. return _internal_has_deprecated();
  11977. }
  11978. inline void MessageOptions::clear_deprecated() {
  11979. _impl_.deprecated_ = false;
  11980. _impl_._has_bits_[0] &= ~0x00000004u;
  11981. }
  11982. inline bool MessageOptions::_internal_deprecated() const {
  11983. return _impl_.deprecated_;
  11984. }
  11985. inline bool MessageOptions::deprecated() const {
  11986. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
  11987. return _internal_deprecated();
  11988. }
  11989. inline void MessageOptions::_internal_set_deprecated(bool value) {
  11990. _impl_._has_bits_[0] |= 0x00000004u;
  11991. _impl_.deprecated_ = value;
  11992. }
  11993. inline void MessageOptions::set_deprecated(bool value) {
  11994. _internal_set_deprecated(value);
  11995. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
  11996. }
  11997. // optional bool map_entry = 7;
  11998. inline bool MessageOptions::_internal_has_map_entry() const {
  11999. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  12000. return value;
  12001. }
  12002. inline bool MessageOptions::has_map_entry() const {
  12003. return _internal_has_map_entry();
  12004. }
  12005. inline void MessageOptions::clear_map_entry() {
  12006. _impl_.map_entry_ = false;
  12007. _impl_._has_bits_[0] &= ~0x00000008u;
  12008. }
  12009. inline bool MessageOptions::_internal_map_entry() const {
  12010. return _impl_.map_entry_;
  12011. }
  12012. inline bool MessageOptions::map_entry() const {
  12013. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
  12014. return _internal_map_entry();
  12015. }
  12016. inline void MessageOptions::_internal_set_map_entry(bool value) {
  12017. _impl_._has_bits_[0] |= 0x00000008u;
  12018. _impl_.map_entry_ = value;
  12019. }
  12020. inline void MessageOptions::set_map_entry(bool value) {
  12021. _internal_set_map_entry(value);
  12022. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry)
  12023. }
  12024. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12025. inline int MessageOptions::_internal_uninterpreted_option_size() const {
  12026. return _impl_.uninterpreted_option_.size();
  12027. }
  12028. inline int MessageOptions::uninterpreted_option_size() const {
  12029. return _internal_uninterpreted_option_size();
  12030. }
  12031. inline void MessageOptions::clear_uninterpreted_option() {
  12032. _impl_.uninterpreted_option_.Clear();
  12033. }
  12034. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
  12035. // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
  12036. return _impl_.uninterpreted_option_.Mutable(index);
  12037. }
  12038. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12039. MessageOptions::mutable_uninterpreted_option() {
  12040. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
  12041. return &_impl_.uninterpreted_option_;
  12042. }
  12043. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MessageOptions::_internal_uninterpreted_option(int index) const {
  12044. return _impl_.uninterpreted_option_.Get(index);
  12045. }
  12046. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
  12047. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
  12048. return _internal_uninterpreted_option(index);
  12049. }
  12050. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::_internal_add_uninterpreted_option() {
  12051. return _impl_.uninterpreted_option_.Add();
  12052. }
  12053. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
  12054. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12055. // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
  12056. return _add;
  12057. }
  12058. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12059. MessageOptions::uninterpreted_option() const {
  12060. // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
  12061. return _impl_.uninterpreted_option_;
  12062. }
  12063. // -------------------------------------------------------------------
  12064. // FieldOptions
  12065. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  12066. inline bool FieldOptions::_internal_has_ctype() const {
  12067. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12068. return value;
  12069. }
  12070. inline bool FieldOptions::has_ctype() const {
  12071. return _internal_has_ctype();
  12072. }
  12073. inline void FieldOptions::clear_ctype() {
  12074. _impl_.ctype_ = 0;
  12075. _impl_._has_bits_[0] &= ~0x00000001u;
  12076. }
  12077. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType FieldOptions::_internal_ctype() const {
  12078. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType >(_impl_.ctype_);
  12079. }
  12080. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType FieldOptions::ctype() const {
  12081. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
  12082. return _internal_ctype();
  12083. }
  12084. inline void FieldOptions::_internal_set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value) {
  12085. assert(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType_IsValid(value));
  12086. _impl_._has_bits_[0] |= 0x00000001u;
  12087. _impl_.ctype_ = value;
  12088. }
  12089. inline void FieldOptions::set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value) {
  12090. _internal_set_ctype(value);
  12091. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
  12092. }
  12093. // optional bool packed = 2;
  12094. inline bool FieldOptions::_internal_has_packed() const {
  12095. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  12096. return value;
  12097. }
  12098. inline bool FieldOptions::has_packed() const {
  12099. return _internal_has_packed();
  12100. }
  12101. inline void FieldOptions::clear_packed() {
  12102. _impl_.packed_ = false;
  12103. _impl_._has_bits_[0] &= ~0x00000004u;
  12104. }
  12105. inline bool FieldOptions::_internal_packed() const {
  12106. return _impl_.packed_;
  12107. }
  12108. inline bool FieldOptions::packed() const {
  12109. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
  12110. return _internal_packed();
  12111. }
  12112. inline void FieldOptions::_internal_set_packed(bool value) {
  12113. _impl_._has_bits_[0] |= 0x00000004u;
  12114. _impl_.packed_ = value;
  12115. }
  12116. inline void FieldOptions::set_packed(bool value) {
  12117. _internal_set_packed(value);
  12118. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
  12119. }
  12120. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  12121. inline bool FieldOptions::_internal_has_jstype() const {
  12122. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  12123. return value;
  12124. }
  12125. inline bool FieldOptions::has_jstype() const {
  12126. return _internal_has_jstype();
  12127. }
  12128. inline void FieldOptions::clear_jstype() {
  12129. _impl_.jstype_ = 0;
  12130. _impl_._has_bits_[0] &= ~0x00000002u;
  12131. }
  12132. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType FieldOptions::_internal_jstype() const {
  12133. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType >(_impl_.jstype_);
  12134. }
  12135. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType FieldOptions::jstype() const {
  12136. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
  12137. return _internal_jstype();
  12138. }
  12139. inline void FieldOptions::_internal_set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value) {
  12140. assert(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_IsValid(value));
  12141. _impl_._has_bits_[0] |= 0x00000002u;
  12142. _impl_.jstype_ = value;
  12143. }
  12144. inline void FieldOptions::set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value) {
  12145. _internal_set_jstype(value);
  12146. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
  12147. }
  12148. // optional bool lazy = 5 [default = false];
  12149. inline bool FieldOptions::_internal_has_lazy() const {
  12150. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  12151. return value;
  12152. }
  12153. inline bool FieldOptions::has_lazy() const {
  12154. return _internal_has_lazy();
  12155. }
  12156. inline void FieldOptions::clear_lazy() {
  12157. _impl_.lazy_ = false;
  12158. _impl_._has_bits_[0] &= ~0x00000008u;
  12159. }
  12160. inline bool FieldOptions::_internal_lazy() const {
  12161. return _impl_.lazy_;
  12162. }
  12163. inline bool FieldOptions::lazy() const {
  12164. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
  12165. return _internal_lazy();
  12166. }
  12167. inline void FieldOptions::_internal_set_lazy(bool value) {
  12168. _impl_._has_bits_[0] |= 0x00000008u;
  12169. _impl_.lazy_ = value;
  12170. }
  12171. inline void FieldOptions::set_lazy(bool value) {
  12172. _internal_set_lazy(value);
  12173. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
  12174. }
  12175. // optional bool unverified_lazy = 15 [default = false];
  12176. inline bool FieldOptions::_internal_has_unverified_lazy() const {
  12177. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  12178. return value;
  12179. }
  12180. inline bool FieldOptions::has_unverified_lazy() const {
  12181. return _internal_has_unverified_lazy();
  12182. }
  12183. inline void FieldOptions::clear_unverified_lazy() {
  12184. _impl_.unverified_lazy_ = false;
  12185. _impl_._has_bits_[0] &= ~0x00000010u;
  12186. }
  12187. inline bool FieldOptions::_internal_unverified_lazy() const {
  12188. return _impl_.unverified_lazy_;
  12189. }
  12190. inline bool FieldOptions::unverified_lazy() const {
  12191. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.unverified_lazy)
  12192. return _internal_unverified_lazy();
  12193. }
  12194. inline void FieldOptions::_internal_set_unverified_lazy(bool value) {
  12195. _impl_._has_bits_[0] |= 0x00000010u;
  12196. _impl_.unverified_lazy_ = value;
  12197. }
  12198. inline void FieldOptions::set_unverified_lazy(bool value) {
  12199. _internal_set_unverified_lazy(value);
  12200. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.unverified_lazy)
  12201. }
  12202. // optional bool deprecated = 3 [default = false];
  12203. inline bool FieldOptions::_internal_has_deprecated() const {
  12204. bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  12205. return value;
  12206. }
  12207. inline bool FieldOptions::has_deprecated() const {
  12208. return _internal_has_deprecated();
  12209. }
  12210. inline void FieldOptions::clear_deprecated() {
  12211. _impl_.deprecated_ = false;
  12212. _impl_._has_bits_[0] &= ~0x00000020u;
  12213. }
  12214. inline bool FieldOptions::_internal_deprecated() const {
  12215. return _impl_.deprecated_;
  12216. }
  12217. inline bool FieldOptions::deprecated() const {
  12218. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
  12219. return _internal_deprecated();
  12220. }
  12221. inline void FieldOptions::_internal_set_deprecated(bool value) {
  12222. _impl_._has_bits_[0] |= 0x00000020u;
  12223. _impl_.deprecated_ = value;
  12224. }
  12225. inline void FieldOptions::set_deprecated(bool value) {
  12226. _internal_set_deprecated(value);
  12227. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
  12228. }
  12229. // optional bool weak = 10 [default = false];
  12230. inline bool FieldOptions::_internal_has_weak() const {
  12231. bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
  12232. return value;
  12233. }
  12234. inline bool FieldOptions::has_weak() const {
  12235. return _internal_has_weak();
  12236. }
  12237. inline void FieldOptions::clear_weak() {
  12238. _impl_.weak_ = false;
  12239. _impl_._has_bits_[0] &= ~0x00000040u;
  12240. }
  12241. inline bool FieldOptions::_internal_weak() const {
  12242. return _impl_.weak_;
  12243. }
  12244. inline bool FieldOptions::weak() const {
  12245. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
  12246. return _internal_weak();
  12247. }
  12248. inline void FieldOptions::_internal_set_weak(bool value) {
  12249. _impl_._has_bits_[0] |= 0x00000040u;
  12250. _impl_.weak_ = value;
  12251. }
  12252. inline void FieldOptions::set_weak(bool value) {
  12253. _internal_set_weak(value);
  12254. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
  12255. }
  12256. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12257. inline int FieldOptions::_internal_uninterpreted_option_size() const {
  12258. return _impl_.uninterpreted_option_.size();
  12259. }
  12260. inline int FieldOptions::uninterpreted_option_size() const {
  12261. return _internal_uninterpreted_option_size();
  12262. }
  12263. inline void FieldOptions::clear_uninterpreted_option() {
  12264. _impl_.uninterpreted_option_.Clear();
  12265. }
  12266. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
  12267. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
  12268. return _impl_.uninterpreted_option_.Mutable(index);
  12269. }
  12270. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12271. FieldOptions::mutable_uninterpreted_option() {
  12272. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
  12273. return &_impl_.uninterpreted_option_;
  12274. }
  12275. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FieldOptions::_internal_uninterpreted_option(int index) const {
  12276. return _impl_.uninterpreted_option_.Get(index);
  12277. }
  12278. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
  12279. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
  12280. return _internal_uninterpreted_option(index);
  12281. }
  12282. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::_internal_add_uninterpreted_option() {
  12283. return _impl_.uninterpreted_option_.Add();
  12284. }
  12285. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
  12286. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12287. // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
  12288. return _add;
  12289. }
  12290. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12291. FieldOptions::uninterpreted_option() const {
  12292. // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
  12293. return _impl_.uninterpreted_option_;
  12294. }
  12295. // -------------------------------------------------------------------
  12296. // OneofOptions
  12297. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12298. inline int OneofOptions::_internal_uninterpreted_option_size() const {
  12299. return _impl_.uninterpreted_option_.size();
  12300. }
  12301. inline int OneofOptions::uninterpreted_option_size() const {
  12302. return _internal_uninterpreted_option_size();
  12303. }
  12304. inline void OneofOptions::clear_uninterpreted_option() {
  12305. _impl_.uninterpreted_option_.Clear();
  12306. }
  12307. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::mutable_uninterpreted_option(int index) {
  12308. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninterpreted_option)
  12309. return _impl_.uninterpreted_option_.Mutable(index);
  12310. }
  12311. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12312. OneofOptions::mutable_uninterpreted_option() {
  12313. // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.uninterpreted_option)
  12314. return &_impl_.uninterpreted_option_;
  12315. }
  12316. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& OneofOptions::_internal_uninterpreted_option(int index) const {
  12317. return _impl_.uninterpreted_option_.Get(index);
  12318. }
  12319. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& OneofOptions::uninterpreted_option(int index) const {
  12320. // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpreted_option)
  12321. return _internal_uninterpreted_option(index);
  12322. }
  12323. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::_internal_add_uninterpreted_option() {
  12324. return _impl_.uninterpreted_option_.Add();
  12325. }
  12326. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::add_uninterpreted_option() {
  12327. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12328. // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpreted_option)
  12329. return _add;
  12330. }
  12331. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12332. OneofOptions::uninterpreted_option() const {
  12333. // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpreted_option)
  12334. return _impl_.uninterpreted_option_;
  12335. }
  12336. // -------------------------------------------------------------------
  12337. // EnumOptions
  12338. // optional bool allow_alias = 2;
  12339. inline bool EnumOptions::_internal_has_allow_alias() const {
  12340. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12341. return value;
  12342. }
  12343. inline bool EnumOptions::has_allow_alias() const {
  12344. return _internal_has_allow_alias();
  12345. }
  12346. inline void EnumOptions::clear_allow_alias() {
  12347. _impl_.allow_alias_ = false;
  12348. _impl_._has_bits_[0] &= ~0x00000001u;
  12349. }
  12350. inline bool EnumOptions::_internal_allow_alias() const {
  12351. return _impl_.allow_alias_;
  12352. }
  12353. inline bool EnumOptions::allow_alias() const {
  12354. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
  12355. return _internal_allow_alias();
  12356. }
  12357. inline void EnumOptions::_internal_set_allow_alias(bool value) {
  12358. _impl_._has_bits_[0] |= 0x00000001u;
  12359. _impl_.allow_alias_ = value;
  12360. }
  12361. inline void EnumOptions::set_allow_alias(bool value) {
  12362. _internal_set_allow_alias(value);
  12363. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
  12364. }
  12365. // optional bool deprecated = 3 [default = false];
  12366. inline bool EnumOptions::_internal_has_deprecated() const {
  12367. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  12368. return value;
  12369. }
  12370. inline bool EnumOptions::has_deprecated() const {
  12371. return _internal_has_deprecated();
  12372. }
  12373. inline void EnumOptions::clear_deprecated() {
  12374. _impl_.deprecated_ = false;
  12375. _impl_._has_bits_[0] &= ~0x00000002u;
  12376. }
  12377. inline bool EnumOptions::_internal_deprecated() const {
  12378. return _impl_.deprecated_;
  12379. }
  12380. inline bool EnumOptions::deprecated() const {
  12381. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
  12382. return _internal_deprecated();
  12383. }
  12384. inline void EnumOptions::_internal_set_deprecated(bool value) {
  12385. _impl_._has_bits_[0] |= 0x00000002u;
  12386. _impl_.deprecated_ = value;
  12387. }
  12388. inline void EnumOptions::set_deprecated(bool value) {
  12389. _internal_set_deprecated(value);
  12390. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
  12391. }
  12392. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12393. inline int EnumOptions::_internal_uninterpreted_option_size() const {
  12394. return _impl_.uninterpreted_option_.size();
  12395. }
  12396. inline int EnumOptions::uninterpreted_option_size() const {
  12397. return _internal_uninterpreted_option_size();
  12398. }
  12399. inline void EnumOptions::clear_uninterpreted_option() {
  12400. _impl_.uninterpreted_option_.Clear();
  12401. }
  12402. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
  12403. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
  12404. return _impl_.uninterpreted_option_.Mutable(index);
  12405. }
  12406. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12407. EnumOptions::mutable_uninterpreted_option() {
  12408. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
  12409. return &_impl_.uninterpreted_option_;
  12410. }
  12411. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumOptions::_internal_uninterpreted_option(int index) const {
  12412. return _impl_.uninterpreted_option_.Get(index);
  12413. }
  12414. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
  12415. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
  12416. return _internal_uninterpreted_option(index);
  12417. }
  12418. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::_internal_add_uninterpreted_option() {
  12419. return _impl_.uninterpreted_option_.Add();
  12420. }
  12421. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
  12422. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12423. // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
  12424. return _add;
  12425. }
  12426. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12427. EnumOptions::uninterpreted_option() const {
  12428. // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
  12429. return _impl_.uninterpreted_option_;
  12430. }
  12431. // -------------------------------------------------------------------
  12432. // EnumValueOptions
  12433. // optional bool deprecated = 1 [default = false];
  12434. inline bool EnumValueOptions::_internal_has_deprecated() const {
  12435. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12436. return value;
  12437. }
  12438. inline bool EnumValueOptions::has_deprecated() const {
  12439. return _internal_has_deprecated();
  12440. }
  12441. inline void EnumValueOptions::clear_deprecated() {
  12442. _impl_.deprecated_ = false;
  12443. _impl_._has_bits_[0] &= ~0x00000001u;
  12444. }
  12445. inline bool EnumValueOptions::_internal_deprecated() const {
  12446. return _impl_.deprecated_;
  12447. }
  12448. inline bool EnumValueOptions::deprecated() const {
  12449. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
  12450. return _internal_deprecated();
  12451. }
  12452. inline void EnumValueOptions::_internal_set_deprecated(bool value) {
  12453. _impl_._has_bits_[0] |= 0x00000001u;
  12454. _impl_.deprecated_ = value;
  12455. }
  12456. inline void EnumValueOptions::set_deprecated(bool value) {
  12457. _internal_set_deprecated(value);
  12458. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
  12459. }
  12460. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12461. inline int EnumValueOptions::_internal_uninterpreted_option_size() const {
  12462. return _impl_.uninterpreted_option_.size();
  12463. }
  12464. inline int EnumValueOptions::uninterpreted_option_size() const {
  12465. return _internal_uninterpreted_option_size();
  12466. }
  12467. inline void EnumValueOptions::clear_uninterpreted_option() {
  12468. _impl_.uninterpreted_option_.Clear();
  12469. }
  12470. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
  12471. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
  12472. return _impl_.uninterpreted_option_.Mutable(index);
  12473. }
  12474. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12475. EnumValueOptions::mutable_uninterpreted_option() {
  12476. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  12477. return &_impl_.uninterpreted_option_;
  12478. }
  12479. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumValueOptions::_internal_uninterpreted_option(int index) const {
  12480. return _impl_.uninterpreted_option_.Get(index);
  12481. }
  12482. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
  12483. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
  12484. return _internal_uninterpreted_option(index);
  12485. }
  12486. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::_internal_add_uninterpreted_option() {
  12487. return _impl_.uninterpreted_option_.Add();
  12488. }
  12489. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
  12490. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12491. // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
  12492. return _add;
  12493. }
  12494. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12495. EnumValueOptions::uninterpreted_option() const {
  12496. // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  12497. return _impl_.uninterpreted_option_;
  12498. }
  12499. // -------------------------------------------------------------------
  12500. // ServiceOptions
  12501. // optional bool deprecated = 33 [default = false];
  12502. inline bool ServiceOptions::_internal_has_deprecated() const {
  12503. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12504. return value;
  12505. }
  12506. inline bool ServiceOptions::has_deprecated() const {
  12507. return _internal_has_deprecated();
  12508. }
  12509. inline void ServiceOptions::clear_deprecated() {
  12510. _impl_.deprecated_ = false;
  12511. _impl_._has_bits_[0] &= ~0x00000001u;
  12512. }
  12513. inline bool ServiceOptions::_internal_deprecated() const {
  12514. return _impl_.deprecated_;
  12515. }
  12516. inline bool ServiceOptions::deprecated() const {
  12517. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
  12518. return _internal_deprecated();
  12519. }
  12520. inline void ServiceOptions::_internal_set_deprecated(bool value) {
  12521. _impl_._has_bits_[0] |= 0x00000001u;
  12522. _impl_.deprecated_ = value;
  12523. }
  12524. inline void ServiceOptions::set_deprecated(bool value) {
  12525. _internal_set_deprecated(value);
  12526. // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
  12527. }
  12528. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12529. inline int ServiceOptions::_internal_uninterpreted_option_size() const {
  12530. return _impl_.uninterpreted_option_.size();
  12531. }
  12532. inline int ServiceOptions::uninterpreted_option_size() const {
  12533. return _internal_uninterpreted_option_size();
  12534. }
  12535. inline void ServiceOptions::clear_uninterpreted_option() {
  12536. _impl_.uninterpreted_option_.Clear();
  12537. }
  12538. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
  12539. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
  12540. return _impl_.uninterpreted_option_.Mutable(index);
  12541. }
  12542. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12543. ServiceOptions::mutable_uninterpreted_option() {
  12544. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
  12545. return &_impl_.uninterpreted_option_;
  12546. }
  12547. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ServiceOptions::_internal_uninterpreted_option(int index) const {
  12548. return _impl_.uninterpreted_option_.Get(index);
  12549. }
  12550. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
  12551. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
  12552. return _internal_uninterpreted_option(index);
  12553. }
  12554. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::_internal_add_uninterpreted_option() {
  12555. return _impl_.uninterpreted_option_.Add();
  12556. }
  12557. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
  12558. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12559. // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
  12560. return _add;
  12561. }
  12562. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12563. ServiceOptions::uninterpreted_option() const {
  12564. // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
  12565. return _impl_.uninterpreted_option_;
  12566. }
  12567. // -------------------------------------------------------------------
  12568. // MethodOptions
  12569. // optional bool deprecated = 33 [default = false];
  12570. inline bool MethodOptions::_internal_has_deprecated() const {
  12571. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12572. return value;
  12573. }
  12574. inline bool MethodOptions::has_deprecated() const {
  12575. return _internal_has_deprecated();
  12576. }
  12577. inline void MethodOptions::clear_deprecated() {
  12578. _impl_.deprecated_ = false;
  12579. _impl_._has_bits_[0] &= ~0x00000001u;
  12580. }
  12581. inline bool MethodOptions::_internal_deprecated() const {
  12582. return _impl_.deprecated_;
  12583. }
  12584. inline bool MethodOptions::deprecated() const {
  12585. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
  12586. return _internal_deprecated();
  12587. }
  12588. inline void MethodOptions::_internal_set_deprecated(bool value) {
  12589. _impl_._has_bits_[0] |= 0x00000001u;
  12590. _impl_.deprecated_ = value;
  12591. }
  12592. inline void MethodOptions::set_deprecated(bool value) {
  12593. _internal_set_deprecated(value);
  12594. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
  12595. }
  12596. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  12597. inline bool MethodOptions::_internal_has_idempotency_level() const {
  12598. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  12599. return value;
  12600. }
  12601. inline bool MethodOptions::has_idempotency_level() const {
  12602. return _internal_has_idempotency_level();
  12603. }
  12604. inline void MethodOptions::clear_idempotency_level() {
  12605. _impl_.idempotency_level_ = 0;
  12606. _impl_._has_bits_[0] &= ~0x00000002u;
  12607. }
  12608. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel MethodOptions::_internal_idempotency_level() const {
  12609. return static_cast< ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel >(_impl_.idempotency_level_);
  12610. }
  12611. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel MethodOptions::idempotency_level() const {
  12612. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.idempotency_level)
  12613. return _internal_idempotency_level();
  12614. }
  12615. inline void MethodOptions::_internal_set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value) {
  12616. assert(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_IsValid(value));
  12617. _impl_._has_bits_[0] |= 0x00000002u;
  12618. _impl_.idempotency_level_ = value;
  12619. }
  12620. inline void MethodOptions::set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value) {
  12621. _internal_set_idempotency_level(value);
  12622. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.idempotency_level)
  12623. }
  12624. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12625. inline int MethodOptions::_internal_uninterpreted_option_size() const {
  12626. return _impl_.uninterpreted_option_.size();
  12627. }
  12628. inline int MethodOptions::uninterpreted_option_size() const {
  12629. return _internal_uninterpreted_option_size();
  12630. }
  12631. inline void MethodOptions::clear_uninterpreted_option() {
  12632. _impl_.uninterpreted_option_.Clear();
  12633. }
  12634. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
  12635. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
  12636. return _impl_.uninterpreted_option_.Mutable(index);
  12637. }
  12638. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12639. MethodOptions::mutable_uninterpreted_option() {
  12640. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
  12641. return &_impl_.uninterpreted_option_;
  12642. }
  12643. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MethodOptions::_internal_uninterpreted_option(int index) const {
  12644. return _impl_.uninterpreted_option_.Get(index);
  12645. }
  12646. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
  12647. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
  12648. return _internal_uninterpreted_option(index);
  12649. }
  12650. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::_internal_add_uninterpreted_option() {
  12651. return _impl_.uninterpreted_option_.Add();
  12652. }
  12653. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
  12654. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12655. // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
  12656. return _add;
  12657. }
  12658. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12659. MethodOptions::uninterpreted_option() const {
  12660. // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
  12661. return _impl_.uninterpreted_option_;
  12662. }
  12663. // -------------------------------------------------------------------
  12664. // UninterpretedOption_NamePart
  12665. // required string name_part = 1;
  12666. inline bool UninterpretedOption_NamePart::_internal_has_name_part() const {
  12667. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12668. return value;
  12669. }
  12670. inline bool UninterpretedOption_NamePart::has_name_part() const {
  12671. return _internal_has_name_part();
  12672. }
  12673. inline void UninterpretedOption_NamePart::clear_name_part() {
  12674. _impl_.name_part_.ClearToEmpty();
  12675. _impl_._has_bits_[0] &= ~0x00000001u;
  12676. }
  12677. inline const std::string& UninterpretedOption_NamePart::name_part() const {
  12678. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
  12679. return _internal_name_part();
  12680. }
  12681. template <typename ArgT0, typename... ArgT>
  12682. inline PROTOBUF_ALWAYS_INLINE
  12683. void UninterpretedOption_NamePart::set_name_part(ArgT0&& arg0, ArgT... args) {
  12684. _impl_._has_bits_[0] |= 0x00000001u;
  12685. _impl_.name_part_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  12686. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
  12687. }
  12688. inline std::string* UninterpretedOption_NamePart::mutable_name_part() {
  12689. std::string* _s = _internal_mutable_name_part();
  12690. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
  12691. return _s;
  12692. }
  12693. inline const std::string& UninterpretedOption_NamePart::_internal_name_part() const {
  12694. return _impl_.name_part_.Get();
  12695. }
  12696. inline void UninterpretedOption_NamePart::_internal_set_name_part(const std::string& value) {
  12697. _impl_._has_bits_[0] |= 0x00000001u;
  12698. _impl_.name_part_.Set(value, GetArenaForAllocation());
  12699. }
  12700. inline std::string* UninterpretedOption_NamePart::_internal_mutable_name_part() {
  12701. _impl_._has_bits_[0] |= 0x00000001u;
  12702. return _impl_.name_part_.Mutable(GetArenaForAllocation());
  12703. }
  12704. inline std::string* UninterpretedOption_NamePart::release_name_part() {
  12705. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.NamePart.name_part)
  12706. if (!_internal_has_name_part()) {
  12707. return nullptr;
  12708. }
  12709. _impl_._has_bits_[0] &= ~0x00000001u;
  12710. auto* p = _impl_.name_part_.Release();
  12711. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12712. if (_impl_.name_part_.IsDefault()) {
  12713. _impl_.name_part_.Set("", GetArenaForAllocation());
  12714. }
  12715. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12716. return p;
  12717. }
  12718. inline void UninterpretedOption_NamePart::set_allocated_name_part(std::string* name_part) {
  12719. if (name_part != nullptr) {
  12720. _impl_._has_bits_[0] |= 0x00000001u;
  12721. } else {
  12722. _impl_._has_bits_[0] &= ~0x00000001u;
  12723. }
  12724. _impl_.name_part_.SetAllocated(name_part, GetArenaForAllocation());
  12725. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12726. if (_impl_.name_part_.IsDefault()) {
  12727. _impl_.name_part_.Set("", GetArenaForAllocation());
  12728. }
  12729. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12730. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  12731. }
  12732. // required bool is_extension = 2;
  12733. inline bool UninterpretedOption_NamePart::_internal_has_is_extension() const {
  12734. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  12735. return value;
  12736. }
  12737. inline bool UninterpretedOption_NamePart::has_is_extension() const {
  12738. return _internal_has_is_extension();
  12739. }
  12740. inline void UninterpretedOption_NamePart::clear_is_extension() {
  12741. _impl_.is_extension_ = false;
  12742. _impl_._has_bits_[0] &= ~0x00000002u;
  12743. }
  12744. inline bool UninterpretedOption_NamePart::_internal_is_extension() const {
  12745. return _impl_.is_extension_;
  12746. }
  12747. inline bool UninterpretedOption_NamePart::is_extension() const {
  12748. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
  12749. return _internal_is_extension();
  12750. }
  12751. inline void UninterpretedOption_NamePart::_internal_set_is_extension(bool value) {
  12752. _impl_._has_bits_[0] |= 0x00000002u;
  12753. _impl_.is_extension_ = value;
  12754. }
  12755. inline void UninterpretedOption_NamePart::set_is_extension(bool value) {
  12756. _internal_set_is_extension(value);
  12757. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
  12758. }
  12759. // -------------------------------------------------------------------
  12760. // UninterpretedOption
  12761. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  12762. inline int UninterpretedOption::_internal_name_size() const {
  12763. return _impl_.name_.size();
  12764. }
  12765. inline int UninterpretedOption::name_size() const {
  12766. return _internal_name_size();
  12767. }
  12768. inline void UninterpretedOption::clear_name() {
  12769. _impl_.name_.Clear();
  12770. }
  12771. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
  12772. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
  12773. return _impl_.name_.Mutable(index);
  12774. }
  12775. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >*
  12776. UninterpretedOption::mutable_name() {
  12777. // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
  12778. return &_impl_.name_;
  12779. }
  12780. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& UninterpretedOption::_internal_name(int index) const {
  12781. return _impl_.name_.Get(index);
  12782. }
  12783. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
  12784. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
  12785. return _internal_name(index);
  12786. }
  12787. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::_internal_add_name() {
  12788. return _impl_.name_.Add();
  12789. }
  12790. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
  12791. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* _add = _internal_add_name();
  12792. // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
  12793. return _add;
  12794. }
  12795. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >&
  12796. UninterpretedOption::name() const {
  12797. // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
  12798. return _impl_.name_;
  12799. }
  12800. // optional string identifier_value = 3;
  12801. inline bool UninterpretedOption::_internal_has_identifier_value() const {
  12802. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  12803. return value;
  12804. }
  12805. inline bool UninterpretedOption::has_identifier_value() const {
  12806. return _internal_has_identifier_value();
  12807. }
  12808. inline void UninterpretedOption::clear_identifier_value() {
  12809. _impl_.identifier_value_.ClearToEmpty();
  12810. _impl_._has_bits_[0] &= ~0x00000001u;
  12811. }
  12812. inline const std::string& UninterpretedOption::identifier_value() const {
  12813. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
  12814. return _internal_identifier_value();
  12815. }
  12816. template <typename ArgT0, typename... ArgT>
  12817. inline PROTOBUF_ALWAYS_INLINE
  12818. void UninterpretedOption::set_identifier_value(ArgT0&& arg0, ArgT... args) {
  12819. _impl_._has_bits_[0] |= 0x00000001u;
  12820. _impl_.identifier_value_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  12821. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
  12822. }
  12823. inline std::string* UninterpretedOption::mutable_identifier_value() {
  12824. std::string* _s = _internal_mutable_identifier_value();
  12825. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
  12826. return _s;
  12827. }
  12828. inline const std::string& UninterpretedOption::_internal_identifier_value() const {
  12829. return _impl_.identifier_value_.Get();
  12830. }
  12831. inline void UninterpretedOption::_internal_set_identifier_value(const std::string& value) {
  12832. _impl_._has_bits_[0] |= 0x00000001u;
  12833. _impl_.identifier_value_.Set(value, GetArenaForAllocation());
  12834. }
  12835. inline std::string* UninterpretedOption::_internal_mutable_identifier_value() {
  12836. _impl_._has_bits_[0] |= 0x00000001u;
  12837. return _impl_.identifier_value_.Mutable(GetArenaForAllocation());
  12838. }
  12839. inline std::string* UninterpretedOption::release_identifier_value() {
  12840. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.identifier_value)
  12841. if (!_internal_has_identifier_value()) {
  12842. return nullptr;
  12843. }
  12844. _impl_._has_bits_[0] &= ~0x00000001u;
  12845. auto* p = _impl_.identifier_value_.Release();
  12846. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12847. if (_impl_.identifier_value_.IsDefault()) {
  12848. _impl_.identifier_value_.Set("", GetArenaForAllocation());
  12849. }
  12850. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12851. return p;
  12852. }
  12853. inline void UninterpretedOption::set_allocated_identifier_value(std::string* identifier_value) {
  12854. if (identifier_value != nullptr) {
  12855. _impl_._has_bits_[0] |= 0x00000001u;
  12856. } else {
  12857. _impl_._has_bits_[0] &= ~0x00000001u;
  12858. }
  12859. _impl_.identifier_value_.SetAllocated(identifier_value, GetArenaForAllocation());
  12860. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12861. if (_impl_.identifier_value_.IsDefault()) {
  12862. _impl_.identifier_value_.Set("", GetArenaForAllocation());
  12863. }
  12864. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12865. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  12866. }
  12867. // optional uint64 positive_int_value = 4;
  12868. inline bool UninterpretedOption::_internal_has_positive_int_value() const {
  12869. bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
  12870. return value;
  12871. }
  12872. inline bool UninterpretedOption::has_positive_int_value() const {
  12873. return _internal_has_positive_int_value();
  12874. }
  12875. inline void UninterpretedOption::clear_positive_int_value() {
  12876. _impl_.positive_int_value_ = uint64_t{0u};
  12877. _impl_._has_bits_[0] &= ~0x00000008u;
  12878. }
  12879. inline uint64_t UninterpretedOption::_internal_positive_int_value() const {
  12880. return _impl_.positive_int_value_;
  12881. }
  12882. inline uint64_t UninterpretedOption::positive_int_value() const {
  12883. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
  12884. return _internal_positive_int_value();
  12885. }
  12886. inline void UninterpretedOption::_internal_set_positive_int_value(uint64_t value) {
  12887. _impl_._has_bits_[0] |= 0x00000008u;
  12888. _impl_.positive_int_value_ = value;
  12889. }
  12890. inline void UninterpretedOption::set_positive_int_value(uint64_t value) {
  12891. _internal_set_positive_int_value(value);
  12892. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
  12893. }
  12894. // optional int64 negative_int_value = 5;
  12895. inline bool UninterpretedOption::_internal_has_negative_int_value() const {
  12896. bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
  12897. return value;
  12898. }
  12899. inline bool UninterpretedOption::has_negative_int_value() const {
  12900. return _internal_has_negative_int_value();
  12901. }
  12902. inline void UninterpretedOption::clear_negative_int_value() {
  12903. _impl_.negative_int_value_ = int64_t{0};
  12904. _impl_._has_bits_[0] &= ~0x00000010u;
  12905. }
  12906. inline int64_t UninterpretedOption::_internal_negative_int_value() const {
  12907. return _impl_.negative_int_value_;
  12908. }
  12909. inline int64_t UninterpretedOption::negative_int_value() const {
  12910. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
  12911. return _internal_negative_int_value();
  12912. }
  12913. inline void UninterpretedOption::_internal_set_negative_int_value(int64_t value) {
  12914. _impl_._has_bits_[0] |= 0x00000010u;
  12915. _impl_.negative_int_value_ = value;
  12916. }
  12917. inline void UninterpretedOption::set_negative_int_value(int64_t value) {
  12918. _internal_set_negative_int_value(value);
  12919. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
  12920. }
  12921. // optional double double_value = 6;
  12922. inline bool UninterpretedOption::_internal_has_double_value() const {
  12923. bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
  12924. return value;
  12925. }
  12926. inline bool UninterpretedOption::has_double_value() const {
  12927. return _internal_has_double_value();
  12928. }
  12929. inline void UninterpretedOption::clear_double_value() {
  12930. _impl_.double_value_ = 0;
  12931. _impl_._has_bits_[0] &= ~0x00000020u;
  12932. }
  12933. inline double UninterpretedOption::_internal_double_value() const {
  12934. return _impl_.double_value_;
  12935. }
  12936. inline double UninterpretedOption::double_value() const {
  12937. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
  12938. return _internal_double_value();
  12939. }
  12940. inline void UninterpretedOption::_internal_set_double_value(double value) {
  12941. _impl_._has_bits_[0] |= 0x00000020u;
  12942. _impl_.double_value_ = value;
  12943. }
  12944. inline void UninterpretedOption::set_double_value(double value) {
  12945. _internal_set_double_value(value);
  12946. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
  12947. }
  12948. // optional bytes string_value = 7;
  12949. inline bool UninterpretedOption::_internal_has_string_value() const {
  12950. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  12951. return value;
  12952. }
  12953. inline bool UninterpretedOption::has_string_value() const {
  12954. return _internal_has_string_value();
  12955. }
  12956. inline void UninterpretedOption::clear_string_value() {
  12957. _impl_.string_value_.ClearToEmpty();
  12958. _impl_._has_bits_[0] &= ~0x00000002u;
  12959. }
  12960. inline const std::string& UninterpretedOption::string_value() const {
  12961. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
  12962. return _internal_string_value();
  12963. }
  12964. template <typename ArgT0, typename... ArgT>
  12965. inline PROTOBUF_ALWAYS_INLINE
  12966. void UninterpretedOption::set_string_value(ArgT0&& arg0, ArgT... args) {
  12967. _impl_._has_bits_[0] |= 0x00000002u;
  12968. _impl_.string_value_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  12969. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
  12970. }
  12971. inline std::string* UninterpretedOption::mutable_string_value() {
  12972. std::string* _s = _internal_mutable_string_value();
  12973. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
  12974. return _s;
  12975. }
  12976. inline const std::string& UninterpretedOption::_internal_string_value() const {
  12977. return _impl_.string_value_.Get();
  12978. }
  12979. inline void UninterpretedOption::_internal_set_string_value(const std::string& value) {
  12980. _impl_._has_bits_[0] |= 0x00000002u;
  12981. _impl_.string_value_.Set(value, GetArenaForAllocation());
  12982. }
  12983. inline std::string* UninterpretedOption::_internal_mutable_string_value() {
  12984. _impl_._has_bits_[0] |= 0x00000002u;
  12985. return _impl_.string_value_.Mutable(GetArenaForAllocation());
  12986. }
  12987. inline std::string* UninterpretedOption::release_string_value() {
  12988. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.string_value)
  12989. if (!_internal_has_string_value()) {
  12990. return nullptr;
  12991. }
  12992. _impl_._has_bits_[0] &= ~0x00000002u;
  12993. auto* p = _impl_.string_value_.Release();
  12994. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12995. if (_impl_.string_value_.IsDefault()) {
  12996. _impl_.string_value_.Set("", GetArenaForAllocation());
  12997. }
  12998. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12999. return p;
  13000. }
  13001. inline void UninterpretedOption::set_allocated_string_value(std::string* string_value) {
  13002. if (string_value != nullptr) {
  13003. _impl_._has_bits_[0] |= 0x00000002u;
  13004. } else {
  13005. _impl_._has_bits_[0] &= ~0x00000002u;
  13006. }
  13007. _impl_.string_value_.SetAllocated(string_value, GetArenaForAllocation());
  13008. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13009. if (_impl_.string_value_.IsDefault()) {
  13010. _impl_.string_value_.Set("", GetArenaForAllocation());
  13011. }
  13012. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13013. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
  13014. }
  13015. // optional string aggregate_value = 8;
  13016. inline bool UninterpretedOption::_internal_has_aggregate_value() const {
  13017. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  13018. return value;
  13019. }
  13020. inline bool UninterpretedOption::has_aggregate_value() const {
  13021. return _internal_has_aggregate_value();
  13022. }
  13023. inline void UninterpretedOption::clear_aggregate_value() {
  13024. _impl_.aggregate_value_.ClearToEmpty();
  13025. _impl_._has_bits_[0] &= ~0x00000004u;
  13026. }
  13027. inline const std::string& UninterpretedOption::aggregate_value() const {
  13028. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
  13029. return _internal_aggregate_value();
  13030. }
  13031. template <typename ArgT0, typename... ArgT>
  13032. inline PROTOBUF_ALWAYS_INLINE
  13033. void UninterpretedOption::set_aggregate_value(ArgT0&& arg0, ArgT... args) {
  13034. _impl_._has_bits_[0] |= 0x00000004u;
  13035. _impl_.aggregate_value_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  13036. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
  13037. }
  13038. inline std::string* UninterpretedOption::mutable_aggregate_value() {
  13039. std::string* _s = _internal_mutable_aggregate_value();
  13040. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
  13041. return _s;
  13042. }
  13043. inline const std::string& UninterpretedOption::_internal_aggregate_value() const {
  13044. return _impl_.aggregate_value_.Get();
  13045. }
  13046. inline void UninterpretedOption::_internal_set_aggregate_value(const std::string& value) {
  13047. _impl_._has_bits_[0] |= 0x00000004u;
  13048. _impl_.aggregate_value_.Set(value, GetArenaForAllocation());
  13049. }
  13050. inline std::string* UninterpretedOption::_internal_mutable_aggregate_value() {
  13051. _impl_._has_bits_[0] |= 0x00000004u;
  13052. return _impl_.aggregate_value_.Mutable(GetArenaForAllocation());
  13053. }
  13054. inline std::string* UninterpretedOption::release_aggregate_value() {
  13055. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.aggregate_value)
  13056. if (!_internal_has_aggregate_value()) {
  13057. return nullptr;
  13058. }
  13059. _impl_._has_bits_[0] &= ~0x00000004u;
  13060. auto* p = _impl_.aggregate_value_.Release();
  13061. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13062. if (_impl_.aggregate_value_.IsDefault()) {
  13063. _impl_.aggregate_value_.Set("", GetArenaForAllocation());
  13064. }
  13065. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13066. return p;
  13067. }
  13068. inline void UninterpretedOption::set_allocated_aggregate_value(std::string* aggregate_value) {
  13069. if (aggregate_value != nullptr) {
  13070. _impl_._has_bits_[0] |= 0x00000004u;
  13071. } else {
  13072. _impl_._has_bits_[0] &= ~0x00000004u;
  13073. }
  13074. _impl_.aggregate_value_.SetAllocated(aggregate_value, GetArenaForAllocation());
  13075. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13076. if (_impl_.aggregate_value_.IsDefault()) {
  13077. _impl_.aggregate_value_.Set("", GetArenaForAllocation());
  13078. }
  13079. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13080. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  13081. }
  13082. // -------------------------------------------------------------------
  13083. // SourceCodeInfo_Location
  13084. // repeated int32 path = 1 [packed = true];
  13085. inline int SourceCodeInfo_Location::_internal_path_size() const {
  13086. return _impl_.path_.size();
  13087. }
  13088. inline int SourceCodeInfo_Location::path_size() const {
  13089. return _internal_path_size();
  13090. }
  13091. inline void SourceCodeInfo_Location::clear_path() {
  13092. _impl_.path_.Clear();
  13093. }
  13094. inline int32_t SourceCodeInfo_Location::_internal_path(int index) const {
  13095. return _impl_.path_.Get(index);
  13096. }
  13097. inline int32_t SourceCodeInfo_Location::path(int index) const {
  13098. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
  13099. return _internal_path(index);
  13100. }
  13101. inline void SourceCodeInfo_Location::set_path(int index, int32_t value) {
  13102. _impl_.path_.Set(index, value);
  13103. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
  13104. }
  13105. inline void SourceCodeInfo_Location::_internal_add_path(int32_t value) {
  13106. _impl_.path_.Add(value);
  13107. }
  13108. inline void SourceCodeInfo_Location::add_path(int32_t value) {
  13109. _internal_add_path(value);
  13110. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
  13111. }
  13112. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13113. SourceCodeInfo_Location::_internal_path() const {
  13114. return _impl_.path_;
  13115. }
  13116. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13117. SourceCodeInfo_Location::path() const {
  13118. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
  13119. return _internal_path();
  13120. }
  13121. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13122. SourceCodeInfo_Location::_internal_mutable_path() {
  13123. return &_impl_.path_;
  13124. }
  13125. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13126. SourceCodeInfo_Location::mutable_path() {
  13127. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
  13128. return _internal_mutable_path();
  13129. }
  13130. // repeated int32 span = 2 [packed = true];
  13131. inline int SourceCodeInfo_Location::_internal_span_size() const {
  13132. return _impl_.span_.size();
  13133. }
  13134. inline int SourceCodeInfo_Location::span_size() const {
  13135. return _internal_span_size();
  13136. }
  13137. inline void SourceCodeInfo_Location::clear_span() {
  13138. _impl_.span_.Clear();
  13139. }
  13140. inline int32_t SourceCodeInfo_Location::_internal_span(int index) const {
  13141. return _impl_.span_.Get(index);
  13142. }
  13143. inline int32_t SourceCodeInfo_Location::span(int index) const {
  13144. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
  13145. return _internal_span(index);
  13146. }
  13147. inline void SourceCodeInfo_Location::set_span(int index, int32_t value) {
  13148. _impl_.span_.Set(index, value);
  13149. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
  13150. }
  13151. inline void SourceCodeInfo_Location::_internal_add_span(int32_t value) {
  13152. _impl_.span_.Add(value);
  13153. }
  13154. inline void SourceCodeInfo_Location::add_span(int32_t value) {
  13155. _internal_add_span(value);
  13156. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
  13157. }
  13158. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13159. SourceCodeInfo_Location::_internal_span() const {
  13160. return _impl_.span_;
  13161. }
  13162. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13163. SourceCodeInfo_Location::span() const {
  13164. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
  13165. return _internal_span();
  13166. }
  13167. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13168. SourceCodeInfo_Location::_internal_mutable_span() {
  13169. return &_impl_.span_;
  13170. }
  13171. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13172. SourceCodeInfo_Location::mutable_span() {
  13173. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
  13174. return _internal_mutable_span();
  13175. }
  13176. // optional string leading_comments = 3;
  13177. inline bool SourceCodeInfo_Location::_internal_has_leading_comments() const {
  13178. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  13179. return value;
  13180. }
  13181. inline bool SourceCodeInfo_Location::has_leading_comments() const {
  13182. return _internal_has_leading_comments();
  13183. }
  13184. inline void SourceCodeInfo_Location::clear_leading_comments() {
  13185. _impl_.leading_comments_.ClearToEmpty();
  13186. _impl_._has_bits_[0] &= ~0x00000001u;
  13187. }
  13188. inline const std::string& SourceCodeInfo_Location::leading_comments() const {
  13189. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13190. return _internal_leading_comments();
  13191. }
  13192. template <typename ArgT0, typename... ArgT>
  13193. inline PROTOBUF_ALWAYS_INLINE
  13194. void SourceCodeInfo_Location::set_leading_comments(ArgT0&& arg0, ArgT... args) {
  13195. _impl_._has_bits_[0] |= 0x00000001u;
  13196. _impl_.leading_comments_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  13197. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13198. }
  13199. inline std::string* SourceCodeInfo_Location::mutable_leading_comments() {
  13200. std::string* _s = _internal_mutable_leading_comments();
  13201. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13202. return _s;
  13203. }
  13204. inline const std::string& SourceCodeInfo_Location::_internal_leading_comments() const {
  13205. return _impl_.leading_comments_.Get();
  13206. }
  13207. inline void SourceCodeInfo_Location::_internal_set_leading_comments(const std::string& value) {
  13208. _impl_._has_bits_[0] |= 0x00000001u;
  13209. _impl_.leading_comments_.Set(value, GetArenaForAllocation());
  13210. }
  13211. inline std::string* SourceCodeInfo_Location::_internal_mutable_leading_comments() {
  13212. _impl_._has_bits_[0] |= 0x00000001u;
  13213. return _impl_.leading_comments_.Mutable(GetArenaForAllocation());
  13214. }
  13215. inline std::string* SourceCodeInfo_Location::release_leading_comments() {
  13216. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13217. if (!_internal_has_leading_comments()) {
  13218. return nullptr;
  13219. }
  13220. _impl_._has_bits_[0] &= ~0x00000001u;
  13221. auto* p = _impl_.leading_comments_.Release();
  13222. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13223. if (_impl_.leading_comments_.IsDefault()) {
  13224. _impl_.leading_comments_.Set("", GetArenaForAllocation());
  13225. }
  13226. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13227. return p;
  13228. }
  13229. inline void SourceCodeInfo_Location::set_allocated_leading_comments(std::string* leading_comments) {
  13230. if (leading_comments != nullptr) {
  13231. _impl_._has_bits_[0] |= 0x00000001u;
  13232. } else {
  13233. _impl_._has_bits_[0] &= ~0x00000001u;
  13234. }
  13235. _impl_.leading_comments_.SetAllocated(leading_comments, GetArenaForAllocation());
  13236. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13237. if (_impl_.leading_comments_.IsDefault()) {
  13238. _impl_.leading_comments_.Set("", GetArenaForAllocation());
  13239. }
  13240. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13241. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13242. }
  13243. // optional string trailing_comments = 4;
  13244. inline bool SourceCodeInfo_Location::_internal_has_trailing_comments() const {
  13245. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  13246. return value;
  13247. }
  13248. inline bool SourceCodeInfo_Location::has_trailing_comments() const {
  13249. return _internal_has_trailing_comments();
  13250. }
  13251. inline void SourceCodeInfo_Location::clear_trailing_comments() {
  13252. _impl_.trailing_comments_.ClearToEmpty();
  13253. _impl_._has_bits_[0] &= ~0x00000002u;
  13254. }
  13255. inline const std::string& SourceCodeInfo_Location::trailing_comments() const {
  13256. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13257. return _internal_trailing_comments();
  13258. }
  13259. template <typename ArgT0, typename... ArgT>
  13260. inline PROTOBUF_ALWAYS_INLINE
  13261. void SourceCodeInfo_Location::set_trailing_comments(ArgT0&& arg0, ArgT... args) {
  13262. _impl_._has_bits_[0] |= 0x00000002u;
  13263. _impl_.trailing_comments_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  13264. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13265. }
  13266. inline std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
  13267. std::string* _s = _internal_mutable_trailing_comments();
  13268. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13269. return _s;
  13270. }
  13271. inline const std::string& SourceCodeInfo_Location::_internal_trailing_comments() const {
  13272. return _impl_.trailing_comments_.Get();
  13273. }
  13274. inline void SourceCodeInfo_Location::_internal_set_trailing_comments(const std::string& value) {
  13275. _impl_._has_bits_[0] |= 0x00000002u;
  13276. _impl_.trailing_comments_.Set(value, GetArenaForAllocation());
  13277. }
  13278. inline std::string* SourceCodeInfo_Location::_internal_mutable_trailing_comments() {
  13279. _impl_._has_bits_[0] |= 0x00000002u;
  13280. return _impl_.trailing_comments_.Mutable(GetArenaForAllocation());
  13281. }
  13282. inline std::string* SourceCodeInfo_Location::release_trailing_comments() {
  13283. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13284. if (!_internal_has_trailing_comments()) {
  13285. return nullptr;
  13286. }
  13287. _impl_._has_bits_[0] &= ~0x00000002u;
  13288. auto* p = _impl_.trailing_comments_.Release();
  13289. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13290. if (_impl_.trailing_comments_.IsDefault()) {
  13291. _impl_.trailing_comments_.Set("", GetArenaForAllocation());
  13292. }
  13293. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13294. return p;
  13295. }
  13296. inline void SourceCodeInfo_Location::set_allocated_trailing_comments(std::string* trailing_comments) {
  13297. if (trailing_comments != nullptr) {
  13298. _impl_._has_bits_[0] |= 0x00000002u;
  13299. } else {
  13300. _impl_._has_bits_[0] &= ~0x00000002u;
  13301. }
  13302. _impl_.trailing_comments_.SetAllocated(trailing_comments, GetArenaForAllocation());
  13303. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13304. if (_impl_.trailing_comments_.IsDefault()) {
  13305. _impl_.trailing_comments_.Set("", GetArenaForAllocation());
  13306. }
  13307. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13308. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13309. }
  13310. // repeated string leading_detached_comments = 6;
  13311. inline int SourceCodeInfo_Location::_internal_leading_detached_comments_size() const {
  13312. return _impl_.leading_detached_comments_.size();
  13313. }
  13314. inline int SourceCodeInfo_Location::leading_detached_comments_size() const {
  13315. return _internal_leading_detached_comments_size();
  13316. }
  13317. inline void SourceCodeInfo_Location::clear_leading_detached_comments() {
  13318. _impl_.leading_detached_comments_.Clear();
  13319. }
  13320. inline std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
  13321. std::string* _s = _internal_add_leading_detached_comments();
  13322. // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13323. return _s;
  13324. }
  13325. inline const std::string& SourceCodeInfo_Location::_internal_leading_detached_comments(int index) const {
  13326. return _impl_.leading_detached_comments_.Get(index);
  13327. }
  13328. inline const std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const {
  13329. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13330. return _internal_leading_detached_comments(index);
  13331. }
  13332. inline std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) {
  13333. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13334. return _impl_.leading_detached_comments_.Mutable(index);
  13335. }
  13336. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const std::string& value) {
  13337. _impl_.leading_detached_comments_.Mutable(index)->assign(value);
  13338. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13339. }
  13340. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, std::string&& value) {
  13341. _impl_.leading_detached_comments_.Mutable(index)->assign(std::move(value));
  13342. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13343. }
  13344. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) {
  13345. GOOGLE_DCHECK(value != nullptr);
  13346. _impl_.leading_detached_comments_.Mutable(index)->assign(value);
  13347. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13348. }
  13349. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) {
  13350. _impl_.leading_detached_comments_.Mutable(index)->assign(
  13351. reinterpret_cast<const char*>(value), size);
  13352. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13353. }
  13354. inline std::string* SourceCodeInfo_Location::_internal_add_leading_detached_comments() {
  13355. return _impl_.leading_detached_comments_.Add();
  13356. }
  13357. inline void SourceCodeInfo_Location::add_leading_detached_comments(const std::string& value) {
  13358. _impl_.leading_detached_comments_.Add()->assign(value);
  13359. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13360. }
  13361. inline void SourceCodeInfo_Location::add_leading_detached_comments(std::string&& value) {
  13362. _impl_.leading_detached_comments_.Add(std::move(value));
  13363. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13364. }
  13365. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
  13366. GOOGLE_DCHECK(value != nullptr);
  13367. _impl_.leading_detached_comments_.Add()->assign(value);
  13368. // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13369. }
  13370. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) {
  13371. _impl_.leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
  13372. // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13373. }
  13374. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  13375. SourceCodeInfo_Location::leading_detached_comments() const {
  13376. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13377. return _impl_.leading_detached_comments_;
  13378. }
  13379. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  13380. SourceCodeInfo_Location::mutable_leading_detached_comments() {
  13381. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13382. return &_impl_.leading_detached_comments_;
  13383. }
  13384. // -------------------------------------------------------------------
  13385. // SourceCodeInfo
  13386. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  13387. inline int SourceCodeInfo::_internal_location_size() const {
  13388. return _impl_.location_.size();
  13389. }
  13390. inline int SourceCodeInfo::location_size() const {
  13391. return _internal_location_size();
  13392. }
  13393. inline void SourceCodeInfo::clear_location() {
  13394. _impl_.location_.Clear();
  13395. }
  13396. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
  13397. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
  13398. return _impl_.location_.Mutable(index);
  13399. }
  13400. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >*
  13401. SourceCodeInfo::mutable_location() {
  13402. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
  13403. return &_impl_.location_;
  13404. }
  13405. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& SourceCodeInfo::_internal_location(int index) const {
  13406. return _impl_.location_.Get(index);
  13407. }
  13408. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
  13409. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
  13410. return _internal_location(index);
  13411. }
  13412. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::_internal_add_location() {
  13413. return _impl_.location_.Add();
  13414. }
  13415. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
  13416. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* _add = _internal_add_location();
  13417. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
  13418. return _add;
  13419. }
  13420. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >&
  13421. SourceCodeInfo::location() const {
  13422. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
  13423. return _impl_.location_;
  13424. }
  13425. // -------------------------------------------------------------------
  13426. // GeneratedCodeInfo_Annotation
  13427. // repeated int32 path = 1 [packed = true];
  13428. inline int GeneratedCodeInfo_Annotation::_internal_path_size() const {
  13429. return _impl_.path_.size();
  13430. }
  13431. inline int GeneratedCodeInfo_Annotation::path_size() const {
  13432. return _internal_path_size();
  13433. }
  13434. inline void GeneratedCodeInfo_Annotation::clear_path() {
  13435. _impl_.path_.Clear();
  13436. }
  13437. inline int32_t GeneratedCodeInfo_Annotation::_internal_path(int index) const {
  13438. return _impl_.path_.Get(index);
  13439. }
  13440. inline int32_t GeneratedCodeInfo_Annotation::path(int index) const {
  13441. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13442. return _internal_path(index);
  13443. }
  13444. inline void GeneratedCodeInfo_Annotation::set_path(int index, int32_t value) {
  13445. _impl_.path_.Set(index, value);
  13446. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13447. }
  13448. inline void GeneratedCodeInfo_Annotation::_internal_add_path(int32_t value) {
  13449. _impl_.path_.Add(value);
  13450. }
  13451. inline void GeneratedCodeInfo_Annotation::add_path(int32_t value) {
  13452. _internal_add_path(value);
  13453. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13454. }
  13455. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13456. GeneratedCodeInfo_Annotation::_internal_path() const {
  13457. return _impl_.path_;
  13458. }
  13459. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13460. GeneratedCodeInfo_Annotation::path() const {
  13461. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13462. return _internal_path();
  13463. }
  13464. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13465. GeneratedCodeInfo_Annotation::_internal_mutable_path() {
  13466. return &_impl_.path_;
  13467. }
  13468. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13469. GeneratedCodeInfo_Annotation::mutable_path() {
  13470. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13471. return _internal_mutable_path();
  13472. }
  13473. // optional string source_file = 2;
  13474. inline bool GeneratedCodeInfo_Annotation::_internal_has_source_file() const {
  13475. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  13476. return value;
  13477. }
  13478. inline bool GeneratedCodeInfo_Annotation::has_source_file() const {
  13479. return _internal_has_source_file();
  13480. }
  13481. inline void GeneratedCodeInfo_Annotation::clear_source_file() {
  13482. _impl_.source_file_.ClearToEmpty();
  13483. _impl_._has_bits_[0] &= ~0x00000001u;
  13484. }
  13485. inline const std::string& GeneratedCodeInfo_Annotation::source_file() const {
  13486. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13487. return _internal_source_file();
  13488. }
  13489. template <typename ArgT0, typename... ArgT>
  13490. inline PROTOBUF_ALWAYS_INLINE
  13491. void GeneratedCodeInfo_Annotation::set_source_file(ArgT0&& arg0, ArgT... args) {
  13492. _impl_._has_bits_[0] |= 0x00000001u;
  13493. _impl_.source_file_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  13494. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13495. }
  13496. inline std::string* GeneratedCodeInfo_Annotation::mutable_source_file() {
  13497. std::string* _s = _internal_mutable_source_file();
  13498. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13499. return _s;
  13500. }
  13501. inline const std::string& GeneratedCodeInfo_Annotation::_internal_source_file() const {
  13502. return _impl_.source_file_.Get();
  13503. }
  13504. inline void GeneratedCodeInfo_Annotation::_internal_set_source_file(const std::string& value) {
  13505. _impl_._has_bits_[0] |= 0x00000001u;
  13506. _impl_.source_file_.Set(value, GetArenaForAllocation());
  13507. }
  13508. inline std::string* GeneratedCodeInfo_Annotation::_internal_mutable_source_file() {
  13509. _impl_._has_bits_[0] |= 0x00000001u;
  13510. return _impl_.source_file_.Mutable(GetArenaForAllocation());
  13511. }
  13512. inline std::string* GeneratedCodeInfo_Annotation::release_source_file() {
  13513. // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13514. if (!_internal_has_source_file()) {
  13515. return nullptr;
  13516. }
  13517. _impl_._has_bits_[0] &= ~0x00000001u;
  13518. auto* p = _impl_.source_file_.Release();
  13519. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13520. if (_impl_.source_file_.IsDefault()) {
  13521. _impl_.source_file_.Set("", GetArenaForAllocation());
  13522. }
  13523. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13524. return p;
  13525. }
  13526. inline void GeneratedCodeInfo_Annotation::set_allocated_source_file(std::string* source_file) {
  13527. if (source_file != nullptr) {
  13528. _impl_._has_bits_[0] |= 0x00000001u;
  13529. } else {
  13530. _impl_._has_bits_[0] &= ~0x00000001u;
  13531. }
  13532. _impl_.source_file_.SetAllocated(source_file, GetArenaForAllocation());
  13533. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13534. if (_impl_.source_file_.IsDefault()) {
  13535. _impl_.source_file_.Set("", GetArenaForAllocation());
  13536. }
  13537. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13538. // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13539. }
  13540. // optional int32 begin = 3;
  13541. inline bool GeneratedCodeInfo_Annotation::_internal_has_begin() const {
  13542. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  13543. return value;
  13544. }
  13545. inline bool GeneratedCodeInfo_Annotation::has_begin() const {
  13546. return _internal_has_begin();
  13547. }
  13548. inline void GeneratedCodeInfo_Annotation::clear_begin() {
  13549. _impl_.begin_ = 0;
  13550. _impl_._has_bits_[0] &= ~0x00000002u;
  13551. }
  13552. inline int32_t GeneratedCodeInfo_Annotation::_internal_begin() const {
  13553. return _impl_.begin_;
  13554. }
  13555. inline int32_t GeneratedCodeInfo_Annotation::begin() const {
  13556. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  13557. return _internal_begin();
  13558. }
  13559. inline void GeneratedCodeInfo_Annotation::_internal_set_begin(int32_t value) {
  13560. _impl_._has_bits_[0] |= 0x00000002u;
  13561. _impl_.begin_ = value;
  13562. }
  13563. inline void GeneratedCodeInfo_Annotation::set_begin(int32_t value) {
  13564. _internal_set_begin(value);
  13565. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  13566. }
  13567. // optional int32 end = 4;
  13568. inline bool GeneratedCodeInfo_Annotation::_internal_has_end() const {
  13569. bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
  13570. return value;
  13571. }
  13572. inline bool GeneratedCodeInfo_Annotation::has_end() const {
  13573. return _internal_has_end();
  13574. }
  13575. inline void GeneratedCodeInfo_Annotation::clear_end() {
  13576. _impl_.end_ = 0;
  13577. _impl_._has_bits_[0] &= ~0x00000004u;
  13578. }
  13579. inline int32_t GeneratedCodeInfo_Annotation::_internal_end() const {
  13580. return _impl_.end_;
  13581. }
  13582. inline int32_t GeneratedCodeInfo_Annotation::end() const {
  13583. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end)
  13584. return _internal_end();
  13585. }
  13586. inline void GeneratedCodeInfo_Annotation::_internal_set_end(int32_t value) {
  13587. _impl_._has_bits_[0] |= 0x00000004u;
  13588. _impl_.end_ = value;
  13589. }
  13590. inline void GeneratedCodeInfo_Annotation::set_end(int32_t value) {
  13591. _internal_set_end(value);
  13592. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end)
  13593. }
  13594. // -------------------------------------------------------------------
  13595. // GeneratedCodeInfo
  13596. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  13597. inline int GeneratedCodeInfo::_internal_annotation_size() const {
  13598. return _impl_.annotation_.size();
  13599. }
  13600. inline int GeneratedCodeInfo::annotation_size() const {
  13601. return _internal_annotation_size();
  13602. }
  13603. inline void GeneratedCodeInfo::clear_annotation() {
  13604. _impl_.annotation_.Clear();
  13605. }
  13606. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::mutable_annotation(int index) {
  13607. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.annotation)
  13608. return _impl_.annotation_.Mutable(index);
  13609. }
  13610. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >*
  13611. GeneratedCodeInfo::mutable_annotation() {
  13612. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.annotation)
  13613. return &_impl_.annotation_;
  13614. }
  13615. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::_internal_annotation(int index) const {
  13616. return _impl_.annotation_.Get(index);
  13617. }
  13618. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annotation(int index) const {
  13619. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.annotation)
  13620. return _internal_annotation(index);
  13621. }
  13622. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::_internal_add_annotation() {
  13623. return _impl_.annotation_.Add();
  13624. }
  13625. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::add_annotation() {
  13626. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* _add = _internal_add_annotation();
  13627. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.annotation)
  13628. return _add;
  13629. }
  13630. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >&
  13631. GeneratedCodeInfo::annotation() const {
  13632. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.annotation)
  13633. return _impl_.annotation_;
  13634. }
  13635. #ifdef __GNUC__
  13636. #pragma GCC diagnostic pop
  13637. #endif // __GNUC__
  13638. // -------------------------------------------------------------------
  13639. // -------------------------------------------------------------------
  13640. // -------------------------------------------------------------------
  13641. // -------------------------------------------------------------------
  13642. // -------------------------------------------------------------------
  13643. // -------------------------------------------------------------------
  13644. // -------------------------------------------------------------------
  13645. // -------------------------------------------------------------------
  13646. // -------------------------------------------------------------------
  13647. // -------------------------------------------------------------------
  13648. // -------------------------------------------------------------------
  13649. // -------------------------------------------------------------------
  13650. // -------------------------------------------------------------------
  13651. // -------------------------------------------------------------------
  13652. // -------------------------------------------------------------------
  13653. // -------------------------------------------------------------------
  13654. // -------------------------------------------------------------------
  13655. // -------------------------------------------------------------------
  13656. // -------------------------------------------------------------------
  13657. // -------------------------------------------------------------------
  13658. // -------------------------------------------------------------------
  13659. // -------------------------------------------------------------------
  13660. // -------------------------------------------------------------------
  13661. // -------------------------------------------------------------------
  13662. // -------------------------------------------------------------------
  13663. // -------------------------------------------------------------------
  13664. // @@protoc_insertion_point(namespace_scope)
  13665. PROTOBUF_NAMESPACE_CLOSE
  13666. PROTOBUF_NAMESPACE_OPEN
  13667. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type> : ::std::true_type {};
  13668. template <>
  13669. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type>() {
  13670. return ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_descriptor();
  13671. }
  13672. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label> : ::std::true_type {};
  13673. template <>
  13674. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label>() {
  13675. return ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_descriptor();
  13676. }
  13677. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode> : ::std::true_type {};
  13678. template <>
  13679. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode>() {
  13680. return ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_descriptor();
  13681. }
  13682. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType> : ::std::true_type {};
  13683. template <>
  13684. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType>() {
  13685. return ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType_descriptor();
  13686. }
  13687. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType> : ::std::true_type {};
  13688. template <>
  13689. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType>() {
  13690. return ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_descriptor();
  13691. }
  13692. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel> : ::std::true_type {};
  13693. template <>
  13694. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel>() {
  13695. return ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_descriptor();
  13696. }
  13697. PROTOBUF_NAMESPACE_CLOSE
  13698. // @@protoc_insertion_point(global_scope)
  13699. #include <google/protobuf/port_undef.inc>
  13700. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto