descriptor.pb.h 605 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  4. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  5. #include <limits>
  6. #include <string>
  7. #include <google/protobuf/port_def.inc>
  8. #if PROTOBUF_VERSION < 3019000
  9. #error This file was generated by a newer version of protoc which is
  10. #error incompatible with your Protocol Buffer headers. Please update
  11. #error your headers.
  12. #endif
  13. #if 3019004 < PROTOBUF_MIN_PROTOC_VERSION
  14. #error This file was generated by an older version of protoc which is
  15. #error incompatible with your Protocol Buffer headers. Please
  16. #error regenerate this file with a newer version of protoc.
  17. #endif
  18. #include <google/protobuf/port_undef.inc>
  19. #include <google/protobuf/io/coded_stream.h>
  20. #include <google/protobuf/arena.h>
  21. #include <google/protobuf/arenastring.h>
  22. #include <google/protobuf/generated_message_table_driven.h>
  23. #include <google/protobuf/generated_message_util.h>
  24. #include <google/protobuf/metadata_lite.h>
  25. #include <google/protobuf/generated_message_reflection.h>
  26. #include <google/protobuf/message.h>
  27. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  28. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  29. #include <google/protobuf/generated_enum_reflection.h>
  30. #include <google/protobuf/unknown_field_set.h>
  31. // @@protoc_insertion_point(includes)
  32. #include <google/protobuf/port_def.inc>
  33. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fdescriptor_2eproto PROTOBUF_EXPORT
  34. PROTOBUF_NAMESPACE_OPEN
  35. namespace internal {
  36. class AnyMetadata;
  37. } // namespace internal
  38. PROTOBUF_NAMESPACE_CLOSE
  39. // Internal implementation detail -- do not use these members.
  40. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fdescriptor_2eproto {
  41. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  42. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  43. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  44. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  45. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[27]
  46. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  47. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  49. static const uint32_t offsets[];
  50. };
  51. PROTOBUF_EXPORT extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fdescriptor_2eproto;
  52. PROTOBUF_NAMESPACE_OPEN
  53. class DescriptorProto;
  54. struct DescriptorProtoDefaultTypeInternal;
  55. PROTOBUF_EXPORT extern DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_;
  56. class DescriptorProto_ExtensionRange;
  57. struct DescriptorProto_ExtensionRangeDefaultTypeInternal;
  58. PROTOBUF_EXPORT extern DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_;
  59. class DescriptorProto_ReservedRange;
  60. struct DescriptorProto_ReservedRangeDefaultTypeInternal;
  61. PROTOBUF_EXPORT extern DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_;
  62. class EnumDescriptorProto;
  63. struct EnumDescriptorProtoDefaultTypeInternal;
  64. PROTOBUF_EXPORT extern EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_;
  65. class EnumDescriptorProto_EnumReservedRange;
  66. struct EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal;
  67. PROTOBUF_EXPORT extern EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal _EnumDescriptorProto_EnumReservedRange_default_instance_;
  68. class EnumOptions;
  69. struct EnumOptionsDefaultTypeInternal;
  70. PROTOBUF_EXPORT extern EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_;
  71. class EnumValueDescriptorProto;
  72. struct EnumValueDescriptorProtoDefaultTypeInternal;
  73. PROTOBUF_EXPORT extern EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_;
  74. class EnumValueOptions;
  75. struct EnumValueOptionsDefaultTypeInternal;
  76. PROTOBUF_EXPORT extern EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_;
  77. class ExtensionRangeOptions;
  78. struct ExtensionRangeOptionsDefaultTypeInternal;
  79. PROTOBUF_EXPORT extern ExtensionRangeOptionsDefaultTypeInternal _ExtensionRangeOptions_default_instance_;
  80. class FieldDescriptorProto;
  81. struct FieldDescriptorProtoDefaultTypeInternal;
  82. PROTOBUF_EXPORT extern FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_;
  83. class FieldOptions;
  84. struct FieldOptionsDefaultTypeInternal;
  85. PROTOBUF_EXPORT extern FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_;
  86. class FileDescriptorProto;
  87. struct FileDescriptorProtoDefaultTypeInternal;
  88. PROTOBUF_EXPORT extern FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_;
  89. class FileDescriptorSet;
  90. struct FileDescriptorSetDefaultTypeInternal;
  91. PROTOBUF_EXPORT extern FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_;
  92. class FileOptions;
  93. struct FileOptionsDefaultTypeInternal;
  94. PROTOBUF_EXPORT extern FileOptionsDefaultTypeInternal _FileOptions_default_instance_;
  95. class GeneratedCodeInfo;
  96. struct GeneratedCodeInfoDefaultTypeInternal;
  97. PROTOBUF_EXPORT extern GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_;
  98. class GeneratedCodeInfo_Annotation;
  99. struct GeneratedCodeInfo_AnnotationDefaultTypeInternal;
  100. PROTOBUF_EXPORT extern GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_;
  101. class MessageOptions;
  102. struct MessageOptionsDefaultTypeInternal;
  103. PROTOBUF_EXPORT extern MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_;
  104. class MethodDescriptorProto;
  105. struct MethodDescriptorProtoDefaultTypeInternal;
  106. PROTOBUF_EXPORT extern MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_;
  107. class MethodOptions;
  108. struct MethodOptionsDefaultTypeInternal;
  109. PROTOBUF_EXPORT extern MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_;
  110. class OneofDescriptorProto;
  111. struct OneofDescriptorProtoDefaultTypeInternal;
  112. PROTOBUF_EXPORT extern OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_;
  113. class OneofOptions;
  114. struct OneofOptionsDefaultTypeInternal;
  115. PROTOBUF_EXPORT extern OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_;
  116. class ServiceDescriptorProto;
  117. struct ServiceDescriptorProtoDefaultTypeInternal;
  118. PROTOBUF_EXPORT extern ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_;
  119. class ServiceOptions;
  120. struct ServiceOptionsDefaultTypeInternal;
  121. PROTOBUF_EXPORT extern ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_;
  122. class SourceCodeInfo;
  123. struct SourceCodeInfoDefaultTypeInternal;
  124. PROTOBUF_EXPORT extern SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_;
  125. class SourceCodeInfo_Location;
  126. struct SourceCodeInfo_LocationDefaultTypeInternal;
  127. PROTOBUF_EXPORT extern SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_;
  128. class UninterpretedOption;
  129. struct UninterpretedOptionDefaultTypeInternal;
  130. PROTOBUF_EXPORT extern UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_;
  131. class UninterpretedOption_NamePart;
  132. struct UninterpretedOption_NamePartDefaultTypeInternal;
  133. PROTOBUF_EXPORT extern UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_;
  134. PROTOBUF_NAMESPACE_CLOSE
  135. PROTOBUF_NAMESPACE_OPEN
  136. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto>(Arena*);
  137. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange>(Arena*);
  138. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange>(Arena*);
  139. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto>(Arena*);
  140. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange>(Arena*);
  141. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumOptions>(Arena*);
  142. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto>(Arena*);
  143. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueOptions>(Arena*);
  144. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>(Arena*);
  145. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto>(Arena*);
  146. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FieldOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldOptions>(Arena*);
  147. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileDescriptorProto>(Arena*);
  148. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileDescriptorSet* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileDescriptorSet>(Arena*);
  149. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::FileOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileOptions>(Arena*);
  150. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo>(Arena*);
  151. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation>(Arena*);
  152. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MessageOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MessageOptions>(Arena*);
  153. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto>(Arena*);
  154. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::MethodOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodOptions>(Arena*);
  155. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto>(Arena*);
  156. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::OneofOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofOptions>(Arena*);
  157. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto>(Arena*);
  158. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::ServiceOptions* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceOptions>(Arena*);
  159. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo>(Arena*);
  160. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location>(Arena*);
  161. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::UninterpretedOption>(Arena*);
  162. template<> PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* Arena::CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart>(Arena*);
  163. PROTOBUF_NAMESPACE_CLOSE
  164. PROTOBUF_NAMESPACE_OPEN
  165. enum FieldDescriptorProto_Type : int {
  166. FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
  167. FieldDescriptorProto_Type_TYPE_FLOAT = 2,
  168. FieldDescriptorProto_Type_TYPE_INT64 = 3,
  169. FieldDescriptorProto_Type_TYPE_UINT64 = 4,
  170. FieldDescriptorProto_Type_TYPE_INT32 = 5,
  171. FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
  172. FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
  173. FieldDescriptorProto_Type_TYPE_BOOL = 8,
  174. FieldDescriptorProto_Type_TYPE_STRING = 9,
  175. FieldDescriptorProto_Type_TYPE_GROUP = 10,
  176. FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
  177. FieldDescriptorProto_Type_TYPE_BYTES = 12,
  178. FieldDescriptorProto_Type_TYPE_UINT32 = 13,
  179. FieldDescriptorProto_Type_TYPE_ENUM = 14,
  180. FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
  181. FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
  182. FieldDescriptorProto_Type_TYPE_SINT32 = 17,
  183. FieldDescriptorProto_Type_TYPE_SINT64 = 18
  184. };
  185. PROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
  186. constexpr FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
  187. constexpr FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
  188. constexpr int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
  189. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
  190. template<typename T>
  191. inline const std::string& FieldDescriptorProto_Type_Name(T enum_t_value) {
  192. static_assert(::std::is_same<T, FieldDescriptorProto_Type>::value ||
  193. ::std::is_integral<T>::value,
  194. "Incorrect type passed to function FieldDescriptorProto_Type_Name.");
  195. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  196. FieldDescriptorProto_Type_descriptor(), enum_t_value);
  197. }
  198. inline bool FieldDescriptorProto_Type_Parse(
  199. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldDescriptorProto_Type* value) {
  200. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
  201. FieldDescriptorProto_Type_descriptor(), name, value);
  202. }
  203. enum FieldDescriptorProto_Label : int {
  204. FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
  205. FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
  206. FieldDescriptorProto_Label_LABEL_REPEATED = 3
  207. };
  208. PROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
  209. constexpr FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  210. constexpr FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
  211. constexpr int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
  212. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
  213. template<typename T>
  214. inline const std::string& FieldDescriptorProto_Label_Name(T enum_t_value) {
  215. static_assert(::std::is_same<T, FieldDescriptorProto_Label>::value ||
  216. ::std::is_integral<T>::value,
  217. "Incorrect type passed to function FieldDescriptorProto_Label_Name.");
  218. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  219. FieldDescriptorProto_Label_descriptor(), enum_t_value);
  220. }
  221. inline bool FieldDescriptorProto_Label_Parse(
  222. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldDescriptorProto_Label* value) {
  223. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
  224. FieldDescriptorProto_Label_descriptor(), name, value);
  225. }
  226. enum FileOptions_OptimizeMode : int {
  227. FileOptions_OptimizeMode_SPEED = 1,
  228. FileOptions_OptimizeMode_CODE_SIZE = 2,
  229. FileOptions_OptimizeMode_LITE_RUNTIME = 3
  230. };
  231. PROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
  232. constexpr FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
  233. constexpr FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
  234. constexpr int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
  235. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
  236. template<typename T>
  237. inline const std::string& FileOptions_OptimizeMode_Name(T enum_t_value) {
  238. static_assert(::std::is_same<T, FileOptions_OptimizeMode>::value ||
  239. ::std::is_integral<T>::value,
  240. "Incorrect type passed to function FileOptions_OptimizeMode_Name.");
  241. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  242. FileOptions_OptimizeMode_descriptor(), enum_t_value);
  243. }
  244. inline bool FileOptions_OptimizeMode_Parse(
  245. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FileOptions_OptimizeMode* value) {
  246. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
  247. FileOptions_OptimizeMode_descriptor(), name, value);
  248. }
  249. enum FieldOptions_CType : int {
  250. FieldOptions_CType_STRING = 0,
  251. FieldOptions_CType_CORD = 1,
  252. FieldOptions_CType_STRING_PIECE = 2
  253. };
  254. PROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
  255. constexpr FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
  256. constexpr FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
  257. constexpr int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
  258. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_CType_descriptor();
  259. template<typename T>
  260. inline const std::string& FieldOptions_CType_Name(T enum_t_value) {
  261. static_assert(::std::is_same<T, FieldOptions_CType>::value ||
  262. ::std::is_integral<T>::value,
  263. "Incorrect type passed to function FieldOptions_CType_Name.");
  264. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  265. FieldOptions_CType_descriptor(), enum_t_value);
  266. }
  267. inline bool FieldOptions_CType_Parse(
  268. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldOptions_CType* value) {
  269. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldOptions_CType>(
  270. FieldOptions_CType_descriptor(), name, value);
  271. }
  272. enum FieldOptions_JSType : int {
  273. FieldOptions_JSType_JS_NORMAL = 0,
  274. FieldOptions_JSType_JS_STRING = 1,
  275. FieldOptions_JSType_JS_NUMBER = 2
  276. };
  277. PROTOBUF_EXPORT bool FieldOptions_JSType_IsValid(int value);
  278. constexpr FieldOptions_JSType FieldOptions_JSType_JSType_MIN = FieldOptions_JSType_JS_NORMAL;
  279. constexpr FieldOptions_JSType FieldOptions_JSType_JSType_MAX = FieldOptions_JSType_JS_NUMBER;
  280. constexpr int FieldOptions_JSType_JSType_ARRAYSIZE = FieldOptions_JSType_JSType_MAX + 1;
  281. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FieldOptions_JSType_descriptor();
  282. template<typename T>
  283. inline const std::string& FieldOptions_JSType_Name(T enum_t_value) {
  284. static_assert(::std::is_same<T, FieldOptions_JSType>::value ||
  285. ::std::is_integral<T>::value,
  286. "Incorrect type passed to function FieldOptions_JSType_Name.");
  287. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  288. FieldOptions_JSType_descriptor(), enum_t_value);
  289. }
  290. inline bool FieldOptions_JSType_Parse(
  291. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, FieldOptions_JSType* value) {
  292. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FieldOptions_JSType>(
  293. FieldOptions_JSType_descriptor(), name, value);
  294. }
  295. enum MethodOptions_IdempotencyLevel : int {
  296. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN = 0,
  297. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS = 1,
  298. MethodOptions_IdempotencyLevel_IDEMPOTENT = 2
  299. };
  300. PROTOBUF_EXPORT bool MethodOptions_IdempotencyLevel_IsValid(int value);
  301. constexpr MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN = MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  302. constexpr MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX = MethodOptions_IdempotencyLevel_IDEMPOTENT;
  303. constexpr int MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE = MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX + 1;
  304. PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* MethodOptions_IdempotencyLevel_descriptor();
  305. template<typename T>
  306. inline const std::string& MethodOptions_IdempotencyLevel_Name(T enum_t_value) {
  307. static_assert(::std::is_same<T, MethodOptions_IdempotencyLevel>::value ||
  308. ::std::is_integral<T>::value,
  309. "Incorrect type passed to function MethodOptions_IdempotencyLevel_Name.");
  310. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  311. MethodOptions_IdempotencyLevel_descriptor(), enum_t_value);
  312. }
  313. inline bool MethodOptions_IdempotencyLevel_Parse(
  314. ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, MethodOptions_IdempotencyLevel* value) {
  315. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<MethodOptions_IdempotencyLevel>(
  316. MethodOptions_IdempotencyLevel_descriptor(), name, value);
  317. }
  318. // ===================================================================
  319. class PROTOBUF_EXPORT FileDescriptorSet final :
  320. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorSet) */ {
  321. public:
  322. inline FileDescriptorSet() : FileDescriptorSet(nullptr) {}
  323. ~FileDescriptorSet() override;
  324. explicit constexpr FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  325. FileDescriptorSet(const FileDescriptorSet& from);
  326. FileDescriptorSet(FileDescriptorSet&& from) noexcept
  327. : FileDescriptorSet() {
  328. *this = ::std::move(from);
  329. }
  330. inline FileDescriptorSet& operator=(const FileDescriptorSet& from) {
  331. CopyFrom(from);
  332. return *this;
  333. }
  334. inline FileDescriptorSet& operator=(FileDescriptorSet&& from) noexcept {
  335. if (this == &from) return *this;
  336. if (GetOwningArena() == from.GetOwningArena()
  337. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  338. && GetOwningArena() != nullptr
  339. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  340. ) {
  341. InternalSwap(&from);
  342. } else {
  343. CopyFrom(from);
  344. }
  345. return *this;
  346. }
  347. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  348. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  349. }
  350. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  351. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  352. }
  353. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  354. return GetDescriptor();
  355. }
  356. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  357. return default_instance().GetMetadata().descriptor;
  358. }
  359. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  360. return default_instance().GetMetadata().reflection;
  361. }
  362. static const FileDescriptorSet& default_instance() {
  363. return *internal_default_instance();
  364. }
  365. static inline const FileDescriptorSet* internal_default_instance() {
  366. return reinterpret_cast<const FileDescriptorSet*>(
  367. &_FileDescriptorSet_default_instance_);
  368. }
  369. static constexpr int kIndexInFileMessages =
  370. 0;
  371. friend void swap(FileDescriptorSet& a, FileDescriptorSet& b) {
  372. a.Swap(&b);
  373. }
  374. inline void Swap(FileDescriptorSet* other) {
  375. if (other == this) return;
  376. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  377. if (GetOwningArena() != nullptr &&
  378. GetOwningArena() == other->GetOwningArena()) {
  379. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  380. if (GetOwningArena() == other->GetOwningArena()) {
  381. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  382. InternalSwap(other);
  383. } else {
  384. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  385. }
  386. }
  387. void UnsafeArenaSwap(FileDescriptorSet* other) {
  388. if (other == this) return;
  389. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  390. InternalSwap(other);
  391. }
  392. // implements Message ----------------------------------------------
  393. FileDescriptorSet* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  394. return CreateMaybeMessage<FileDescriptorSet>(arena);
  395. }
  396. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  397. void CopyFrom(const FileDescriptorSet& from);
  398. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  399. void MergeFrom(const FileDescriptorSet& from);
  400. private:
  401. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  402. public:
  403. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  404. bool IsInitialized() const final;
  405. size_t ByteSizeLong() const final;
  406. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  407. uint8_t* _InternalSerialize(
  408. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  409. int GetCachedSize() const final { return _cached_size_.Get(); }
  410. private:
  411. void SharedCtor();
  412. void SharedDtor();
  413. void SetCachedSize(int size) const final;
  414. void InternalSwap(FileDescriptorSet* other);
  415. private:
  416. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  417. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  418. return "google.protobuf.FileDescriptorSet";
  419. }
  420. protected:
  421. explicit FileDescriptorSet(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  422. bool is_message_owned = false);
  423. private:
  424. static void ArenaDtor(void* object);
  425. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  426. public:
  427. static const ClassData _class_data_;
  428. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  429. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  430. // nested types ----------------------------------------------------
  431. // accessors -------------------------------------------------------
  432. enum : int {
  433. kFileFieldNumber = 1,
  434. };
  435. // repeated .google.protobuf.FileDescriptorProto file = 1;
  436. int file_size() const;
  437. private:
  438. int _internal_file_size() const;
  439. public:
  440. void clear_file();
  441. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* mutable_file(int index);
  442. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  443. mutable_file();
  444. private:
  445. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& _internal_file(int index) const;
  446. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _internal_add_file();
  447. public:
  448. const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& file(int index) const;
  449. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* add_file();
  450. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  451. file() const;
  452. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
  453. private:
  454. class _Internal;
  455. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  456. typedef void InternalArenaConstructable_;
  457. typedef void DestructorSkippable_;
  458. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto > file_;
  459. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  460. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  461. };
  462. // -------------------------------------------------------------------
  463. class PROTOBUF_EXPORT FileDescriptorProto final :
  464. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorProto) */ {
  465. public:
  466. inline FileDescriptorProto() : FileDescriptorProto(nullptr) {}
  467. ~FileDescriptorProto() override;
  468. explicit constexpr FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  469. FileDescriptorProto(const FileDescriptorProto& from);
  470. FileDescriptorProto(FileDescriptorProto&& from) noexcept
  471. : FileDescriptorProto() {
  472. *this = ::std::move(from);
  473. }
  474. inline FileDescriptorProto& operator=(const FileDescriptorProto& from) {
  475. CopyFrom(from);
  476. return *this;
  477. }
  478. inline FileDescriptorProto& operator=(FileDescriptorProto&& from) noexcept {
  479. if (this == &from) return *this;
  480. if (GetOwningArena() == from.GetOwningArena()
  481. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  482. && GetOwningArena() != nullptr
  483. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  484. ) {
  485. InternalSwap(&from);
  486. } else {
  487. CopyFrom(from);
  488. }
  489. return *this;
  490. }
  491. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  492. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  493. }
  494. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  495. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  496. }
  497. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  498. return GetDescriptor();
  499. }
  500. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  501. return default_instance().GetMetadata().descriptor;
  502. }
  503. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  504. return default_instance().GetMetadata().reflection;
  505. }
  506. static const FileDescriptorProto& default_instance() {
  507. return *internal_default_instance();
  508. }
  509. static inline const FileDescriptorProto* internal_default_instance() {
  510. return reinterpret_cast<const FileDescriptorProto*>(
  511. &_FileDescriptorProto_default_instance_);
  512. }
  513. static constexpr int kIndexInFileMessages =
  514. 1;
  515. friend void swap(FileDescriptorProto& a, FileDescriptorProto& b) {
  516. a.Swap(&b);
  517. }
  518. inline void Swap(FileDescriptorProto* other) {
  519. if (other == this) return;
  520. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  521. if (GetOwningArena() != nullptr &&
  522. GetOwningArena() == other->GetOwningArena()) {
  523. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  524. if (GetOwningArena() == other->GetOwningArena()) {
  525. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  526. InternalSwap(other);
  527. } else {
  528. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  529. }
  530. }
  531. void UnsafeArenaSwap(FileDescriptorProto* other) {
  532. if (other == this) return;
  533. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  534. InternalSwap(other);
  535. }
  536. // implements Message ----------------------------------------------
  537. FileDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  538. return CreateMaybeMessage<FileDescriptorProto>(arena);
  539. }
  540. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  541. void CopyFrom(const FileDescriptorProto& from);
  542. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  543. void MergeFrom(const FileDescriptorProto& from);
  544. private:
  545. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  546. public:
  547. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  548. bool IsInitialized() const final;
  549. size_t ByteSizeLong() const final;
  550. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  551. uint8_t* _InternalSerialize(
  552. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  553. int GetCachedSize() const final { return _cached_size_.Get(); }
  554. private:
  555. void SharedCtor();
  556. void SharedDtor();
  557. void SetCachedSize(int size) const final;
  558. void InternalSwap(FileDescriptorProto* other);
  559. private:
  560. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  561. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  562. return "google.protobuf.FileDescriptorProto";
  563. }
  564. protected:
  565. explicit FileDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  566. bool is_message_owned = false);
  567. private:
  568. static void ArenaDtor(void* object);
  569. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  570. public:
  571. static const ClassData _class_data_;
  572. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  573. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  574. // nested types ----------------------------------------------------
  575. // accessors -------------------------------------------------------
  576. enum : int {
  577. kDependencyFieldNumber = 3,
  578. kMessageTypeFieldNumber = 4,
  579. kEnumTypeFieldNumber = 5,
  580. kServiceFieldNumber = 6,
  581. kExtensionFieldNumber = 7,
  582. kPublicDependencyFieldNumber = 10,
  583. kWeakDependencyFieldNumber = 11,
  584. kNameFieldNumber = 1,
  585. kPackageFieldNumber = 2,
  586. kSyntaxFieldNumber = 12,
  587. kOptionsFieldNumber = 8,
  588. kSourceCodeInfoFieldNumber = 9,
  589. };
  590. // repeated string dependency = 3;
  591. int dependency_size() const;
  592. private:
  593. int _internal_dependency_size() const;
  594. public:
  595. void clear_dependency();
  596. const std::string& dependency(int index) const;
  597. std::string* mutable_dependency(int index);
  598. void set_dependency(int index, const std::string& value);
  599. void set_dependency(int index, std::string&& value);
  600. void set_dependency(int index, const char* value);
  601. void set_dependency(int index, const char* value, size_t size);
  602. std::string* add_dependency();
  603. void add_dependency(const std::string& value);
  604. void add_dependency(std::string&& value);
  605. void add_dependency(const char* value);
  606. void add_dependency(const char* value, size_t size);
  607. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& dependency() const;
  608. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_dependency();
  609. private:
  610. const std::string& _internal_dependency(int index) const;
  611. std::string* _internal_add_dependency();
  612. public:
  613. // repeated .google.protobuf.DescriptorProto message_type = 4;
  614. int message_type_size() const;
  615. private:
  616. int _internal_message_type_size() const;
  617. public:
  618. void clear_message_type();
  619. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* mutable_message_type(int index);
  620. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  621. mutable_message_type();
  622. private:
  623. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& _internal_message_type(int index) const;
  624. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _internal_add_message_type();
  625. public:
  626. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& message_type(int index) const;
  627. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* add_message_type();
  628. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  629. message_type() const;
  630. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  631. int enum_type_size() const;
  632. private:
  633. int _internal_enum_type_size() const;
  634. public:
  635. void clear_enum_type();
  636. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* mutable_enum_type(int index);
  637. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  638. mutable_enum_type();
  639. private:
  640. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& _internal_enum_type(int index) const;
  641. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _internal_add_enum_type();
  642. public:
  643. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& enum_type(int index) const;
  644. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* add_enum_type();
  645. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  646. enum_type() const;
  647. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  648. int service_size() const;
  649. private:
  650. int _internal_service_size() const;
  651. public:
  652. void clear_service();
  653. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* mutable_service(int index);
  654. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >*
  655. mutable_service();
  656. private:
  657. const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& _internal_service(int index) const;
  658. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* _internal_add_service();
  659. public:
  660. const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& service(int index) const;
  661. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* add_service();
  662. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >&
  663. service() const;
  664. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  665. int extension_size() const;
  666. private:
  667. int _internal_extension_size() const;
  668. public:
  669. void clear_extension();
  670. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index);
  671. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  672. mutable_extension();
  673. private:
  674. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_extension(int index) const;
  675. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_extension();
  676. public:
  677. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& extension(int index) const;
  678. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_extension();
  679. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  680. extension() const;
  681. // repeated int32 public_dependency = 10;
  682. int public_dependency_size() const;
  683. private:
  684. int _internal_public_dependency_size() const;
  685. public:
  686. void clear_public_dependency();
  687. private:
  688. int32_t _internal_public_dependency(int index) const;
  689. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  690. _internal_public_dependency() const;
  691. void _internal_add_public_dependency(int32_t value);
  692. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  693. _internal_mutable_public_dependency();
  694. public:
  695. int32_t public_dependency(int index) const;
  696. void set_public_dependency(int index, int32_t value);
  697. void add_public_dependency(int32_t value);
  698. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  699. public_dependency() const;
  700. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  701. mutable_public_dependency();
  702. // repeated int32 weak_dependency = 11;
  703. int weak_dependency_size() const;
  704. private:
  705. int _internal_weak_dependency_size() const;
  706. public:
  707. void clear_weak_dependency();
  708. private:
  709. int32_t _internal_weak_dependency(int index) const;
  710. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  711. _internal_weak_dependency() const;
  712. void _internal_add_weak_dependency(int32_t value);
  713. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  714. _internal_mutable_weak_dependency();
  715. public:
  716. int32_t weak_dependency(int index) const;
  717. void set_weak_dependency(int index, int32_t value);
  718. void add_weak_dependency(int32_t value);
  719. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  720. weak_dependency() const;
  721. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  722. mutable_weak_dependency();
  723. // optional string name = 1;
  724. bool has_name() const;
  725. private:
  726. bool _internal_has_name() const;
  727. public:
  728. void clear_name();
  729. const std::string& name() const;
  730. template <typename ArgT0 = const std::string&, typename... ArgT>
  731. void set_name(ArgT0&& arg0, ArgT... args);
  732. std::string* mutable_name();
  733. PROTOBUF_NODISCARD std::string* release_name();
  734. void set_allocated_name(std::string* name);
  735. private:
  736. const std::string& _internal_name() const;
  737. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  738. std::string* _internal_mutable_name();
  739. public:
  740. // optional string package = 2;
  741. bool has_package() const;
  742. private:
  743. bool _internal_has_package() const;
  744. public:
  745. void clear_package();
  746. const std::string& package() const;
  747. template <typename ArgT0 = const std::string&, typename... ArgT>
  748. void set_package(ArgT0&& arg0, ArgT... args);
  749. std::string* mutable_package();
  750. PROTOBUF_NODISCARD std::string* release_package();
  751. void set_allocated_package(std::string* package);
  752. private:
  753. const std::string& _internal_package() const;
  754. inline PROTOBUF_ALWAYS_INLINE void _internal_set_package(const std::string& value);
  755. std::string* _internal_mutable_package();
  756. public:
  757. // optional string syntax = 12;
  758. bool has_syntax() const;
  759. private:
  760. bool _internal_has_syntax() const;
  761. public:
  762. void clear_syntax();
  763. const std::string& syntax() const;
  764. template <typename ArgT0 = const std::string&, typename... ArgT>
  765. void set_syntax(ArgT0&& arg0, ArgT... args);
  766. std::string* mutable_syntax();
  767. PROTOBUF_NODISCARD std::string* release_syntax();
  768. void set_allocated_syntax(std::string* syntax);
  769. private:
  770. const std::string& _internal_syntax() const;
  771. inline PROTOBUF_ALWAYS_INLINE void _internal_set_syntax(const std::string& value);
  772. std::string* _internal_mutable_syntax();
  773. public:
  774. // optional .google.protobuf.FileOptions options = 8;
  775. bool has_options() const;
  776. private:
  777. bool _internal_has_options() const;
  778. public:
  779. void clear_options();
  780. const ::PROTOBUF_NAMESPACE_ID::FileOptions& options() const;
  781. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FileOptions* release_options();
  782. ::PROTOBUF_NAMESPACE_ID::FileOptions* mutable_options();
  783. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::FileOptions* options);
  784. private:
  785. const ::PROTOBUF_NAMESPACE_ID::FileOptions& _internal_options() const;
  786. ::PROTOBUF_NAMESPACE_ID::FileOptions* _internal_mutable_options();
  787. public:
  788. void unsafe_arena_set_allocated_options(
  789. ::PROTOBUF_NAMESPACE_ID::FileOptions* options);
  790. ::PROTOBUF_NAMESPACE_ID::FileOptions* unsafe_arena_release_options();
  791. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  792. bool has_source_code_info() const;
  793. private:
  794. bool _internal_has_source_code_info() const;
  795. public:
  796. void clear_source_code_info();
  797. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& source_code_info() const;
  798. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* release_source_code_info();
  799. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* mutable_source_code_info();
  800. void set_allocated_source_code_info(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info);
  801. private:
  802. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& _internal_source_code_info() const;
  803. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* _internal_mutable_source_code_info();
  804. public:
  805. void unsafe_arena_set_allocated_source_code_info(
  806. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info);
  807. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* unsafe_arena_release_source_code_info();
  808. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
  809. private:
  810. class _Internal;
  811. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  812. typedef void InternalArenaConstructable_;
  813. typedef void DestructorSkippable_;
  814. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  815. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  816. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> dependency_;
  817. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto > message_type_;
  818. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto > enum_type_;
  819. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto > service_;
  820. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > extension_;
  821. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > public_dependency_;
  822. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > weak_dependency_;
  823. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  824. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr package_;
  825. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr syntax_;
  826. ::PROTOBUF_NAMESPACE_ID::FileOptions* options_;
  827. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info_;
  828. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  829. };
  830. // -------------------------------------------------------------------
  831. class PROTOBUF_EXPORT DescriptorProto_ExtensionRange final :
  832. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ExtensionRange) */ {
  833. public:
  834. inline DescriptorProto_ExtensionRange() : DescriptorProto_ExtensionRange(nullptr) {}
  835. ~DescriptorProto_ExtensionRange() override;
  836. explicit constexpr DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  837. DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from);
  838. DescriptorProto_ExtensionRange(DescriptorProto_ExtensionRange&& from) noexcept
  839. : DescriptorProto_ExtensionRange() {
  840. *this = ::std::move(from);
  841. }
  842. inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) {
  843. CopyFrom(from);
  844. return *this;
  845. }
  846. inline DescriptorProto_ExtensionRange& operator=(DescriptorProto_ExtensionRange&& from) noexcept {
  847. if (this == &from) return *this;
  848. if (GetOwningArena() == from.GetOwningArena()
  849. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  850. && GetOwningArena() != nullptr
  851. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  852. ) {
  853. InternalSwap(&from);
  854. } else {
  855. CopyFrom(from);
  856. }
  857. return *this;
  858. }
  859. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  860. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  861. }
  862. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  863. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  864. }
  865. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  866. return GetDescriptor();
  867. }
  868. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  869. return default_instance().GetMetadata().descriptor;
  870. }
  871. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  872. return default_instance().GetMetadata().reflection;
  873. }
  874. static const DescriptorProto_ExtensionRange& default_instance() {
  875. return *internal_default_instance();
  876. }
  877. static inline const DescriptorProto_ExtensionRange* internal_default_instance() {
  878. return reinterpret_cast<const DescriptorProto_ExtensionRange*>(
  879. &_DescriptorProto_ExtensionRange_default_instance_);
  880. }
  881. static constexpr int kIndexInFileMessages =
  882. 2;
  883. friend void swap(DescriptorProto_ExtensionRange& a, DescriptorProto_ExtensionRange& b) {
  884. a.Swap(&b);
  885. }
  886. inline void Swap(DescriptorProto_ExtensionRange* other) {
  887. if (other == this) return;
  888. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  889. if (GetOwningArena() != nullptr &&
  890. GetOwningArena() == other->GetOwningArena()) {
  891. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  892. if (GetOwningArena() == other->GetOwningArena()) {
  893. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  894. InternalSwap(other);
  895. } else {
  896. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  897. }
  898. }
  899. void UnsafeArenaSwap(DescriptorProto_ExtensionRange* other) {
  900. if (other == this) return;
  901. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  902. InternalSwap(other);
  903. }
  904. // implements Message ----------------------------------------------
  905. DescriptorProto_ExtensionRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  906. return CreateMaybeMessage<DescriptorProto_ExtensionRange>(arena);
  907. }
  908. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  909. void CopyFrom(const DescriptorProto_ExtensionRange& from);
  910. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  911. void MergeFrom(const DescriptorProto_ExtensionRange& from);
  912. private:
  913. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  914. public:
  915. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  916. bool IsInitialized() const final;
  917. size_t ByteSizeLong() const final;
  918. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  919. uint8_t* _InternalSerialize(
  920. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  921. int GetCachedSize() const final { return _cached_size_.Get(); }
  922. private:
  923. void SharedCtor();
  924. void SharedDtor();
  925. void SetCachedSize(int size) const final;
  926. void InternalSwap(DescriptorProto_ExtensionRange* other);
  927. private:
  928. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  929. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  930. return "google.protobuf.DescriptorProto.ExtensionRange";
  931. }
  932. protected:
  933. explicit DescriptorProto_ExtensionRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  934. bool is_message_owned = false);
  935. private:
  936. static void ArenaDtor(void* object);
  937. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  938. public:
  939. static const ClassData _class_data_;
  940. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  941. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  942. // nested types ----------------------------------------------------
  943. // accessors -------------------------------------------------------
  944. enum : int {
  945. kOptionsFieldNumber = 3,
  946. kStartFieldNumber = 1,
  947. kEndFieldNumber = 2,
  948. };
  949. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  950. bool has_options() const;
  951. private:
  952. bool _internal_has_options() const;
  953. public:
  954. void clear_options();
  955. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& options() const;
  956. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* release_options();
  957. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* mutable_options();
  958. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options);
  959. private:
  960. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& _internal_options() const;
  961. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* _internal_mutable_options();
  962. public:
  963. void unsafe_arena_set_allocated_options(
  964. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options);
  965. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* unsafe_arena_release_options();
  966. // optional int32 start = 1;
  967. bool has_start() const;
  968. private:
  969. bool _internal_has_start() const;
  970. public:
  971. void clear_start();
  972. int32_t start() const;
  973. void set_start(int32_t value);
  974. private:
  975. int32_t _internal_start() const;
  976. void _internal_set_start(int32_t value);
  977. public:
  978. // optional int32 end = 2;
  979. bool has_end() const;
  980. private:
  981. bool _internal_has_end() const;
  982. public:
  983. void clear_end();
  984. int32_t end() const;
  985. void set_end(int32_t value);
  986. private:
  987. int32_t _internal_end() const;
  988. void _internal_set_end(int32_t value);
  989. public:
  990. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
  991. private:
  992. class _Internal;
  993. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  994. typedef void InternalArenaConstructable_;
  995. typedef void DestructorSkippable_;
  996. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  997. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  998. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options_;
  999. int32_t start_;
  1000. int32_t end_;
  1001. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1002. };
  1003. // -------------------------------------------------------------------
  1004. class PROTOBUF_EXPORT DescriptorProto_ReservedRange final :
  1005. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ReservedRange) */ {
  1006. public:
  1007. inline DescriptorProto_ReservedRange() : DescriptorProto_ReservedRange(nullptr) {}
  1008. ~DescriptorProto_ReservedRange() override;
  1009. explicit constexpr DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1010. DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from);
  1011. DescriptorProto_ReservedRange(DescriptorProto_ReservedRange&& from) noexcept
  1012. : DescriptorProto_ReservedRange() {
  1013. *this = ::std::move(from);
  1014. }
  1015. inline DescriptorProto_ReservedRange& operator=(const DescriptorProto_ReservedRange& from) {
  1016. CopyFrom(from);
  1017. return *this;
  1018. }
  1019. inline DescriptorProto_ReservedRange& operator=(DescriptorProto_ReservedRange&& from) noexcept {
  1020. if (this == &from) return *this;
  1021. if (GetOwningArena() == from.GetOwningArena()
  1022. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1023. && GetOwningArena() != nullptr
  1024. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1025. ) {
  1026. InternalSwap(&from);
  1027. } else {
  1028. CopyFrom(from);
  1029. }
  1030. return *this;
  1031. }
  1032. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1033. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1034. }
  1035. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1036. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1037. }
  1038. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1039. return GetDescriptor();
  1040. }
  1041. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1042. return default_instance().GetMetadata().descriptor;
  1043. }
  1044. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1045. return default_instance().GetMetadata().reflection;
  1046. }
  1047. static const DescriptorProto_ReservedRange& default_instance() {
  1048. return *internal_default_instance();
  1049. }
  1050. static inline const DescriptorProto_ReservedRange* internal_default_instance() {
  1051. return reinterpret_cast<const DescriptorProto_ReservedRange*>(
  1052. &_DescriptorProto_ReservedRange_default_instance_);
  1053. }
  1054. static constexpr int kIndexInFileMessages =
  1055. 3;
  1056. friend void swap(DescriptorProto_ReservedRange& a, DescriptorProto_ReservedRange& b) {
  1057. a.Swap(&b);
  1058. }
  1059. inline void Swap(DescriptorProto_ReservedRange* other) {
  1060. if (other == this) return;
  1061. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1062. if (GetOwningArena() != nullptr &&
  1063. GetOwningArena() == other->GetOwningArena()) {
  1064. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1065. if (GetOwningArena() == other->GetOwningArena()) {
  1066. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1067. InternalSwap(other);
  1068. } else {
  1069. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1070. }
  1071. }
  1072. void UnsafeArenaSwap(DescriptorProto_ReservedRange* other) {
  1073. if (other == this) return;
  1074. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1075. InternalSwap(other);
  1076. }
  1077. // implements Message ----------------------------------------------
  1078. DescriptorProto_ReservedRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1079. return CreateMaybeMessage<DescriptorProto_ReservedRange>(arena);
  1080. }
  1081. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1082. void CopyFrom(const DescriptorProto_ReservedRange& from);
  1083. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1084. void MergeFrom(const DescriptorProto_ReservedRange& from);
  1085. private:
  1086. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1087. public:
  1088. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1089. bool IsInitialized() const final;
  1090. size_t ByteSizeLong() const final;
  1091. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1092. uint8_t* _InternalSerialize(
  1093. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1094. int GetCachedSize() const final { return _cached_size_.Get(); }
  1095. private:
  1096. void SharedCtor();
  1097. void SharedDtor();
  1098. void SetCachedSize(int size) const final;
  1099. void InternalSwap(DescriptorProto_ReservedRange* other);
  1100. private:
  1101. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1102. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1103. return "google.protobuf.DescriptorProto.ReservedRange";
  1104. }
  1105. protected:
  1106. explicit DescriptorProto_ReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1107. bool is_message_owned = false);
  1108. private:
  1109. static void ArenaDtor(void* object);
  1110. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1111. public:
  1112. static const ClassData _class_data_;
  1113. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1114. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1115. // nested types ----------------------------------------------------
  1116. // accessors -------------------------------------------------------
  1117. enum : int {
  1118. kStartFieldNumber = 1,
  1119. kEndFieldNumber = 2,
  1120. };
  1121. // optional int32 start = 1;
  1122. bool has_start() const;
  1123. private:
  1124. bool _internal_has_start() const;
  1125. public:
  1126. void clear_start();
  1127. int32_t start() const;
  1128. void set_start(int32_t value);
  1129. private:
  1130. int32_t _internal_start() const;
  1131. void _internal_set_start(int32_t value);
  1132. public:
  1133. // optional int32 end = 2;
  1134. bool has_end() const;
  1135. private:
  1136. bool _internal_has_end() const;
  1137. public:
  1138. void clear_end();
  1139. int32_t end() const;
  1140. void set_end(int32_t value);
  1141. private:
  1142. int32_t _internal_end() const;
  1143. void _internal_set_end(int32_t value);
  1144. public:
  1145. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ReservedRange)
  1146. private:
  1147. class _Internal;
  1148. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1149. typedef void InternalArenaConstructable_;
  1150. typedef void DestructorSkippable_;
  1151. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1152. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1153. int32_t start_;
  1154. int32_t end_;
  1155. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1156. };
  1157. // -------------------------------------------------------------------
  1158. class PROTOBUF_EXPORT DescriptorProto final :
  1159. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto) */ {
  1160. public:
  1161. inline DescriptorProto() : DescriptorProto(nullptr) {}
  1162. ~DescriptorProto() override;
  1163. explicit constexpr DescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1164. DescriptorProto(const DescriptorProto& from);
  1165. DescriptorProto(DescriptorProto&& from) noexcept
  1166. : DescriptorProto() {
  1167. *this = ::std::move(from);
  1168. }
  1169. inline DescriptorProto& operator=(const DescriptorProto& from) {
  1170. CopyFrom(from);
  1171. return *this;
  1172. }
  1173. inline DescriptorProto& operator=(DescriptorProto&& from) noexcept {
  1174. if (this == &from) return *this;
  1175. if (GetOwningArena() == from.GetOwningArena()
  1176. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1177. && GetOwningArena() != nullptr
  1178. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1179. ) {
  1180. InternalSwap(&from);
  1181. } else {
  1182. CopyFrom(from);
  1183. }
  1184. return *this;
  1185. }
  1186. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1187. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1188. }
  1189. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1190. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1191. }
  1192. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1193. return GetDescriptor();
  1194. }
  1195. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1196. return default_instance().GetMetadata().descriptor;
  1197. }
  1198. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1199. return default_instance().GetMetadata().reflection;
  1200. }
  1201. static const DescriptorProto& default_instance() {
  1202. return *internal_default_instance();
  1203. }
  1204. static inline const DescriptorProto* internal_default_instance() {
  1205. return reinterpret_cast<const DescriptorProto*>(
  1206. &_DescriptorProto_default_instance_);
  1207. }
  1208. static constexpr int kIndexInFileMessages =
  1209. 4;
  1210. friend void swap(DescriptorProto& a, DescriptorProto& b) {
  1211. a.Swap(&b);
  1212. }
  1213. inline void Swap(DescriptorProto* other) {
  1214. if (other == this) return;
  1215. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1216. if (GetOwningArena() != nullptr &&
  1217. GetOwningArena() == other->GetOwningArena()) {
  1218. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1219. if (GetOwningArena() == other->GetOwningArena()) {
  1220. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1221. InternalSwap(other);
  1222. } else {
  1223. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1224. }
  1225. }
  1226. void UnsafeArenaSwap(DescriptorProto* other) {
  1227. if (other == this) return;
  1228. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1229. InternalSwap(other);
  1230. }
  1231. // implements Message ----------------------------------------------
  1232. DescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1233. return CreateMaybeMessage<DescriptorProto>(arena);
  1234. }
  1235. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1236. void CopyFrom(const DescriptorProto& from);
  1237. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1238. void MergeFrom(const DescriptorProto& from);
  1239. private:
  1240. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1241. public:
  1242. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1243. bool IsInitialized() const final;
  1244. size_t ByteSizeLong() const final;
  1245. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1246. uint8_t* _InternalSerialize(
  1247. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1248. int GetCachedSize() const final { return _cached_size_.Get(); }
  1249. private:
  1250. void SharedCtor();
  1251. void SharedDtor();
  1252. void SetCachedSize(int size) const final;
  1253. void InternalSwap(DescriptorProto* other);
  1254. private:
  1255. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1256. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1257. return "google.protobuf.DescriptorProto";
  1258. }
  1259. protected:
  1260. explicit DescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1261. bool is_message_owned = false);
  1262. private:
  1263. static void ArenaDtor(void* object);
  1264. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1265. public:
  1266. static const ClassData _class_data_;
  1267. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1268. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1269. // nested types ----------------------------------------------------
  1270. typedef DescriptorProto_ExtensionRange ExtensionRange;
  1271. typedef DescriptorProto_ReservedRange ReservedRange;
  1272. // accessors -------------------------------------------------------
  1273. enum : int {
  1274. kFieldFieldNumber = 2,
  1275. kNestedTypeFieldNumber = 3,
  1276. kEnumTypeFieldNumber = 4,
  1277. kExtensionRangeFieldNumber = 5,
  1278. kExtensionFieldNumber = 6,
  1279. kOneofDeclFieldNumber = 8,
  1280. kReservedRangeFieldNumber = 9,
  1281. kReservedNameFieldNumber = 10,
  1282. kNameFieldNumber = 1,
  1283. kOptionsFieldNumber = 7,
  1284. };
  1285. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1286. int field_size() const;
  1287. private:
  1288. int _internal_field_size() const;
  1289. public:
  1290. void clear_field();
  1291. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_field(int index);
  1292. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  1293. mutable_field();
  1294. private:
  1295. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_field(int index) const;
  1296. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_field();
  1297. public:
  1298. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& field(int index) const;
  1299. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_field();
  1300. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  1301. field() const;
  1302. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1303. int nested_type_size() const;
  1304. private:
  1305. int _internal_nested_type_size() const;
  1306. public:
  1307. void clear_nested_type();
  1308. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* mutable_nested_type(int index);
  1309. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  1310. mutable_nested_type();
  1311. private:
  1312. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& _internal_nested_type(int index) const;
  1313. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _internal_add_nested_type();
  1314. public:
  1315. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& nested_type(int index) const;
  1316. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* add_nested_type();
  1317. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  1318. nested_type() const;
  1319. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1320. int enum_type_size() const;
  1321. private:
  1322. int _internal_enum_type_size() const;
  1323. public:
  1324. void clear_enum_type();
  1325. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* mutable_enum_type(int index);
  1326. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  1327. mutable_enum_type();
  1328. private:
  1329. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& _internal_enum_type(int index) const;
  1330. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _internal_add_enum_type();
  1331. public:
  1332. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& enum_type(int index) const;
  1333. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* add_enum_type();
  1334. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  1335. enum_type() const;
  1336. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1337. int extension_range_size() const;
  1338. private:
  1339. int _internal_extension_range_size() const;
  1340. public:
  1341. void clear_extension_range();
  1342. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
  1343. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >*
  1344. mutable_extension_range();
  1345. private:
  1346. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& _internal_extension_range(int index) const;
  1347. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* _internal_add_extension_range();
  1348. public:
  1349. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& extension_range(int index) const;
  1350. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* add_extension_range();
  1351. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >&
  1352. extension_range() const;
  1353. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1354. int extension_size() const;
  1355. private:
  1356. int _internal_extension_size() const;
  1357. public:
  1358. void clear_extension();
  1359. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* mutable_extension(int index);
  1360. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  1361. mutable_extension();
  1362. private:
  1363. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& _internal_extension(int index) const;
  1364. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _internal_add_extension();
  1365. public:
  1366. const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& extension(int index) const;
  1367. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* add_extension();
  1368. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  1369. extension() const;
  1370. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  1371. int oneof_decl_size() const;
  1372. private:
  1373. int _internal_oneof_decl_size() const;
  1374. public:
  1375. void clear_oneof_decl();
  1376. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* mutable_oneof_decl(int index);
  1377. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >*
  1378. mutable_oneof_decl();
  1379. private:
  1380. const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& _internal_oneof_decl(int index) const;
  1381. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* _internal_add_oneof_decl();
  1382. public:
  1383. const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& oneof_decl(int index) const;
  1384. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* add_oneof_decl();
  1385. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >&
  1386. oneof_decl() const;
  1387. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  1388. int reserved_range_size() const;
  1389. private:
  1390. int _internal_reserved_range_size() const;
  1391. public:
  1392. void clear_reserved_range();
  1393. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* mutable_reserved_range(int index);
  1394. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >*
  1395. mutable_reserved_range();
  1396. private:
  1397. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& _internal_reserved_range(int index) const;
  1398. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* _internal_add_reserved_range();
  1399. public:
  1400. const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& reserved_range(int index) const;
  1401. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* add_reserved_range();
  1402. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >&
  1403. reserved_range() const;
  1404. // repeated string reserved_name = 10;
  1405. int reserved_name_size() const;
  1406. private:
  1407. int _internal_reserved_name_size() const;
  1408. public:
  1409. void clear_reserved_name();
  1410. const std::string& reserved_name(int index) const;
  1411. std::string* mutable_reserved_name(int index);
  1412. void set_reserved_name(int index, const std::string& value);
  1413. void set_reserved_name(int index, std::string&& value);
  1414. void set_reserved_name(int index, const char* value);
  1415. void set_reserved_name(int index, const char* value, size_t size);
  1416. std::string* add_reserved_name();
  1417. void add_reserved_name(const std::string& value);
  1418. void add_reserved_name(std::string&& value);
  1419. void add_reserved_name(const char* value);
  1420. void add_reserved_name(const char* value, size_t size);
  1421. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& reserved_name() const;
  1422. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_reserved_name();
  1423. private:
  1424. const std::string& _internal_reserved_name(int index) const;
  1425. std::string* _internal_add_reserved_name();
  1426. public:
  1427. // optional string name = 1;
  1428. bool has_name() const;
  1429. private:
  1430. bool _internal_has_name() const;
  1431. public:
  1432. void clear_name();
  1433. const std::string& name() const;
  1434. template <typename ArgT0 = const std::string&, typename... ArgT>
  1435. void set_name(ArgT0&& arg0, ArgT... args);
  1436. std::string* mutable_name();
  1437. PROTOBUF_NODISCARD std::string* release_name();
  1438. void set_allocated_name(std::string* name);
  1439. private:
  1440. const std::string& _internal_name() const;
  1441. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  1442. std::string* _internal_mutable_name();
  1443. public:
  1444. // optional .google.protobuf.MessageOptions options = 7;
  1445. bool has_options() const;
  1446. private:
  1447. bool _internal_has_options() const;
  1448. public:
  1449. void clear_options();
  1450. const ::PROTOBUF_NAMESPACE_ID::MessageOptions& options() const;
  1451. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::MessageOptions* release_options();
  1452. ::PROTOBUF_NAMESPACE_ID::MessageOptions* mutable_options();
  1453. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::MessageOptions* options);
  1454. private:
  1455. const ::PROTOBUF_NAMESPACE_ID::MessageOptions& _internal_options() const;
  1456. ::PROTOBUF_NAMESPACE_ID::MessageOptions* _internal_mutable_options();
  1457. public:
  1458. void unsafe_arena_set_allocated_options(
  1459. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options);
  1460. ::PROTOBUF_NAMESPACE_ID::MessageOptions* unsafe_arena_release_options();
  1461. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
  1462. private:
  1463. class _Internal;
  1464. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1465. typedef void InternalArenaConstructable_;
  1466. typedef void DestructorSkippable_;
  1467. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  1468. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1469. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > field_;
  1470. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto > nested_type_;
  1471. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto > enum_type_;
  1472. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange > extension_range_;
  1473. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto > extension_;
  1474. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto > oneof_decl_;
  1475. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange > reserved_range_;
  1476. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> reserved_name_;
  1477. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  1478. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options_;
  1479. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1480. };
  1481. // -------------------------------------------------------------------
  1482. class PROTOBUF_EXPORT ExtensionRangeOptions final :
  1483. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ExtensionRangeOptions) */ {
  1484. public:
  1485. inline ExtensionRangeOptions() : ExtensionRangeOptions(nullptr) {}
  1486. ~ExtensionRangeOptions() override;
  1487. explicit constexpr ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1488. ExtensionRangeOptions(const ExtensionRangeOptions& from);
  1489. ExtensionRangeOptions(ExtensionRangeOptions&& from) noexcept
  1490. : ExtensionRangeOptions() {
  1491. *this = ::std::move(from);
  1492. }
  1493. inline ExtensionRangeOptions& operator=(const ExtensionRangeOptions& from) {
  1494. CopyFrom(from);
  1495. return *this;
  1496. }
  1497. inline ExtensionRangeOptions& operator=(ExtensionRangeOptions&& from) noexcept {
  1498. if (this == &from) return *this;
  1499. if (GetOwningArena() == from.GetOwningArena()
  1500. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1501. && GetOwningArena() != nullptr
  1502. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1503. ) {
  1504. InternalSwap(&from);
  1505. } else {
  1506. CopyFrom(from);
  1507. }
  1508. return *this;
  1509. }
  1510. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1511. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1512. }
  1513. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1514. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1515. }
  1516. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1517. return GetDescriptor();
  1518. }
  1519. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1520. return default_instance().GetMetadata().descriptor;
  1521. }
  1522. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1523. return default_instance().GetMetadata().reflection;
  1524. }
  1525. static const ExtensionRangeOptions& default_instance() {
  1526. return *internal_default_instance();
  1527. }
  1528. static inline const ExtensionRangeOptions* internal_default_instance() {
  1529. return reinterpret_cast<const ExtensionRangeOptions*>(
  1530. &_ExtensionRangeOptions_default_instance_);
  1531. }
  1532. static constexpr int kIndexInFileMessages =
  1533. 5;
  1534. friend void swap(ExtensionRangeOptions& a, ExtensionRangeOptions& b) {
  1535. a.Swap(&b);
  1536. }
  1537. inline void Swap(ExtensionRangeOptions* other) {
  1538. if (other == this) return;
  1539. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1540. if (GetOwningArena() != nullptr &&
  1541. GetOwningArena() == other->GetOwningArena()) {
  1542. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1543. if (GetOwningArena() == other->GetOwningArena()) {
  1544. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1545. InternalSwap(other);
  1546. } else {
  1547. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1548. }
  1549. }
  1550. void UnsafeArenaSwap(ExtensionRangeOptions* other) {
  1551. if (other == this) return;
  1552. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1553. InternalSwap(other);
  1554. }
  1555. // implements Message ----------------------------------------------
  1556. ExtensionRangeOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1557. return CreateMaybeMessage<ExtensionRangeOptions>(arena);
  1558. }
  1559. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1560. void CopyFrom(const ExtensionRangeOptions& from);
  1561. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1562. void MergeFrom(const ExtensionRangeOptions& from);
  1563. private:
  1564. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1565. public:
  1566. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1567. bool IsInitialized() const final;
  1568. size_t ByteSizeLong() const final;
  1569. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1570. uint8_t* _InternalSerialize(
  1571. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1572. int GetCachedSize() const final { return _cached_size_.Get(); }
  1573. private:
  1574. void SharedCtor();
  1575. void SharedDtor();
  1576. void SetCachedSize(int size) const final;
  1577. void InternalSwap(ExtensionRangeOptions* other);
  1578. private:
  1579. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1580. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1581. return "google.protobuf.ExtensionRangeOptions";
  1582. }
  1583. protected:
  1584. explicit ExtensionRangeOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1585. bool is_message_owned = false);
  1586. private:
  1587. static void ArenaDtor(void* object);
  1588. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1589. public:
  1590. static const ClassData _class_data_;
  1591. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1592. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1593. // nested types ----------------------------------------------------
  1594. // accessors -------------------------------------------------------
  1595. enum : int {
  1596. kUninterpretedOptionFieldNumber = 999,
  1597. };
  1598. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1599. int uninterpreted_option_size() const;
  1600. private:
  1601. int _internal_uninterpreted_option_size() const;
  1602. public:
  1603. void clear_uninterpreted_option();
  1604. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  1605. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  1606. mutable_uninterpreted_option();
  1607. private:
  1608. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  1609. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  1610. public:
  1611. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  1612. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  1613. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  1614. uninterpreted_option() const;
  1615. template <typename _proto_TypeTraits,
  1616. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1617. bool _is_packed>
  1618. inline bool HasExtension(
  1619. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1620. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1621. return _extensions_.Has(id.number());
  1622. }
  1623. template <typename _proto_TypeTraits,
  1624. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1625. bool _is_packed>
  1626. inline void ClearExtension(
  1627. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1628. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1629. _extensions_.ClearExtension(id.number());
  1630. }
  1631. template <typename _proto_TypeTraits,
  1632. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1633. bool _is_packed>
  1634. inline int ExtensionSize(
  1635. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1636. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1637. return _extensions_.ExtensionSize(id.number());
  1638. }
  1639. template <typename _proto_TypeTraits,
  1640. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1641. bool _is_packed>
  1642. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  1643. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1644. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1645. return _proto_TypeTraits::Get(id.number(), _extensions_,
  1646. id.default_value());
  1647. }
  1648. template <typename _proto_TypeTraits,
  1649. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1650. bool _is_packed>
  1651. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  1652. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1653. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1654. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  1655. &_extensions_);
  1656. }
  1657. template <typename _proto_TypeTraits,
  1658. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1659. bool _is_packed>
  1660. inline void SetExtension(
  1661. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1662. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1663. typename _proto_TypeTraits::Singular::ConstType value) {
  1664. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  1665. }
  1666. template <typename _proto_TypeTraits,
  1667. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1668. bool _is_packed>
  1669. inline void SetAllocatedExtension(
  1670. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1671. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1672. typename _proto_TypeTraits::Singular::MutableType value) {
  1673. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  1674. &_extensions_);
  1675. }
  1676. template <typename _proto_TypeTraits,
  1677. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1678. bool _is_packed>
  1679. inline void UnsafeArenaSetAllocatedExtension(
  1680. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1681. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1682. typename _proto_TypeTraits::Singular::MutableType value) {
  1683. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  1684. value, &_extensions_);
  1685. }
  1686. template <typename _proto_TypeTraits,
  1687. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1688. bool _is_packed>
  1689. PROTOBUF_NODISCARD inline
  1690. typename _proto_TypeTraits::Singular::MutableType
  1691. ReleaseExtension(
  1692. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1693. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1694. return _proto_TypeTraits::Release(id.number(), _field_type,
  1695. &_extensions_);
  1696. }
  1697. template <typename _proto_TypeTraits,
  1698. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1699. bool _is_packed>
  1700. inline typename _proto_TypeTraits::Singular::MutableType
  1701. UnsafeArenaReleaseExtension(
  1702. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1703. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1704. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  1705. &_extensions_);
  1706. }
  1707. template <typename _proto_TypeTraits,
  1708. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1709. bool _is_packed>
  1710. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  1711. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1712. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1713. int index) const {
  1714. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  1715. }
  1716. template <typename _proto_TypeTraits,
  1717. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1718. bool _is_packed>
  1719. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  1720. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1721. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1722. int index) {
  1723. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  1724. }
  1725. template <typename _proto_TypeTraits,
  1726. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1727. bool _is_packed>
  1728. inline void SetExtension(
  1729. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1730. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1731. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  1732. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  1733. }
  1734. template <typename _proto_TypeTraits,
  1735. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1736. bool _is_packed>
  1737. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  1738. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1739. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1740. typename _proto_TypeTraits::Repeated::MutableType to_add =
  1741. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  1742. return to_add;
  1743. }
  1744. template <typename _proto_TypeTraits,
  1745. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1746. bool _is_packed>
  1747. inline void AddExtension(
  1748. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1749. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  1750. typename _proto_TypeTraits::Repeated::ConstType value) {
  1751. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  1752. &_extensions_);
  1753. }
  1754. template <typename _proto_TypeTraits,
  1755. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1756. bool _is_packed>
  1757. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  1758. GetRepeatedExtension(
  1759. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1760. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  1761. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  1762. }
  1763. template <typename _proto_TypeTraits,
  1764. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  1765. bool _is_packed>
  1766. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  1767. MutableRepeatedExtension(
  1768. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  1769. ExtensionRangeOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  1770. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  1771. _is_packed, &_extensions_);
  1772. }
  1773. // @@protoc_insertion_point(class_scope:google.protobuf.ExtensionRangeOptions)
  1774. private:
  1775. class _Internal;
  1776. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  1777. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  1778. typedef void InternalArenaConstructable_;
  1779. typedef void DestructorSkippable_;
  1780. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  1781. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  1782. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  1783. };
  1784. // -------------------------------------------------------------------
  1785. class PROTOBUF_EXPORT FieldDescriptorProto final :
  1786. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldDescriptorProto) */ {
  1787. public:
  1788. inline FieldDescriptorProto() : FieldDescriptorProto(nullptr) {}
  1789. ~FieldDescriptorProto() override;
  1790. explicit constexpr FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  1791. FieldDescriptorProto(const FieldDescriptorProto& from);
  1792. FieldDescriptorProto(FieldDescriptorProto&& from) noexcept
  1793. : FieldDescriptorProto() {
  1794. *this = ::std::move(from);
  1795. }
  1796. inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) {
  1797. CopyFrom(from);
  1798. return *this;
  1799. }
  1800. inline FieldDescriptorProto& operator=(FieldDescriptorProto&& from) noexcept {
  1801. if (this == &from) return *this;
  1802. if (GetOwningArena() == from.GetOwningArena()
  1803. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1804. && GetOwningArena() != nullptr
  1805. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1806. ) {
  1807. InternalSwap(&from);
  1808. } else {
  1809. CopyFrom(from);
  1810. }
  1811. return *this;
  1812. }
  1813. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  1814. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  1815. }
  1816. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  1817. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1818. }
  1819. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  1820. return GetDescriptor();
  1821. }
  1822. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  1823. return default_instance().GetMetadata().descriptor;
  1824. }
  1825. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  1826. return default_instance().GetMetadata().reflection;
  1827. }
  1828. static const FieldDescriptorProto& default_instance() {
  1829. return *internal_default_instance();
  1830. }
  1831. static inline const FieldDescriptorProto* internal_default_instance() {
  1832. return reinterpret_cast<const FieldDescriptorProto*>(
  1833. &_FieldDescriptorProto_default_instance_);
  1834. }
  1835. static constexpr int kIndexInFileMessages =
  1836. 6;
  1837. friend void swap(FieldDescriptorProto& a, FieldDescriptorProto& b) {
  1838. a.Swap(&b);
  1839. }
  1840. inline void Swap(FieldDescriptorProto* other) {
  1841. if (other == this) return;
  1842. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1843. if (GetOwningArena() != nullptr &&
  1844. GetOwningArena() == other->GetOwningArena()) {
  1845. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1846. if (GetOwningArena() == other->GetOwningArena()) {
  1847. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1848. InternalSwap(other);
  1849. } else {
  1850. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  1851. }
  1852. }
  1853. void UnsafeArenaSwap(FieldDescriptorProto* other) {
  1854. if (other == this) return;
  1855. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  1856. InternalSwap(other);
  1857. }
  1858. // implements Message ----------------------------------------------
  1859. FieldDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  1860. return CreateMaybeMessage<FieldDescriptorProto>(arena);
  1861. }
  1862. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  1863. void CopyFrom(const FieldDescriptorProto& from);
  1864. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  1865. void MergeFrom(const FieldDescriptorProto& from);
  1866. private:
  1867. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  1868. public:
  1869. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1870. bool IsInitialized() const final;
  1871. size_t ByteSizeLong() const final;
  1872. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  1873. uint8_t* _InternalSerialize(
  1874. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  1875. int GetCachedSize() const final { return _cached_size_.Get(); }
  1876. private:
  1877. void SharedCtor();
  1878. void SharedDtor();
  1879. void SetCachedSize(int size) const final;
  1880. void InternalSwap(FieldDescriptorProto* other);
  1881. private:
  1882. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  1883. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  1884. return "google.protobuf.FieldDescriptorProto";
  1885. }
  1886. protected:
  1887. explicit FieldDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  1888. bool is_message_owned = false);
  1889. private:
  1890. static void ArenaDtor(void* object);
  1891. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  1892. public:
  1893. static const ClassData _class_data_;
  1894. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  1895. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  1896. // nested types ----------------------------------------------------
  1897. typedef FieldDescriptorProto_Type Type;
  1898. static constexpr Type TYPE_DOUBLE =
  1899. FieldDescriptorProto_Type_TYPE_DOUBLE;
  1900. static constexpr Type TYPE_FLOAT =
  1901. FieldDescriptorProto_Type_TYPE_FLOAT;
  1902. static constexpr Type TYPE_INT64 =
  1903. FieldDescriptorProto_Type_TYPE_INT64;
  1904. static constexpr Type TYPE_UINT64 =
  1905. FieldDescriptorProto_Type_TYPE_UINT64;
  1906. static constexpr Type TYPE_INT32 =
  1907. FieldDescriptorProto_Type_TYPE_INT32;
  1908. static constexpr Type TYPE_FIXED64 =
  1909. FieldDescriptorProto_Type_TYPE_FIXED64;
  1910. static constexpr Type TYPE_FIXED32 =
  1911. FieldDescriptorProto_Type_TYPE_FIXED32;
  1912. static constexpr Type TYPE_BOOL =
  1913. FieldDescriptorProto_Type_TYPE_BOOL;
  1914. static constexpr Type TYPE_STRING =
  1915. FieldDescriptorProto_Type_TYPE_STRING;
  1916. static constexpr Type TYPE_GROUP =
  1917. FieldDescriptorProto_Type_TYPE_GROUP;
  1918. static constexpr Type TYPE_MESSAGE =
  1919. FieldDescriptorProto_Type_TYPE_MESSAGE;
  1920. static constexpr Type TYPE_BYTES =
  1921. FieldDescriptorProto_Type_TYPE_BYTES;
  1922. static constexpr Type TYPE_UINT32 =
  1923. FieldDescriptorProto_Type_TYPE_UINT32;
  1924. static constexpr Type TYPE_ENUM =
  1925. FieldDescriptorProto_Type_TYPE_ENUM;
  1926. static constexpr Type TYPE_SFIXED32 =
  1927. FieldDescriptorProto_Type_TYPE_SFIXED32;
  1928. static constexpr Type TYPE_SFIXED64 =
  1929. FieldDescriptorProto_Type_TYPE_SFIXED64;
  1930. static constexpr Type TYPE_SINT32 =
  1931. FieldDescriptorProto_Type_TYPE_SINT32;
  1932. static constexpr Type TYPE_SINT64 =
  1933. FieldDescriptorProto_Type_TYPE_SINT64;
  1934. static inline bool Type_IsValid(int value) {
  1935. return FieldDescriptorProto_Type_IsValid(value);
  1936. }
  1937. static constexpr Type Type_MIN =
  1938. FieldDescriptorProto_Type_Type_MIN;
  1939. static constexpr Type Type_MAX =
  1940. FieldDescriptorProto_Type_Type_MAX;
  1941. static constexpr int Type_ARRAYSIZE =
  1942. FieldDescriptorProto_Type_Type_ARRAYSIZE;
  1943. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  1944. Type_descriptor() {
  1945. return FieldDescriptorProto_Type_descriptor();
  1946. }
  1947. template<typename T>
  1948. static inline const std::string& Type_Name(T enum_t_value) {
  1949. static_assert(::std::is_same<T, Type>::value ||
  1950. ::std::is_integral<T>::value,
  1951. "Incorrect type passed to function Type_Name.");
  1952. return FieldDescriptorProto_Type_Name(enum_t_value);
  1953. }
  1954. static inline bool Type_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  1955. Type* value) {
  1956. return FieldDescriptorProto_Type_Parse(name, value);
  1957. }
  1958. typedef FieldDescriptorProto_Label Label;
  1959. static constexpr Label LABEL_OPTIONAL =
  1960. FieldDescriptorProto_Label_LABEL_OPTIONAL;
  1961. static constexpr Label LABEL_REQUIRED =
  1962. FieldDescriptorProto_Label_LABEL_REQUIRED;
  1963. static constexpr Label LABEL_REPEATED =
  1964. FieldDescriptorProto_Label_LABEL_REPEATED;
  1965. static inline bool Label_IsValid(int value) {
  1966. return FieldDescriptorProto_Label_IsValid(value);
  1967. }
  1968. static constexpr Label Label_MIN =
  1969. FieldDescriptorProto_Label_Label_MIN;
  1970. static constexpr Label Label_MAX =
  1971. FieldDescriptorProto_Label_Label_MAX;
  1972. static constexpr int Label_ARRAYSIZE =
  1973. FieldDescriptorProto_Label_Label_ARRAYSIZE;
  1974. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  1975. Label_descriptor() {
  1976. return FieldDescriptorProto_Label_descriptor();
  1977. }
  1978. template<typename T>
  1979. static inline const std::string& Label_Name(T enum_t_value) {
  1980. static_assert(::std::is_same<T, Label>::value ||
  1981. ::std::is_integral<T>::value,
  1982. "Incorrect type passed to function Label_Name.");
  1983. return FieldDescriptorProto_Label_Name(enum_t_value);
  1984. }
  1985. static inline bool Label_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  1986. Label* value) {
  1987. return FieldDescriptorProto_Label_Parse(name, value);
  1988. }
  1989. // accessors -------------------------------------------------------
  1990. enum : int {
  1991. kNameFieldNumber = 1,
  1992. kExtendeeFieldNumber = 2,
  1993. kTypeNameFieldNumber = 6,
  1994. kDefaultValueFieldNumber = 7,
  1995. kJsonNameFieldNumber = 10,
  1996. kOptionsFieldNumber = 8,
  1997. kNumberFieldNumber = 3,
  1998. kOneofIndexFieldNumber = 9,
  1999. kProto3OptionalFieldNumber = 17,
  2000. kLabelFieldNumber = 4,
  2001. kTypeFieldNumber = 5,
  2002. };
  2003. // optional string name = 1;
  2004. bool has_name() const;
  2005. private:
  2006. bool _internal_has_name() const;
  2007. public:
  2008. void clear_name();
  2009. const std::string& name() const;
  2010. template <typename ArgT0 = const std::string&, typename... ArgT>
  2011. void set_name(ArgT0&& arg0, ArgT... args);
  2012. std::string* mutable_name();
  2013. PROTOBUF_NODISCARD std::string* release_name();
  2014. void set_allocated_name(std::string* name);
  2015. private:
  2016. const std::string& _internal_name() const;
  2017. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2018. std::string* _internal_mutable_name();
  2019. public:
  2020. // optional string extendee = 2;
  2021. bool has_extendee() const;
  2022. private:
  2023. bool _internal_has_extendee() const;
  2024. public:
  2025. void clear_extendee();
  2026. const std::string& extendee() const;
  2027. template <typename ArgT0 = const std::string&, typename... ArgT>
  2028. void set_extendee(ArgT0&& arg0, ArgT... args);
  2029. std::string* mutable_extendee();
  2030. PROTOBUF_NODISCARD std::string* release_extendee();
  2031. void set_allocated_extendee(std::string* extendee);
  2032. private:
  2033. const std::string& _internal_extendee() const;
  2034. inline PROTOBUF_ALWAYS_INLINE void _internal_set_extendee(const std::string& value);
  2035. std::string* _internal_mutable_extendee();
  2036. public:
  2037. // optional string type_name = 6;
  2038. bool has_type_name() const;
  2039. private:
  2040. bool _internal_has_type_name() const;
  2041. public:
  2042. void clear_type_name();
  2043. const std::string& type_name() const;
  2044. template <typename ArgT0 = const std::string&, typename... ArgT>
  2045. void set_type_name(ArgT0&& arg0, ArgT... args);
  2046. std::string* mutable_type_name();
  2047. PROTOBUF_NODISCARD std::string* release_type_name();
  2048. void set_allocated_type_name(std::string* type_name);
  2049. private:
  2050. const std::string& _internal_type_name() const;
  2051. inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_name(const std::string& value);
  2052. std::string* _internal_mutable_type_name();
  2053. public:
  2054. // optional string default_value = 7;
  2055. bool has_default_value() const;
  2056. private:
  2057. bool _internal_has_default_value() const;
  2058. public:
  2059. void clear_default_value();
  2060. const std::string& default_value() const;
  2061. template <typename ArgT0 = const std::string&, typename... ArgT>
  2062. void set_default_value(ArgT0&& arg0, ArgT... args);
  2063. std::string* mutable_default_value();
  2064. PROTOBUF_NODISCARD std::string* release_default_value();
  2065. void set_allocated_default_value(std::string* default_value);
  2066. private:
  2067. const std::string& _internal_default_value() const;
  2068. inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_value(const std::string& value);
  2069. std::string* _internal_mutable_default_value();
  2070. public:
  2071. // optional string json_name = 10;
  2072. bool has_json_name() const;
  2073. private:
  2074. bool _internal_has_json_name() const;
  2075. public:
  2076. void clear_json_name();
  2077. const std::string& json_name() const;
  2078. template <typename ArgT0 = const std::string&, typename... ArgT>
  2079. void set_json_name(ArgT0&& arg0, ArgT... args);
  2080. std::string* mutable_json_name();
  2081. PROTOBUF_NODISCARD std::string* release_json_name();
  2082. void set_allocated_json_name(std::string* json_name);
  2083. private:
  2084. const std::string& _internal_json_name() const;
  2085. inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_name(const std::string& value);
  2086. std::string* _internal_mutable_json_name();
  2087. public:
  2088. // optional .google.protobuf.FieldOptions options = 8;
  2089. bool has_options() const;
  2090. private:
  2091. bool _internal_has_options() const;
  2092. public:
  2093. void clear_options();
  2094. const ::PROTOBUF_NAMESPACE_ID::FieldOptions& options() const;
  2095. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::FieldOptions* release_options();
  2096. ::PROTOBUF_NAMESPACE_ID::FieldOptions* mutable_options();
  2097. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::FieldOptions* options);
  2098. private:
  2099. const ::PROTOBUF_NAMESPACE_ID::FieldOptions& _internal_options() const;
  2100. ::PROTOBUF_NAMESPACE_ID::FieldOptions* _internal_mutable_options();
  2101. public:
  2102. void unsafe_arena_set_allocated_options(
  2103. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options);
  2104. ::PROTOBUF_NAMESPACE_ID::FieldOptions* unsafe_arena_release_options();
  2105. // optional int32 number = 3;
  2106. bool has_number() const;
  2107. private:
  2108. bool _internal_has_number() const;
  2109. public:
  2110. void clear_number();
  2111. int32_t number() const;
  2112. void set_number(int32_t value);
  2113. private:
  2114. int32_t _internal_number() const;
  2115. void _internal_set_number(int32_t value);
  2116. public:
  2117. // optional int32 oneof_index = 9;
  2118. bool has_oneof_index() const;
  2119. private:
  2120. bool _internal_has_oneof_index() const;
  2121. public:
  2122. void clear_oneof_index();
  2123. int32_t oneof_index() const;
  2124. void set_oneof_index(int32_t value);
  2125. private:
  2126. int32_t _internal_oneof_index() const;
  2127. void _internal_set_oneof_index(int32_t value);
  2128. public:
  2129. // optional bool proto3_optional = 17;
  2130. bool has_proto3_optional() const;
  2131. private:
  2132. bool _internal_has_proto3_optional() const;
  2133. public:
  2134. void clear_proto3_optional();
  2135. bool proto3_optional() const;
  2136. void set_proto3_optional(bool value);
  2137. private:
  2138. bool _internal_proto3_optional() const;
  2139. void _internal_set_proto3_optional(bool value);
  2140. public:
  2141. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  2142. bool has_label() const;
  2143. private:
  2144. bool _internal_has_label() const;
  2145. public:
  2146. void clear_label();
  2147. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label label() const;
  2148. void set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value);
  2149. private:
  2150. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label _internal_label() const;
  2151. void _internal_set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value);
  2152. public:
  2153. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  2154. bool has_type() const;
  2155. private:
  2156. bool _internal_has_type() const;
  2157. public:
  2158. void clear_type();
  2159. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type type() const;
  2160. void set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value);
  2161. private:
  2162. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type _internal_type() const;
  2163. void _internal_set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value);
  2164. public:
  2165. // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
  2166. private:
  2167. class _Internal;
  2168. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2169. typedef void InternalArenaConstructable_;
  2170. typedef void DestructorSkippable_;
  2171. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2172. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2173. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2174. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr extendee_;
  2175. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_name_;
  2176. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_value_;
  2177. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_name_;
  2178. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options_;
  2179. int32_t number_;
  2180. int32_t oneof_index_;
  2181. bool proto3_optional_;
  2182. int label_;
  2183. int type_;
  2184. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2185. };
  2186. // -------------------------------------------------------------------
  2187. class PROTOBUF_EXPORT OneofDescriptorProto final :
  2188. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofDescriptorProto) */ {
  2189. public:
  2190. inline OneofDescriptorProto() : OneofDescriptorProto(nullptr) {}
  2191. ~OneofDescriptorProto() override;
  2192. explicit constexpr OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2193. OneofDescriptorProto(const OneofDescriptorProto& from);
  2194. OneofDescriptorProto(OneofDescriptorProto&& from) noexcept
  2195. : OneofDescriptorProto() {
  2196. *this = ::std::move(from);
  2197. }
  2198. inline OneofDescriptorProto& operator=(const OneofDescriptorProto& from) {
  2199. CopyFrom(from);
  2200. return *this;
  2201. }
  2202. inline OneofDescriptorProto& operator=(OneofDescriptorProto&& from) noexcept {
  2203. if (this == &from) return *this;
  2204. if (GetOwningArena() == from.GetOwningArena()
  2205. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2206. && GetOwningArena() != nullptr
  2207. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2208. ) {
  2209. InternalSwap(&from);
  2210. } else {
  2211. CopyFrom(from);
  2212. }
  2213. return *this;
  2214. }
  2215. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2216. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2217. }
  2218. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2219. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2220. }
  2221. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2222. return GetDescriptor();
  2223. }
  2224. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2225. return default_instance().GetMetadata().descriptor;
  2226. }
  2227. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2228. return default_instance().GetMetadata().reflection;
  2229. }
  2230. static const OneofDescriptorProto& default_instance() {
  2231. return *internal_default_instance();
  2232. }
  2233. static inline const OneofDescriptorProto* internal_default_instance() {
  2234. return reinterpret_cast<const OneofDescriptorProto*>(
  2235. &_OneofDescriptorProto_default_instance_);
  2236. }
  2237. static constexpr int kIndexInFileMessages =
  2238. 7;
  2239. friend void swap(OneofDescriptorProto& a, OneofDescriptorProto& b) {
  2240. a.Swap(&b);
  2241. }
  2242. inline void Swap(OneofDescriptorProto* other) {
  2243. if (other == this) return;
  2244. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2245. if (GetOwningArena() != nullptr &&
  2246. GetOwningArena() == other->GetOwningArena()) {
  2247. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2248. if (GetOwningArena() == other->GetOwningArena()) {
  2249. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2250. InternalSwap(other);
  2251. } else {
  2252. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2253. }
  2254. }
  2255. void UnsafeArenaSwap(OneofDescriptorProto* other) {
  2256. if (other == this) return;
  2257. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2258. InternalSwap(other);
  2259. }
  2260. // implements Message ----------------------------------------------
  2261. OneofDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2262. return CreateMaybeMessage<OneofDescriptorProto>(arena);
  2263. }
  2264. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2265. void CopyFrom(const OneofDescriptorProto& from);
  2266. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2267. void MergeFrom(const OneofDescriptorProto& from);
  2268. private:
  2269. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2270. public:
  2271. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2272. bool IsInitialized() const final;
  2273. size_t ByteSizeLong() const final;
  2274. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2275. uint8_t* _InternalSerialize(
  2276. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2277. int GetCachedSize() const final { return _cached_size_.Get(); }
  2278. private:
  2279. void SharedCtor();
  2280. void SharedDtor();
  2281. void SetCachedSize(int size) const final;
  2282. void InternalSwap(OneofDescriptorProto* other);
  2283. private:
  2284. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2285. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2286. return "google.protobuf.OneofDescriptorProto";
  2287. }
  2288. protected:
  2289. explicit OneofDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2290. bool is_message_owned = false);
  2291. private:
  2292. static void ArenaDtor(void* object);
  2293. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2294. public:
  2295. static const ClassData _class_data_;
  2296. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2297. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2298. // nested types ----------------------------------------------------
  2299. // accessors -------------------------------------------------------
  2300. enum : int {
  2301. kNameFieldNumber = 1,
  2302. kOptionsFieldNumber = 2,
  2303. };
  2304. // optional string name = 1;
  2305. bool has_name() const;
  2306. private:
  2307. bool _internal_has_name() const;
  2308. public:
  2309. void clear_name();
  2310. const std::string& name() const;
  2311. template <typename ArgT0 = const std::string&, typename... ArgT>
  2312. void set_name(ArgT0&& arg0, ArgT... args);
  2313. std::string* mutable_name();
  2314. PROTOBUF_NODISCARD std::string* release_name();
  2315. void set_allocated_name(std::string* name);
  2316. private:
  2317. const std::string& _internal_name() const;
  2318. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2319. std::string* _internal_mutable_name();
  2320. public:
  2321. // optional .google.protobuf.OneofOptions options = 2;
  2322. bool has_options() const;
  2323. private:
  2324. bool _internal_has_options() const;
  2325. public:
  2326. void clear_options();
  2327. const ::PROTOBUF_NAMESPACE_ID::OneofOptions& options() const;
  2328. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::OneofOptions* release_options();
  2329. ::PROTOBUF_NAMESPACE_ID::OneofOptions* mutable_options();
  2330. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::OneofOptions* options);
  2331. private:
  2332. const ::PROTOBUF_NAMESPACE_ID::OneofOptions& _internal_options() const;
  2333. ::PROTOBUF_NAMESPACE_ID::OneofOptions* _internal_mutable_options();
  2334. public:
  2335. void unsafe_arena_set_allocated_options(
  2336. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options);
  2337. ::PROTOBUF_NAMESPACE_ID::OneofOptions* unsafe_arena_release_options();
  2338. // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto)
  2339. private:
  2340. class _Internal;
  2341. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2342. typedef void InternalArenaConstructable_;
  2343. typedef void DestructorSkippable_;
  2344. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2345. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2346. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2347. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options_;
  2348. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2349. };
  2350. // -------------------------------------------------------------------
  2351. class PROTOBUF_EXPORT EnumDescriptorProto_EnumReservedRange final :
  2352. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto.EnumReservedRange) */ {
  2353. public:
  2354. inline EnumDescriptorProto_EnumReservedRange() : EnumDescriptorProto_EnumReservedRange(nullptr) {}
  2355. ~EnumDescriptorProto_EnumReservedRange() override;
  2356. explicit constexpr EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2357. EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from);
  2358. EnumDescriptorProto_EnumReservedRange(EnumDescriptorProto_EnumReservedRange&& from) noexcept
  2359. : EnumDescriptorProto_EnumReservedRange() {
  2360. *this = ::std::move(from);
  2361. }
  2362. inline EnumDescriptorProto_EnumReservedRange& operator=(const EnumDescriptorProto_EnumReservedRange& from) {
  2363. CopyFrom(from);
  2364. return *this;
  2365. }
  2366. inline EnumDescriptorProto_EnumReservedRange& operator=(EnumDescriptorProto_EnumReservedRange&& from) noexcept {
  2367. if (this == &from) return *this;
  2368. if (GetOwningArena() == from.GetOwningArena()
  2369. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2370. && GetOwningArena() != nullptr
  2371. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2372. ) {
  2373. InternalSwap(&from);
  2374. } else {
  2375. CopyFrom(from);
  2376. }
  2377. return *this;
  2378. }
  2379. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2380. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2381. }
  2382. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2383. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2384. }
  2385. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2386. return GetDescriptor();
  2387. }
  2388. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2389. return default_instance().GetMetadata().descriptor;
  2390. }
  2391. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2392. return default_instance().GetMetadata().reflection;
  2393. }
  2394. static const EnumDescriptorProto_EnumReservedRange& default_instance() {
  2395. return *internal_default_instance();
  2396. }
  2397. static inline const EnumDescriptorProto_EnumReservedRange* internal_default_instance() {
  2398. return reinterpret_cast<const EnumDescriptorProto_EnumReservedRange*>(
  2399. &_EnumDescriptorProto_EnumReservedRange_default_instance_);
  2400. }
  2401. static constexpr int kIndexInFileMessages =
  2402. 8;
  2403. friend void swap(EnumDescriptorProto_EnumReservedRange& a, EnumDescriptorProto_EnumReservedRange& b) {
  2404. a.Swap(&b);
  2405. }
  2406. inline void Swap(EnumDescriptorProto_EnumReservedRange* other) {
  2407. if (other == this) return;
  2408. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2409. if (GetOwningArena() != nullptr &&
  2410. GetOwningArena() == other->GetOwningArena()) {
  2411. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2412. if (GetOwningArena() == other->GetOwningArena()) {
  2413. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2414. InternalSwap(other);
  2415. } else {
  2416. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2417. }
  2418. }
  2419. void UnsafeArenaSwap(EnumDescriptorProto_EnumReservedRange* other) {
  2420. if (other == this) return;
  2421. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2422. InternalSwap(other);
  2423. }
  2424. // implements Message ----------------------------------------------
  2425. EnumDescriptorProto_EnumReservedRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2426. return CreateMaybeMessage<EnumDescriptorProto_EnumReservedRange>(arena);
  2427. }
  2428. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2429. void CopyFrom(const EnumDescriptorProto_EnumReservedRange& from);
  2430. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2431. void MergeFrom(const EnumDescriptorProto_EnumReservedRange& from);
  2432. private:
  2433. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2434. public:
  2435. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2436. bool IsInitialized() const final;
  2437. size_t ByteSizeLong() const final;
  2438. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2439. uint8_t* _InternalSerialize(
  2440. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2441. int GetCachedSize() const final { return _cached_size_.Get(); }
  2442. private:
  2443. void SharedCtor();
  2444. void SharedDtor();
  2445. void SetCachedSize(int size) const final;
  2446. void InternalSwap(EnumDescriptorProto_EnumReservedRange* other);
  2447. private:
  2448. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2449. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2450. return "google.protobuf.EnumDescriptorProto.EnumReservedRange";
  2451. }
  2452. protected:
  2453. explicit EnumDescriptorProto_EnumReservedRange(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2454. bool is_message_owned = false);
  2455. private:
  2456. static void ArenaDtor(void* object);
  2457. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2458. public:
  2459. static const ClassData _class_data_;
  2460. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2461. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2462. // nested types ----------------------------------------------------
  2463. // accessors -------------------------------------------------------
  2464. enum : int {
  2465. kStartFieldNumber = 1,
  2466. kEndFieldNumber = 2,
  2467. };
  2468. // optional int32 start = 1;
  2469. bool has_start() const;
  2470. private:
  2471. bool _internal_has_start() const;
  2472. public:
  2473. void clear_start();
  2474. int32_t start() const;
  2475. void set_start(int32_t value);
  2476. private:
  2477. int32_t _internal_start() const;
  2478. void _internal_set_start(int32_t value);
  2479. public:
  2480. // optional int32 end = 2;
  2481. bool has_end() const;
  2482. private:
  2483. bool _internal_has_end() const;
  2484. public:
  2485. void clear_end();
  2486. int32_t end() const;
  2487. void set_end(int32_t value);
  2488. private:
  2489. int32_t _internal_end() const;
  2490. void _internal_set_end(int32_t value);
  2491. public:
  2492. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  2493. private:
  2494. class _Internal;
  2495. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2496. typedef void InternalArenaConstructable_;
  2497. typedef void DestructorSkippable_;
  2498. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2499. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2500. int32_t start_;
  2501. int32_t end_;
  2502. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2503. };
  2504. // -------------------------------------------------------------------
  2505. class PROTOBUF_EXPORT EnumDescriptorProto final :
  2506. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto) */ {
  2507. public:
  2508. inline EnumDescriptorProto() : EnumDescriptorProto(nullptr) {}
  2509. ~EnumDescriptorProto() override;
  2510. explicit constexpr EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2511. EnumDescriptorProto(const EnumDescriptorProto& from);
  2512. EnumDescriptorProto(EnumDescriptorProto&& from) noexcept
  2513. : EnumDescriptorProto() {
  2514. *this = ::std::move(from);
  2515. }
  2516. inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) {
  2517. CopyFrom(from);
  2518. return *this;
  2519. }
  2520. inline EnumDescriptorProto& operator=(EnumDescriptorProto&& from) noexcept {
  2521. if (this == &from) return *this;
  2522. if (GetOwningArena() == from.GetOwningArena()
  2523. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2524. && GetOwningArena() != nullptr
  2525. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2526. ) {
  2527. InternalSwap(&from);
  2528. } else {
  2529. CopyFrom(from);
  2530. }
  2531. return *this;
  2532. }
  2533. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2534. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2535. }
  2536. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2537. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2538. }
  2539. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2540. return GetDescriptor();
  2541. }
  2542. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2543. return default_instance().GetMetadata().descriptor;
  2544. }
  2545. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2546. return default_instance().GetMetadata().reflection;
  2547. }
  2548. static const EnumDescriptorProto& default_instance() {
  2549. return *internal_default_instance();
  2550. }
  2551. static inline const EnumDescriptorProto* internal_default_instance() {
  2552. return reinterpret_cast<const EnumDescriptorProto*>(
  2553. &_EnumDescriptorProto_default_instance_);
  2554. }
  2555. static constexpr int kIndexInFileMessages =
  2556. 9;
  2557. friend void swap(EnumDescriptorProto& a, EnumDescriptorProto& b) {
  2558. a.Swap(&b);
  2559. }
  2560. inline void Swap(EnumDescriptorProto* other) {
  2561. if (other == this) return;
  2562. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2563. if (GetOwningArena() != nullptr &&
  2564. GetOwningArena() == other->GetOwningArena()) {
  2565. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2566. if (GetOwningArena() == other->GetOwningArena()) {
  2567. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2568. InternalSwap(other);
  2569. } else {
  2570. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2571. }
  2572. }
  2573. void UnsafeArenaSwap(EnumDescriptorProto* other) {
  2574. if (other == this) return;
  2575. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2576. InternalSwap(other);
  2577. }
  2578. // implements Message ----------------------------------------------
  2579. EnumDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2580. return CreateMaybeMessage<EnumDescriptorProto>(arena);
  2581. }
  2582. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2583. void CopyFrom(const EnumDescriptorProto& from);
  2584. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2585. void MergeFrom(const EnumDescriptorProto& from);
  2586. private:
  2587. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2588. public:
  2589. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2590. bool IsInitialized() const final;
  2591. size_t ByteSizeLong() const final;
  2592. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2593. uint8_t* _InternalSerialize(
  2594. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2595. int GetCachedSize() const final { return _cached_size_.Get(); }
  2596. private:
  2597. void SharedCtor();
  2598. void SharedDtor();
  2599. void SetCachedSize(int size) const final;
  2600. void InternalSwap(EnumDescriptorProto* other);
  2601. private:
  2602. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2603. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2604. return "google.protobuf.EnumDescriptorProto";
  2605. }
  2606. protected:
  2607. explicit EnumDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2608. bool is_message_owned = false);
  2609. private:
  2610. static void ArenaDtor(void* object);
  2611. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2612. public:
  2613. static const ClassData _class_data_;
  2614. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2615. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2616. // nested types ----------------------------------------------------
  2617. typedef EnumDescriptorProto_EnumReservedRange EnumReservedRange;
  2618. // accessors -------------------------------------------------------
  2619. enum : int {
  2620. kValueFieldNumber = 2,
  2621. kReservedRangeFieldNumber = 4,
  2622. kReservedNameFieldNumber = 5,
  2623. kNameFieldNumber = 1,
  2624. kOptionsFieldNumber = 3,
  2625. };
  2626. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2627. int value_size() const;
  2628. private:
  2629. int _internal_value_size() const;
  2630. public:
  2631. void clear_value();
  2632. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* mutable_value(int index);
  2633. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >*
  2634. mutable_value();
  2635. private:
  2636. const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& _internal_value(int index) const;
  2637. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* _internal_add_value();
  2638. public:
  2639. const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& value(int index) const;
  2640. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* add_value();
  2641. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >&
  2642. value() const;
  2643. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  2644. int reserved_range_size() const;
  2645. private:
  2646. int _internal_reserved_range_size() const;
  2647. public:
  2648. void clear_reserved_range();
  2649. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* mutable_reserved_range(int index);
  2650. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >*
  2651. mutable_reserved_range();
  2652. private:
  2653. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& _internal_reserved_range(int index) const;
  2654. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* _internal_add_reserved_range();
  2655. public:
  2656. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& reserved_range(int index) const;
  2657. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* add_reserved_range();
  2658. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >&
  2659. reserved_range() const;
  2660. // repeated string reserved_name = 5;
  2661. int reserved_name_size() const;
  2662. private:
  2663. int _internal_reserved_name_size() const;
  2664. public:
  2665. void clear_reserved_name();
  2666. const std::string& reserved_name(int index) const;
  2667. std::string* mutable_reserved_name(int index);
  2668. void set_reserved_name(int index, const std::string& value);
  2669. void set_reserved_name(int index, std::string&& value);
  2670. void set_reserved_name(int index, const char* value);
  2671. void set_reserved_name(int index, const char* value, size_t size);
  2672. std::string* add_reserved_name();
  2673. void add_reserved_name(const std::string& value);
  2674. void add_reserved_name(std::string&& value);
  2675. void add_reserved_name(const char* value);
  2676. void add_reserved_name(const char* value, size_t size);
  2677. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& reserved_name() const;
  2678. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_reserved_name();
  2679. private:
  2680. const std::string& _internal_reserved_name(int index) const;
  2681. std::string* _internal_add_reserved_name();
  2682. public:
  2683. // optional string name = 1;
  2684. bool has_name() const;
  2685. private:
  2686. bool _internal_has_name() const;
  2687. public:
  2688. void clear_name();
  2689. const std::string& name() const;
  2690. template <typename ArgT0 = const std::string&, typename... ArgT>
  2691. void set_name(ArgT0&& arg0, ArgT... args);
  2692. std::string* mutable_name();
  2693. PROTOBUF_NODISCARD std::string* release_name();
  2694. void set_allocated_name(std::string* name);
  2695. private:
  2696. const std::string& _internal_name() const;
  2697. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2698. std::string* _internal_mutable_name();
  2699. public:
  2700. // optional .google.protobuf.EnumOptions options = 3;
  2701. bool has_options() const;
  2702. private:
  2703. bool _internal_has_options() const;
  2704. public:
  2705. void clear_options();
  2706. const ::PROTOBUF_NAMESPACE_ID::EnumOptions& options() const;
  2707. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::EnumOptions* release_options();
  2708. ::PROTOBUF_NAMESPACE_ID::EnumOptions* mutable_options();
  2709. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumOptions* options);
  2710. private:
  2711. const ::PROTOBUF_NAMESPACE_ID::EnumOptions& _internal_options() const;
  2712. ::PROTOBUF_NAMESPACE_ID::EnumOptions* _internal_mutable_options();
  2713. public:
  2714. void unsafe_arena_set_allocated_options(
  2715. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options);
  2716. ::PROTOBUF_NAMESPACE_ID::EnumOptions* unsafe_arena_release_options();
  2717. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
  2718. private:
  2719. class _Internal;
  2720. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2721. typedef void InternalArenaConstructable_;
  2722. typedef void DestructorSkippable_;
  2723. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2724. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2725. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto > value_;
  2726. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange > reserved_range_;
  2727. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> reserved_name_;
  2728. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2729. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options_;
  2730. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2731. };
  2732. // -------------------------------------------------------------------
  2733. class PROTOBUF_EXPORT EnumValueDescriptorProto final :
  2734. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueDescriptorProto) */ {
  2735. public:
  2736. inline EnumValueDescriptorProto() : EnumValueDescriptorProto(nullptr) {}
  2737. ~EnumValueDescriptorProto() override;
  2738. explicit constexpr EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2739. EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
  2740. EnumValueDescriptorProto(EnumValueDescriptorProto&& from) noexcept
  2741. : EnumValueDescriptorProto() {
  2742. *this = ::std::move(from);
  2743. }
  2744. inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) {
  2745. CopyFrom(from);
  2746. return *this;
  2747. }
  2748. inline EnumValueDescriptorProto& operator=(EnumValueDescriptorProto&& from) noexcept {
  2749. if (this == &from) return *this;
  2750. if (GetOwningArena() == from.GetOwningArena()
  2751. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2752. && GetOwningArena() != nullptr
  2753. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2754. ) {
  2755. InternalSwap(&from);
  2756. } else {
  2757. CopyFrom(from);
  2758. }
  2759. return *this;
  2760. }
  2761. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2762. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2763. }
  2764. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2765. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2766. }
  2767. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2768. return GetDescriptor();
  2769. }
  2770. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2771. return default_instance().GetMetadata().descriptor;
  2772. }
  2773. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2774. return default_instance().GetMetadata().reflection;
  2775. }
  2776. static const EnumValueDescriptorProto& default_instance() {
  2777. return *internal_default_instance();
  2778. }
  2779. static inline const EnumValueDescriptorProto* internal_default_instance() {
  2780. return reinterpret_cast<const EnumValueDescriptorProto*>(
  2781. &_EnumValueDescriptorProto_default_instance_);
  2782. }
  2783. static constexpr int kIndexInFileMessages =
  2784. 10;
  2785. friend void swap(EnumValueDescriptorProto& a, EnumValueDescriptorProto& b) {
  2786. a.Swap(&b);
  2787. }
  2788. inline void Swap(EnumValueDescriptorProto* other) {
  2789. if (other == this) return;
  2790. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2791. if (GetOwningArena() != nullptr &&
  2792. GetOwningArena() == other->GetOwningArena()) {
  2793. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2794. if (GetOwningArena() == other->GetOwningArena()) {
  2795. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2796. InternalSwap(other);
  2797. } else {
  2798. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2799. }
  2800. }
  2801. void UnsafeArenaSwap(EnumValueDescriptorProto* other) {
  2802. if (other == this) return;
  2803. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2804. InternalSwap(other);
  2805. }
  2806. // implements Message ----------------------------------------------
  2807. EnumValueDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2808. return CreateMaybeMessage<EnumValueDescriptorProto>(arena);
  2809. }
  2810. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2811. void CopyFrom(const EnumValueDescriptorProto& from);
  2812. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2813. void MergeFrom(const EnumValueDescriptorProto& from);
  2814. private:
  2815. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2816. public:
  2817. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2818. bool IsInitialized() const final;
  2819. size_t ByteSizeLong() const final;
  2820. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2821. uint8_t* _InternalSerialize(
  2822. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  2823. int GetCachedSize() const final { return _cached_size_.Get(); }
  2824. private:
  2825. void SharedCtor();
  2826. void SharedDtor();
  2827. void SetCachedSize(int size) const final;
  2828. void InternalSwap(EnumValueDescriptorProto* other);
  2829. private:
  2830. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  2831. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  2832. return "google.protobuf.EnumValueDescriptorProto";
  2833. }
  2834. protected:
  2835. explicit EnumValueDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  2836. bool is_message_owned = false);
  2837. private:
  2838. static void ArenaDtor(void* object);
  2839. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  2840. public:
  2841. static const ClassData _class_data_;
  2842. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  2843. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  2844. // nested types ----------------------------------------------------
  2845. // accessors -------------------------------------------------------
  2846. enum : int {
  2847. kNameFieldNumber = 1,
  2848. kOptionsFieldNumber = 3,
  2849. kNumberFieldNumber = 2,
  2850. };
  2851. // optional string name = 1;
  2852. bool has_name() const;
  2853. private:
  2854. bool _internal_has_name() const;
  2855. public:
  2856. void clear_name();
  2857. const std::string& name() const;
  2858. template <typename ArgT0 = const std::string&, typename... ArgT>
  2859. void set_name(ArgT0&& arg0, ArgT... args);
  2860. std::string* mutable_name();
  2861. PROTOBUF_NODISCARD std::string* release_name();
  2862. void set_allocated_name(std::string* name);
  2863. private:
  2864. const std::string& _internal_name() const;
  2865. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  2866. std::string* _internal_mutable_name();
  2867. public:
  2868. // optional .google.protobuf.EnumValueOptions options = 3;
  2869. bool has_options() const;
  2870. private:
  2871. bool _internal_has_options() const;
  2872. public:
  2873. void clear_options();
  2874. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& options() const;
  2875. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* release_options();
  2876. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* mutable_options();
  2877. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options);
  2878. private:
  2879. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& _internal_options() const;
  2880. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* _internal_mutable_options();
  2881. public:
  2882. void unsafe_arena_set_allocated_options(
  2883. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options);
  2884. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* unsafe_arena_release_options();
  2885. // optional int32 number = 2;
  2886. bool has_number() const;
  2887. private:
  2888. bool _internal_has_number() const;
  2889. public:
  2890. void clear_number();
  2891. int32_t number() const;
  2892. void set_number(int32_t value);
  2893. private:
  2894. int32_t _internal_number() const;
  2895. void _internal_set_number(int32_t value);
  2896. public:
  2897. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
  2898. private:
  2899. class _Internal;
  2900. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  2901. typedef void InternalArenaConstructable_;
  2902. typedef void DestructorSkippable_;
  2903. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  2904. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  2905. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  2906. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options_;
  2907. int32_t number_;
  2908. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  2909. };
  2910. // -------------------------------------------------------------------
  2911. class PROTOBUF_EXPORT ServiceDescriptorProto final :
  2912. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceDescriptorProto) */ {
  2913. public:
  2914. inline ServiceDescriptorProto() : ServiceDescriptorProto(nullptr) {}
  2915. ~ServiceDescriptorProto() override;
  2916. explicit constexpr ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  2917. ServiceDescriptorProto(const ServiceDescriptorProto& from);
  2918. ServiceDescriptorProto(ServiceDescriptorProto&& from) noexcept
  2919. : ServiceDescriptorProto() {
  2920. *this = ::std::move(from);
  2921. }
  2922. inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) {
  2923. CopyFrom(from);
  2924. return *this;
  2925. }
  2926. inline ServiceDescriptorProto& operator=(ServiceDescriptorProto&& from) noexcept {
  2927. if (this == &from) return *this;
  2928. if (GetOwningArena() == from.GetOwningArena()
  2929. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  2930. && GetOwningArena() != nullptr
  2931. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  2932. ) {
  2933. InternalSwap(&from);
  2934. } else {
  2935. CopyFrom(from);
  2936. }
  2937. return *this;
  2938. }
  2939. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  2940. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  2941. }
  2942. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  2943. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2944. }
  2945. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  2946. return GetDescriptor();
  2947. }
  2948. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  2949. return default_instance().GetMetadata().descriptor;
  2950. }
  2951. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  2952. return default_instance().GetMetadata().reflection;
  2953. }
  2954. static const ServiceDescriptorProto& default_instance() {
  2955. return *internal_default_instance();
  2956. }
  2957. static inline const ServiceDescriptorProto* internal_default_instance() {
  2958. return reinterpret_cast<const ServiceDescriptorProto*>(
  2959. &_ServiceDescriptorProto_default_instance_);
  2960. }
  2961. static constexpr int kIndexInFileMessages =
  2962. 11;
  2963. friend void swap(ServiceDescriptorProto& a, ServiceDescriptorProto& b) {
  2964. a.Swap(&b);
  2965. }
  2966. inline void Swap(ServiceDescriptorProto* other) {
  2967. if (other == this) return;
  2968. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  2969. if (GetOwningArena() != nullptr &&
  2970. GetOwningArena() == other->GetOwningArena()) {
  2971. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  2972. if (GetOwningArena() == other->GetOwningArena()) {
  2973. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  2974. InternalSwap(other);
  2975. } else {
  2976. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  2977. }
  2978. }
  2979. void UnsafeArenaSwap(ServiceDescriptorProto* other) {
  2980. if (other == this) return;
  2981. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  2982. InternalSwap(other);
  2983. }
  2984. // implements Message ----------------------------------------------
  2985. ServiceDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  2986. return CreateMaybeMessage<ServiceDescriptorProto>(arena);
  2987. }
  2988. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  2989. void CopyFrom(const ServiceDescriptorProto& from);
  2990. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  2991. void MergeFrom(const ServiceDescriptorProto& from);
  2992. private:
  2993. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  2994. public:
  2995. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  2996. bool IsInitialized() const final;
  2997. size_t ByteSizeLong() const final;
  2998. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  2999. uint8_t* _InternalSerialize(
  3000. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3001. int GetCachedSize() const final { return _cached_size_.Get(); }
  3002. private:
  3003. void SharedCtor();
  3004. void SharedDtor();
  3005. void SetCachedSize(int size) const final;
  3006. void InternalSwap(ServiceDescriptorProto* other);
  3007. private:
  3008. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3009. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3010. return "google.protobuf.ServiceDescriptorProto";
  3011. }
  3012. protected:
  3013. explicit ServiceDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3014. bool is_message_owned = false);
  3015. private:
  3016. static void ArenaDtor(void* object);
  3017. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3018. public:
  3019. static const ClassData _class_data_;
  3020. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  3021. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3022. // nested types ----------------------------------------------------
  3023. // accessors -------------------------------------------------------
  3024. enum : int {
  3025. kMethodFieldNumber = 2,
  3026. kNameFieldNumber = 1,
  3027. kOptionsFieldNumber = 3,
  3028. };
  3029. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  3030. int method_size() const;
  3031. private:
  3032. int _internal_method_size() const;
  3033. public:
  3034. void clear_method();
  3035. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* mutable_method(int index);
  3036. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >*
  3037. mutable_method();
  3038. private:
  3039. const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& _internal_method(int index) const;
  3040. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* _internal_add_method();
  3041. public:
  3042. const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& method(int index) const;
  3043. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* add_method();
  3044. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >&
  3045. method() const;
  3046. // optional string name = 1;
  3047. bool has_name() const;
  3048. private:
  3049. bool _internal_has_name() const;
  3050. public:
  3051. void clear_name();
  3052. const std::string& name() const;
  3053. template <typename ArgT0 = const std::string&, typename... ArgT>
  3054. void set_name(ArgT0&& arg0, ArgT... args);
  3055. std::string* mutable_name();
  3056. PROTOBUF_NODISCARD std::string* release_name();
  3057. void set_allocated_name(std::string* name);
  3058. private:
  3059. const std::string& _internal_name() const;
  3060. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  3061. std::string* _internal_mutable_name();
  3062. public:
  3063. // optional .google.protobuf.ServiceOptions options = 3;
  3064. bool has_options() const;
  3065. private:
  3066. bool _internal_has_options() const;
  3067. public:
  3068. void clear_options();
  3069. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& options() const;
  3070. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::ServiceOptions* release_options();
  3071. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* mutable_options();
  3072. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::ServiceOptions* options);
  3073. private:
  3074. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& _internal_options() const;
  3075. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* _internal_mutable_options();
  3076. public:
  3077. void unsafe_arena_set_allocated_options(
  3078. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options);
  3079. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* unsafe_arena_release_options();
  3080. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
  3081. private:
  3082. class _Internal;
  3083. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3084. typedef void InternalArenaConstructable_;
  3085. typedef void DestructorSkippable_;
  3086. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3087. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3088. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto > method_;
  3089. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3090. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options_;
  3091. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3092. };
  3093. // -------------------------------------------------------------------
  3094. class PROTOBUF_EXPORT MethodDescriptorProto final :
  3095. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodDescriptorProto) */ {
  3096. public:
  3097. inline MethodDescriptorProto() : MethodDescriptorProto(nullptr) {}
  3098. ~MethodDescriptorProto() override;
  3099. explicit constexpr MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3100. MethodDescriptorProto(const MethodDescriptorProto& from);
  3101. MethodDescriptorProto(MethodDescriptorProto&& from) noexcept
  3102. : MethodDescriptorProto() {
  3103. *this = ::std::move(from);
  3104. }
  3105. inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) {
  3106. CopyFrom(from);
  3107. return *this;
  3108. }
  3109. inline MethodDescriptorProto& operator=(MethodDescriptorProto&& from) noexcept {
  3110. if (this == &from) return *this;
  3111. if (GetOwningArena() == from.GetOwningArena()
  3112. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3113. && GetOwningArena() != nullptr
  3114. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3115. ) {
  3116. InternalSwap(&from);
  3117. } else {
  3118. CopyFrom(from);
  3119. }
  3120. return *this;
  3121. }
  3122. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  3123. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  3124. }
  3125. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  3126. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3127. }
  3128. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3129. return GetDescriptor();
  3130. }
  3131. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3132. return default_instance().GetMetadata().descriptor;
  3133. }
  3134. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3135. return default_instance().GetMetadata().reflection;
  3136. }
  3137. static const MethodDescriptorProto& default_instance() {
  3138. return *internal_default_instance();
  3139. }
  3140. static inline const MethodDescriptorProto* internal_default_instance() {
  3141. return reinterpret_cast<const MethodDescriptorProto*>(
  3142. &_MethodDescriptorProto_default_instance_);
  3143. }
  3144. static constexpr int kIndexInFileMessages =
  3145. 12;
  3146. friend void swap(MethodDescriptorProto& a, MethodDescriptorProto& b) {
  3147. a.Swap(&b);
  3148. }
  3149. inline void Swap(MethodDescriptorProto* other) {
  3150. if (other == this) return;
  3151. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3152. if (GetOwningArena() != nullptr &&
  3153. GetOwningArena() == other->GetOwningArena()) {
  3154. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3155. if (GetOwningArena() == other->GetOwningArena()) {
  3156. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3157. InternalSwap(other);
  3158. } else {
  3159. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3160. }
  3161. }
  3162. void UnsafeArenaSwap(MethodDescriptorProto* other) {
  3163. if (other == this) return;
  3164. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  3165. InternalSwap(other);
  3166. }
  3167. // implements Message ----------------------------------------------
  3168. MethodDescriptorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  3169. return CreateMaybeMessage<MethodDescriptorProto>(arena);
  3170. }
  3171. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3172. void CopyFrom(const MethodDescriptorProto& from);
  3173. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3174. void MergeFrom(const MethodDescriptorProto& from);
  3175. private:
  3176. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  3177. public:
  3178. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3179. bool IsInitialized() const final;
  3180. size_t ByteSizeLong() const final;
  3181. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3182. uint8_t* _InternalSerialize(
  3183. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3184. int GetCachedSize() const final { return _cached_size_.Get(); }
  3185. private:
  3186. void SharedCtor();
  3187. void SharedDtor();
  3188. void SetCachedSize(int size) const final;
  3189. void InternalSwap(MethodDescriptorProto* other);
  3190. private:
  3191. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3192. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3193. return "google.protobuf.MethodDescriptorProto";
  3194. }
  3195. protected:
  3196. explicit MethodDescriptorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3197. bool is_message_owned = false);
  3198. private:
  3199. static void ArenaDtor(void* object);
  3200. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3201. public:
  3202. static const ClassData _class_data_;
  3203. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  3204. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3205. // nested types ----------------------------------------------------
  3206. // accessors -------------------------------------------------------
  3207. enum : int {
  3208. kNameFieldNumber = 1,
  3209. kInputTypeFieldNumber = 2,
  3210. kOutputTypeFieldNumber = 3,
  3211. kOptionsFieldNumber = 4,
  3212. kClientStreamingFieldNumber = 5,
  3213. kServerStreamingFieldNumber = 6,
  3214. };
  3215. // optional string name = 1;
  3216. bool has_name() const;
  3217. private:
  3218. bool _internal_has_name() const;
  3219. public:
  3220. void clear_name();
  3221. const std::string& name() const;
  3222. template <typename ArgT0 = const std::string&, typename... ArgT>
  3223. void set_name(ArgT0&& arg0, ArgT... args);
  3224. std::string* mutable_name();
  3225. PROTOBUF_NODISCARD std::string* release_name();
  3226. void set_allocated_name(std::string* name);
  3227. private:
  3228. const std::string& _internal_name() const;
  3229. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
  3230. std::string* _internal_mutable_name();
  3231. public:
  3232. // optional string input_type = 2;
  3233. bool has_input_type() const;
  3234. private:
  3235. bool _internal_has_input_type() const;
  3236. public:
  3237. void clear_input_type();
  3238. const std::string& input_type() const;
  3239. template <typename ArgT0 = const std::string&, typename... ArgT>
  3240. void set_input_type(ArgT0&& arg0, ArgT... args);
  3241. std::string* mutable_input_type();
  3242. PROTOBUF_NODISCARD std::string* release_input_type();
  3243. void set_allocated_input_type(std::string* input_type);
  3244. private:
  3245. const std::string& _internal_input_type() const;
  3246. inline PROTOBUF_ALWAYS_INLINE void _internal_set_input_type(const std::string& value);
  3247. std::string* _internal_mutable_input_type();
  3248. public:
  3249. // optional string output_type = 3;
  3250. bool has_output_type() const;
  3251. private:
  3252. bool _internal_has_output_type() const;
  3253. public:
  3254. void clear_output_type();
  3255. const std::string& output_type() const;
  3256. template <typename ArgT0 = const std::string&, typename... ArgT>
  3257. void set_output_type(ArgT0&& arg0, ArgT... args);
  3258. std::string* mutable_output_type();
  3259. PROTOBUF_NODISCARD std::string* release_output_type();
  3260. void set_allocated_output_type(std::string* output_type);
  3261. private:
  3262. const std::string& _internal_output_type() const;
  3263. inline PROTOBUF_ALWAYS_INLINE void _internal_set_output_type(const std::string& value);
  3264. std::string* _internal_mutable_output_type();
  3265. public:
  3266. // optional .google.protobuf.MethodOptions options = 4;
  3267. bool has_options() const;
  3268. private:
  3269. bool _internal_has_options() const;
  3270. public:
  3271. void clear_options();
  3272. const ::PROTOBUF_NAMESPACE_ID::MethodOptions& options() const;
  3273. PROTOBUF_NODISCARD ::PROTOBUF_NAMESPACE_ID::MethodOptions* release_options();
  3274. ::PROTOBUF_NAMESPACE_ID::MethodOptions* mutable_options();
  3275. void set_allocated_options(::PROTOBUF_NAMESPACE_ID::MethodOptions* options);
  3276. private:
  3277. const ::PROTOBUF_NAMESPACE_ID::MethodOptions& _internal_options() const;
  3278. ::PROTOBUF_NAMESPACE_ID::MethodOptions* _internal_mutable_options();
  3279. public:
  3280. void unsafe_arena_set_allocated_options(
  3281. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options);
  3282. ::PROTOBUF_NAMESPACE_ID::MethodOptions* unsafe_arena_release_options();
  3283. // optional bool client_streaming = 5 [default = false];
  3284. bool has_client_streaming() const;
  3285. private:
  3286. bool _internal_has_client_streaming() const;
  3287. public:
  3288. void clear_client_streaming();
  3289. bool client_streaming() const;
  3290. void set_client_streaming(bool value);
  3291. private:
  3292. bool _internal_client_streaming() const;
  3293. void _internal_set_client_streaming(bool value);
  3294. public:
  3295. // optional bool server_streaming = 6 [default = false];
  3296. bool has_server_streaming() const;
  3297. private:
  3298. bool _internal_has_server_streaming() const;
  3299. public:
  3300. void clear_server_streaming();
  3301. bool server_streaming() const;
  3302. void set_server_streaming(bool value);
  3303. private:
  3304. bool _internal_server_streaming() const;
  3305. void _internal_set_server_streaming(bool value);
  3306. public:
  3307. // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
  3308. private:
  3309. class _Internal;
  3310. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3311. typedef void InternalArenaConstructable_;
  3312. typedef void DestructorSkippable_;
  3313. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3314. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3315. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  3316. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr input_type_;
  3317. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr output_type_;
  3318. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options_;
  3319. bool client_streaming_;
  3320. bool server_streaming_;
  3321. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3322. };
  3323. // -------------------------------------------------------------------
  3324. class PROTOBUF_EXPORT FileOptions final :
  3325. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileOptions) */ {
  3326. public:
  3327. inline FileOptions() : FileOptions(nullptr) {}
  3328. ~FileOptions() override;
  3329. explicit constexpr FileOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3330. FileOptions(const FileOptions& from);
  3331. FileOptions(FileOptions&& from) noexcept
  3332. : FileOptions() {
  3333. *this = ::std::move(from);
  3334. }
  3335. inline FileOptions& operator=(const FileOptions& from) {
  3336. CopyFrom(from);
  3337. return *this;
  3338. }
  3339. inline FileOptions& operator=(FileOptions&& from) noexcept {
  3340. if (this == &from) return *this;
  3341. if (GetOwningArena() == from.GetOwningArena()
  3342. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  3343. && GetOwningArena() != nullptr
  3344. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  3345. ) {
  3346. InternalSwap(&from);
  3347. } else {
  3348. CopyFrom(from);
  3349. }
  3350. return *this;
  3351. }
  3352. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  3353. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  3354. }
  3355. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  3356. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3357. }
  3358. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  3359. return GetDescriptor();
  3360. }
  3361. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  3362. return default_instance().GetMetadata().descriptor;
  3363. }
  3364. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  3365. return default_instance().GetMetadata().reflection;
  3366. }
  3367. static const FileOptions& default_instance() {
  3368. return *internal_default_instance();
  3369. }
  3370. static inline const FileOptions* internal_default_instance() {
  3371. return reinterpret_cast<const FileOptions*>(
  3372. &_FileOptions_default_instance_);
  3373. }
  3374. static constexpr int kIndexInFileMessages =
  3375. 13;
  3376. friend void swap(FileOptions& a, FileOptions& b) {
  3377. a.Swap(&b);
  3378. }
  3379. inline void Swap(FileOptions* other) {
  3380. if (other == this) return;
  3381. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  3382. if (GetOwningArena() != nullptr &&
  3383. GetOwningArena() == other->GetOwningArena()) {
  3384. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  3385. if (GetOwningArena() == other->GetOwningArena()) {
  3386. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  3387. InternalSwap(other);
  3388. } else {
  3389. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  3390. }
  3391. }
  3392. void UnsafeArenaSwap(FileOptions* other) {
  3393. if (other == this) return;
  3394. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  3395. InternalSwap(other);
  3396. }
  3397. // implements Message ----------------------------------------------
  3398. FileOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  3399. return CreateMaybeMessage<FileOptions>(arena);
  3400. }
  3401. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  3402. void CopyFrom(const FileOptions& from);
  3403. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  3404. void MergeFrom(const FileOptions& from);
  3405. private:
  3406. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  3407. public:
  3408. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  3409. bool IsInitialized() const final;
  3410. size_t ByteSizeLong() const final;
  3411. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  3412. uint8_t* _InternalSerialize(
  3413. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  3414. int GetCachedSize() const final { return _cached_size_.Get(); }
  3415. private:
  3416. void SharedCtor();
  3417. void SharedDtor();
  3418. void SetCachedSize(int size) const final;
  3419. void InternalSwap(FileOptions* other);
  3420. private:
  3421. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  3422. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  3423. return "google.protobuf.FileOptions";
  3424. }
  3425. protected:
  3426. explicit FileOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  3427. bool is_message_owned = false);
  3428. private:
  3429. static void ArenaDtor(void* object);
  3430. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  3431. public:
  3432. static const ClassData _class_data_;
  3433. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  3434. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  3435. // nested types ----------------------------------------------------
  3436. typedef FileOptions_OptimizeMode OptimizeMode;
  3437. static constexpr OptimizeMode SPEED =
  3438. FileOptions_OptimizeMode_SPEED;
  3439. static constexpr OptimizeMode CODE_SIZE =
  3440. FileOptions_OptimizeMode_CODE_SIZE;
  3441. static constexpr OptimizeMode LITE_RUNTIME =
  3442. FileOptions_OptimizeMode_LITE_RUNTIME;
  3443. static inline bool OptimizeMode_IsValid(int value) {
  3444. return FileOptions_OptimizeMode_IsValid(value);
  3445. }
  3446. static constexpr OptimizeMode OptimizeMode_MIN =
  3447. FileOptions_OptimizeMode_OptimizeMode_MIN;
  3448. static constexpr OptimizeMode OptimizeMode_MAX =
  3449. FileOptions_OptimizeMode_OptimizeMode_MAX;
  3450. static constexpr int OptimizeMode_ARRAYSIZE =
  3451. FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
  3452. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  3453. OptimizeMode_descriptor() {
  3454. return FileOptions_OptimizeMode_descriptor();
  3455. }
  3456. template<typename T>
  3457. static inline const std::string& OptimizeMode_Name(T enum_t_value) {
  3458. static_assert(::std::is_same<T, OptimizeMode>::value ||
  3459. ::std::is_integral<T>::value,
  3460. "Incorrect type passed to function OptimizeMode_Name.");
  3461. return FileOptions_OptimizeMode_Name(enum_t_value);
  3462. }
  3463. static inline bool OptimizeMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  3464. OptimizeMode* value) {
  3465. return FileOptions_OptimizeMode_Parse(name, value);
  3466. }
  3467. // accessors -------------------------------------------------------
  3468. enum : int {
  3469. kUninterpretedOptionFieldNumber = 999,
  3470. kJavaPackageFieldNumber = 1,
  3471. kJavaOuterClassnameFieldNumber = 8,
  3472. kGoPackageFieldNumber = 11,
  3473. kObjcClassPrefixFieldNumber = 36,
  3474. kCsharpNamespaceFieldNumber = 37,
  3475. kSwiftPrefixFieldNumber = 39,
  3476. kPhpClassPrefixFieldNumber = 40,
  3477. kPhpNamespaceFieldNumber = 41,
  3478. kPhpMetadataNamespaceFieldNumber = 44,
  3479. kRubyPackageFieldNumber = 45,
  3480. kJavaMultipleFilesFieldNumber = 10,
  3481. kJavaGenerateEqualsAndHashFieldNumber = 20,
  3482. kJavaStringCheckUtf8FieldNumber = 27,
  3483. kCcGenericServicesFieldNumber = 16,
  3484. kJavaGenericServicesFieldNumber = 17,
  3485. kPyGenericServicesFieldNumber = 18,
  3486. kPhpGenericServicesFieldNumber = 42,
  3487. kDeprecatedFieldNumber = 23,
  3488. kOptimizeForFieldNumber = 9,
  3489. kCcEnableArenasFieldNumber = 31,
  3490. };
  3491. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3492. int uninterpreted_option_size() const;
  3493. private:
  3494. int _internal_uninterpreted_option_size() const;
  3495. public:
  3496. void clear_uninterpreted_option();
  3497. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  3498. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  3499. mutable_uninterpreted_option();
  3500. private:
  3501. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  3502. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  3503. public:
  3504. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  3505. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  3506. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  3507. uninterpreted_option() const;
  3508. // optional string java_package = 1;
  3509. bool has_java_package() const;
  3510. private:
  3511. bool _internal_has_java_package() const;
  3512. public:
  3513. void clear_java_package();
  3514. const std::string& java_package() const;
  3515. template <typename ArgT0 = const std::string&, typename... ArgT>
  3516. void set_java_package(ArgT0&& arg0, ArgT... args);
  3517. std::string* mutable_java_package();
  3518. PROTOBUF_NODISCARD std::string* release_java_package();
  3519. void set_allocated_java_package(std::string* java_package);
  3520. private:
  3521. const std::string& _internal_java_package() const;
  3522. inline PROTOBUF_ALWAYS_INLINE void _internal_set_java_package(const std::string& value);
  3523. std::string* _internal_mutable_java_package();
  3524. public:
  3525. // optional string java_outer_classname = 8;
  3526. bool has_java_outer_classname() const;
  3527. private:
  3528. bool _internal_has_java_outer_classname() const;
  3529. public:
  3530. void clear_java_outer_classname();
  3531. const std::string& java_outer_classname() const;
  3532. template <typename ArgT0 = const std::string&, typename... ArgT>
  3533. void set_java_outer_classname(ArgT0&& arg0, ArgT... args);
  3534. std::string* mutable_java_outer_classname();
  3535. PROTOBUF_NODISCARD std::string* release_java_outer_classname();
  3536. void set_allocated_java_outer_classname(std::string* java_outer_classname);
  3537. private:
  3538. const std::string& _internal_java_outer_classname() const;
  3539. inline PROTOBUF_ALWAYS_INLINE void _internal_set_java_outer_classname(const std::string& value);
  3540. std::string* _internal_mutable_java_outer_classname();
  3541. public:
  3542. // optional string go_package = 11;
  3543. bool has_go_package() const;
  3544. private:
  3545. bool _internal_has_go_package() const;
  3546. public:
  3547. void clear_go_package();
  3548. const std::string& go_package() const;
  3549. template <typename ArgT0 = const std::string&, typename... ArgT>
  3550. void set_go_package(ArgT0&& arg0, ArgT... args);
  3551. std::string* mutable_go_package();
  3552. PROTOBUF_NODISCARD std::string* release_go_package();
  3553. void set_allocated_go_package(std::string* go_package);
  3554. private:
  3555. const std::string& _internal_go_package() const;
  3556. inline PROTOBUF_ALWAYS_INLINE void _internal_set_go_package(const std::string& value);
  3557. std::string* _internal_mutable_go_package();
  3558. public:
  3559. // optional string objc_class_prefix = 36;
  3560. bool has_objc_class_prefix() const;
  3561. private:
  3562. bool _internal_has_objc_class_prefix() const;
  3563. public:
  3564. void clear_objc_class_prefix();
  3565. const std::string& objc_class_prefix() const;
  3566. template <typename ArgT0 = const std::string&, typename... ArgT>
  3567. void set_objc_class_prefix(ArgT0&& arg0, ArgT... args);
  3568. std::string* mutable_objc_class_prefix();
  3569. PROTOBUF_NODISCARD std::string* release_objc_class_prefix();
  3570. void set_allocated_objc_class_prefix(std::string* objc_class_prefix);
  3571. private:
  3572. const std::string& _internal_objc_class_prefix() const;
  3573. inline PROTOBUF_ALWAYS_INLINE void _internal_set_objc_class_prefix(const std::string& value);
  3574. std::string* _internal_mutable_objc_class_prefix();
  3575. public:
  3576. // optional string csharp_namespace = 37;
  3577. bool has_csharp_namespace() const;
  3578. private:
  3579. bool _internal_has_csharp_namespace() const;
  3580. public:
  3581. void clear_csharp_namespace();
  3582. const std::string& csharp_namespace() const;
  3583. template <typename ArgT0 = const std::string&, typename... ArgT>
  3584. void set_csharp_namespace(ArgT0&& arg0, ArgT... args);
  3585. std::string* mutable_csharp_namespace();
  3586. PROTOBUF_NODISCARD std::string* release_csharp_namespace();
  3587. void set_allocated_csharp_namespace(std::string* csharp_namespace);
  3588. private:
  3589. const std::string& _internal_csharp_namespace() const;
  3590. inline PROTOBUF_ALWAYS_INLINE void _internal_set_csharp_namespace(const std::string& value);
  3591. std::string* _internal_mutable_csharp_namespace();
  3592. public:
  3593. // optional string swift_prefix = 39;
  3594. bool has_swift_prefix() const;
  3595. private:
  3596. bool _internal_has_swift_prefix() const;
  3597. public:
  3598. void clear_swift_prefix();
  3599. const std::string& swift_prefix() const;
  3600. template <typename ArgT0 = const std::string&, typename... ArgT>
  3601. void set_swift_prefix(ArgT0&& arg0, ArgT... args);
  3602. std::string* mutable_swift_prefix();
  3603. PROTOBUF_NODISCARD std::string* release_swift_prefix();
  3604. void set_allocated_swift_prefix(std::string* swift_prefix);
  3605. private:
  3606. const std::string& _internal_swift_prefix() const;
  3607. inline PROTOBUF_ALWAYS_INLINE void _internal_set_swift_prefix(const std::string& value);
  3608. std::string* _internal_mutable_swift_prefix();
  3609. public:
  3610. // optional string php_class_prefix = 40;
  3611. bool has_php_class_prefix() const;
  3612. private:
  3613. bool _internal_has_php_class_prefix() const;
  3614. public:
  3615. void clear_php_class_prefix();
  3616. const std::string& php_class_prefix() const;
  3617. template <typename ArgT0 = const std::string&, typename... ArgT>
  3618. void set_php_class_prefix(ArgT0&& arg0, ArgT... args);
  3619. std::string* mutable_php_class_prefix();
  3620. PROTOBUF_NODISCARD std::string* release_php_class_prefix();
  3621. void set_allocated_php_class_prefix(std::string* php_class_prefix);
  3622. private:
  3623. const std::string& _internal_php_class_prefix() const;
  3624. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_class_prefix(const std::string& value);
  3625. std::string* _internal_mutable_php_class_prefix();
  3626. public:
  3627. // optional string php_namespace = 41;
  3628. bool has_php_namespace() const;
  3629. private:
  3630. bool _internal_has_php_namespace() const;
  3631. public:
  3632. void clear_php_namespace();
  3633. const std::string& php_namespace() const;
  3634. template <typename ArgT0 = const std::string&, typename... ArgT>
  3635. void set_php_namespace(ArgT0&& arg0, ArgT... args);
  3636. std::string* mutable_php_namespace();
  3637. PROTOBUF_NODISCARD std::string* release_php_namespace();
  3638. void set_allocated_php_namespace(std::string* php_namespace);
  3639. private:
  3640. const std::string& _internal_php_namespace() const;
  3641. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_namespace(const std::string& value);
  3642. std::string* _internal_mutable_php_namespace();
  3643. public:
  3644. // optional string php_metadata_namespace = 44;
  3645. bool has_php_metadata_namespace() const;
  3646. private:
  3647. bool _internal_has_php_metadata_namespace() const;
  3648. public:
  3649. void clear_php_metadata_namespace();
  3650. const std::string& php_metadata_namespace() const;
  3651. template <typename ArgT0 = const std::string&, typename... ArgT>
  3652. void set_php_metadata_namespace(ArgT0&& arg0, ArgT... args);
  3653. std::string* mutable_php_metadata_namespace();
  3654. PROTOBUF_NODISCARD std::string* release_php_metadata_namespace();
  3655. void set_allocated_php_metadata_namespace(std::string* php_metadata_namespace);
  3656. private:
  3657. const std::string& _internal_php_metadata_namespace() const;
  3658. inline PROTOBUF_ALWAYS_INLINE void _internal_set_php_metadata_namespace(const std::string& value);
  3659. std::string* _internal_mutable_php_metadata_namespace();
  3660. public:
  3661. // optional string ruby_package = 45;
  3662. bool has_ruby_package() const;
  3663. private:
  3664. bool _internal_has_ruby_package() const;
  3665. public:
  3666. void clear_ruby_package();
  3667. const std::string& ruby_package() const;
  3668. template <typename ArgT0 = const std::string&, typename... ArgT>
  3669. void set_ruby_package(ArgT0&& arg0, ArgT... args);
  3670. std::string* mutable_ruby_package();
  3671. PROTOBUF_NODISCARD std::string* release_ruby_package();
  3672. void set_allocated_ruby_package(std::string* ruby_package);
  3673. private:
  3674. const std::string& _internal_ruby_package() const;
  3675. inline PROTOBUF_ALWAYS_INLINE void _internal_set_ruby_package(const std::string& value);
  3676. std::string* _internal_mutable_ruby_package();
  3677. public:
  3678. // optional bool java_multiple_files = 10 [default = false];
  3679. bool has_java_multiple_files() const;
  3680. private:
  3681. bool _internal_has_java_multiple_files() const;
  3682. public:
  3683. void clear_java_multiple_files();
  3684. bool java_multiple_files() const;
  3685. void set_java_multiple_files(bool value);
  3686. private:
  3687. bool _internal_java_multiple_files() const;
  3688. void _internal_set_java_multiple_files(bool value);
  3689. public:
  3690. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  3691. PROTOBUF_DEPRECATED bool has_java_generate_equals_and_hash() const;
  3692. private:
  3693. bool _internal_has_java_generate_equals_and_hash() const;
  3694. public:
  3695. PROTOBUF_DEPRECATED void clear_java_generate_equals_and_hash();
  3696. PROTOBUF_DEPRECATED bool java_generate_equals_and_hash() const;
  3697. PROTOBUF_DEPRECATED void set_java_generate_equals_and_hash(bool value);
  3698. private:
  3699. bool _internal_java_generate_equals_and_hash() const;
  3700. void _internal_set_java_generate_equals_and_hash(bool value);
  3701. public:
  3702. // optional bool java_string_check_utf8 = 27 [default = false];
  3703. bool has_java_string_check_utf8() const;
  3704. private:
  3705. bool _internal_has_java_string_check_utf8() const;
  3706. public:
  3707. void clear_java_string_check_utf8();
  3708. bool java_string_check_utf8() const;
  3709. void set_java_string_check_utf8(bool value);
  3710. private:
  3711. bool _internal_java_string_check_utf8() const;
  3712. void _internal_set_java_string_check_utf8(bool value);
  3713. public:
  3714. // optional bool cc_generic_services = 16 [default = false];
  3715. bool has_cc_generic_services() const;
  3716. private:
  3717. bool _internal_has_cc_generic_services() const;
  3718. public:
  3719. void clear_cc_generic_services();
  3720. bool cc_generic_services() const;
  3721. void set_cc_generic_services(bool value);
  3722. private:
  3723. bool _internal_cc_generic_services() const;
  3724. void _internal_set_cc_generic_services(bool value);
  3725. public:
  3726. // optional bool java_generic_services = 17 [default = false];
  3727. bool has_java_generic_services() const;
  3728. private:
  3729. bool _internal_has_java_generic_services() const;
  3730. public:
  3731. void clear_java_generic_services();
  3732. bool java_generic_services() const;
  3733. void set_java_generic_services(bool value);
  3734. private:
  3735. bool _internal_java_generic_services() const;
  3736. void _internal_set_java_generic_services(bool value);
  3737. public:
  3738. // optional bool py_generic_services = 18 [default = false];
  3739. bool has_py_generic_services() const;
  3740. private:
  3741. bool _internal_has_py_generic_services() const;
  3742. public:
  3743. void clear_py_generic_services();
  3744. bool py_generic_services() const;
  3745. void set_py_generic_services(bool value);
  3746. private:
  3747. bool _internal_py_generic_services() const;
  3748. void _internal_set_py_generic_services(bool value);
  3749. public:
  3750. // optional bool php_generic_services = 42 [default = false];
  3751. bool has_php_generic_services() const;
  3752. private:
  3753. bool _internal_has_php_generic_services() const;
  3754. public:
  3755. void clear_php_generic_services();
  3756. bool php_generic_services() const;
  3757. void set_php_generic_services(bool value);
  3758. private:
  3759. bool _internal_php_generic_services() const;
  3760. void _internal_set_php_generic_services(bool value);
  3761. public:
  3762. // optional bool deprecated = 23 [default = false];
  3763. bool has_deprecated() const;
  3764. private:
  3765. bool _internal_has_deprecated() const;
  3766. public:
  3767. void clear_deprecated();
  3768. bool deprecated() const;
  3769. void set_deprecated(bool value);
  3770. private:
  3771. bool _internal_deprecated() const;
  3772. void _internal_set_deprecated(bool value);
  3773. public:
  3774. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  3775. bool has_optimize_for() const;
  3776. private:
  3777. bool _internal_has_optimize_for() const;
  3778. public:
  3779. void clear_optimize_for();
  3780. ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode optimize_for() const;
  3781. void set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value);
  3782. private:
  3783. ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode _internal_optimize_for() const;
  3784. void _internal_set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value);
  3785. public:
  3786. // optional bool cc_enable_arenas = 31 [default = true];
  3787. bool has_cc_enable_arenas() const;
  3788. private:
  3789. bool _internal_has_cc_enable_arenas() const;
  3790. public:
  3791. void clear_cc_enable_arenas();
  3792. bool cc_enable_arenas() const;
  3793. void set_cc_enable_arenas(bool value);
  3794. private:
  3795. bool _internal_cc_enable_arenas() const;
  3796. void _internal_set_cc_enable_arenas(bool value);
  3797. public:
  3798. template <typename _proto_TypeTraits,
  3799. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3800. bool _is_packed>
  3801. inline bool HasExtension(
  3802. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3803. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3804. return _extensions_.Has(id.number());
  3805. }
  3806. template <typename _proto_TypeTraits,
  3807. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3808. bool _is_packed>
  3809. inline void ClearExtension(
  3810. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3811. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3812. _extensions_.ClearExtension(id.number());
  3813. }
  3814. template <typename _proto_TypeTraits,
  3815. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3816. bool _is_packed>
  3817. inline int ExtensionSize(
  3818. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3819. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3820. return _extensions_.ExtensionSize(id.number());
  3821. }
  3822. template <typename _proto_TypeTraits,
  3823. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3824. bool _is_packed>
  3825. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  3826. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3827. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3828. return _proto_TypeTraits::Get(id.number(), _extensions_,
  3829. id.default_value());
  3830. }
  3831. template <typename _proto_TypeTraits,
  3832. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3833. bool _is_packed>
  3834. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  3835. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3836. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3837. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  3838. &_extensions_);
  3839. }
  3840. template <typename _proto_TypeTraits,
  3841. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3842. bool _is_packed>
  3843. inline void SetExtension(
  3844. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3845. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3846. typename _proto_TypeTraits::Singular::ConstType value) {
  3847. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  3848. }
  3849. template <typename _proto_TypeTraits,
  3850. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3851. bool _is_packed>
  3852. inline void SetAllocatedExtension(
  3853. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3854. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3855. typename _proto_TypeTraits::Singular::MutableType value) {
  3856. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  3857. &_extensions_);
  3858. }
  3859. template <typename _proto_TypeTraits,
  3860. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3861. bool _is_packed>
  3862. inline void UnsafeArenaSetAllocatedExtension(
  3863. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3864. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3865. typename _proto_TypeTraits::Singular::MutableType value) {
  3866. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  3867. value, &_extensions_);
  3868. }
  3869. template <typename _proto_TypeTraits,
  3870. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3871. bool _is_packed>
  3872. PROTOBUF_NODISCARD inline
  3873. typename _proto_TypeTraits::Singular::MutableType
  3874. ReleaseExtension(
  3875. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3876. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3877. return _proto_TypeTraits::Release(id.number(), _field_type,
  3878. &_extensions_);
  3879. }
  3880. template <typename _proto_TypeTraits,
  3881. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3882. bool _is_packed>
  3883. inline typename _proto_TypeTraits::Singular::MutableType
  3884. UnsafeArenaReleaseExtension(
  3885. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3886. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3887. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  3888. &_extensions_);
  3889. }
  3890. template <typename _proto_TypeTraits,
  3891. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3892. bool _is_packed>
  3893. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  3894. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3895. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3896. int index) const {
  3897. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  3898. }
  3899. template <typename _proto_TypeTraits,
  3900. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3901. bool _is_packed>
  3902. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  3903. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3904. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3905. int index) {
  3906. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  3907. }
  3908. template <typename _proto_TypeTraits,
  3909. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3910. bool _is_packed>
  3911. inline void SetExtension(
  3912. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3913. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3914. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  3915. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  3916. }
  3917. template <typename _proto_TypeTraits,
  3918. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3919. bool _is_packed>
  3920. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  3921. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3922. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3923. typename _proto_TypeTraits::Repeated::MutableType to_add =
  3924. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  3925. return to_add;
  3926. }
  3927. template <typename _proto_TypeTraits,
  3928. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3929. bool _is_packed>
  3930. inline void AddExtension(
  3931. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3932. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  3933. typename _proto_TypeTraits::Repeated::ConstType value) {
  3934. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  3935. &_extensions_);
  3936. }
  3937. template <typename _proto_TypeTraits,
  3938. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3939. bool _is_packed>
  3940. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  3941. GetRepeatedExtension(
  3942. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3943. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  3944. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  3945. }
  3946. template <typename _proto_TypeTraits,
  3947. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  3948. bool _is_packed>
  3949. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  3950. MutableRepeatedExtension(
  3951. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  3952. FileOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  3953. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  3954. _is_packed, &_extensions_);
  3955. }
  3956. // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
  3957. private:
  3958. class _Internal;
  3959. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  3960. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  3961. typedef void InternalArenaConstructable_;
  3962. typedef void DestructorSkippable_;
  3963. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  3964. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  3965. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  3966. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr java_package_;
  3967. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr java_outer_classname_;
  3968. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr go_package_;
  3969. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr objc_class_prefix_;
  3970. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr csharp_namespace_;
  3971. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr swift_prefix_;
  3972. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_class_prefix_;
  3973. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_namespace_;
  3974. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr php_metadata_namespace_;
  3975. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr ruby_package_;
  3976. bool java_multiple_files_;
  3977. bool java_generate_equals_and_hash_;
  3978. bool java_string_check_utf8_;
  3979. bool cc_generic_services_;
  3980. bool java_generic_services_;
  3981. bool py_generic_services_;
  3982. bool php_generic_services_;
  3983. bool deprecated_;
  3984. int optimize_for_;
  3985. bool cc_enable_arenas_;
  3986. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  3987. };
  3988. // -------------------------------------------------------------------
  3989. class PROTOBUF_EXPORT MessageOptions final :
  3990. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MessageOptions) */ {
  3991. public:
  3992. inline MessageOptions() : MessageOptions(nullptr) {}
  3993. ~MessageOptions() override;
  3994. explicit constexpr MessageOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  3995. MessageOptions(const MessageOptions& from);
  3996. MessageOptions(MessageOptions&& from) noexcept
  3997. : MessageOptions() {
  3998. *this = ::std::move(from);
  3999. }
  4000. inline MessageOptions& operator=(const MessageOptions& from) {
  4001. CopyFrom(from);
  4002. return *this;
  4003. }
  4004. inline MessageOptions& operator=(MessageOptions&& from) noexcept {
  4005. if (this == &from) return *this;
  4006. if (GetOwningArena() == from.GetOwningArena()
  4007. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4008. && GetOwningArena() != nullptr
  4009. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4010. ) {
  4011. InternalSwap(&from);
  4012. } else {
  4013. CopyFrom(from);
  4014. }
  4015. return *this;
  4016. }
  4017. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4018. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  4019. }
  4020. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4021. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4022. }
  4023. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4024. return GetDescriptor();
  4025. }
  4026. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4027. return default_instance().GetMetadata().descriptor;
  4028. }
  4029. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4030. return default_instance().GetMetadata().reflection;
  4031. }
  4032. static const MessageOptions& default_instance() {
  4033. return *internal_default_instance();
  4034. }
  4035. static inline const MessageOptions* internal_default_instance() {
  4036. return reinterpret_cast<const MessageOptions*>(
  4037. &_MessageOptions_default_instance_);
  4038. }
  4039. static constexpr int kIndexInFileMessages =
  4040. 14;
  4041. friend void swap(MessageOptions& a, MessageOptions& b) {
  4042. a.Swap(&b);
  4043. }
  4044. inline void Swap(MessageOptions* other) {
  4045. if (other == this) return;
  4046. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4047. if (GetOwningArena() != nullptr &&
  4048. GetOwningArena() == other->GetOwningArena()) {
  4049. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4050. if (GetOwningArena() == other->GetOwningArena()) {
  4051. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4052. InternalSwap(other);
  4053. } else {
  4054. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4055. }
  4056. }
  4057. void UnsafeArenaSwap(MessageOptions* other) {
  4058. if (other == this) return;
  4059. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  4060. InternalSwap(other);
  4061. }
  4062. // implements Message ----------------------------------------------
  4063. MessageOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  4064. return CreateMaybeMessage<MessageOptions>(arena);
  4065. }
  4066. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  4067. void CopyFrom(const MessageOptions& from);
  4068. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  4069. void MergeFrom(const MessageOptions& from);
  4070. private:
  4071. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  4072. public:
  4073. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4074. bool IsInitialized() const final;
  4075. size_t ByteSizeLong() const final;
  4076. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4077. uint8_t* _InternalSerialize(
  4078. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4079. int GetCachedSize() const final { return _cached_size_.Get(); }
  4080. private:
  4081. void SharedCtor();
  4082. void SharedDtor();
  4083. void SetCachedSize(int size) const final;
  4084. void InternalSwap(MessageOptions* other);
  4085. private:
  4086. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4087. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4088. return "google.protobuf.MessageOptions";
  4089. }
  4090. protected:
  4091. explicit MessageOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4092. bool is_message_owned = false);
  4093. private:
  4094. static void ArenaDtor(void* object);
  4095. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4096. public:
  4097. static const ClassData _class_data_;
  4098. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  4099. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4100. // nested types ----------------------------------------------------
  4101. // accessors -------------------------------------------------------
  4102. enum : int {
  4103. kUninterpretedOptionFieldNumber = 999,
  4104. kMessageSetWireFormatFieldNumber = 1,
  4105. kNoStandardDescriptorAccessorFieldNumber = 2,
  4106. kDeprecatedFieldNumber = 3,
  4107. kMapEntryFieldNumber = 7,
  4108. };
  4109. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4110. int uninterpreted_option_size() const;
  4111. private:
  4112. int _internal_uninterpreted_option_size() const;
  4113. public:
  4114. void clear_uninterpreted_option();
  4115. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4116. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4117. mutable_uninterpreted_option();
  4118. private:
  4119. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4120. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4121. public:
  4122. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4123. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4124. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4125. uninterpreted_option() const;
  4126. // optional bool message_set_wire_format = 1 [default = false];
  4127. bool has_message_set_wire_format() const;
  4128. private:
  4129. bool _internal_has_message_set_wire_format() const;
  4130. public:
  4131. void clear_message_set_wire_format();
  4132. bool message_set_wire_format() const;
  4133. void set_message_set_wire_format(bool value);
  4134. private:
  4135. bool _internal_message_set_wire_format() const;
  4136. void _internal_set_message_set_wire_format(bool value);
  4137. public:
  4138. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  4139. bool has_no_standard_descriptor_accessor() const;
  4140. private:
  4141. bool _internal_has_no_standard_descriptor_accessor() const;
  4142. public:
  4143. void clear_no_standard_descriptor_accessor();
  4144. bool no_standard_descriptor_accessor() const;
  4145. void set_no_standard_descriptor_accessor(bool value);
  4146. private:
  4147. bool _internal_no_standard_descriptor_accessor() const;
  4148. void _internal_set_no_standard_descriptor_accessor(bool value);
  4149. public:
  4150. // optional bool deprecated = 3 [default = false];
  4151. bool has_deprecated() const;
  4152. private:
  4153. bool _internal_has_deprecated() const;
  4154. public:
  4155. void clear_deprecated();
  4156. bool deprecated() const;
  4157. void set_deprecated(bool value);
  4158. private:
  4159. bool _internal_deprecated() const;
  4160. void _internal_set_deprecated(bool value);
  4161. public:
  4162. // optional bool map_entry = 7;
  4163. bool has_map_entry() const;
  4164. private:
  4165. bool _internal_has_map_entry() const;
  4166. public:
  4167. void clear_map_entry();
  4168. bool map_entry() const;
  4169. void set_map_entry(bool value);
  4170. private:
  4171. bool _internal_map_entry() const;
  4172. void _internal_set_map_entry(bool value);
  4173. public:
  4174. template <typename _proto_TypeTraits,
  4175. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4176. bool _is_packed>
  4177. inline bool HasExtension(
  4178. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4179. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4180. return _extensions_.Has(id.number());
  4181. }
  4182. template <typename _proto_TypeTraits,
  4183. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4184. bool _is_packed>
  4185. inline void ClearExtension(
  4186. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4187. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4188. _extensions_.ClearExtension(id.number());
  4189. }
  4190. template <typename _proto_TypeTraits,
  4191. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4192. bool _is_packed>
  4193. inline int ExtensionSize(
  4194. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4195. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4196. return _extensions_.ExtensionSize(id.number());
  4197. }
  4198. template <typename _proto_TypeTraits,
  4199. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4200. bool _is_packed>
  4201. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  4202. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4203. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4204. return _proto_TypeTraits::Get(id.number(), _extensions_,
  4205. id.default_value());
  4206. }
  4207. template <typename _proto_TypeTraits,
  4208. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4209. bool _is_packed>
  4210. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  4211. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4212. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4213. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  4214. &_extensions_);
  4215. }
  4216. template <typename _proto_TypeTraits,
  4217. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4218. bool _is_packed>
  4219. inline void SetExtension(
  4220. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4221. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4222. typename _proto_TypeTraits::Singular::ConstType value) {
  4223. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  4224. }
  4225. template <typename _proto_TypeTraits,
  4226. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4227. bool _is_packed>
  4228. inline void SetAllocatedExtension(
  4229. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4230. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4231. typename _proto_TypeTraits::Singular::MutableType value) {
  4232. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  4233. &_extensions_);
  4234. }
  4235. template <typename _proto_TypeTraits,
  4236. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4237. bool _is_packed>
  4238. inline void UnsafeArenaSetAllocatedExtension(
  4239. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4240. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4241. typename _proto_TypeTraits::Singular::MutableType value) {
  4242. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  4243. value, &_extensions_);
  4244. }
  4245. template <typename _proto_TypeTraits,
  4246. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4247. bool _is_packed>
  4248. PROTOBUF_NODISCARD inline
  4249. typename _proto_TypeTraits::Singular::MutableType
  4250. ReleaseExtension(
  4251. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4252. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4253. return _proto_TypeTraits::Release(id.number(), _field_type,
  4254. &_extensions_);
  4255. }
  4256. template <typename _proto_TypeTraits,
  4257. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4258. bool _is_packed>
  4259. inline typename _proto_TypeTraits::Singular::MutableType
  4260. UnsafeArenaReleaseExtension(
  4261. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4262. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4263. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  4264. &_extensions_);
  4265. }
  4266. template <typename _proto_TypeTraits,
  4267. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4268. bool _is_packed>
  4269. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  4270. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4271. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4272. int index) const {
  4273. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  4274. }
  4275. template <typename _proto_TypeTraits,
  4276. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4277. bool _is_packed>
  4278. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  4279. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4280. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4281. int index) {
  4282. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  4283. }
  4284. template <typename _proto_TypeTraits,
  4285. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4286. bool _is_packed>
  4287. inline void SetExtension(
  4288. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4289. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4290. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  4291. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  4292. }
  4293. template <typename _proto_TypeTraits,
  4294. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4295. bool _is_packed>
  4296. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  4297. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4298. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4299. typename _proto_TypeTraits::Repeated::MutableType to_add =
  4300. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  4301. return to_add;
  4302. }
  4303. template <typename _proto_TypeTraits,
  4304. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4305. bool _is_packed>
  4306. inline void AddExtension(
  4307. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4308. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4309. typename _proto_TypeTraits::Repeated::ConstType value) {
  4310. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  4311. &_extensions_);
  4312. }
  4313. template <typename _proto_TypeTraits,
  4314. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4315. bool _is_packed>
  4316. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  4317. GetRepeatedExtension(
  4318. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4319. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4320. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  4321. }
  4322. template <typename _proto_TypeTraits,
  4323. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4324. bool _is_packed>
  4325. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  4326. MutableRepeatedExtension(
  4327. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4328. MessageOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4329. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  4330. _is_packed, &_extensions_);
  4331. }
  4332. // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
  4333. private:
  4334. class _Internal;
  4335. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4336. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4337. typedef void InternalArenaConstructable_;
  4338. typedef void DestructorSkippable_;
  4339. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4340. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4341. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  4342. bool message_set_wire_format_;
  4343. bool no_standard_descriptor_accessor_;
  4344. bool deprecated_;
  4345. bool map_entry_;
  4346. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4347. };
  4348. // -------------------------------------------------------------------
  4349. class PROTOBUF_EXPORT FieldOptions final :
  4350. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldOptions) */ {
  4351. public:
  4352. inline FieldOptions() : FieldOptions(nullptr) {}
  4353. ~FieldOptions() override;
  4354. explicit constexpr FieldOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  4355. FieldOptions(const FieldOptions& from);
  4356. FieldOptions(FieldOptions&& from) noexcept
  4357. : FieldOptions() {
  4358. *this = ::std::move(from);
  4359. }
  4360. inline FieldOptions& operator=(const FieldOptions& from) {
  4361. CopyFrom(from);
  4362. return *this;
  4363. }
  4364. inline FieldOptions& operator=(FieldOptions&& from) noexcept {
  4365. if (this == &from) return *this;
  4366. if (GetOwningArena() == from.GetOwningArena()
  4367. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4368. && GetOwningArena() != nullptr
  4369. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4370. ) {
  4371. InternalSwap(&from);
  4372. } else {
  4373. CopyFrom(from);
  4374. }
  4375. return *this;
  4376. }
  4377. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4378. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  4379. }
  4380. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4381. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4382. }
  4383. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4384. return GetDescriptor();
  4385. }
  4386. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4387. return default_instance().GetMetadata().descriptor;
  4388. }
  4389. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4390. return default_instance().GetMetadata().reflection;
  4391. }
  4392. static const FieldOptions& default_instance() {
  4393. return *internal_default_instance();
  4394. }
  4395. static inline const FieldOptions* internal_default_instance() {
  4396. return reinterpret_cast<const FieldOptions*>(
  4397. &_FieldOptions_default_instance_);
  4398. }
  4399. static constexpr int kIndexInFileMessages =
  4400. 15;
  4401. friend void swap(FieldOptions& a, FieldOptions& b) {
  4402. a.Swap(&b);
  4403. }
  4404. inline void Swap(FieldOptions* other) {
  4405. if (other == this) return;
  4406. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4407. if (GetOwningArena() != nullptr &&
  4408. GetOwningArena() == other->GetOwningArena()) {
  4409. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4410. if (GetOwningArena() == other->GetOwningArena()) {
  4411. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4412. InternalSwap(other);
  4413. } else {
  4414. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4415. }
  4416. }
  4417. void UnsafeArenaSwap(FieldOptions* other) {
  4418. if (other == this) return;
  4419. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  4420. InternalSwap(other);
  4421. }
  4422. // implements Message ----------------------------------------------
  4423. FieldOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  4424. return CreateMaybeMessage<FieldOptions>(arena);
  4425. }
  4426. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  4427. void CopyFrom(const FieldOptions& from);
  4428. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  4429. void MergeFrom(const FieldOptions& from);
  4430. private:
  4431. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  4432. public:
  4433. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4434. bool IsInitialized() const final;
  4435. size_t ByteSizeLong() const final;
  4436. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4437. uint8_t* _InternalSerialize(
  4438. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4439. int GetCachedSize() const final { return _cached_size_.Get(); }
  4440. private:
  4441. void SharedCtor();
  4442. void SharedDtor();
  4443. void SetCachedSize(int size) const final;
  4444. void InternalSwap(FieldOptions* other);
  4445. private:
  4446. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4447. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4448. return "google.protobuf.FieldOptions";
  4449. }
  4450. protected:
  4451. explicit FieldOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4452. bool is_message_owned = false);
  4453. private:
  4454. static void ArenaDtor(void* object);
  4455. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4456. public:
  4457. static const ClassData _class_data_;
  4458. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  4459. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4460. // nested types ----------------------------------------------------
  4461. typedef FieldOptions_CType CType;
  4462. static constexpr CType STRING =
  4463. FieldOptions_CType_STRING;
  4464. static constexpr CType CORD =
  4465. FieldOptions_CType_CORD;
  4466. static constexpr CType STRING_PIECE =
  4467. FieldOptions_CType_STRING_PIECE;
  4468. static inline bool CType_IsValid(int value) {
  4469. return FieldOptions_CType_IsValid(value);
  4470. }
  4471. static constexpr CType CType_MIN =
  4472. FieldOptions_CType_CType_MIN;
  4473. static constexpr CType CType_MAX =
  4474. FieldOptions_CType_CType_MAX;
  4475. static constexpr int CType_ARRAYSIZE =
  4476. FieldOptions_CType_CType_ARRAYSIZE;
  4477. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4478. CType_descriptor() {
  4479. return FieldOptions_CType_descriptor();
  4480. }
  4481. template<typename T>
  4482. static inline const std::string& CType_Name(T enum_t_value) {
  4483. static_assert(::std::is_same<T, CType>::value ||
  4484. ::std::is_integral<T>::value,
  4485. "Incorrect type passed to function CType_Name.");
  4486. return FieldOptions_CType_Name(enum_t_value);
  4487. }
  4488. static inline bool CType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  4489. CType* value) {
  4490. return FieldOptions_CType_Parse(name, value);
  4491. }
  4492. typedef FieldOptions_JSType JSType;
  4493. static constexpr JSType JS_NORMAL =
  4494. FieldOptions_JSType_JS_NORMAL;
  4495. static constexpr JSType JS_STRING =
  4496. FieldOptions_JSType_JS_STRING;
  4497. static constexpr JSType JS_NUMBER =
  4498. FieldOptions_JSType_JS_NUMBER;
  4499. static inline bool JSType_IsValid(int value) {
  4500. return FieldOptions_JSType_IsValid(value);
  4501. }
  4502. static constexpr JSType JSType_MIN =
  4503. FieldOptions_JSType_JSType_MIN;
  4504. static constexpr JSType JSType_MAX =
  4505. FieldOptions_JSType_JSType_MAX;
  4506. static constexpr int JSType_ARRAYSIZE =
  4507. FieldOptions_JSType_JSType_ARRAYSIZE;
  4508. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  4509. JSType_descriptor() {
  4510. return FieldOptions_JSType_descriptor();
  4511. }
  4512. template<typename T>
  4513. static inline const std::string& JSType_Name(T enum_t_value) {
  4514. static_assert(::std::is_same<T, JSType>::value ||
  4515. ::std::is_integral<T>::value,
  4516. "Incorrect type passed to function JSType_Name.");
  4517. return FieldOptions_JSType_Name(enum_t_value);
  4518. }
  4519. static inline bool JSType_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  4520. JSType* value) {
  4521. return FieldOptions_JSType_Parse(name, value);
  4522. }
  4523. // accessors -------------------------------------------------------
  4524. enum : int {
  4525. kUninterpretedOptionFieldNumber = 999,
  4526. kCtypeFieldNumber = 1,
  4527. kPackedFieldNumber = 2,
  4528. kLazyFieldNumber = 5,
  4529. kDeprecatedFieldNumber = 3,
  4530. kWeakFieldNumber = 10,
  4531. kJstypeFieldNumber = 6,
  4532. };
  4533. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4534. int uninterpreted_option_size() const;
  4535. private:
  4536. int _internal_uninterpreted_option_size() const;
  4537. public:
  4538. void clear_uninterpreted_option();
  4539. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4540. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4541. mutable_uninterpreted_option();
  4542. private:
  4543. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4544. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4545. public:
  4546. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4547. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4548. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4549. uninterpreted_option() const;
  4550. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  4551. bool has_ctype() const;
  4552. private:
  4553. bool _internal_has_ctype() const;
  4554. public:
  4555. void clear_ctype();
  4556. ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType ctype() const;
  4557. void set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value);
  4558. private:
  4559. ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType _internal_ctype() const;
  4560. void _internal_set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value);
  4561. public:
  4562. // optional bool packed = 2;
  4563. bool has_packed() const;
  4564. private:
  4565. bool _internal_has_packed() const;
  4566. public:
  4567. void clear_packed();
  4568. bool packed() const;
  4569. void set_packed(bool value);
  4570. private:
  4571. bool _internal_packed() const;
  4572. void _internal_set_packed(bool value);
  4573. public:
  4574. // optional bool lazy = 5 [default = false];
  4575. bool has_lazy() const;
  4576. private:
  4577. bool _internal_has_lazy() const;
  4578. public:
  4579. void clear_lazy();
  4580. bool lazy() const;
  4581. void set_lazy(bool value);
  4582. private:
  4583. bool _internal_lazy() const;
  4584. void _internal_set_lazy(bool value);
  4585. public:
  4586. // optional bool deprecated = 3 [default = false];
  4587. bool has_deprecated() const;
  4588. private:
  4589. bool _internal_has_deprecated() const;
  4590. public:
  4591. void clear_deprecated();
  4592. bool deprecated() const;
  4593. void set_deprecated(bool value);
  4594. private:
  4595. bool _internal_deprecated() const;
  4596. void _internal_set_deprecated(bool value);
  4597. public:
  4598. // optional bool weak = 10 [default = false];
  4599. bool has_weak() const;
  4600. private:
  4601. bool _internal_has_weak() const;
  4602. public:
  4603. void clear_weak();
  4604. bool weak() const;
  4605. void set_weak(bool value);
  4606. private:
  4607. bool _internal_weak() const;
  4608. void _internal_set_weak(bool value);
  4609. public:
  4610. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  4611. bool has_jstype() const;
  4612. private:
  4613. bool _internal_has_jstype() const;
  4614. public:
  4615. void clear_jstype();
  4616. ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType jstype() const;
  4617. void set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value);
  4618. private:
  4619. ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType _internal_jstype() const;
  4620. void _internal_set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value);
  4621. public:
  4622. template <typename _proto_TypeTraits,
  4623. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4624. bool _is_packed>
  4625. inline bool HasExtension(
  4626. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4627. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4628. return _extensions_.Has(id.number());
  4629. }
  4630. template <typename _proto_TypeTraits,
  4631. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4632. bool _is_packed>
  4633. inline void ClearExtension(
  4634. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4635. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4636. _extensions_.ClearExtension(id.number());
  4637. }
  4638. template <typename _proto_TypeTraits,
  4639. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4640. bool _is_packed>
  4641. inline int ExtensionSize(
  4642. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4643. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4644. return _extensions_.ExtensionSize(id.number());
  4645. }
  4646. template <typename _proto_TypeTraits,
  4647. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4648. bool _is_packed>
  4649. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  4650. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4651. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4652. return _proto_TypeTraits::Get(id.number(), _extensions_,
  4653. id.default_value());
  4654. }
  4655. template <typename _proto_TypeTraits,
  4656. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4657. bool _is_packed>
  4658. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  4659. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4660. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4661. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  4662. &_extensions_);
  4663. }
  4664. template <typename _proto_TypeTraits,
  4665. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4666. bool _is_packed>
  4667. inline void SetExtension(
  4668. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4669. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4670. typename _proto_TypeTraits::Singular::ConstType value) {
  4671. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  4672. }
  4673. template <typename _proto_TypeTraits,
  4674. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4675. bool _is_packed>
  4676. inline void SetAllocatedExtension(
  4677. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4678. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4679. typename _proto_TypeTraits::Singular::MutableType value) {
  4680. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  4681. &_extensions_);
  4682. }
  4683. template <typename _proto_TypeTraits,
  4684. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4685. bool _is_packed>
  4686. inline void UnsafeArenaSetAllocatedExtension(
  4687. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4688. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4689. typename _proto_TypeTraits::Singular::MutableType value) {
  4690. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  4691. value, &_extensions_);
  4692. }
  4693. template <typename _proto_TypeTraits,
  4694. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4695. bool _is_packed>
  4696. PROTOBUF_NODISCARD inline
  4697. typename _proto_TypeTraits::Singular::MutableType
  4698. ReleaseExtension(
  4699. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4700. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4701. return _proto_TypeTraits::Release(id.number(), _field_type,
  4702. &_extensions_);
  4703. }
  4704. template <typename _proto_TypeTraits,
  4705. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4706. bool _is_packed>
  4707. inline typename _proto_TypeTraits::Singular::MutableType
  4708. UnsafeArenaReleaseExtension(
  4709. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4710. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4711. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  4712. &_extensions_);
  4713. }
  4714. template <typename _proto_TypeTraits,
  4715. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4716. bool _is_packed>
  4717. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  4718. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4719. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4720. int index) const {
  4721. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  4722. }
  4723. template <typename _proto_TypeTraits,
  4724. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4725. bool _is_packed>
  4726. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  4727. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4728. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4729. int index) {
  4730. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  4731. }
  4732. template <typename _proto_TypeTraits,
  4733. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4734. bool _is_packed>
  4735. inline void SetExtension(
  4736. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4737. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4738. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  4739. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  4740. }
  4741. template <typename _proto_TypeTraits,
  4742. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4743. bool _is_packed>
  4744. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  4745. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4746. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4747. typename _proto_TypeTraits::Repeated::MutableType to_add =
  4748. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  4749. return to_add;
  4750. }
  4751. template <typename _proto_TypeTraits,
  4752. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4753. bool _is_packed>
  4754. inline void AddExtension(
  4755. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4756. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4757. typename _proto_TypeTraits::Repeated::ConstType value) {
  4758. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  4759. &_extensions_);
  4760. }
  4761. template <typename _proto_TypeTraits,
  4762. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4763. bool _is_packed>
  4764. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  4765. GetRepeatedExtension(
  4766. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4767. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4768. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  4769. }
  4770. template <typename _proto_TypeTraits,
  4771. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4772. bool _is_packed>
  4773. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  4774. MutableRepeatedExtension(
  4775. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4776. FieldOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4777. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  4778. _is_packed, &_extensions_);
  4779. }
  4780. // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
  4781. private:
  4782. class _Internal;
  4783. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  4784. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  4785. typedef void InternalArenaConstructable_;
  4786. typedef void DestructorSkippable_;
  4787. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  4788. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  4789. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  4790. int ctype_;
  4791. bool packed_;
  4792. bool lazy_;
  4793. bool deprecated_;
  4794. bool weak_;
  4795. int jstype_;
  4796. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  4797. };
  4798. // -------------------------------------------------------------------
  4799. class PROTOBUF_EXPORT OneofOptions final :
  4800. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofOptions) */ {
  4801. public:
  4802. inline OneofOptions() : OneofOptions(nullptr) {}
  4803. ~OneofOptions() override;
  4804. explicit constexpr OneofOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  4805. OneofOptions(const OneofOptions& from);
  4806. OneofOptions(OneofOptions&& from) noexcept
  4807. : OneofOptions() {
  4808. *this = ::std::move(from);
  4809. }
  4810. inline OneofOptions& operator=(const OneofOptions& from) {
  4811. CopyFrom(from);
  4812. return *this;
  4813. }
  4814. inline OneofOptions& operator=(OneofOptions&& from) noexcept {
  4815. if (this == &from) return *this;
  4816. if (GetOwningArena() == from.GetOwningArena()
  4817. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  4818. && GetOwningArena() != nullptr
  4819. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  4820. ) {
  4821. InternalSwap(&from);
  4822. } else {
  4823. CopyFrom(from);
  4824. }
  4825. return *this;
  4826. }
  4827. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  4828. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  4829. }
  4830. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  4831. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4832. }
  4833. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  4834. return GetDescriptor();
  4835. }
  4836. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  4837. return default_instance().GetMetadata().descriptor;
  4838. }
  4839. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  4840. return default_instance().GetMetadata().reflection;
  4841. }
  4842. static const OneofOptions& default_instance() {
  4843. return *internal_default_instance();
  4844. }
  4845. static inline const OneofOptions* internal_default_instance() {
  4846. return reinterpret_cast<const OneofOptions*>(
  4847. &_OneofOptions_default_instance_);
  4848. }
  4849. static constexpr int kIndexInFileMessages =
  4850. 16;
  4851. friend void swap(OneofOptions& a, OneofOptions& b) {
  4852. a.Swap(&b);
  4853. }
  4854. inline void Swap(OneofOptions* other) {
  4855. if (other == this) return;
  4856. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  4857. if (GetOwningArena() != nullptr &&
  4858. GetOwningArena() == other->GetOwningArena()) {
  4859. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  4860. if (GetOwningArena() == other->GetOwningArena()) {
  4861. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  4862. InternalSwap(other);
  4863. } else {
  4864. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  4865. }
  4866. }
  4867. void UnsafeArenaSwap(OneofOptions* other) {
  4868. if (other == this) return;
  4869. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  4870. InternalSwap(other);
  4871. }
  4872. // implements Message ----------------------------------------------
  4873. OneofOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  4874. return CreateMaybeMessage<OneofOptions>(arena);
  4875. }
  4876. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  4877. void CopyFrom(const OneofOptions& from);
  4878. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  4879. void MergeFrom(const OneofOptions& from);
  4880. private:
  4881. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  4882. public:
  4883. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  4884. bool IsInitialized() const final;
  4885. size_t ByteSizeLong() const final;
  4886. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  4887. uint8_t* _InternalSerialize(
  4888. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  4889. int GetCachedSize() const final { return _cached_size_.Get(); }
  4890. private:
  4891. void SharedCtor();
  4892. void SharedDtor();
  4893. void SetCachedSize(int size) const final;
  4894. void InternalSwap(OneofOptions* other);
  4895. private:
  4896. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  4897. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  4898. return "google.protobuf.OneofOptions";
  4899. }
  4900. protected:
  4901. explicit OneofOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  4902. bool is_message_owned = false);
  4903. private:
  4904. static void ArenaDtor(void* object);
  4905. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  4906. public:
  4907. static const ClassData _class_data_;
  4908. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  4909. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  4910. // nested types ----------------------------------------------------
  4911. // accessors -------------------------------------------------------
  4912. enum : int {
  4913. kUninterpretedOptionFieldNumber = 999,
  4914. };
  4915. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4916. int uninterpreted_option_size() const;
  4917. private:
  4918. int _internal_uninterpreted_option_size() const;
  4919. public:
  4920. void clear_uninterpreted_option();
  4921. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  4922. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  4923. mutable_uninterpreted_option();
  4924. private:
  4925. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  4926. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  4927. public:
  4928. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  4929. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  4930. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  4931. uninterpreted_option() const;
  4932. template <typename _proto_TypeTraits,
  4933. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4934. bool _is_packed>
  4935. inline bool HasExtension(
  4936. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4937. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4938. return _extensions_.Has(id.number());
  4939. }
  4940. template <typename _proto_TypeTraits,
  4941. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4942. bool _is_packed>
  4943. inline void ClearExtension(
  4944. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4945. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4946. _extensions_.ClearExtension(id.number());
  4947. }
  4948. template <typename _proto_TypeTraits,
  4949. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4950. bool _is_packed>
  4951. inline int ExtensionSize(
  4952. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4953. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4954. return _extensions_.ExtensionSize(id.number());
  4955. }
  4956. template <typename _proto_TypeTraits,
  4957. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4958. bool _is_packed>
  4959. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  4960. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4961. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  4962. return _proto_TypeTraits::Get(id.number(), _extensions_,
  4963. id.default_value());
  4964. }
  4965. template <typename _proto_TypeTraits,
  4966. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4967. bool _is_packed>
  4968. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  4969. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4970. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  4971. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  4972. &_extensions_);
  4973. }
  4974. template <typename _proto_TypeTraits,
  4975. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4976. bool _is_packed>
  4977. inline void SetExtension(
  4978. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4979. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4980. typename _proto_TypeTraits::Singular::ConstType value) {
  4981. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  4982. }
  4983. template <typename _proto_TypeTraits,
  4984. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4985. bool _is_packed>
  4986. inline void SetAllocatedExtension(
  4987. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4988. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4989. typename _proto_TypeTraits::Singular::MutableType value) {
  4990. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  4991. &_extensions_);
  4992. }
  4993. template <typename _proto_TypeTraits,
  4994. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  4995. bool _is_packed>
  4996. inline void UnsafeArenaSetAllocatedExtension(
  4997. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  4998. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  4999. typename _proto_TypeTraits::Singular::MutableType value) {
  5000. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  5001. value, &_extensions_);
  5002. }
  5003. template <typename _proto_TypeTraits,
  5004. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5005. bool _is_packed>
  5006. PROTOBUF_NODISCARD inline
  5007. typename _proto_TypeTraits::Singular::MutableType
  5008. ReleaseExtension(
  5009. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5010. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5011. return _proto_TypeTraits::Release(id.number(), _field_type,
  5012. &_extensions_);
  5013. }
  5014. template <typename _proto_TypeTraits,
  5015. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5016. bool _is_packed>
  5017. inline typename _proto_TypeTraits::Singular::MutableType
  5018. UnsafeArenaReleaseExtension(
  5019. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5020. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5021. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  5022. &_extensions_);
  5023. }
  5024. template <typename _proto_TypeTraits,
  5025. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5026. bool _is_packed>
  5027. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5028. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5029. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5030. int index) const {
  5031. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  5032. }
  5033. template <typename _proto_TypeTraits,
  5034. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5035. bool _is_packed>
  5036. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  5037. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5038. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5039. int index) {
  5040. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  5041. }
  5042. template <typename _proto_TypeTraits,
  5043. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5044. bool _is_packed>
  5045. inline void SetExtension(
  5046. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5047. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5048. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  5049. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  5050. }
  5051. template <typename _proto_TypeTraits,
  5052. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5053. bool _is_packed>
  5054. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  5055. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5056. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5057. typename _proto_TypeTraits::Repeated::MutableType to_add =
  5058. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  5059. return to_add;
  5060. }
  5061. template <typename _proto_TypeTraits,
  5062. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5063. bool _is_packed>
  5064. inline void AddExtension(
  5065. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5066. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5067. typename _proto_TypeTraits::Repeated::ConstType value) {
  5068. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  5069. &_extensions_);
  5070. }
  5071. template <typename _proto_TypeTraits,
  5072. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5073. bool _is_packed>
  5074. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  5075. GetRepeatedExtension(
  5076. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5077. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5078. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  5079. }
  5080. template <typename _proto_TypeTraits,
  5081. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5082. bool _is_packed>
  5083. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  5084. MutableRepeatedExtension(
  5085. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5086. OneofOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5087. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  5088. _is_packed, &_extensions_);
  5089. }
  5090. // @@protoc_insertion_point(class_scope:google.protobuf.OneofOptions)
  5091. private:
  5092. class _Internal;
  5093. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5094. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5095. typedef void InternalArenaConstructable_;
  5096. typedef void DestructorSkippable_;
  5097. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5098. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5099. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5100. };
  5101. // -------------------------------------------------------------------
  5102. class PROTOBUF_EXPORT EnumOptions final :
  5103. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumOptions) */ {
  5104. public:
  5105. inline EnumOptions() : EnumOptions(nullptr) {}
  5106. ~EnumOptions() override;
  5107. explicit constexpr EnumOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  5108. EnumOptions(const EnumOptions& from);
  5109. EnumOptions(EnumOptions&& from) noexcept
  5110. : EnumOptions() {
  5111. *this = ::std::move(from);
  5112. }
  5113. inline EnumOptions& operator=(const EnumOptions& from) {
  5114. CopyFrom(from);
  5115. return *this;
  5116. }
  5117. inline EnumOptions& operator=(EnumOptions&& from) noexcept {
  5118. if (this == &from) return *this;
  5119. if (GetOwningArena() == from.GetOwningArena()
  5120. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5121. && GetOwningArena() != nullptr
  5122. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5123. ) {
  5124. InternalSwap(&from);
  5125. } else {
  5126. CopyFrom(from);
  5127. }
  5128. return *this;
  5129. }
  5130. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5131. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  5132. }
  5133. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5134. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5135. }
  5136. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5137. return GetDescriptor();
  5138. }
  5139. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5140. return default_instance().GetMetadata().descriptor;
  5141. }
  5142. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5143. return default_instance().GetMetadata().reflection;
  5144. }
  5145. static const EnumOptions& default_instance() {
  5146. return *internal_default_instance();
  5147. }
  5148. static inline const EnumOptions* internal_default_instance() {
  5149. return reinterpret_cast<const EnumOptions*>(
  5150. &_EnumOptions_default_instance_);
  5151. }
  5152. static constexpr int kIndexInFileMessages =
  5153. 17;
  5154. friend void swap(EnumOptions& a, EnumOptions& b) {
  5155. a.Swap(&b);
  5156. }
  5157. inline void Swap(EnumOptions* other) {
  5158. if (other == this) return;
  5159. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5160. if (GetOwningArena() != nullptr &&
  5161. GetOwningArena() == other->GetOwningArena()) {
  5162. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5163. if (GetOwningArena() == other->GetOwningArena()) {
  5164. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5165. InternalSwap(other);
  5166. } else {
  5167. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5168. }
  5169. }
  5170. void UnsafeArenaSwap(EnumOptions* other) {
  5171. if (other == this) return;
  5172. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  5173. InternalSwap(other);
  5174. }
  5175. // implements Message ----------------------------------------------
  5176. EnumOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  5177. return CreateMaybeMessage<EnumOptions>(arena);
  5178. }
  5179. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  5180. void CopyFrom(const EnumOptions& from);
  5181. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  5182. void MergeFrom(const EnumOptions& from);
  5183. private:
  5184. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  5185. public:
  5186. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5187. bool IsInitialized() const final;
  5188. size_t ByteSizeLong() const final;
  5189. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5190. uint8_t* _InternalSerialize(
  5191. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5192. int GetCachedSize() const final { return _cached_size_.Get(); }
  5193. private:
  5194. void SharedCtor();
  5195. void SharedDtor();
  5196. void SetCachedSize(int size) const final;
  5197. void InternalSwap(EnumOptions* other);
  5198. private:
  5199. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5200. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5201. return "google.protobuf.EnumOptions";
  5202. }
  5203. protected:
  5204. explicit EnumOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5205. bool is_message_owned = false);
  5206. private:
  5207. static void ArenaDtor(void* object);
  5208. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5209. public:
  5210. static const ClassData _class_data_;
  5211. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  5212. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5213. // nested types ----------------------------------------------------
  5214. // accessors -------------------------------------------------------
  5215. enum : int {
  5216. kUninterpretedOptionFieldNumber = 999,
  5217. kAllowAliasFieldNumber = 2,
  5218. kDeprecatedFieldNumber = 3,
  5219. };
  5220. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5221. int uninterpreted_option_size() const;
  5222. private:
  5223. int _internal_uninterpreted_option_size() const;
  5224. public:
  5225. void clear_uninterpreted_option();
  5226. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5227. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  5228. mutable_uninterpreted_option();
  5229. private:
  5230. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5231. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5232. public:
  5233. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5234. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5235. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  5236. uninterpreted_option() const;
  5237. // optional bool allow_alias = 2;
  5238. bool has_allow_alias() const;
  5239. private:
  5240. bool _internal_has_allow_alias() const;
  5241. public:
  5242. void clear_allow_alias();
  5243. bool allow_alias() const;
  5244. void set_allow_alias(bool value);
  5245. private:
  5246. bool _internal_allow_alias() const;
  5247. void _internal_set_allow_alias(bool value);
  5248. public:
  5249. // optional bool deprecated = 3 [default = false];
  5250. bool has_deprecated() const;
  5251. private:
  5252. bool _internal_has_deprecated() const;
  5253. public:
  5254. void clear_deprecated();
  5255. bool deprecated() const;
  5256. void set_deprecated(bool value);
  5257. private:
  5258. bool _internal_deprecated() const;
  5259. void _internal_set_deprecated(bool value);
  5260. public:
  5261. template <typename _proto_TypeTraits,
  5262. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5263. bool _is_packed>
  5264. inline bool HasExtension(
  5265. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5266. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5267. return _extensions_.Has(id.number());
  5268. }
  5269. template <typename _proto_TypeTraits,
  5270. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5271. bool _is_packed>
  5272. inline void ClearExtension(
  5273. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5274. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5275. _extensions_.ClearExtension(id.number());
  5276. }
  5277. template <typename _proto_TypeTraits,
  5278. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5279. bool _is_packed>
  5280. inline int ExtensionSize(
  5281. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5282. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5283. return _extensions_.ExtensionSize(id.number());
  5284. }
  5285. template <typename _proto_TypeTraits,
  5286. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5287. bool _is_packed>
  5288. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  5289. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5290. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5291. return _proto_TypeTraits::Get(id.number(), _extensions_,
  5292. id.default_value());
  5293. }
  5294. template <typename _proto_TypeTraits,
  5295. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5296. bool _is_packed>
  5297. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5298. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5299. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5300. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  5301. &_extensions_);
  5302. }
  5303. template <typename _proto_TypeTraits,
  5304. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5305. bool _is_packed>
  5306. inline void SetExtension(
  5307. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5308. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5309. typename _proto_TypeTraits::Singular::ConstType value) {
  5310. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  5311. }
  5312. template <typename _proto_TypeTraits,
  5313. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5314. bool _is_packed>
  5315. inline void SetAllocatedExtension(
  5316. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5317. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5318. typename _proto_TypeTraits::Singular::MutableType value) {
  5319. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  5320. &_extensions_);
  5321. }
  5322. template <typename _proto_TypeTraits,
  5323. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5324. bool _is_packed>
  5325. inline void UnsafeArenaSetAllocatedExtension(
  5326. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5327. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5328. typename _proto_TypeTraits::Singular::MutableType value) {
  5329. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  5330. value, &_extensions_);
  5331. }
  5332. template <typename _proto_TypeTraits,
  5333. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5334. bool _is_packed>
  5335. PROTOBUF_NODISCARD inline
  5336. typename _proto_TypeTraits::Singular::MutableType
  5337. ReleaseExtension(
  5338. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5339. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5340. return _proto_TypeTraits::Release(id.number(), _field_type,
  5341. &_extensions_);
  5342. }
  5343. template <typename _proto_TypeTraits,
  5344. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5345. bool _is_packed>
  5346. inline typename _proto_TypeTraits::Singular::MutableType
  5347. UnsafeArenaReleaseExtension(
  5348. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5349. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5350. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  5351. &_extensions_);
  5352. }
  5353. template <typename _proto_TypeTraits,
  5354. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5355. bool _is_packed>
  5356. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5357. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5358. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5359. int index) const {
  5360. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  5361. }
  5362. template <typename _proto_TypeTraits,
  5363. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5364. bool _is_packed>
  5365. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  5366. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5367. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5368. int index) {
  5369. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  5370. }
  5371. template <typename _proto_TypeTraits,
  5372. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5373. bool _is_packed>
  5374. inline void SetExtension(
  5375. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5376. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5377. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  5378. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  5379. }
  5380. template <typename _proto_TypeTraits,
  5381. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5382. bool _is_packed>
  5383. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  5384. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5385. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5386. typename _proto_TypeTraits::Repeated::MutableType to_add =
  5387. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  5388. return to_add;
  5389. }
  5390. template <typename _proto_TypeTraits,
  5391. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5392. bool _is_packed>
  5393. inline void AddExtension(
  5394. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5395. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5396. typename _proto_TypeTraits::Repeated::ConstType value) {
  5397. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  5398. &_extensions_);
  5399. }
  5400. template <typename _proto_TypeTraits,
  5401. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5402. bool _is_packed>
  5403. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  5404. GetRepeatedExtension(
  5405. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5406. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5407. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  5408. }
  5409. template <typename _proto_TypeTraits,
  5410. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5411. bool _is_packed>
  5412. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  5413. MutableRepeatedExtension(
  5414. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5415. EnumOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5416. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  5417. _is_packed, &_extensions_);
  5418. }
  5419. // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
  5420. private:
  5421. class _Internal;
  5422. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5423. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5424. typedef void InternalArenaConstructable_;
  5425. typedef void DestructorSkippable_;
  5426. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5427. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5428. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5429. bool allow_alias_;
  5430. bool deprecated_;
  5431. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5432. };
  5433. // -------------------------------------------------------------------
  5434. class PROTOBUF_EXPORT EnumValueOptions final :
  5435. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueOptions) */ {
  5436. public:
  5437. inline EnumValueOptions() : EnumValueOptions(nullptr) {}
  5438. ~EnumValueOptions() override;
  5439. explicit constexpr EnumValueOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  5440. EnumValueOptions(const EnumValueOptions& from);
  5441. EnumValueOptions(EnumValueOptions&& from) noexcept
  5442. : EnumValueOptions() {
  5443. *this = ::std::move(from);
  5444. }
  5445. inline EnumValueOptions& operator=(const EnumValueOptions& from) {
  5446. CopyFrom(from);
  5447. return *this;
  5448. }
  5449. inline EnumValueOptions& operator=(EnumValueOptions&& from) noexcept {
  5450. if (this == &from) return *this;
  5451. if (GetOwningArena() == from.GetOwningArena()
  5452. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5453. && GetOwningArena() != nullptr
  5454. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5455. ) {
  5456. InternalSwap(&from);
  5457. } else {
  5458. CopyFrom(from);
  5459. }
  5460. return *this;
  5461. }
  5462. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5463. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  5464. }
  5465. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5466. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5467. }
  5468. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5469. return GetDescriptor();
  5470. }
  5471. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5472. return default_instance().GetMetadata().descriptor;
  5473. }
  5474. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5475. return default_instance().GetMetadata().reflection;
  5476. }
  5477. static const EnumValueOptions& default_instance() {
  5478. return *internal_default_instance();
  5479. }
  5480. static inline const EnumValueOptions* internal_default_instance() {
  5481. return reinterpret_cast<const EnumValueOptions*>(
  5482. &_EnumValueOptions_default_instance_);
  5483. }
  5484. static constexpr int kIndexInFileMessages =
  5485. 18;
  5486. friend void swap(EnumValueOptions& a, EnumValueOptions& b) {
  5487. a.Swap(&b);
  5488. }
  5489. inline void Swap(EnumValueOptions* other) {
  5490. if (other == this) return;
  5491. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5492. if (GetOwningArena() != nullptr &&
  5493. GetOwningArena() == other->GetOwningArena()) {
  5494. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5495. if (GetOwningArena() == other->GetOwningArena()) {
  5496. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5497. InternalSwap(other);
  5498. } else {
  5499. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5500. }
  5501. }
  5502. void UnsafeArenaSwap(EnumValueOptions* other) {
  5503. if (other == this) return;
  5504. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  5505. InternalSwap(other);
  5506. }
  5507. // implements Message ----------------------------------------------
  5508. EnumValueOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  5509. return CreateMaybeMessage<EnumValueOptions>(arena);
  5510. }
  5511. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  5512. void CopyFrom(const EnumValueOptions& from);
  5513. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  5514. void MergeFrom(const EnumValueOptions& from);
  5515. private:
  5516. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  5517. public:
  5518. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5519. bool IsInitialized() const final;
  5520. size_t ByteSizeLong() const final;
  5521. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5522. uint8_t* _InternalSerialize(
  5523. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5524. int GetCachedSize() const final { return _cached_size_.Get(); }
  5525. private:
  5526. void SharedCtor();
  5527. void SharedDtor();
  5528. void SetCachedSize(int size) const final;
  5529. void InternalSwap(EnumValueOptions* other);
  5530. private:
  5531. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5532. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5533. return "google.protobuf.EnumValueOptions";
  5534. }
  5535. protected:
  5536. explicit EnumValueOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5537. bool is_message_owned = false);
  5538. private:
  5539. static void ArenaDtor(void* object);
  5540. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5541. public:
  5542. static const ClassData _class_data_;
  5543. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  5544. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5545. // nested types ----------------------------------------------------
  5546. // accessors -------------------------------------------------------
  5547. enum : int {
  5548. kUninterpretedOptionFieldNumber = 999,
  5549. kDeprecatedFieldNumber = 1,
  5550. };
  5551. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5552. int uninterpreted_option_size() const;
  5553. private:
  5554. int _internal_uninterpreted_option_size() const;
  5555. public:
  5556. void clear_uninterpreted_option();
  5557. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5558. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  5559. mutable_uninterpreted_option();
  5560. private:
  5561. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5562. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5563. public:
  5564. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5565. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5566. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  5567. uninterpreted_option() const;
  5568. // optional bool deprecated = 1 [default = false];
  5569. bool has_deprecated() const;
  5570. private:
  5571. bool _internal_has_deprecated() const;
  5572. public:
  5573. void clear_deprecated();
  5574. bool deprecated() const;
  5575. void set_deprecated(bool value);
  5576. private:
  5577. bool _internal_deprecated() const;
  5578. void _internal_set_deprecated(bool value);
  5579. public:
  5580. template <typename _proto_TypeTraits,
  5581. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5582. bool _is_packed>
  5583. inline bool HasExtension(
  5584. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5585. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5586. return _extensions_.Has(id.number());
  5587. }
  5588. template <typename _proto_TypeTraits,
  5589. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5590. bool _is_packed>
  5591. inline void ClearExtension(
  5592. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5593. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5594. _extensions_.ClearExtension(id.number());
  5595. }
  5596. template <typename _proto_TypeTraits,
  5597. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5598. bool _is_packed>
  5599. inline int ExtensionSize(
  5600. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5601. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5602. return _extensions_.ExtensionSize(id.number());
  5603. }
  5604. template <typename _proto_TypeTraits,
  5605. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5606. bool _is_packed>
  5607. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  5608. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5609. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5610. return _proto_TypeTraits::Get(id.number(), _extensions_,
  5611. id.default_value());
  5612. }
  5613. template <typename _proto_TypeTraits,
  5614. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5615. bool _is_packed>
  5616. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5617. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5618. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5619. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  5620. &_extensions_);
  5621. }
  5622. template <typename _proto_TypeTraits,
  5623. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5624. bool _is_packed>
  5625. inline void SetExtension(
  5626. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5627. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5628. typename _proto_TypeTraits::Singular::ConstType value) {
  5629. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  5630. }
  5631. template <typename _proto_TypeTraits,
  5632. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5633. bool _is_packed>
  5634. inline void SetAllocatedExtension(
  5635. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5636. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5637. typename _proto_TypeTraits::Singular::MutableType value) {
  5638. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  5639. &_extensions_);
  5640. }
  5641. template <typename _proto_TypeTraits,
  5642. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5643. bool _is_packed>
  5644. inline void UnsafeArenaSetAllocatedExtension(
  5645. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5646. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5647. typename _proto_TypeTraits::Singular::MutableType value) {
  5648. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  5649. value, &_extensions_);
  5650. }
  5651. template <typename _proto_TypeTraits,
  5652. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5653. bool _is_packed>
  5654. PROTOBUF_NODISCARD inline
  5655. typename _proto_TypeTraits::Singular::MutableType
  5656. ReleaseExtension(
  5657. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5658. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5659. return _proto_TypeTraits::Release(id.number(), _field_type,
  5660. &_extensions_);
  5661. }
  5662. template <typename _proto_TypeTraits,
  5663. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5664. bool _is_packed>
  5665. inline typename _proto_TypeTraits::Singular::MutableType
  5666. UnsafeArenaReleaseExtension(
  5667. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5668. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5669. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  5670. &_extensions_);
  5671. }
  5672. template <typename _proto_TypeTraits,
  5673. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5674. bool _is_packed>
  5675. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5676. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5677. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5678. int index) const {
  5679. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  5680. }
  5681. template <typename _proto_TypeTraits,
  5682. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5683. bool _is_packed>
  5684. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  5685. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5686. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5687. int index) {
  5688. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  5689. }
  5690. template <typename _proto_TypeTraits,
  5691. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5692. bool _is_packed>
  5693. inline void SetExtension(
  5694. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5695. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5696. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  5697. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  5698. }
  5699. template <typename _proto_TypeTraits,
  5700. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5701. bool _is_packed>
  5702. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  5703. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5704. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5705. typename _proto_TypeTraits::Repeated::MutableType to_add =
  5706. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  5707. return to_add;
  5708. }
  5709. template <typename _proto_TypeTraits,
  5710. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5711. bool _is_packed>
  5712. inline void AddExtension(
  5713. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5714. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5715. typename _proto_TypeTraits::Repeated::ConstType value) {
  5716. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  5717. &_extensions_);
  5718. }
  5719. template <typename _proto_TypeTraits,
  5720. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5721. bool _is_packed>
  5722. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  5723. GetRepeatedExtension(
  5724. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5725. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5726. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  5727. }
  5728. template <typename _proto_TypeTraits,
  5729. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5730. bool _is_packed>
  5731. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  5732. MutableRepeatedExtension(
  5733. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5734. EnumValueOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5735. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  5736. _is_packed, &_extensions_);
  5737. }
  5738. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
  5739. private:
  5740. class _Internal;
  5741. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  5742. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  5743. typedef void InternalArenaConstructable_;
  5744. typedef void DestructorSkippable_;
  5745. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  5746. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  5747. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  5748. bool deprecated_;
  5749. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  5750. };
  5751. // -------------------------------------------------------------------
  5752. class PROTOBUF_EXPORT ServiceOptions final :
  5753. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceOptions) */ {
  5754. public:
  5755. inline ServiceOptions() : ServiceOptions(nullptr) {}
  5756. ~ServiceOptions() override;
  5757. explicit constexpr ServiceOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  5758. ServiceOptions(const ServiceOptions& from);
  5759. ServiceOptions(ServiceOptions&& from) noexcept
  5760. : ServiceOptions() {
  5761. *this = ::std::move(from);
  5762. }
  5763. inline ServiceOptions& operator=(const ServiceOptions& from) {
  5764. CopyFrom(from);
  5765. return *this;
  5766. }
  5767. inline ServiceOptions& operator=(ServiceOptions&& from) noexcept {
  5768. if (this == &from) return *this;
  5769. if (GetOwningArena() == from.GetOwningArena()
  5770. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  5771. && GetOwningArena() != nullptr
  5772. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  5773. ) {
  5774. InternalSwap(&from);
  5775. } else {
  5776. CopyFrom(from);
  5777. }
  5778. return *this;
  5779. }
  5780. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  5781. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  5782. }
  5783. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  5784. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  5785. }
  5786. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  5787. return GetDescriptor();
  5788. }
  5789. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  5790. return default_instance().GetMetadata().descriptor;
  5791. }
  5792. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  5793. return default_instance().GetMetadata().reflection;
  5794. }
  5795. static const ServiceOptions& default_instance() {
  5796. return *internal_default_instance();
  5797. }
  5798. static inline const ServiceOptions* internal_default_instance() {
  5799. return reinterpret_cast<const ServiceOptions*>(
  5800. &_ServiceOptions_default_instance_);
  5801. }
  5802. static constexpr int kIndexInFileMessages =
  5803. 19;
  5804. friend void swap(ServiceOptions& a, ServiceOptions& b) {
  5805. a.Swap(&b);
  5806. }
  5807. inline void Swap(ServiceOptions* other) {
  5808. if (other == this) return;
  5809. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  5810. if (GetOwningArena() != nullptr &&
  5811. GetOwningArena() == other->GetOwningArena()) {
  5812. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  5813. if (GetOwningArena() == other->GetOwningArena()) {
  5814. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  5815. InternalSwap(other);
  5816. } else {
  5817. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  5818. }
  5819. }
  5820. void UnsafeArenaSwap(ServiceOptions* other) {
  5821. if (other == this) return;
  5822. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  5823. InternalSwap(other);
  5824. }
  5825. // implements Message ----------------------------------------------
  5826. ServiceOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  5827. return CreateMaybeMessage<ServiceOptions>(arena);
  5828. }
  5829. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  5830. void CopyFrom(const ServiceOptions& from);
  5831. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  5832. void MergeFrom(const ServiceOptions& from);
  5833. private:
  5834. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  5835. public:
  5836. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  5837. bool IsInitialized() const final;
  5838. size_t ByteSizeLong() const final;
  5839. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  5840. uint8_t* _InternalSerialize(
  5841. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  5842. int GetCachedSize() const final { return _cached_size_.Get(); }
  5843. private:
  5844. void SharedCtor();
  5845. void SharedDtor();
  5846. void SetCachedSize(int size) const final;
  5847. void InternalSwap(ServiceOptions* other);
  5848. private:
  5849. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  5850. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  5851. return "google.protobuf.ServiceOptions";
  5852. }
  5853. protected:
  5854. explicit ServiceOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  5855. bool is_message_owned = false);
  5856. private:
  5857. static void ArenaDtor(void* object);
  5858. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  5859. public:
  5860. static const ClassData _class_data_;
  5861. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  5862. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  5863. // nested types ----------------------------------------------------
  5864. // accessors -------------------------------------------------------
  5865. enum : int {
  5866. kUninterpretedOptionFieldNumber = 999,
  5867. kDeprecatedFieldNumber = 33,
  5868. };
  5869. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5870. int uninterpreted_option_size() const;
  5871. private:
  5872. int _internal_uninterpreted_option_size() const;
  5873. public:
  5874. void clear_uninterpreted_option();
  5875. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  5876. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  5877. mutable_uninterpreted_option();
  5878. private:
  5879. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  5880. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  5881. public:
  5882. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  5883. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  5884. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  5885. uninterpreted_option() const;
  5886. // optional bool deprecated = 33 [default = false];
  5887. bool has_deprecated() const;
  5888. private:
  5889. bool _internal_has_deprecated() const;
  5890. public:
  5891. void clear_deprecated();
  5892. bool deprecated() const;
  5893. void set_deprecated(bool value);
  5894. private:
  5895. bool _internal_deprecated() const;
  5896. void _internal_set_deprecated(bool value);
  5897. public:
  5898. template <typename _proto_TypeTraits,
  5899. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5900. bool _is_packed>
  5901. inline bool HasExtension(
  5902. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5903. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5904. return _extensions_.Has(id.number());
  5905. }
  5906. template <typename _proto_TypeTraits,
  5907. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5908. bool _is_packed>
  5909. inline void ClearExtension(
  5910. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5911. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5912. _extensions_.ClearExtension(id.number());
  5913. }
  5914. template <typename _proto_TypeTraits,
  5915. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5916. bool _is_packed>
  5917. inline int ExtensionSize(
  5918. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5919. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5920. return _extensions_.ExtensionSize(id.number());
  5921. }
  5922. template <typename _proto_TypeTraits,
  5923. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5924. bool _is_packed>
  5925. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  5926. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5927. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  5928. return _proto_TypeTraits::Get(id.number(), _extensions_,
  5929. id.default_value());
  5930. }
  5931. template <typename _proto_TypeTraits,
  5932. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5933. bool _is_packed>
  5934. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  5935. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5936. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5937. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  5938. &_extensions_);
  5939. }
  5940. template <typename _proto_TypeTraits,
  5941. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5942. bool _is_packed>
  5943. inline void SetExtension(
  5944. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5945. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5946. typename _proto_TypeTraits::Singular::ConstType value) {
  5947. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  5948. }
  5949. template <typename _proto_TypeTraits,
  5950. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5951. bool _is_packed>
  5952. inline void SetAllocatedExtension(
  5953. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5954. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5955. typename _proto_TypeTraits::Singular::MutableType value) {
  5956. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  5957. &_extensions_);
  5958. }
  5959. template <typename _proto_TypeTraits,
  5960. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5961. bool _is_packed>
  5962. inline void UnsafeArenaSetAllocatedExtension(
  5963. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5964. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5965. typename _proto_TypeTraits::Singular::MutableType value) {
  5966. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  5967. value, &_extensions_);
  5968. }
  5969. template <typename _proto_TypeTraits,
  5970. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5971. bool _is_packed>
  5972. PROTOBUF_NODISCARD inline
  5973. typename _proto_TypeTraits::Singular::MutableType
  5974. ReleaseExtension(
  5975. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5976. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5977. return _proto_TypeTraits::Release(id.number(), _field_type,
  5978. &_extensions_);
  5979. }
  5980. template <typename _proto_TypeTraits,
  5981. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5982. bool _is_packed>
  5983. inline typename _proto_TypeTraits::Singular::MutableType
  5984. UnsafeArenaReleaseExtension(
  5985. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5986. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  5987. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  5988. &_extensions_);
  5989. }
  5990. template <typename _proto_TypeTraits,
  5991. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  5992. bool _is_packed>
  5993. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  5994. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  5995. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  5996. int index) const {
  5997. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  5998. }
  5999. template <typename _proto_TypeTraits,
  6000. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6001. bool _is_packed>
  6002. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  6003. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6004. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6005. int index) {
  6006. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  6007. }
  6008. template <typename _proto_TypeTraits,
  6009. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6010. bool _is_packed>
  6011. inline void SetExtension(
  6012. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6013. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6014. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  6015. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  6016. }
  6017. template <typename _proto_TypeTraits,
  6018. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6019. bool _is_packed>
  6020. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  6021. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6022. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6023. typename _proto_TypeTraits::Repeated::MutableType to_add =
  6024. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  6025. return to_add;
  6026. }
  6027. template <typename _proto_TypeTraits,
  6028. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6029. bool _is_packed>
  6030. inline void AddExtension(
  6031. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6032. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6033. typename _proto_TypeTraits::Repeated::ConstType value) {
  6034. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  6035. &_extensions_);
  6036. }
  6037. template <typename _proto_TypeTraits,
  6038. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6039. bool _is_packed>
  6040. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  6041. GetRepeatedExtension(
  6042. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6043. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6044. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  6045. }
  6046. template <typename _proto_TypeTraits,
  6047. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6048. bool _is_packed>
  6049. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  6050. MutableRepeatedExtension(
  6051. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6052. ServiceOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6053. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  6054. _is_packed, &_extensions_);
  6055. }
  6056. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
  6057. private:
  6058. class _Internal;
  6059. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  6060. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6061. typedef void InternalArenaConstructable_;
  6062. typedef void DestructorSkippable_;
  6063. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6064. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6065. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  6066. bool deprecated_;
  6067. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6068. };
  6069. // -------------------------------------------------------------------
  6070. class PROTOBUF_EXPORT MethodOptions final :
  6071. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodOptions) */ {
  6072. public:
  6073. inline MethodOptions() : MethodOptions(nullptr) {}
  6074. ~MethodOptions() override;
  6075. explicit constexpr MethodOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6076. MethodOptions(const MethodOptions& from);
  6077. MethodOptions(MethodOptions&& from) noexcept
  6078. : MethodOptions() {
  6079. *this = ::std::move(from);
  6080. }
  6081. inline MethodOptions& operator=(const MethodOptions& from) {
  6082. CopyFrom(from);
  6083. return *this;
  6084. }
  6085. inline MethodOptions& operator=(MethodOptions&& from) noexcept {
  6086. if (this == &from) return *this;
  6087. if (GetOwningArena() == from.GetOwningArena()
  6088. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6089. && GetOwningArena() != nullptr
  6090. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6091. ) {
  6092. InternalSwap(&from);
  6093. } else {
  6094. CopyFrom(from);
  6095. }
  6096. return *this;
  6097. }
  6098. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6099. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6100. }
  6101. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6102. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6103. }
  6104. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6105. return GetDescriptor();
  6106. }
  6107. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6108. return default_instance().GetMetadata().descriptor;
  6109. }
  6110. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6111. return default_instance().GetMetadata().reflection;
  6112. }
  6113. static const MethodOptions& default_instance() {
  6114. return *internal_default_instance();
  6115. }
  6116. static inline const MethodOptions* internal_default_instance() {
  6117. return reinterpret_cast<const MethodOptions*>(
  6118. &_MethodOptions_default_instance_);
  6119. }
  6120. static constexpr int kIndexInFileMessages =
  6121. 20;
  6122. friend void swap(MethodOptions& a, MethodOptions& b) {
  6123. a.Swap(&b);
  6124. }
  6125. inline void Swap(MethodOptions* other) {
  6126. if (other == this) return;
  6127. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6128. if (GetOwningArena() != nullptr &&
  6129. GetOwningArena() == other->GetOwningArena()) {
  6130. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6131. if (GetOwningArena() == other->GetOwningArena()) {
  6132. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6133. InternalSwap(other);
  6134. } else {
  6135. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6136. }
  6137. }
  6138. void UnsafeArenaSwap(MethodOptions* other) {
  6139. if (other == this) return;
  6140. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6141. InternalSwap(other);
  6142. }
  6143. // implements Message ----------------------------------------------
  6144. MethodOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6145. return CreateMaybeMessage<MethodOptions>(arena);
  6146. }
  6147. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6148. void CopyFrom(const MethodOptions& from);
  6149. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6150. void MergeFrom(const MethodOptions& from);
  6151. private:
  6152. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  6153. public:
  6154. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6155. bool IsInitialized() const final;
  6156. size_t ByteSizeLong() const final;
  6157. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6158. uint8_t* _InternalSerialize(
  6159. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6160. int GetCachedSize() const final { return _cached_size_.Get(); }
  6161. private:
  6162. void SharedCtor();
  6163. void SharedDtor();
  6164. void SetCachedSize(int size) const final;
  6165. void InternalSwap(MethodOptions* other);
  6166. private:
  6167. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6168. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6169. return "google.protobuf.MethodOptions";
  6170. }
  6171. protected:
  6172. explicit MethodOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6173. bool is_message_owned = false);
  6174. private:
  6175. static void ArenaDtor(void* object);
  6176. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6177. public:
  6178. static const ClassData _class_data_;
  6179. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6180. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6181. // nested types ----------------------------------------------------
  6182. typedef MethodOptions_IdempotencyLevel IdempotencyLevel;
  6183. static constexpr IdempotencyLevel IDEMPOTENCY_UNKNOWN =
  6184. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  6185. static constexpr IdempotencyLevel NO_SIDE_EFFECTS =
  6186. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS;
  6187. static constexpr IdempotencyLevel IDEMPOTENT =
  6188. MethodOptions_IdempotencyLevel_IDEMPOTENT;
  6189. static inline bool IdempotencyLevel_IsValid(int value) {
  6190. return MethodOptions_IdempotencyLevel_IsValid(value);
  6191. }
  6192. static constexpr IdempotencyLevel IdempotencyLevel_MIN =
  6193. MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN;
  6194. static constexpr IdempotencyLevel IdempotencyLevel_MAX =
  6195. MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX;
  6196. static constexpr int IdempotencyLevel_ARRAYSIZE =
  6197. MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE;
  6198. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  6199. IdempotencyLevel_descriptor() {
  6200. return MethodOptions_IdempotencyLevel_descriptor();
  6201. }
  6202. template<typename T>
  6203. static inline const std::string& IdempotencyLevel_Name(T enum_t_value) {
  6204. static_assert(::std::is_same<T, IdempotencyLevel>::value ||
  6205. ::std::is_integral<T>::value,
  6206. "Incorrect type passed to function IdempotencyLevel_Name.");
  6207. return MethodOptions_IdempotencyLevel_Name(enum_t_value);
  6208. }
  6209. static inline bool IdempotencyLevel_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  6210. IdempotencyLevel* value) {
  6211. return MethodOptions_IdempotencyLevel_Parse(name, value);
  6212. }
  6213. // accessors -------------------------------------------------------
  6214. enum : int {
  6215. kUninterpretedOptionFieldNumber = 999,
  6216. kDeprecatedFieldNumber = 33,
  6217. kIdempotencyLevelFieldNumber = 34,
  6218. };
  6219. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  6220. int uninterpreted_option_size() const;
  6221. private:
  6222. int _internal_uninterpreted_option_size() const;
  6223. public:
  6224. void clear_uninterpreted_option();
  6225. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* mutable_uninterpreted_option(int index);
  6226. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  6227. mutable_uninterpreted_option();
  6228. private:
  6229. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& _internal_uninterpreted_option(int index) const;
  6230. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _internal_add_uninterpreted_option();
  6231. public:
  6232. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& uninterpreted_option(int index) const;
  6233. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* add_uninterpreted_option();
  6234. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  6235. uninterpreted_option() const;
  6236. // optional bool deprecated = 33 [default = false];
  6237. bool has_deprecated() const;
  6238. private:
  6239. bool _internal_has_deprecated() const;
  6240. public:
  6241. void clear_deprecated();
  6242. bool deprecated() const;
  6243. void set_deprecated(bool value);
  6244. private:
  6245. bool _internal_deprecated() const;
  6246. void _internal_set_deprecated(bool value);
  6247. public:
  6248. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  6249. bool has_idempotency_level() const;
  6250. private:
  6251. bool _internal_has_idempotency_level() const;
  6252. public:
  6253. void clear_idempotency_level();
  6254. ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel idempotency_level() const;
  6255. void set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value);
  6256. private:
  6257. ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel _internal_idempotency_level() const;
  6258. void _internal_set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value);
  6259. public:
  6260. template <typename _proto_TypeTraits,
  6261. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6262. bool _is_packed>
  6263. inline bool HasExtension(
  6264. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6265. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6266. return _extensions_.Has(id.number());
  6267. }
  6268. template <typename _proto_TypeTraits,
  6269. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6270. bool _is_packed>
  6271. inline void ClearExtension(
  6272. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6273. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6274. _extensions_.ClearExtension(id.number());
  6275. }
  6276. template <typename _proto_TypeTraits,
  6277. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6278. bool _is_packed>
  6279. inline int ExtensionSize(
  6280. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6281. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6282. return _extensions_.ExtensionSize(id.number());
  6283. }
  6284. template <typename _proto_TypeTraits,
  6285. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6286. bool _is_packed>
  6287. inline typename _proto_TypeTraits::Singular::ConstType GetExtension(
  6288. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6289. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6290. return _proto_TypeTraits::Get(id.number(), _extensions_,
  6291. id.default_value());
  6292. }
  6293. template <typename _proto_TypeTraits,
  6294. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6295. bool _is_packed>
  6296. inline typename _proto_TypeTraits::Singular::MutableType MutableExtension(
  6297. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6298. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6299. return _proto_TypeTraits::Mutable(id.number(), _field_type,
  6300. &_extensions_);
  6301. }
  6302. template <typename _proto_TypeTraits,
  6303. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6304. bool _is_packed>
  6305. inline void SetExtension(
  6306. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6307. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6308. typename _proto_TypeTraits::Singular::ConstType value) {
  6309. _proto_TypeTraits::Set(id.number(), _field_type, value, &_extensions_);
  6310. }
  6311. template <typename _proto_TypeTraits,
  6312. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6313. bool _is_packed>
  6314. inline void SetAllocatedExtension(
  6315. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6316. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6317. typename _proto_TypeTraits::Singular::MutableType value) {
  6318. _proto_TypeTraits::SetAllocated(id.number(), _field_type, value,
  6319. &_extensions_);
  6320. }
  6321. template <typename _proto_TypeTraits,
  6322. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6323. bool _is_packed>
  6324. inline void UnsafeArenaSetAllocatedExtension(
  6325. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6326. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6327. typename _proto_TypeTraits::Singular::MutableType value) {
  6328. _proto_TypeTraits::UnsafeArenaSetAllocated(id.number(), _field_type,
  6329. value, &_extensions_);
  6330. }
  6331. template <typename _proto_TypeTraits,
  6332. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6333. bool _is_packed>
  6334. PROTOBUF_NODISCARD inline
  6335. typename _proto_TypeTraits::Singular::MutableType
  6336. ReleaseExtension(
  6337. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6338. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6339. return _proto_TypeTraits::Release(id.number(), _field_type,
  6340. &_extensions_);
  6341. }
  6342. template <typename _proto_TypeTraits,
  6343. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6344. bool _is_packed>
  6345. inline typename _proto_TypeTraits::Singular::MutableType
  6346. UnsafeArenaReleaseExtension(
  6347. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6348. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6349. return _proto_TypeTraits::UnsafeArenaRelease(id.number(), _field_type,
  6350. &_extensions_);
  6351. }
  6352. template <typename _proto_TypeTraits,
  6353. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6354. bool _is_packed>
  6355. inline typename _proto_TypeTraits::Repeated::ConstType GetExtension(
  6356. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6357. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6358. int index) const {
  6359. return _proto_TypeTraits::Get(id.number(), _extensions_, index);
  6360. }
  6361. template <typename _proto_TypeTraits,
  6362. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6363. bool _is_packed>
  6364. inline typename _proto_TypeTraits::Repeated::MutableType MutableExtension(
  6365. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6366. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6367. int index) {
  6368. return _proto_TypeTraits::Mutable(id.number(), index, &_extensions_);
  6369. }
  6370. template <typename _proto_TypeTraits,
  6371. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6372. bool _is_packed>
  6373. inline void SetExtension(
  6374. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6375. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6376. int index, typename _proto_TypeTraits::Repeated::ConstType value) {
  6377. _proto_TypeTraits::Set(id.number(), index, value, &_extensions_);
  6378. }
  6379. template <typename _proto_TypeTraits,
  6380. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6381. bool _is_packed>
  6382. inline typename _proto_TypeTraits::Repeated::MutableType AddExtension(
  6383. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6384. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6385. typename _proto_TypeTraits::Repeated::MutableType to_add =
  6386. _proto_TypeTraits::Add(id.number(), _field_type, &_extensions_);
  6387. return to_add;
  6388. }
  6389. template <typename _proto_TypeTraits,
  6390. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6391. bool _is_packed>
  6392. inline void AddExtension(
  6393. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6394. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id,
  6395. typename _proto_TypeTraits::Repeated::ConstType value) {
  6396. _proto_TypeTraits::Add(id.number(), _field_type, _is_packed, value,
  6397. &_extensions_);
  6398. }
  6399. template <typename _proto_TypeTraits,
  6400. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6401. bool _is_packed>
  6402. inline const typename _proto_TypeTraits::Repeated::RepeatedFieldType&
  6403. GetRepeatedExtension(
  6404. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6405. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) const {
  6406. return _proto_TypeTraits::GetRepeated(id.number(), _extensions_);
  6407. }
  6408. template <typename _proto_TypeTraits,
  6409. ::PROTOBUF_NAMESPACE_ID::internal::FieldType _field_type,
  6410. bool _is_packed>
  6411. inline typename _proto_TypeTraits::Repeated::RepeatedFieldType*
  6412. MutableRepeatedExtension(
  6413. const ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier<
  6414. MethodOptions, _proto_TypeTraits, _field_type, _is_packed>& id) {
  6415. return _proto_TypeTraits::MutableRepeated(id.number(), _field_type,
  6416. _is_packed, &_extensions_);
  6417. }
  6418. // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
  6419. private:
  6420. class _Internal;
  6421. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionSet _extensions_;
  6422. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6423. typedef void InternalArenaConstructable_;
  6424. typedef void DestructorSkippable_;
  6425. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6426. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6427. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption > uninterpreted_option_;
  6428. bool deprecated_;
  6429. int idempotency_level_;
  6430. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6431. };
  6432. // -------------------------------------------------------------------
  6433. class PROTOBUF_EXPORT UninterpretedOption_NamePart final :
  6434. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption.NamePart) */ {
  6435. public:
  6436. inline UninterpretedOption_NamePart() : UninterpretedOption_NamePart(nullptr) {}
  6437. ~UninterpretedOption_NamePart() override;
  6438. explicit constexpr UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6439. UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from);
  6440. UninterpretedOption_NamePart(UninterpretedOption_NamePart&& from) noexcept
  6441. : UninterpretedOption_NamePart() {
  6442. *this = ::std::move(from);
  6443. }
  6444. inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) {
  6445. CopyFrom(from);
  6446. return *this;
  6447. }
  6448. inline UninterpretedOption_NamePart& operator=(UninterpretedOption_NamePart&& from) noexcept {
  6449. if (this == &from) return *this;
  6450. if (GetOwningArena() == from.GetOwningArena()
  6451. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6452. && GetOwningArena() != nullptr
  6453. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6454. ) {
  6455. InternalSwap(&from);
  6456. } else {
  6457. CopyFrom(from);
  6458. }
  6459. return *this;
  6460. }
  6461. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6462. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6463. }
  6464. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6465. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6466. }
  6467. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6468. return GetDescriptor();
  6469. }
  6470. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6471. return default_instance().GetMetadata().descriptor;
  6472. }
  6473. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6474. return default_instance().GetMetadata().reflection;
  6475. }
  6476. static const UninterpretedOption_NamePart& default_instance() {
  6477. return *internal_default_instance();
  6478. }
  6479. static inline const UninterpretedOption_NamePart* internal_default_instance() {
  6480. return reinterpret_cast<const UninterpretedOption_NamePart*>(
  6481. &_UninterpretedOption_NamePart_default_instance_);
  6482. }
  6483. static constexpr int kIndexInFileMessages =
  6484. 21;
  6485. friend void swap(UninterpretedOption_NamePart& a, UninterpretedOption_NamePart& b) {
  6486. a.Swap(&b);
  6487. }
  6488. inline void Swap(UninterpretedOption_NamePart* other) {
  6489. if (other == this) return;
  6490. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6491. if (GetOwningArena() != nullptr &&
  6492. GetOwningArena() == other->GetOwningArena()) {
  6493. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6494. if (GetOwningArena() == other->GetOwningArena()) {
  6495. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6496. InternalSwap(other);
  6497. } else {
  6498. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6499. }
  6500. }
  6501. void UnsafeArenaSwap(UninterpretedOption_NamePart* other) {
  6502. if (other == this) return;
  6503. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6504. InternalSwap(other);
  6505. }
  6506. // implements Message ----------------------------------------------
  6507. UninterpretedOption_NamePart* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6508. return CreateMaybeMessage<UninterpretedOption_NamePart>(arena);
  6509. }
  6510. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6511. void CopyFrom(const UninterpretedOption_NamePart& from);
  6512. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6513. void MergeFrom(const UninterpretedOption_NamePart& from);
  6514. private:
  6515. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  6516. public:
  6517. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6518. bool IsInitialized() const final;
  6519. size_t ByteSizeLong() const final;
  6520. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6521. uint8_t* _InternalSerialize(
  6522. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6523. int GetCachedSize() const final { return _cached_size_.Get(); }
  6524. private:
  6525. void SharedCtor();
  6526. void SharedDtor();
  6527. void SetCachedSize(int size) const final;
  6528. void InternalSwap(UninterpretedOption_NamePart* other);
  6529. private:
  6530. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6531. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6532. return "google.protobuf.UninterpretedOption.NamePart";
  6533. }
  6534. protected:
  6535. explicit UninterpretedOption_NamePart(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6536. bool is_message_owned = false);
  6537. private:
  6538. static void ArenaDtor(void* object);
  6539. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6540. public:
  6541. static const ClassData _class_data_;
  6542. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6543. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6544. // nested types ----------------------------------------------------
  6545. // accessors -------------------------------------------------------
  6546. enum : int {
  6547. kNamePartFieldNumber = 1,
  6548. kIsExtensionFieldNumber = 2,
  6549. };
  6550. // required string name_part = 1;
  6551. bool has_name_part() const;
  6552. private:
  6553. bool _internal_has_name_part() const;
  6554. public:
  6555. void clear_name_part();
  6556. const std::string& name_part() const;
  6557. template <typename ArgT0 = const std::string&, typename... ArgT>
  6558. void set_name_part(ArgT0&& arg0, ArgT... args);
  6559. std::string* mutable_name_part();
  6560. PROTOBUF_NODISCARD std::string* release_name_part();
  6561. void set_allocated_name_part(std::string* name_part);
  6562. private:
  6563. const std::string& _internal_name_part() const;
  6564. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name_part(const std::string& value);
  6565. std::string* _internal_mutable_name_part();
  6566. public:
  6567. // required bool is_extension = 2;
  6568. bool has_is_extension() const;
  6569. private:
  6570. bool _internal_has_is_extension() const;
  6571. public:
  6572. void clear_is_extension();
  6573. bool is_extension() const;
  6574. void set_is_extension(bool value);
  6575. private:
  6576. bool _internal_is_extension() const;
  6577. void _internal_set_is_extension(bool value);
  6578. public:
  6579. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
  6580. private:
  6581. class _Internal;
  6582. // helper for ByteSizeLong()
  6583. size_t RequiredFieldsByteSizeFallback() const;
  6584. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6585. typedef void InternalArenaConstructable_;
  6586. typedef void DestructorSkippable_;
  6587. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6588. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6589. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_part_;
  6590. bool is_extension_;
  6591. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6592. };
  6593. // -------------------------------------------------------------------
  6594. class PROTOBUF_EXPORT UninterpretedOption final :
  6595. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption) */ {
  6596. public:
  6597. inline UninterpretedOption() : UninterpretedOption(nullptr) {}
  6598. ~UninterpretedOption() override;
  6599. explicit constexpr UninterpretedOption(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6600. UninterpretedOption(const UninterpretedOption& from);
  6601. UninterpretedOption(UninterpretedOption&& from) noexcept
  6602. : UninterpretedOption() {
  6603. *this = ::std::move(from);
  6604. }
  6605. inline UninterpretedOption& operator=(const UninterpretedOption& from) {
  6606. CopyFrom(from);
  6607. return *this;
  6608. }
  6609. inline UninterpretedOption& operator=(UninterpretedOption&& from) noexcept {
  6610. if (this == &from) return *this;
  6611. if (GetOwningArena() == from.GetOwningArena()
  6612. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6613. && GetOwningArena() != nullptr
  6614. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6615. ) {
  6616. InternalSwap(&from);
  6617. } else {
  6618. CopyFrom(from);
  6619. }
  6620. return *this;
  6621. }
  6622. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6623. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6624. }
  6625. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6626. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6627. }
  6628. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6629. return GetDescriptor();
  6630. }
  6631. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6632. return default_instance().GetMetadata().descriptor;
  6633. }
  6634. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6635. return default_instance().GetMetadata().reflection;
  6636. }
  6637. static const UninterpretedOption& default_instance() {
  6638. return *internal_default_instance();
  6639. }
  6640. static inline const UninterpretedOption* internal_default_instance() {
  6641. return reinterpret_cast<const UninterpretedOption*>(
  6642. &_UninterpretedOption_default_instance_);
  6643. }
  6644. static constexpr int kIndexInFileMessages =
  6645. 22;
  6646. friend void swap(UninterpretedOption& a, UninterpretedOption& b) {
  6647. a.Swap(&b);
  6648. }
  6649. inline void Swap(UninterpretedOption* other) {
  6650. if (other == this) return;
  6651. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6652. if (GetOwningArena() != nullptr &&
  6653. GetOwningArena() == other->GetOwningArena()) {
  6654. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6655. if (GetOwningArena() == other->GetOwningArena()) {
  6656. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6657. InternalSwap(other);
  6658. } else {
  6659. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6660. }
  6661. }
  6662. void UnsafeArenaSwap(UninterpretedOption* other) {
  6663. if (other == this) return;
  6664. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6665. InternalSwap(other);
  6666. }
  6667. // implements Message ----------------------------------------------
  6668. UninterpretedOption* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6669. return CreateMaybeMessage<UninterpretedOption>(arena);
  6670. }
  6671. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6672. void CopyFrom(const UninterpretedOption& from);
  6673. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6674. void MergeFrom(const UninterpretedOption& from);
  6675. private:
  6676. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  6677. public:
  6678. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6679. bool IsInitialized() const final;
  6680. size_t ByteSizeLong() const final;
  6681. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6682. uint8_t* _InternalSerialize(
  6683. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6684. int GetCachedSize() const final { return _cached_size_.Get(); }
  6685. private:
  6686. void SharedCtor();
  6687. void SharedDtor();
  6688. void SetCachedSize(int size) const final;
  6689. void InternalSwap(UninterpretedOption* other);
  6690. private:
  6691. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6692. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6693. return "google.protobuf.UninterpretedOption";
  6694. }
  6695. protected:
  6696. explicit UninterpretedOption(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6697. bool is_message_owned = false);
  6698. private:
  6699. static void ArenaDtor(void* object);
  6700. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6701. public:
  6702. static const ClassData _class_data_;
  6703. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6704. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6705. // nested types ----------------------------------------------------
  6706. typedef UninterpretedOption_NamePart NamePart;
  6707. // accessors -------------------------------------------------------
  6708. enum : int {
  6709. kNameFieldNumber = 2,
  6710. kIdentifierValueFieldNumber = 3,
  6711. kStringValueFieldNumber = 7,
  6712. kAggregateValueFieldNumber = 8,
  6713. kPositiveIntValueFieldNumber = 4,
  6714. kNegativeIntValueFieldNumber = 5,
  6715. kDoubleValueFieldNumber = 6,
  6716. };
  6717. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  6718. int name_size() const;
  6719. private:
  6720. int _internal_name_size() const;
  6721. public:
  6722. void clear_name();
  6723. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* mutable_name(int index);
  6724. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >*
  6725. mutable_name();
  6726. private:
  6727. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& _internal_name(int index) const;
  6728. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* _internal_add_name();
  6729. public:
  6730. const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& name(int index) const;
  6731. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* add_name();
  6732. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >&
  6733. name() const;
  6734. // optional string identifier_value = 3;
  6735. bool has_identifier_value() const;
  6736. private:
  6737. bool _internal_has_identifier_value() const;
  6738. public:
  6739. void clear_identifier_value();
  6740. const std::string& identifier_value() const;
  6741. template <typename ArgT0 = const std::string&, typename... ArgT>
  6742. void set_identifier_value(ArgT0&& arg0, ArgT... args);
  6743. std::string* mutable_identifier_value();
  6744. PROTOBUF_NODISCARD std::string* release_identifier_value();
  6745. void set_allocated_identifier_value(std::string* identifier_value);
  6746. private:
  6747. const std::string& _internal_identifier_value() const;
  6748. inline PROTOBUF_ALWAYS_INLINE void _internal_set_identifier_value(const std::string& value);
  6749. std::string* _internal_mutable_identifier_value();
  6750. public:
  6751. // optional bytes string_value = 7;
  6752. bool has_string_value() const;
  6753. private:
  6754. bool _internal_has_string_value() const;
  6755. public:
  6756. void clear_string_value();
  6757. const std::string& string_value() const;
  6758. template <typename ArgT0 = const std::string&, typename... ArgT>
  6759. void set_string_value(ArgT0&& arg0, ArgT... args);
  6760. std::string* mutable_string_value();
  6761. PROTOBUF_NODISCARD std::string* release_string_value();
  6762. void set_allocated_string_value(std::string* string_value);
  6763. private:
  6764. const std::string& _internal_string_value() const;
  6765. inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(const std::string& value);
  6766. std::string* _internal_mutable_string_value();
  6767. public:
  6768. // optional string aggregate_value = 8;
  6769. bool has_aggregate_value() const;
  6770. private:
  6771. bool _internal_has_aggregate_value() const;
  6772. public:
  6773. void clear_aggregate_value();
  6774. const std::string& aggregate_value() const;
  6775. template <typename ArgT0 = const std::string&, typename... ArgT>
  6776. void set_aggregate_value(ArgT0&& arg0, ArgT... args);
  6777. std::string* mutable_aggregate_value();
  6778. PROTOBUF_NODISCARD std::string* release_aggregate_value();
  6779. void set_allocated_aggregate_value(std::string* aggregate_value);
  6780. private:
  6781. const std::string& _internal_aggregate_value() const;
  6782. inline PROTOBUF_ALWAYS_INLINE void _internal_set_aggregate_value(const std::string& value);
  6783. std::string* _internal_mutable_aggregate_value();
  6784. public:
  6785. // optional uint64 positive_int_value = 4;
  6786. bool has_positive_int_value() const;
  6787. private:
  6788. bool _internal_has_positive_int_value() const;
  6789. public:
  6790. void clear_positive_int_value();
  6791. uint64_t positive_int_value() const;
  6792. void set_positive_int_value(uint64_t value);
  6793. private:
  6794. uint64_t _internal_positive_int_value() const;
  6795. void _internal_set_positive_int_value(uint64_t value);
  6796. public:
  6797. // optional int64 negative_int_value = 5;
  6798. bool has_negative_int_value() const;
  6799. private:
  6800. bool _internal_has_negative_int_value() const;
  6801. public:
  6802. void clear_negative_int_value();
  6803. int64_t negative_int_value() const;
  6804. void set_negative_int_value(int64_t value);
  6805. private:
  6806. int64_t _internal_negative_int_value() const;
  6807. void _internal_set_negative_int_value(int64_t value);
  6808. public:
  6809. // optional double double_value = 6;
  6810. bool has_double_value() const;
  6811. private:
  6812. bool _internal_has_double_value() const;
  6813. public:
  6814. void clear_double_value();
  6815. double double_value() const;
  6816. void set_double_value(double value);
  6817. private:
  6818. double _internal_double_value() const;
  6819. void _internal_set_double_value(double value);
  6820. public:
  6821. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
  6822. private:
  6823. class _Internal;
  6824. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  6825. typedef void InternalArenaConstructable_;
  6826. typedef void DestructorSkippable_;
  6827. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  6828. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  6829. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart > name_;
  6830. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr identifier_value_;
  6831. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_;
  6832. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr aggregate_value_;
  6833. uint64_t positive_int_value_;
  6834. int64_t negative_int_value_;
  6835. double double_value_;
  6836. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  6837. };
  6838. // -------------------------------------------------------------------
  6839. class PROTOBUF_EXPORT SourceCodeInfo_Location final :
  6840. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo.Location) */ {
  6841. public:
  6842. inline SourceCodeInfo_Location() : SourceCodeInfo_Location(nullptr) {}
  6843. ~SourceCodeInfo_Location() override;
  6844. explicit constexpr SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  6845. SourceCodeInfo_Location(const SourceCodeInfo_Location& from);
  6846. SourceCodeInfo_Location(SourceCodeInfo_Location&& from) noexcept
  6847. : SourceCodeInfo_Location() {
  6848. *this = ::std::move(from);
  6849. }
  6850. inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) {
  6851. CopyFrom(from);
  6852. return *this;
  6853. }
  6854. inline SourceCodeInfo_Location& operator=(SourceCodeInfo_Location&& from) noexcept {
  6855. if (this == &from) return *this;
  6856. if (GetOwningArena() == from.GetOwningArena()
  6857. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  6858. && GetOwningArena() != nullptr
  6859. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  6860. ) {
  6861. InternalSwap(&from);
  6862. } else {
  6863. CopyFrom(from);
  6864. }
  6865. return *this;
  6866. }
  6867. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  6868. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  6869. }
  6870. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  6871. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  6872. }
  6873. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  6874. return GetDescriptor();
  6875. }
  6876. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  6877. return default_instance().GetMetadata().descriptor;
  6878. }
  6879. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  6880. return default_instance().GetMetadata().reflection;
  6881. }
  6882. static const SourceCodeInfo_Location& default_instance() {
  6883. return *internal_default_instance();
  6884. }
  6885. static inline const SourceCodeInfo_Location* internal_default_instance() {
  6886. return reinterpret_cast<const SourceCodeInfo_Location*>(
  6887. &_SourceCodeInfo_Location_default_instance_);
  6888. }
  6889. static constexpr int kIndexInFileMessages =
  6890. 23;
  6891. friend void swap(SourceCodeInfo_Location& a, SourceCodeInfo_Location& b) {
  6892. a.Swap(&b);
  6893. }
  6894. inline void Swap(SourceCodeInfo_Location* other) {
  6895. if (other == this) return;
  6896. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  6897. if (GetOwningArena() != nullptr &&
  6898. GetOwningArena() == other->GetOwningArena()) {
  6899. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  6900. if (GetOwningArena() == other->GetOwningArena()) {
  6901. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  6902. InternalSwap(other);
  6903. } else {
  6904. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  6905. }
  6906. }
  6907. void UnsafeArenaSwap(SourceCodeInfo_Location* other) {
  6908. if (other == this) return;
  6909. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  6910. InternalSwap(other);
  6911. }
  6912. // implements Message ----------------------------------------------
  6913. SourceCodeInfo_Location* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  6914. return CreateMaybeMessage<SourceCodeInfo_Location>(arena);
  6915. }
  6916. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  6917. void CopyFrom(const SourceCodeInfo_Location& from);
  6918. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  6919. void MergeFrom(const SourceCodeInfo_Location& from);
  6920. private:
  6921. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  6922. public:
  6923. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  6924. bool IsInitialized() const final;
  6925. size_t ByteSizeLong() const final;
  6926. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  6927. uint8_t* _InternalSerialize(
  6928. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  6929. int GetCachedSize() const final { return _cached_size_.Get(); }
  6930. private:
  6931. void SharedCtor();
  6932. void SharedDtor();
  6933. void SetCachedSize(int size) const final;
  6934. void InternalSwap(SourceCodeInfo_Location* other);
  6935. private:
  6936. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  6937. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  6938. return "google.protobuf.SourceCodeInfo.Location";
  6939. }
  6940. protected:
  6941. explicit SourceCodeInfo_Location(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  6942. bool is_message_owned = false);
  6943. private:
  6944. static void ArenaDtor(void* object);
  6945. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  6946. public:
  6947. static const ClassData _class_data_;
  6948. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  6949. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  6950. // nested types ----------------------------------------------------
  6951. // accessors -------------------------------------------------------
  6952. enum : int {
  6953. kPathFieldNumber = 1,
  6954. kSpanFieldNumber = 2,
  6955. kLeadingDetachedCommentsFieldNumber = 6,
  6956. kLeadingCommentsFieldNumber = 3,
  6957. kTrailingCommentsFieldNumber = 4,
  6958. };
  6959. // repeated int32 path = 1 [packed = true];
  6960. int path_size() const;
  6961. private:
  6962. int _internal_path_size() const;
  6963. public:
  6964. void clear_path();
  6965. private:
  6966. int32_t _internal_path(int index) const;
  6967. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  6968. _internal_path() const;
  6969. void _internal_add_path(int32_t value);
  6970. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  6971. _internal_mutable_path();
  6972. public:
  6973. int32_t path(int index) const;
  6974. void set_path(int index, int32_t value);
  6975. void add_path(int32_t value);
  6976. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  6977. path() const;
  6978. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  6979. mutable_path();
  6980. // repeated int32 span = 2 [packed = true];
  6981. int span_size() const;
  6982. private:
  6983. int _internal_span_size() const;
  6984. public:
  6985. void clear_span();
  6986. private:
  6987. int32_t _internal_span(int index) const;
  6988. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  6989. _internal_span() const;
  6990. void _internal_add_span(int32_t value);
  6991. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  6992. _internal_mutable_span();
  6993. public:
  6994. int32_t span(int index) const;
  6995. void set_span(int index, int32_t value);
  6996. void add_span(int32_t value);
  6997. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  6998. span() const;
  6999. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7000. mutable_span();
  7001. // repeated string leading_detached_comments = 6;
  7002. int leading_detached_comments_size() const;
  7003. private:
  7004. int _internal_leading_detached_comments_size() const;
  7005. public:
  7006. void clear_leading_detached_comments();
  7007. const std::string& leading_detached_comments(int index) const;
  7008. std::string* mutable_leading_detached_comments(int index);
  7009. void set_leading_detached_comments(int index, const std::string& value);
  7010. void set_leading_detached_comments(int index, std::string&& value);
  7011. void set_leading_detached_comments(int index, const char* value);
  7012. void set_leading_detached_comments(int index, const char* value, size_t size);
  7013. std::string* add_leading_detached_comments();
  7014. void add_leading_detached_comments(const std::string& value);
  7015. void add_leading_detached_comments(std::string&& value);
  7016. void add_leading_detached_comments(const char* value);
  7017. void add_leading_detached_comments(const char* value, size_t size);
  7018. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& leading_detached_comments() const;
  7019. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_leading_detached_comments();
  7020. private:
  7021. const std::string& _internal_leading_detached_comments(int index) const;
  7022. std::string* _internal_add_leading_detached_comments();
  7023. public:
  7024. // optional string leading_comments = 3;
  7025. bool has_leading_comments() const;
  7026. private:
  7027. bool _internal_has_leading_comments() const;
  7028. public:
  7029. void clear_leading_comments();
  7030. const std::string& leading_comments() const;
  7031. template <typename ArgT0 = const std::string&, typename... ArgT>
  7032. void set_leading_comments(ArgT0&& arg0, ArgT... args);
  7033. std::string* mutable_leading_comments();
  7034. PROTOBUF_NODISCARD std::string* release_leading_comments();
  7035. void set_allocated_leading_comments(std::string* leading_comments);
  7036. private:
  7037. const std::string& _internal_leading_comments() const;
  7038. inline PROTOBUF_ALWAYS_INLINE void _internal_set_leading_comments(const std::string& value);
  7039. std::string* _internal_mutable_leading_comments();
  7040. public:
  7041. // optional string trailing_comments = 4;
  7042. bool has_trailing_comments() const;
  7043. private:
  7044. bool _internal_has_trailing_comments() const;
  7045. public:
  7046. void clear_trailing_comments();
  7047. const std::string& trailing_comments() const;
  7048. template <typename ArgT0 = const std::string&, typename... ArgT>
  7049. void set_trailing_comments(ArgT0&& arg0, ArgT... args);
  7050. std::string* mutable_trailing_comments();
  7051. PROTOBUF_NODISCARD std::string* release_trailing_comments();
  7052. void set_allocated_trailing_comments(std::string* trailing_comments);
  7053. private:
  7054. const std::string& _internal_trailing_comments() const;
  7055. inline PROTOBUF_ALWAYS_INLINE void _internal_set_trailing_comments(const std::string& value);
  7056. std::string* _internal_mutable_trailing_comments();
  7057. public:
  7058. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location)
  7059. private:
  7060. class _Internal;
  7061. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7062. typedef void InternalArenaConstructable_;
  7063. typedef void DestructorSkippable_;
  7064. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  7065. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7066. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > path_;
  7067. mutable std::atomic<int> _path_cached_byte_size_;
  7068. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > span_;
  7069. mutable std::atomic<int> _span_cached_byte_size_;
  7070. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> leading_detached_comments_;
  7071. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr leading_comments_;
  7072. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr trailing_comments_;
  7073. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7074. };
  7075. // -------------------------------------------------------------------
  7076. class PROTOBUF_EXPORT SourceCodeInfo final :
  7077. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo) */ {
  7078. public:
  7079. inline SourceCodeInfo() : SourceCodeInfo(nullptr) {}
  7080. ~SourceCodeInfo() override;
  7081. explicit constexpr SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  7082. SourceCodeInfo(const SourceCodeInfo& from);
  7083. SourceCodeInfo(SourceCodeInfo&& from) noexcept
  7084. : SourceCodeInfo() {
  7085. *this = ::std::move(from);
  7086. }
  7087. inline SourceCodeInfo& operator=(const SourceCodeInfo& from) {
  7088. CopyFrom(from);
  7089. return *this;
  7090. }
  7091. inline SourceCodeInfo& operator=(SourceCodeInfo&& from) noexcept {
  7092. if (this == &from) return *this;
  7093. if (GetOwningArena() == from.GetOwningArena()
  7094. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  7095. && GetOwningArena() != nullptr
  7096. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  7097. ) {
  7098. InternalSwap(&from);
  7099. } else {
  7100. CopyFrom(from);
  7101. }
  7102. return *this;
  7103. }
  7104. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  7105. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  7106. }
  7107. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  7108. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7109. }
  7110. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  7111. return GetDescriptor();
  7112. }
  7113. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  7114. return default_instance().GetMetadata().descriptor;
  7115. }
  7116. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  7117. return default_instance().GetMetadata().reflection;
  7118. }
  7119. static const SourceCodeInfo& default_instance() {
  7120. return *internal_default_instance();
  7121. }
  7122. static inline const SourceCodeInfo* internal_default_instance() {
  7123. return reinterpret_cast<const SourceCodeInfo*>(
  7124. &_SourceCodeInfo_default_instance_);
  7125. }
  7126. static constexpr int kIndexInFileMessages =
  7127. 24;
  7128. friend void swap(SourceCodeInfo& a, SourceCodeInfo& b) {
  7129. a.Swap(&b);
  7130. }
  7131. inline void Swap(SourceCodeInfo* other) {
  7132. if (other == this) return;
  7133. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7134. if (GetOwningArena() != nullptr &&
  7135. GetOwningArena() == other->GetOwningArena()) {
  7136. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7137. if (GetOwningArena() == other->GetOwningArena()) {
  7138. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7139. InternalSwap(other);
  7140. } else {
  7141. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7142. }
  7143. }
  7144. void UnsafeArenaSwap(SourceCodeInfo* other) {
  7145. if (other == this) return;
  7146. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7147. InternalSwap(other);
  7148. }
  7149. // implements Message ----------------------------------------------
  7150. SourceCodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  7151. return CreateMaybeMessage<SourceCodeInfo>(arena);
  7152. }
  7153. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7154. void CopyFrom(const SourceCodeInfo& from);
  7155. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7156. void MergeFrom(const SourceCodeInfo& from);
  7157. private:
  7158. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  7159. public:
  7160. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7161. bool IsInitialized() const final;
  7162. size_t ByteSizeLong() const final;
  7163. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7164. uint8_t* _InternalSerialize(
  7165. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  7166. int GetCachedSize() const final { return _cached_size_.Get(); }
  7167. private:
  7168. void SharedCtor();
  7169. void SharedDtor();
  7170. void SetCachedSize(int size) const final;
  7171. void InternalSwap(SourceCodeInfo* other);
  7172. private:
  7173. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7174. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  7175. return "google.protobuf.SourceCodeInfo";
  7176. }
  7177. protected:
  7178. explicit SourceCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7179. bool is_message_owned = false);
  7180. private:
  7181. static void ArenaDtor(void* object);
  7182. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  7183. public:
  7184. static const ClassData _class_data_;
  7185. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  7186. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7187. // nested types ----------------------------------------------------
  7188. typedef SourceCodeInfo_Location Location;
  7189. // accessors -------------------------------------------------------
  7190. enum : int {
  7191. kLocationFieldNumber = 1,
  7192. };
  7193. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  7194. int location_size() const;
  7195. private:
  7196. int _internal_location_size() const;
  7197. public:
  7198. void clear_location();
  7199. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* mutable_location(int index);
  7200. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >*
  7201. mutable_location();
  7202. private:
  7203. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& _internal_location(int index) const;
  7204. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* _internal_add_location();
  7205. public:
  7206. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& location(int index) const;
  7207. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* add_location();
  7208. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >&
  7209. location() const;
  7210. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo)
  7211. private:
  7212. class _Internal;
  7213. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7214. typedef void InternalArenaConstructable_;
  7215. typedef void DestructorSkippable_;
  7216. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location > location_;
  7217. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7218. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7219. };
  7220. // -------------------------------------------------------------------
  7221. class PROTOBUF_EXPORT GeneratedCodeInfo_Annotation final :
  7222. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo.Annotation) */ {
  7223. public:
  7224. inline GeneratedCodeInfo_Annotation() : GeneratedCodeInfo_Annotation(nullptr) {}
  7225. ~GeneratedCodeInfo_Annotation() override;
  7226. explicit constexpr GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  7227. GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from);
  7228. GeneratedCodeInfo_Annotation(GeneratedCodeInfo_Annotation&& from) noexcept
  7229. : GeneratedCodeInfo_Annotation() {
  7230. *this = ::std::move(from);
  7231. }
  7232. inline GeneratedCodeInfo_Annotation& operator=(const GeneratedCodeInfo_Annotation& from) {
  7233. CopyFrom(from);
  7234. return *this;
  7235. }
  7236. inline GeneratedCodeInfo_Annotation& operator=(GeneratedCodeInfo_Annotation&& from) noexcept {
  7237. if (this == &from) return *this;
  7238. if (GetOwningArena() == from.GetOwningArena()
  7239. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  7240. && GetOwningArena() != nullptr
  7241. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  7242. ) {
  7243. InternalSwap(&from);
  7244. } else {
  7245. CopyFrom(from);
  7246. }
  7247. return *this;
  7248. }
  7249. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  7250. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  7251. }
  7252. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  7253. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7254. }
  7255. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  7256. return GetDescriptor();
  7257. }
  7258. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  7259. return default_instance().GetMetadata().descriptor;
  7260. }
  7261. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  7262. return default_instance().GetMetadata().reflection;
  7263. }
  7264. static const GeneratedCodeInfo_Annotation& default_instance() {
  7265. return *internal_default_instance();
  7266. }
  7267. static inline const GeneratedCodeInfo_Annotation* internal_default_instance() {
  7268. return reinterpret_cast<const GeneratedCodeInfo_Annotation*>(
  7269. &_GeneratedCodeInfo_Annotation_default_instance_);
  7270. }
  7271. static constexpr int kIndexInFileMessages =
  7272. 25;
  7273. friend void swap(GeneratedCodeInfo_Annotation& a, GeneratedCodeInfo_Annotation& b) {
  7274. a.Swap(&b);
  7275. }
  7276. inline void Swap(GeneratedCodeInfo_Annotation* other) {
  7277. if (other == this) return;
  7278. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7279. if (GetOwningArena() != nullptr &&
  7280. GetOwningArena() == other->GetOwningArena()) {
  7281. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7282. if (GetOwningArena() == other->GetOwningArena()) {
  7283. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7284. InternalSwap(other);
  7285. } else {
  7286. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7287. }
  7288. }
  7289. void UnsafeArenaSwap(GeneratedCodeInfo_Annotation* other) {
  7290. if (other == this) return;
  7291. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7292. InternalSwap(other);
  7293. }
  7294. // implements Message ----------------------------------------------
  7295. GeneratedCodeInfo_Annotation* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  7296. return CreateMaybeMessage<GeneratedCodeInfo_Annotation>(arena);
  7297. }
  7298. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7299. void CopyFrom(const GeneratedCodeInfo_Annotation& from);
  7300. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7301. void MergeFrom(const GeneratedCodeInfo_Annotation& from);
  7302. private:
  7303. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  7304. public:
  7305. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7306. bool IsInitialized() const final;
  7307. size_t ByteSizeLong() const final;
  7308. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7309. uint8_t* _InternalSerialize(
  7310. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  7311. int GetCachedSize() const final { return _cached_size_.Get(); }
  7312. private:
  7313. void SharedCtor();
  7314. void SharedDtor();
  7315. void SetCachedSize(int size) const final;
  7316. void InternalSwap(GeneratedCodeInfo_Annotation* other);
  7317. private:
  7318. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7319. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  7320. return "google.protobuf.GeneratedCodeInfo.Annotation";
  7321. }
  7322. protected:
  7323. explicit GeneratedCodeInfo_Annotation(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7324. bool is_message_owned = false);
  7325. private:
  7326. static void ArenaDtor(void* object);
  7327. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  7328. public:
  7329. static const ClassData _class_data_;
  7330. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  7331. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7332. // nested types ----------------------------------------------------
  7333. // accessors -------------------------------------------------------
  7334. enum : int {
  7335. kPathFieldNumber = 1,
  7336. kSourceFileFieldNumber = 2,
  7337. kBeginFieldNumber = 3,
  7338. kEndFieldNumber = 4,
  7339. };
  7340. // repeated int32 path = 1 [packed = true];
  7341. int path_size() const;
  7342. private:
  7343. int _internal_path_size() const;
  7344. public:
  7345. void clear_path();
  7346. private:
  7347. int32_t _internal_path(int index) const;
  7348. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7349. _internal_path() const;
  7350. void _internal_add_path(int32_t value);
  7351. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7352. _internal_mutable_path();
  7353. public:
  7354. int32_t path(int index) const;
  7355. void set_path(int index, int32_t value);
  7356. void add_path(int32_t value);
  7357. const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7358. path() const;
  7359. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7360. mutable_path();
  7361. // optional string source_file = 2;
  7362. bool has_source_file() const;
  7363. private:
  7364. bool _internal_has_source_file() const;
  7365. public:
  7366. void clear_source_file();
  7367. const std::string& source_file() const;
  7368. template <typename ArgT0 = const std::string&, typename... ArgT>
  7369. void set_source_file(ArgT0&& arg0, ArgT... args);
  7370. std::string* mutable_source_file();
  7371. PROTOBUF_NODISCARD std::string* release_source_file();
  7372. void set_allocated_source_file(std::string* source_file);
  7373. private:
  7374. const std::string& _internal_source_file() const;
  7375. inline PROTOBUF_ALWAYS_INLINE void _internal_set_source_file(const std::string& value);
  7376. std::string* _internal_mutable_source_file();
  7377. public:
  7378. // optional int32 begin = 3;
  7379. bool has_begin() const;
  7380. private:
  7381. bool _internal_has_begin() const;
  7382. public:
  7383. void clear_begin();
  7384. int32_t begin() const;
  7385. void set_begin(int32_t value);
  7386. private:
  7387. int32_t _internal_begin() const;
  7388. void _internal_set_begin(int32_t value);
  7389. public:
  7390. // optional int32 end = 4;
  7391. bool has_end() const;
  7392. private:
  7393. bool _internal_has_end() const;
  7394. public:
  7395. void clear_end();
  7396. int32_t end() const;
  7397. void set_end(int32_t value);
  7398. private:
  7399. int32_t _internal_end() const;
  7400. void _internal_set_end(int32_t value);
  7401. public:
  7402. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo.Annotation)
  7403. private:
  7404. class _Internal;
  7405. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7406. typedef void InternalArenaConstructable_;
  7407. typedef void DestructorSkippable_;
  7408. ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
  7409. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7410. ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > path_;
  7411. mutable std::atomic<int> _path_cached_byte_size_;
  7412. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr source_file_;
  7413. int32_t begin_;
  7414. int32_t end_;
  7415. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7416. };
  7417. // -------------------------------------------------------------------
  7418. class PROTOBUF_EXPORT GeneratedCodeInfo final :
  7419. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo) */ {
  7420. public:
  7421. inline GeneratedCodeInfo() : GeneratedCodeInfo(nullptr) {}
  7422. ~GeneratedCodeInfo() override;
  7423. explicit constexpr GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
  7424. GeneratedCodeInfo(const GeneratedCodeInfo& from);
  7425. GeneratedCodeInfo(GeneratedCodeInfo&& from) noexcept
  7426. : GeneratedCodeInfo() {
  7427. *this = ::std::move(from);
  7428. }
  7429. inline GeneratedCodeInfo& operator=(const GeneratedCodeInfo& from) {
  7430. CopyFrom(from);
  7431. return *this;
  7432. }
  7433. inline GeneratedCodeInfo& operator=(GeneratedCodeInfo&& from) noexcept {
  7434. if (this == &from) return *this;
  7435. if (GetOwningArena() == from.GetOwningArena()
  7436. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  7437. && GetOwningArena() != nullptr
  7438. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  7439. ) {
  7440. InternalSwap(&from);
  7441. } else {
  7442. CopyFrom(from);
  7443. }
  7444. return *this;
  7445. }
  7446. inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
  7447. return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
  7448. }
  7449. inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
  7450. return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  7451. }
  7452. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  7453. return GetDescriptor();
  7454. }
  7455. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  7456. return default_instance().GetMetadata().descriptor;
  7457. }
  7458. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  7459. return default_instance().GetMetadata().reflection;
  7460. }
  7461. static const GeneratedCodeInfo& default_instance() {
  7462. return *internal_default_instance();
  7463. }
  7464. static inline const GeneratedCodeInfo* internal_default_instance() {
  7465. return reinterpret_cast<const GeneratedCodeInfo*>(
  7466. &_GeneratedCodeInfo_default_instance_);
  7467. }
  7468. static constexpr int kIndexInFileMessages =
  7469. 26;
  7470. friend void swap(GeneratedCodeInfo& a, GeneratedCodeInfo& b) {
  7471. a.Swap(&b);
  7472. }
  7473. inline void Swap(GeneratedCodeInfo* other) {
  7474. if (other == this) return;
  7475. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  7476. if (GetOwningArena() != nullptr &&
  7477. GetOwningArena() == other->GetOwningArena()) {
  7478. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  7479. if (GetOwningArena() == other->GetOwningArena()) {
  7480. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  7481. InternalSwap(other);
  7482. } else {
  7483. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  7484. }
  7485. }
  7486. void UnsafeArenaSwap(GeneratedCodeInfo* other) {
  7487. if (other == this) return;
  7488. GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
  7489. InternalSwap(other);
  7490. }
  7491. // implements Message ----------------------------------------------
  7492. GeneratedCodeInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
  7493. return CreateMaybeMessage<GeneratedCodeInfo>(arena);
  7494. }
  7495. using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
  7496. void CopyFrom(const GeneratedCodeInfo& from);
  7497. using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
  7498. void MergeFrom(const GeneratedCodeInfo& from);
  7499. private:
  7500. static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from);
  7501. public:
  7502. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  7503. bool IsInitialized() const final;
  7504. size_t ByteSizeLong() const final;
  7505. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  7506. uint8_t* _InternalSerialize(
  7507. uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  7508. int GetCachedSize() const final { return _cached_size_.Get(); }
  7509. private:
  7510. void SharedCtor();
  7511. void SharedDtor();
  7512. void SetCachedSize(int size) const final;
  7513. void InternalSwap(GeneratedCodeInfo* other);
  7514. private:
  7515. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  7516. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  7517. return "google.protobuf.GeneratedCodeInfo";
  7518. }
  7519. protected:
  7520. explicit GeneratedCodeInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
  7521. bool is_message_owned = false);
  7522. private:
  7523. static void ArenaDtor(void* object);
  7524. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  7525. public:
  7526. static const ClassData _class_data_;
  7527. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
  7528. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  7529. // nested types ----------------------------------------------------
  7530. typedef GeneratedCodeInfo_Annotation Annotation;
  7531. // accessors -------------------------------------------------------
  7532. enum : int {
  7533. kAnnotationFieldNumber = 1,
  7534. };
  7535. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  7536. int annotation_size() const;
  7537. private:
  7538. int _internal_annotation_size() const;
  7539. public:
  7540. void clear_annotation();
  7541. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* mutable_annotation(int index);
  7542. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >*
  7543. mutable_annotation();
  7544. private:
  7545. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& _internal_annotation(int index) const;
  7546. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* _internal_add_annotation();
  7547. public:
  7548. const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& annotation(int index) const;
  7549. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* add_annotation();
  7550. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >&
  7551. annotation() const;
  7552. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo)
  7553. private:
  7554. class _Internal;
  7555. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  7556. typedef void InternalArenaConstructable_;
  7557. typedef void DestructorSkippable_;
  7558. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation > annotation_;
  7559. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  7560. friend struct ::TableStruct_google_2fprotobuf_2fdescriptor_2eproto;
  7561. };
  7562. // ===================================================================
  7563. // ===================================================================
  7564. #ifdef __GNUC__
  7565. #pragma GCC diagnostic push
  7566. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  7567. #endif // __GNUC__
  7568. // FileDescriptorSet
  7569. // repeated .google.protobuf.FileDescriptorProto file = 1;
  7570. inline int FileDescriptorSet::_internal_file_size() const {
  7571. return file_.size();
  7572. }
  7573. inline int FileDescriptorSet::file_size() const {
  7574. return _internal_file_size();
  7575. }
  7576. inline void FileDescriptorSet::clear_file() {
  7577. file_.Clear();
  7578. }
  7579. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
  7580. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
  7581. return file_.Mutable(index);
  7582. }
  7583. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >*
  7584. FileDescriptorSet::mutable_file() {
  7585. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
  7586. return &file_;
  7587. }
  7588. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& FileDescriptorSet::_internal_file(int index) const {
  7589. return file_.Get(index);
  7590. }
  7591. inline const ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto& FileDescriptorSet::file(int index) const {
  7592. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
  7593. return _internal_file(index);
  7594. }
  7595. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::_internal_add_file() {
  7596. return file_.Add();
  7597. }
  7598. inline ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* FileDescriptorSet::add_file() {
  7599. ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto* _add = _internal_add_file();
  7600. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
  7601. return _add;
  7602. }
  7603. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FileDescriptorProto >&
  7604. FileDescriptorSet::file() const {
  7605. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
  7606. return file_;
  7607. }
  7608. // -------------------------------------------------------------------
  7609. // FileDescriptorProto
  7610. // optional string name = 1;
  7611. inline bool FileDescriptorProto::_internal_has_name() const {
  7612. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  7613. return value;
  7614. }
  7615. inline bool FileDescriptorProto::has_name() const {
  7616. return _internal_has_name();
  7617. }
  7618. inline void FileDescriptorProto::clear_name() {
  7619. name_.ClearToEmpty();
  7620. _has_bits_[0] &= ~0x00000001u;
  7621. }
  7622. inline const std::string& FileDescriptorProto::name() const {
  7623. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
  7624. return _internal_name();
  7625. }
  7626. template <typename ArgT0, typename... ArgT>
  7627. inline PROTOBUF_ALWAYS_INLINE
  7628. void FileDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  7629. _has_bits_[0] |= 0x00000001u;
  7630. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  7631. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
  7632. }
  7633. inline std::string* FileDescriptorProto::mutable_name() {
  7634. std::string* _s = _internal_mutable_name();
  7635. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
  7636. return _s;
  7637. }
  7638. inline const std::string& FileDescriptorProto::_internal_name() const {
  7639. return name_.Get();
  7640. }
  7641. inline void FileDescriptorProto::_internal_set_name(const std::string& value) {
  7642. _has_bits_[0] |= 0x00000001u;
  7643. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  7644. }
  7645. inline std::string* FileDescriptorProto::_internal_mutable_name() {
  7646. _has_bits_[0] |= 0x00000001u;
  7647. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  7648. }
  7649. inline std::string* FileDescriptorProto::release_name() {
  7650. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name)
  7651. if (!_internal_has_name()) {
  7652. return nullptr;
  7653. }
  7654. _has_bits_[0] &= ~0x00000001u;
  7655. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  7656. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7657. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  7658. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7659. }
  7660. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7661. return p;
  7662. }
  7663. inline void FileDescriptorProto::set_allocated_name(std::string* name) {
  7664. if (name != nullptr) {
  7665. _has_bits_[0] |= 0x00000001u;
  7666. } else {
  7667. _has_bits_[0] &= ~0x00000001u;
  7668. }
  7669. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  7670. GetArenaForAllocation());
  7671. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7672. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  7673. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7674. }
  7675. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7676. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
  7677. }
  7678. // optional string package = 2;
  7679. inline bool FileDescriptorProto::_internal_has_package() const {
  7680. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  7681. return value;
  7682. }
  7683. inline bool FileDescriptorProto::has_package() const {
  7684. return _internal_has_package();
  7685. }
  7686. inline void FileDescriptorProto::clear_package() {
  7687. package_.ClearToEmpty();
  7688. _has_bits_[0] &= ~0x00000002u;
  7689. }
  7690. inline const std::string& FileDescriptorProto::package() const {
  7691. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
  7692. return _internal_package();
  7693. }
  7694. template <typename ArgT0, typename... ArgT>
  7695. inline PROTOBUF_ALWAYS_INLINE
  7696. void FileDescriptorProto::set_package(ArgT0&& arg0, ArgT... args) {
  7697. _has_bits_[0] |= 0x00000002u;
  7698. package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  7699. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
  7700. }
  7701. inline std::string* FileDescriptorProto::mutable_package() {
  7702. std::string* _s = _internal_mutable_package();
  7703. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
  7704. return _s;
  7705. }
  7706. inline const std::string& FileDescriptorProto::_internal_package() const {
  7707. return package_.Get();
  7708. }
  7709. inline void FileDescriptorProto::_internal_set_package(const std::string& value) {
  7710. _has_bits_[0] |= 0x00000002u;
  7711. package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  7712. }
  7713. inline std::string* FileDescriptorProto::_internal_mutable_package() {
  7714. _has_bits_[0] |= 0x00000002u;
  7715. return package_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  7716. }
  7717. inline std::string* FileDescriptorProto::release_package() {
  7718. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package)
  7719. if (!_internal_has_package()) {
  7720. return nullptr;
  7721. }
  7722. _has_bits_[0] &= ~0x00000002u;
  7723. auto* p = package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  7724. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7725. if (package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  7726. package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7727. }
  7728. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7729. return p;
  7730. }
  7731. inline void FileDescriptorProto::set_allocated_package(std::string* package) {
  7732. if (package != nullptr) {
  7733. _has_bits_[0] |= 0x00000002u;
  7734. } else {
  7735. _has_bits_[0] &= ~0x00000002u;
  7736. }
  7737. package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), package,
  7738. GetArenaForAllocation());
  7739. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7740. if (package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  7741. package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  7742. }
  7743. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  7744. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
  7745. }
  7746. // repeated string dependency = 3;
  7747. inline int FileDescriptorProto::_internal_dependency_size() const {
  7748. return dependency_.size();
  7749. }
  7750. inline int FileDescriptorProto::dependency_size() const {
  7751. return _internal_dependency_size();
  7752. }
  7753. inline void FileDescriptorProto::clear_dependency() {
  7754. dependency_.Clear();
  7755. }
  7756. inline std::string* FileDescriptorProto::add_dependency() {
  7757. std::string* _s = _internal_add_dependency();
  7758. // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency)
  7759. return _s;
  7760. }
  7761. inline const std::string& FileDescriptorProto::_internal_dependency(int index) const {
  7762. return dependency_.Get(index);
  7763. }
  7764. inline const std::string& FileDescriptorProto::dependency(int index) const {
  7765. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
  7766. return _internal_dependency(index);
  7767. }
  7768. inline std::string* FileDescriptorProto::mutable_dependency(int index) {
  7769. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
  7770. return dependency_.Mutable(index);
  7771. }
  7772. inline void FileDescriptorProto::set_dependency(int index, const std::string& value) {
  7773. dependency_.Mutable(index)->assign(value);
  7774. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  7775. }
  7776. inline void FileDescriptorProto::set_dependency(int index, std::string&& value) {
  7777. dependency_.Mutable(index)->assign(std::move(value));
  7778. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  7779. }
  7780. inline void FileDescriptorProto::set_dependency(int index, const char* value) {
  7781. GOOGLE_DCHECK(value != nullptr);
  7782. dependency_.Mutable(index)->assign(value);
  7783. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
  7784. }
  7785. inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
  7786. dependency_.Mutable(index)->assign(
  7787. reinterpret_cast<const char*>(value), size);
  7788. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
  7789. }
  7790. inline std::string* FileDescriptorProto::_internal_add_dependency() {
  7791. return dependency_.Add();
  7792. }
  7793. inline void FileDescriptorProto::add_dependency(const std::string& value) {
  7794. dependency_.Add()->assign(value);
  7795. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  7796. }
  7797. inline void FileDescriptorProto::add_dependency(std::string&& value) {
  7798. dependency_.Add(std::move(value));
  7799. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  7800. }
  7801. inline void FileDescriptorProto::add_dependency(const char* value) {
  7802. GOOGLE_DCHECK(value != nullptr);
  7803. dependency_.Add()->assign(value);
  7804. // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
  7805. }
  7806. inline void FileDescriptorProto::add_dependency(const char* value, size_t size) {
  7807. dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
  7808. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
  7809. }
  7810. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  7811. FileDescriptorProto::dependency() const {
  7812. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
  7813. return dependency_;
  7814. }
  7815. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  7816. FileDescriptorProto::mutable_dependency() {
  7817. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
  7818. return &dependency_;
  7819. }
  7820. // repeated int32 public_dependency = 10;
  7821. inline int FileDescriptorProto::_internal_public_dependency_size() const {
  7822. return public_dependency_.size();
  7823. }
  7824. inline int FileDescriptorProto::public_dependency_size() const {
  7825. return _internal_public_dependency_size();
  7826. }
  7827. inline void FileDescriptorProto::clear_public_dependency() {
  7828. public_dependency_.Clear();
  7829. }
  7830. inline int32_t FileDescriptorProto::_internal_public_dependency(int index) const {
  7831. return public_dependency_.Get(index);
  7832. }
  7833. inline int32_t FileDescriptorProto::public_dependency(int index) const {
  7834. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
  7835. return _internal_public_dependency(index);
  7836. }
  7837. inline void FileDescriptorProto::set_public_dependency(int index, int32_t value) {
  7838. public_dependency_.Set(index, value);
  7839. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
  7840. }
  7841. inline void FileDescriptorProto::_internal_add_public_dependency(int32_t value) {
  7842. public_dependency_.Add(value);
  7843. }
  7844. inline void FileDescriptorProto::add_public_dependency(int32_t value) {
  7845. _internal_add_public_dependency(value);
  7846. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
  7847. }
  7848. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7849. FileDescriptorProto::_internal_public_dependency() const {
  7850. return public_dependency_;
  7851. }
  7852. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7853. FileDescriptorProto::public_dependency() const {
  7854. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
  7855. return _internal_public_dependency();
  7856. }
  7857. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7858. FileDescriptorProto::_internal_mutable_public_dependency() {
  7859. return &public_dependency_;
  7860. }
  7861. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7862. FileDescriptorProto::mutable_public_dependency() {
  7863. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
  7864. return _internal_mutable_public_dependency();
  7865. }
  7866. // repeated int32 weak_dependency = 11;
  7867. inline int FileDescriptorProto::_internal_weak_dependency_size() const {
  7868. return weak_dependency_.size();
  7869. }
  7870. inline int FileDescriptorProto::weak_dependency_size() const {
  7871. return _internal_weak_dependency_size();
  7872. }
  7873. inline void FileDescriptorProto::clear_weak_dependency() {
  7874. weak_dependency_.Clear();
  7875. }
  7876. inline int32_t FileDescriptorProto::_internal_weak_dependency(int index) const {
  7877. return weak_dependency_.Get(index);
  7878. }
  7879. inline int32_t FileDescriptorProto::weak_dependency(int index) const {
  7880. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
  7881. return _internal_weak_dependency(index);
  7882. }
  7883. inline void FileDescriptorProto::set_weak_dependency(int index, int32_t value) {
  7884. weak_dependency_.Set(index, value);
  7885. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
  7886. }
  7887. inline void FileDescriptorProto::_internal_add_weak_dependency(int32_t value) {
  7888. weak_dependency_.Add(value);
  7889. }
  7890. inline void FileDescriptorProto::add_weak_dependency(int32_t value) {
  7891. _internal_add_weak_dependency(value);
  7892. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
  7893. }
  7894. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7895. FileDescriptorProto::_internal_weak_dependency() const {
  7896. return weak_dependency_;
  7897. }
  7898. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  7899. FileDescriptorProto::weak_dependency() const {
  7900. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
  7901. return _internal_weak_dependency();
  7902. }
  7903. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7904. FileDescriptorProto::_internal_mutable_weak_dependency() {
  7905. return &weak_dependency_;
  7906. }
  7907. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  7908. FileDescriptorProto::mutable_weak_dependency() {
  7909. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
  7910. return _internal_mutable_weak_dependency();
  7911. }
  7912. // repeated .google.protobuf.DescriptorProto message_type = 4;
  7913. inline int FileDescriptorProto::_internal_message_type_size() const {
  7914. return message_type_.size();
  7915. }
  7916. inline int FileDescriptorProto::message_type_size() const {
  7917. return _internal_message_type_size();
  7918. }
  7919. inline void FileDescriptorProto::clear_message_type() {
  7920. message_type_.Clear();
  7921. }
  7922. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
  7923. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
  7924. return message_type_.Mutable(index);
  7925. }
  7926. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  7927. FileDescriptorProto::mutable_message_type() {
  7928. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
  7929. return &message_type_;
  7930. }
  7931. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& FileDescriptorProto::_internal_message_type(int index) const {
  7932. return message_type_.Get(index);
  7933. }
  7934. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& FileDescriptorProto::message_type(int index) const {
  7935. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
  7936. return _internal_message_type(index);
  7937. }
  7938. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::_internal_add_message_type() {
  7939. return message_type_.Add();
  7940. }
  7941. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* FileDescriptorProto::add_message_type() {
  7942. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _add = _internal_add_message_type();
  7943. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
  7944. return _add;
  7945. }
  7946. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  7947. FileDescriptorProto::message_type() const {
  7948. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
  7949. return message_type_;
  7950. }
  7951. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  7952. inline int FileDescriptorProto::_internal_enum_type_size() const {
  7953. return enum_type_.size();
  7954. }
  7955. inline int FileDescriptorProto::enum_type_size() const {
  7956. return _internal_enum_type_size();
  7957. }
  7958. inline void FileDescriptorProto::clear_enum_type() {
  7959. enum_type_.Clear();
  7960. }
  7961. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
  7962. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
  7963. return enum_type_.Mutable(index);
  7964. }
  7965. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  7966. FileDescriptorProto::mutable_enum_type() {
  7967. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
  7968. return &enum_type_;
  7969. }
  7970. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& FileDescriptorProto::_internal_enum_type(int index) const {
  7971. return enum_type_.Get(index);
  7972. }
  7973. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
  7974. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
  7975. return _internal_enum_type(index);
  7976. }
  7977. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::_internal_add_enum_type() {
  7978. return enum_type_.Add();
  7979. }
  7980. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
  7981. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _add = _internal_add_enum_type();
  7982. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
  7983. return _add;
  7984. }
  7985. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  7986. FileDescriptorProto::enum_type() const {
  7987. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
  7988. return enum_type_;
  7989. }
  7990. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  7991. inline int FileDescriptorProto::_internal_service_size() const {
  7992. return service_.size();
  7993. }
  7994. inline int FileDescriptorProto::service_size() const {
  7995. return _internal_service_size();
  7996. }
  7997. inline void FileDescriptorProto::clear_service() {
  7998. service_.Clear();
  7999. }
  8000. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
  8001. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
  8002. return service_.Mutable(index);
  8003. }
  8004. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >*
  8005. FileDescriptorProto::mutable_service() {
  8006. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
  8007. return &service_;
  8008. }
  8009. inline const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& FileDescriptorProto::_internal_service(int index) const {
  8010. return service_.Get(index);
  8011. }
  8012. inline const ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
  8013. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
  8014. return _internal_service(index);
  8015. }
  8016. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::_internal_add_service() {
  8017. return service_.Add();
  8018. }
  8019. inline ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* FileDescriptorProto::add_service() {
  8020. ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto* _add = _internal_add_service();
  8021. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
  8022. return _add;
  8023. }
  8024. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::ServiceDescriptorProto >&
  8025. FileDescriptorProto::service() const {
  8026. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
  8027. return service_;
  8028. }
  8029. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  8030. inline int FileDescriptorProto::_internal_extension_size() const {
  8031. return extension_.size();
  8032. }
  8033. inline int FileDescriptorProto::extension_size() const {
  8034. return _internal_extension_size();
  8035. }
  8036. inline void FileDescriptorProto::clear_extension() {
  8037. extension_.Clear();
  8038. }
  8039. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
  8040. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
  8041. return extension_.Mutable(index);
  8042. }
  8043. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  8044. FileDescriptorProto::mutable_extension() {
  8045. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
  8046. return &extension_;
  8047. }
  8048. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& FileDescriptorProto::_internal_extension(int index) const {
  8049. return extension_.Get(index);
  8050. }
  8051. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
  8052. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
  8053. return _internal_extension(index);
  8054. }
  8055. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::_internal_add_extension() {
  8056. return extension_.Add();
  8057. }
  8058. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* FileDescriptorProto::add_extension() {
  8059. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_extension();
  8060. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
  8061. return _add;
  8062. }
  8063. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  8064. FileDescriptorProto::extension() const {
  8065. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
  8066. return extension_;
  8067. }
  8068. // optional .google.protobuf.FileOptions options = 8;
  8069. inline bool FileDescriptorProto::_internal_has_options() const {
  8070. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  8071. PROTOBUF_ASSUME(!value || options_ != nullptr);
  8072. return value;
  8073. }
  8074. inline bool FileDescriptorProto::has_options() const {
  8075. return _internal_has_options();
  8076. }
  8077. inline void FileDescriptorProto::clear_options() {
  8078. if (options_ != nullptr) options_->Clear();
  8079. _has_bits_[0] &= ~0x00000008u;
  8080. }
  8081. inline const ::PROTOBUF_NAMESPACE_ID::FileOptions& FileDescriptorProto::_internal_options() const {
  8082. const ::PROTOBUF_NAMESPACE_ID::FileOptions* p = options_;
  8083. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::FileOptions&>(
  8084. ::PROTOBUF_NAMESPACE_ID::_FileOptions_default_instance_);
  8085. }
  8086. inline const ::PROTOBUF_NAMESPACE_ID::FileOptions& FileDescriptorProto::options() const {
  8087. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
  8088. return _internal_options();
  8089. }
  8090. inline void FileDescriptorProto::unsafe_arena_set_allocated_options(
  8091. ::PROTOBUF_NAMESPACE_ID::FileOptions* options) {
  8092. if (GetArenaForAllocation() == nullptr) {
  8093. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  8094. }
  8095. options_ = options;
  8096. if (options) {
  8097. _has_bits_[0] |= 0x00000008u;
  8098. } else {
  8099. _has_bits_[0] &= ~0x00000008u;
  8100. }
  8101. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.options)
  8102. }
  8103. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::release_options() {
  8104. _has_bits_[0] &= ~0x00000008u;
  8105. ::PROTOBUF_NAMESPACE_ID::FileOptions* temp = options_;
  8106. options_ = nullptr;
  8107. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8108. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8109. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8110. if (GetArenaForAllocation() == nullptr) { delete old; }
  8111. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8112. if (GetArenaForAllocation() != nullptr) {
  8113. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8114. }
  8115. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8116. return temp;
  8117. }
  8118. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::unsafe_arena_release_options() {
  8119. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.options)
  8120. _has_bits_[0] &= ~0x00000008u;
  8121. ::PROTOBUF_NAMESPACE_ID::FileOptions* temp = options_;
  8122. options_ = nullptr;
  8123. return temp;
  8124. }
  8125. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::_internal_mutable_options() {
  8126. _has_bits_[0] |= 0x00000008u;
  8127. if (options_ == nullptr) {
  8128. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FileOptions>(GetArenaForAllocation());
  8129. options_ = p;
  8130. }
  8131. return options_;
  8132. }
  8133. inline ::PROTOBUF_NAMESPACE_ID::FileOptions* FileDescriptorProto::mutable_options() {
  8134. ::PROTOBUF_NAMESPACE_ID::FileOptions* _msg = _internal_mutable_options();
  8135. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
  8136. return _msg;
  8137. }
  8138. inline void FileDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::FileOptions* options) {
  8139. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8140. if (message_arena == nullptr) {
  8141. delete options_;
  8142. }
  8143. if (options) {
  8144. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8145. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::FileOptions>::GetOwningArena(options);
  8146. if (message_arena != submessage_arena) {
  8147. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8148. message_arena, options, submessage_arena);
  8149. }
  8150. _has_bits_[0] |= 0x00000008u;
  8151. } else {
  8152. _has_bits_[0] &= ~0x00000008u;
  8153. }
  8154. options_ = options;
  8155. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
  8156. }
  8157. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  8158. inline bool FileDescriptorProto::_internal_has_source_code_info() const {
  8159. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  8160. PROTOBUF_ASSUME(!value || source_code_info_ != nullptr);
  8161. return value;
  8162. }
  8163. inline bool FileDescriptorProto::has_source_code_info() const {
  8164. return _internal_has_source_code_info();
  8165. }
  8166. inline void FileDescriptorProto::clear_source_code_info() {
  8167. if (source_code_info_ != nullptr) source_code_info_->Clear();
  8168. _has_bits_[0] &= ~0x00000010u;
  8169. }
  8170. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& FileDescriptorProto::_internal_source_code_info() const {
  8171. const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* p = source_code_info_;
  8172. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo&>(
  8173. ::PROTOBUF_NAMESPACE_ID::_SourceCodeInfo_default_instance_);
  8174. }
  8175. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
  8176. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
  8177. return _internal_source_code_info();
  8178. }
  8179. inline void FileDescriptorProto::unsafe_arena_set_allocated_source_code_info(
  8180. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info) {
  8181. if (GetArenaForAllocation() == nullptr) {
  8182. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_code_info_);
  8183. }
  8184. source_code_info_ = source_code_info;
  8185. if (source_code_info) {
  8186. _has_bits_[0] |= 0x00000010u;
  8187. } else {
  8188. _has_bits_[0] &= ~0x00000010u;
  8189. }
  8190. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  8191. }
  8192. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
  8193. _has_bits_[0] &= ~0x00000010u;
  8194. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* temp = source_code_info_;
  8195. source_code_info_ = nullptr;
  8196. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8197. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8198. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8199. if (GetArenaForAllocation() == nullptr) { delete old; }
  8200. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8201. if (GetArenaForAllocation() != nullptr) {
  8202. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8203. }
  8204. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8205. return temp;
  8206. }
  8207. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::unsafe_arena_release_source_code_info() {
  8208. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.source_code_info)
  8209. _has_bits_[0] &= ~0x00000010u;
  8210. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* temp = source_code_info_;
  8211. source_code_info_ = nullptr;
  8212. return temp;
  8213. }
  8214. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::_internal_mutable_source_code_info() {
  8215. _has_bits_[0] |= 0x00000010u;
  8216. if (source_code_info_ == nullptr) {
  8217. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo>(GetArenaForAllocation());
  8218. source_code_info_ = p;
  8219. }
  8220. return source_code_info_;
  8221. }
  8222. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
  8223. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* _msg = _internal_mutable_source_code_info();
  8224. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
  8225. return _msg;
  8226. }
  8227. inline void FileDescriptorProto::set_allocated_source_code_info(::PROTOBUF_NAMESPACE_ID::SourceCodeInfo* source_code_info) {
  8228. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8229. if (message_arena == nullptr) {
  8230. delete source_code_info_;
  8231. }
  8232. if (source_code_info) {
  8233. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8234. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::SourceCodeInfo>::GetOwningArena(source_code_info);
  8235. if (message_arena != submessage_arena) {
  8236. source_code_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8237. message_arena, source_code_info, submessage_arena);
  8238. }
  8239. _has_bits_[0] |= 0x00000010u;
  8240. } else {
  8241. _has_bits_[0] &= ~0x00000010u;
  8242. }
  8243. source_code_info_ = source_code_info;
  8244. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  8245. }
  8246. // optional string syntax = 12;
  8247. inline bool FileDescriptorProto::_internal_has_syntax() const {
  8248. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  8249. return value;
  8250. }
  8251. inline bool FileDescriptorProto::has_syntax() const {
  8252. return _internal_has_syntax();
  8253. }
  8254. inline void FileDescriptorProto::clear_syntax() {
  8255. syntax_.ClearToEmpty();
  8256. _has_bits_[0] &= ~0x00000004u;
  8257. }
  8258. inline const std::string& FileDescriptorProto::syntax() const {
  8259. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
  8260. return _internal_syntax();
  8261. }
  8262. template <typename ArgT0, typename... ArgT>
  8263. inline PROTOBUF_ALWAYS_INLINE
  8264. void FileDescriptorProto::set_syntax(ArgT0&& arg0, ArgT... args) {
  8265. _has_bits_[0] |= 0x00000004u;
  8266. syntax_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  8267. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
  8268. }
  8269. inline std::string* FileDescriptorProto::mutable_syntax() {
  8270. std::string* _s = _internal_mutable_syntax();
  8271. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
  8272. return _s;
  8273. }
  8274. inline const std::string& FileDescriptorProto::_internal_syntax() const {
  8275. return syntax_.Get();
  8276. }
  8277. inline void FileDescriptorProto::_internal_set_syntax(const std::string& value) {
  8278. _has_bits_[0] |= 0x00000004u;
  8279. syntax_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  8280. }
  8281. inline std::string* FileDescriptorProto::_internal_mutable_syntax() {
  8282. _has_bits_[0] |= 0x00000004u;
  8283. return syntax_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  8284. }
  8285. inline std::string* FileDescriptorProto::release_syntax() {
  8286. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax)
  8287. if (!_internal_has_syntax()) {
  8288. return nullptr;
  8289. }
  8290. _has_bits_[0] &= ~0x00000004u;
  8291. auto* p = syntax_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  8292. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8293. if (syntax_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  8294. syntax_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8295. }
  8296. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8297. return p;
  8298. }
  8299. inline void FileDescriptorProto::set_allocated_syntax(std::string* syntax) {
  8300. if (syntax != nullptr) {
  8301. _has_bits_[0] |= 0x00000004u;
  8302. } else {
  8303. _has_bits_[0] &= ~0x00000004u;
  8304. }
  8305. syntax_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), syntax,
  8306. GetArenaForAllocation());
  8307. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8308. if (syntax_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  8309. syntax_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8310. }
  8311. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8312. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
  8313. }
  8314. // -------------------------------------------------------------------
  8315. // DescriptorProto_ExtensionRange
  8316. // optional int32 start = 1;
  8317. inline bool DescriptorProto_ExtensionRange::_internal_has_start() const {
  8318. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  8319. return value;
  8320. }
  8321. inline bool DescriptorProto_ExtensionRange::has_start() const {
  8322. return _internal_has_start();
  8323. }
  8324. inline void DescriptorProto_ExtensionRange::clear_start() {
  8325. start_ = 0;
  8326. _has_bits_[0] &= ~0x00000002u;
  8327. }
  8328. inline int32_t DescriptorProto_ExtensionRange::_internal_start() const {
  8329. return start_;
  8330. }
  8331. inline int32_t DescriptorProto_ExtensionRange::start() const {
  8332. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
  8333. return _internal_start();
  8334. }
  8335. inline void DescriptorProto_ExtensionRange::_internal_set_start(int32_t value) {
  8336. _has_bits_[0] |= 0x00000002u;
  8337. start_ = value;
  8338. }
  8339. inline void DescriptorProto_ExtensionRange::set_start(int32_t value) {
  8340. _internal_set_start(value);
  8341. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
  8342. }
  8343. // optional int32 end = 2;
  8344. inline bool DescriptorProto_ExtensionRange::_internal_has_end() const {
  8345. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  8346. return value;
  8347. }
  8348. inline bool DescriptorProto_ExtensionRange::has_end() const {
  8349. return _internal_has_end();
  8350. }
  8351. inline void DescriptorProto_ExtensionRange::clear_end() {
  8352. end_ = 0;
  8353. _has_bits_[0] &= ~0x00000004u;
  8354. }
  8355. inline int32_t DescriptorProto_ExtensionRange::_internal_end() const {
  8356. return end_;
  8357. }
  8358. inline int32_t DescriptorProto_ExtensionRange::end() const {
  8359. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
  8360. return _internal_end();
  8361. }
  8362. inline void DescriptorProto_ExtensionRange::_internal_set_end(int32_t value) {
  8363. _has_bits_[0] |= 0x00000004u;
  8364. end_ = value;
  8365. }
  8366. inline void DescriptorProto_ExtensionRange::set_end(int32_t value) {
  8367. _internal_set_end(value);
  8368. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
  8369. }
  8370. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  8371. inline bool DescriptorProto_ExtensionRange::_internal_has_options() const {
  8372. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  8373. PROTOBUF_ASSUME(!value || options_ != nullptr);
  8374. return value;
  8375. }
  8376. inline bool DescriptorProto_ExtensionRange::has_options() const {
  8377. return _internal_has_options();
  8378. }
  8379. inline void DescriptorProto_ExtensionRange::clear_options() {
  8380. if (options_ != nullptr) options_->Clear();
  8381. _has_bits_[0] &= ~0x00000001u;
  8382. }
  8383. inline const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& DescriptorProto_ExtensionRange::_internal_options() const {
  8384. const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* p = options_;
  8385. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions&>(
  8386. ::PROTOBUF_NAMESPACE_ID::_ExtensionRangeOptions_default_instance_);
  8387. }
  8388. inline const ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions& DescriptorProto_ExtensionRange::options() const {
  8389. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.options)
  8390. return _internal_options();
  8391. }
  8392. inline void DescriptorProto_ExtensionRange::unsafe_arena_set_allocated_options(
  8393. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options) {
  8394. if (GetArenaForAllocation() == nullptr) {
  8395. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  8396. }
  8397. options_ = options;
  8398. if (options) {
  8399. _has_bits_[0] |= 0x00000001u;
  8400. } else {
  8401. _has_bits_[0] &= ~0x00000001u;
  8402. }
  8403. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  8404. }
  8405. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::release_options() {
  8406. _has_bits_[0] &= ~0x00000001u;
  8407. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* temp = options_;
  8408. options_ = nullptr;
  8409. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8410. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8411. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8412. if (GetArenaForAllocation() == nullptr) { delete old; }
  8413. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8414. if (GetArenaForAllocation() != nullptr) {
  8415. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8416. }
  8417. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8418. return temp;
  8419. }
  8420. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::unsafe_arena_release_options() {
  8421. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.ExtensionRange.options)
  8422. _has_bits_[0] &= ~0x00000001u;
  8423. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* temp = options_;
  8424. options_ = nullptr;
  8425. return temp;
  8426. }
  8427. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::_internal_mutable_options() {
  8428. _has_bits_[0] |= 0x00000001u;
  8429. if (options_ == nullptr) {
  8430. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>(GetArenaForAllocation());
  8431. options_ = p;
  8432. }
  8433. return options_;
  8434. }
  8435. inline ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* DescriptorProto_ExtensionRange::mutable_options() {
  8436. ::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* _msg = _internal_mutable_options();
  8437. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.ExtensionRange.options)
  8438. return _msg;
  8439. }
  8440. inline void DescriptorProto_ExtensionRange::set_allocated_options(::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions* options) {
  8441. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8442. if (message_arena == nullptr) {
  8443. delete options_;
  8444. }
  8445. if (options) {
  8446. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8447. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::ExtensionRangeOptions>::GetOwningArena(options);
  8448. if (message_arena != submessage_arena) {
  8449. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8450. message_arena, options, submessage_arena);
  8451. }
  8452. _has_bits_[0] |= 0x00000001u;
  8453. } else {
  8454. _has_bits_[0] &= ~0x00000001u;
  8455. }
  8456. options_ = options;
  8457. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  8458. }
  8459. // -------------------------------------------------------------------
  8460. // DescriptorProto_ReservedRange
  8461. // optional int32 start = 1;
  8462. inline bool DescriptorProto_ReservedRange::_internal_has_start() const {
  8463. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  8464. return value;
  8465. }
  8466. inline bool DescriptorProto_ReservedRange::has_start() const {
  8467. return _internal_has_start();
  8468. }
  8469. inline void DescriptorProto_ReservedRange::clear_start() {
  8470. start_ = 0;
  8471. _has_bits_[0] &= ~0x00000001u;
  8472. }
  8473. inline int32_t DescriptorProto_ReservedRange::_internal_start() const {
  8474. return start_;
  8475. }
  8476. inline int32_t DescriptorProto_ReservedRange::start() const {
  8477. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
  8478. return _internal_start();
  8479. }
  8480. inline void DescriptorProto_ReservedRange::_internal_set_start(int32_t value) {
  8481. _has_bits_[0] |= 0x00000001u;
  8482. start_ = value;
  8483. }
  8484. inline void DescriptorProto_ReservedRange::set_start(int32_t value) {
  8485. _internal_set_start(value);
  8486. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
  8487. }
  8488. // optional int32 end = 2;
  8489. inline bool DescriptorProto_ReservedRange::_internal_has_end() const {
  8490. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  8491. return value;
  8492. }
  8493. inline bool DescriptorProto_ReservedRange::has_end() const {
  8494. return _internal_has_end();
  8495. }
  8496. inline void DescriptorProto_ReservedRange::clear_end() {
  8497. end_ = 0;
  8498. _has_bits_[0] &= ~0x00000002u;
  8499. }
  8500. inline int32_t DescriptorProto_ReservedRange::_internal_end() const {
  8501. return end_;
  8502. }
  8503. inline int32_t DescriptorProto_ReservedRange::end() const {
  8504. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
  8505. return _internal_end();
  8506. }
  8507. inline void DescriptorProto_ReservedRange::_internal_set_end(int32_t value) {
  8508. _has_bits_[0] |= 0x00000002u;
  8509. end_ = value;
  8510. }
  8511. inline void DescriptorProto_ReservedRange::set_end(int32_t value) {
  8512. _internal_set_end(value);
  8513. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
  8514. }
  8515. // -------------------------------------------------------------------
  8516. // DescriptorProto
  8517. // optional string name = 1;
  8518. inline bool DescriptorProto::_internal_has_name() const {
  8519. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  8520. return value;
  8521. }
  8522. inline bool DescriptorProto::has_name() const {
  8523. return _internal_has_name();
  8524. }
  8525. inline void DescriptorProto::clear_name() {
  8526. name_.ClearToEmpty();
  8527. _has_bits_[0] &= ~0x00000001u;
  8528. }
  8529. inline const std::string& DescriptorProto::name() const {
  8530. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
  8531. return _internal_name();
  8532. }
  8533. template <typename ArgT0, typename... ArgT>
  8534. inline PROTOBUF_ALWAYS_INLINE
  8535. void DescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  8536. _has_bits_[0] |= 0x00000001u;
  8537. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  8538. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
  8539. }
  8540. inline std::string* DescriptorProto::mutable_name() {
  8541. std::string* _s = _internal_mutable_name();
  8542. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
  8543. return _s;
  8544. }
  8545. inline const std::string& DescriptorProto::_internal_name() const {
  8546. return name_.Get();
  8547. }
  8548. inline void DescriptorProto::_internal_set_name(const std::string& value) {
  8549. _has_bits_[0] |= 0x00000001u;
  8550. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  8551. }
  8552. inline std::string* DescriptorProto::_internal_mutable_name() {
  8553. _has_bits_[0] |= 0x00000001u;
  8554. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  8555. }
  8556. inline std::string* DescriptorProto::release_name() {
  8557. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name)
  8558. if (!_internal_has_name()) {
  8559. return nullptr;
  8560. }
  8561. _has_bits_[0] &= ~0x00000001u;
  8562. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  8563. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8564. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  8565. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8566. }
  8567. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8568. return p;
  8569. }
  8570. inline void DescriptorProto::set_allocated_name(std::string* name) {
  8571. if (name != nullptr) {
  8572. _has_bits_[0] |= 0x00000001u;
  8573. } else {
  8574. _has_bits_[0] &= ~0x00000001u;
  8575. }
  8576. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  8577. GetArenaForAllocation());
  8578. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8579. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  8580. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  8581. }
  8582. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  8583. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
  8584. }
  8585. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  8586. inline int DescriptorProto::_internal_field_size() const {
  8587. return field_.size();
  8588. }
  8589. inline int DescriptorProto::field_size() const {
  8590. return _internal_field_size();
  8591. }
  8592. inline void DescriptorProto::clear_field() {
  8593. field_.Clear();
  8594. }
  8595. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
  8596. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
  8597. return field_.Mutable(index);
  8598. }
  8599. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  8600. DescriptorProto::mutable_field() {
  8601. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
  8602. return &field_;
  8603. }
  8604. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::_internal_field(int index) const {
  8605. return field_.Get(index);
  8606. }
  8607. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::field(int index) const {
  8608. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
  8609. return _internal_field(index);
  8610. }
  8611. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::_internal_add_field() {
  8612. return field_.Add();
  8613. }
  8614. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::add_field() {
  8615. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_field();
  8616. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
  8617. return _add;
  8618. }
  8619. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  8620. DescriptorProto::field() const {
  8621. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
  8622. return field_;
  8623. }
  8624. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  8625. inline int DescriptorProto::_internal_extension_size() const {
  8626. return extension_.size();
  8627. }
  8628. inline int DescriptorProto::extension_size() const {
  8629. return _internal_extension_size();
  8630. }
  8631. inline void DescriptorProto::clear_extension() {
  8632. extension_.Clear();
  8633. }
  8634. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
  8635. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
  8636. return extension_.Mutable(index);
  8637. }
  8638. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >*
  8639. DescriptorProto::mutable_extension() {
  8640. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
  8641. return &extension_;
  8642. }
  8643. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::_internal_extension(int index) const {
  8644. return extension_.Get(index);
  8645. }
  8646. inline const ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto& DescriptorProto::extension(int index) const {
  8647. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
  8648. return _internal_extension(index);
  8649. }
  8650. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::_internal_add_extension() {
  8651. return extension_.Add();
  8652. }
  8653. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* DescriptorProto::add_extension() {
  8654. ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto* _add = _internal_add_extension();
  8655. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
  8656. return _add;
  8657. }
  8658. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto >&
  8659. DescriptorProto::extension() const {
  8660. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
  8661. return extension_;
  8662. }
  8663. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  8664. inline int DescriptorProto::_internal_nested_type_size() const {
  8665. return nested_type_.size();
  8666. }
  8667. inline int DescriptorProto::nested_type_size() const {
  8668. return _internal_nested_type_size();
  8669. }
  8670. inline void DescriptorProto::clear_nested_type() {
  8671. nested_type_.Clear();
  8672. }
  8673. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
  8674. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
  8675. return nested_type_.Mutable(index);
  8676. }
  8677. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >*
  8678. DescriptorProto::mutable_nested_type() {
  8679. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
  8680. return &nested_type_;
  8681. }
  8682. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& DescriptorProto::_internal_nested_type(int index) const {
  8683. return nested_type_.Get(index);
  8684. }
  8685. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto& DescriptorProto::nested_type(int index) const {
  8686. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
  8687. return _internal_nested_type(index);
  8688. }
  8689. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::_internal_add_nested_type() {
  8690. return nested_type_.Add();
  8691. }
  8692. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto* DescriptorProto::add_nested_type() {
  8693. ::PROTOBUF_NAMESPACE_ID::DescriptorProto* _add = _internal_add_nested_type();
  8694. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
  8695. return _add;
  8696. }
  8697. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto >&
  8698. DescriptorProto::nested_type() const {
  8699. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
  8700. return nested_type_;
  8701. }
  8702. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  8703. inline int DescriptorProto::_internal_enum_type_size() const {
  8704. return enum_type_.size();
  8705. }
  8706. inline int DescriptorProto::enum_type_size() const {
  8707. return _internal_enum_type_size();
  8708. }
  8709. inline void DescriptorProto::clear_enum_type() {
  8710. enum_type_.Clear();
  8711. }
  8712. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
  8713. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
  8714. return enum_type_.Mutable(index);
  8715. }
  8716. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >*
  8717. DescriptorProto::mutable_enum_type() {
  8718. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
  8719. return &enum_type_;
  8720. }
  8721. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& DescriptorProto::_internal_enum_type(int index) const {
  8722. return enum_type_.Get(index);
  8723. }
  8724. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
  8725. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
  8726. return _internal_enum_type(index);
  8727. }
  8728. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::_internal_add_enum_type() {
  8729. return enum_type_.Add();
  8730. }
  8731. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* DescriptorProto::add_enum_type() {
  8732. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto* _add = _internal_add_enum_type();
  8733. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
  8734. return _add;
  8735. }
  8736. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto >&
  8737. DescriptorProto::enum_type() const {
  8738. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
  8739. return enum_type_;
  8740. }
  8741. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  8742. inline int DescriptorProto::_internal_extension_range_size() const {
  8743. return extension_range_.size();
  8744. }
  8745. inline int DescriptorProto::extension_range_size() const {
  8746. return _internal_extension_range_size();
  8747. }
  8748. inline void DescriptorProto::clear_extension_range() {
  8749. extension_range_.Clear();
  8750. }
  8751. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
  8752. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
  8753. return extension_range_.Mutable(index);
  8754. }
  8755. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >*
  8756. DescriptorProto::mutable_extension_range() {
  8757. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
  8758. return &extension_range_;
  8759. }
  8760. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& DescriptorProto::_internal_extension_range(int index) const {
  8761. return extension_range_.Get(index);
  8762. }
  8763. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
  8764. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
  8765. return _internal_extension_range(index);
  8766. }
  8767. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::_internal_add_extension_range() {
  8768. return extension_range_.Add();
  8769. }
  8770. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
  8771. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange* _add = _internal_add_extension_range();
  8772. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
  8773. return _add;
  8774. }
  8775. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ExtensionRange >&
  8776. DescriptorProto::extension_range() const {
  8777. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
  8778. return extension_range_;
  8779. }
  8780. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  8781. inline int DescriptorProto::_internal_oneof_decl_size() const {
  8782. return oneof_decl_.size();
  8783. }
  8784. inline int DescriptorProto::oneof_decl_size() const {
  8785. return _internal_oneof_decl_size();
  8786. }
  8787. inline void DescriptorProto::clear_oneof_decl() {
  8788. oneof_decl_.Clear();
  8789. }
  8790. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
  8791. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
  8792. return oneof_decl_.Mutable(index);
  8793. }
  8794. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >*
  8795. DescriptorProto::mutable_oneof_decl() {
  8796. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
  8797. return &oneof_decl_;
  8798. }
  8799. inline const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& DescriptorProto::_internal_oneof_decl(int index) const {
  8800. return oneof_decl_.Get(index);
  8801. }
  8802. inline const ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
  8803. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
  8804. return _internal_oneof_decl(index);
  8805. }
  8806. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::_internal_add_oneof_decl() {
  8807. return oneof_decl_.Add();
  8808. }
  8809. inline ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
  8810. ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto* _add = _internal_add_oneof_decl();
  8811. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
  8812. return _add;
  8813. }
  8814. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::OneofDescriptorProto >&
  8815. DescriptorProto::oneof_decl() const {
  8816. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
  8817. return oneof_decl_;
  8818. }
  8819. // optional .google.protobuf.MessageOptions options = 7;
  8820. inline bool DescriptorProto::_internal_has_options() const {
  8821. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  8822. PROTOBUF_ASSUME(!value || options_ != nullptr);
  8823. return value;
  8824. }
  8825. inline bool DescriptorProto::has_options() const {
  8826. return _internal_has_options();
  8827. }
  8828. inline void DescriptorProto::clear_options() {
  8829. if (options_ != nullptr) options_->Clear();
  8830. _has_bits_[0] &= ~0x00000002u;
  8831. }
  8832. inline const ::PROTOBUF_NAMESPACE_ID::MessageOptions& DescriptorProto::_internal_options() const {
  8833. const ::PROTOBUF_NAMESPACE_ID::MessageOptions* p = options_;
  8834. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::MessageOptions&>(
  8835. ::PROTOBUF_NAMESPACE_ID::_MessageOptions_default_instance_);
  8836. }
  8837. inline const ::PROTOBUF_NAMESPACE_ID::MessageOptions& DescriptorProto::options() const {
  8838. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
  8839. return _internal_options();
  8840. }
  8841. inline void DescriptorProto::unsafe_arena_set_allocated_options(
  8842. ::PROTOBUF_NAMESPACE_ID::MessageOptions* options) {
  8843. if (GetArenaForAllocation() == nullptr) {
  8844. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  8845. }
  8846. options_ = options;
  8847. if (options) {
  8848. _has_bits_[0] |= 0x00000002u;
  8849. } else {
  8850. _has_bits_[0] &= ~0x00000002u;
  8851. }
  8852. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.options)
  8853. }
  8854. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::release_options() {
  8855. _has_bits_[0] &= ~0x00000002u;
  8856. ::PROTOBUF_NAMESPACE_ID::MessageOptions* temp = options_;
  8857. options_ = nullptr;
  8858. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  8859. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  8860. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8861. if (GetArenaForAllocation() == nullptr) { delete old; }
  8862. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  8863. if (GetArenaForAllocation() != nullptr) {
  8864. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  8865. }
  8866. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  8867. return temp;
  8868. }
  8869. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::unsafe_arena_release_options() {
  8870. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.options)
  8871. _has_bits_[0] &= ~0x00000002u;
  8872. ::PROTOBUF_NAMESPACE_ID::MessageOptions* temp = options_;
  8873. options_ = nullptr;
  8874. return temp;
  8875. }
  8876. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::_internal_mutable_options() {
  8877. _has_bits_[0] |= 0x00000002u;
  8878. if (options_ == nullptr) {
  8879. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MessageOptions>(GetArenaForAllocation());
  8880. options_ = p;
  8881. }
  8882. return options_;
  8883. }
  8884. inline ::PROTOBUF_NAMESPACE_ID::MessageOptions* DescriptorProto::mutable_options() {
  8885. ::PROTOBUF_NAMESPACE_ID::MessageOptions* _msg = _internal_mutable_options();
  8886. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
  8887. return _msg;
  8888. }
  8889. inline void DescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::MessageOptions* options) {
  8890. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  8891. if (message_arena == nullptr) {
  8892. delete options_;
  8893. }
  8894. if (options) {
  8895. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  8896. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::MessageOptions>::GetOwningArena(options);
  8897. if (message_arena != submessage_arena) {
  8898. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  8899. message_arena, options, submessage_arena);
  8900. }
  8901. _has_bits_[0] |= 0x00000002u;
  8902. } else {
  8903. _has_bits_[0] &= ~0x00000002u;
  8904. }
  8905. options_ = options;
  8906. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
  8907. }
  8908. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  8909. inline int DescriptorProto::_internal_reserved_range_size() const {
  8910. return reserved_range_.size();
  8911. }
  8912. inline int DescriptorProto::reserved_range_size() const {
  8913. return _internal_reserved_range_size();
  8914. }
  8915. inline void DescriptorProto::clear_reserved_range() {
  8916. reserved_range_.Clear();
  8917. }
  8918. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) {
  8919. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
  8920. return reserved_range_.Mutable(index);
  8921. }
  8922. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >*
  8923. DescriptorProto::mutable_reserved_range() {
  8924. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
  8925. return &reserved_range_;
  8926. }
  8927. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& DescriptorProto::_internal_reserved_range(int index) const {
  8928. return reserved_range_.Get(index);
  8929. }
  8930. inline const ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const {
  8931. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
  8932. return _internal_reserved_range(index);
  8933. }
  8934. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::_internal_add_reserved_range() {
  8935. return reserved_range_.Add();
  8936. }
  8937. inline ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() {
  8938. ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange* _add = _internal_add_reserved_range();
  8939. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
  8940. return _add;
  8941. }
  8942. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::DescriptorProto_ReservedRange >&
  8943. DescriptorProto::reserved_range() const {
  8944. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
  8945. return reserved_range_;
  8946. }
  8947. // repeated string reserved_name = 10;
  8948. inline int DescriptorProto::_internal_reserved_name_size() const {
  8949. return reserved_name_.size();
  8950. }
  8951. inline int DescriptorProto::reserved_name_size() const {
  8952. return _internal_reserved_name_size();
  8953. }
  8954. inline void DescriptorProto::clear_reserved_name() {
  8955. reserved_name_.Clear();
  8956. }
  8957. inline std::string* DescriptorProto::add_reserved_name() {
  8958. std::string* _s = _internal_add_reserved_name();
  8959. // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name)
  8960. return _s;
  8961. }
  8962. inline const std::string& DescriptorProto::_internal_reserved_name(int index) const {
  8963. return reserved_name_.Get(index);
  8964. }
  8965. inline const std::string& DescriptorProto::reserved_name(int index) const {
  8966. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
  8967. return _internal_reserved_name(index);
  8968. }
  8969. inline std::string* DescriptorProto::mutable_reserved_name(int index) {
  8970. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
  8971. return reserved_name_.Mutable(index);
  8972. }
  8973. inline void DescriptorProto::set_reserved_name(int index, const std::string& value) {
  8974. reserved_name_.Mutable(index)->assign(value);
  8975. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  8976. }
  8977. inline void DescriptorProto::set_reserved_name(int index, std::string&& value) {
  8978. reserved_name_.Mutable(index)->assign(std::move(value));
  8979. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  8980. }
  8981. inline void DescriptorProto::set_reserved_name(int index, const char* value) {
  8982. GOOGLE_DCHECK(value != nullptr);
  8983. reserved_name_.Mutable(index)->assign(value);
  8984. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
  8985. }
  8986. inline void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  8987. reserved_name_.Mutable(index)->assign(
  8988. reinterpret_cast<const char*>(value), size);
  8989. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
  8990. }
  8991. inline std::string* DescriptorProto::_internal_add_reserved_name() {
  8992. return reserved_name_.Add();
  8993. }
  8994. inline void DescriptorProto::add_reserved_name(const std::string& value) {
  8995. reserved_name_.Add()->assign(value);
  8996. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  8997. }
  8998. inline void DescriptorProto::add_reserved_name(std::string&& value) {
  8999. reserved_name_.Add(std::move(value));
  9000. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  9001. }
  9002. inline void DescriptorProto::add_reserved_name(const char* value) {
  9003. GOOGLE_DCHECK(value != nullptr);
  9004. reserved_name_.Add()->assign(value);
  9005. // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
  9006. }
  9007. inline void DescriptorProto::add_reserved_name(const char* value, size_t size) {
  9008. reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  9009. // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
  9010. }
  9011. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  9012. DescriptorProto::reserved_name() const {
  9013. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
  9014. return reserved_name_;
  9015. }
  9016. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  9017. DescriptorProto::mutable_reserved_name() {
  9018. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
  9019. return &reserved_name_;
  9020. }
  9021. // -------------------------------------------------------------------
  9022. // ExtensionRangeOptions
  9023. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9024. inline int ExtensionRangeOptions::_internal_uninterpreted_option_size() const {
  9025. return uninterpreted_option_.size();
  9026. }
  9027. inline int ExtensionRangeOptions::uninterpreted_option_size() const {
  9028. return _internal_uninterpreted_option_size();
  9029. }
  9030. inline void ExtensionRangeOptions::clear_uninterpreted_option() {
  9031. uninterpreted_option_.Clear();
  9032. }
  9033. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::mutable_uninterpreted_option(int index) {
  9034. // @@protoc_insertion_point(field_mutable:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9035. return uninterpreted_option_.Mutable(index);
  9036. }
  9037. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  9038. ExtensionRangeOptions::mutable_uninterpreted_option() {
  9039. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9040. return &uninterpreted_option_;
  9041. }
  9042. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ExtensionRangeOptions::_internal_uninterpreted_option(int index) const {
  9043. return uninterpreted_option_.Get(index);
  9044. }
  9045. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ExtensionRangeOptions::uninterpreted_option(int index) const {
  9046. // @@protoc_insertion_point(field_get:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9047. return _internal_uninterpreted_option(index);
  9048. }
  9049. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::_internal_add_uninterpreted_option() {
  9050. return uninterpreted_option_.Add();
  9051. }
  9052. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ExtensionRangeOptions::add_uninterpreted_option() {
  9053. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  9054. // @@protoc_insertion_point(field_add:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9055. return _add;
  9056. }
  9057. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  9058. ExtensionRangeOptions::uninterpreted_option() const {
  9059. // @@protoc_insertion_point(field_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  9060. return uninterpreted_option_;
  9061. }
  9062. // -------------------------------------------------------------------
  9063. // FieldDescriptorProto
  9064. // optional string name = 1;
  9065. inline bool FieldDescriptorProto::_internal_has_name() const {
  9066. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  9067. return value;
  9068. }
  9069. inline bool FieldDescriptorProto::has_name() const {
  9070. return _internal_has_name();
  9071. }
  9072. inline void FieldDescriptorProto::clear_name() {
  9073. name_.ClearToEmpty();
  9074. _has_bits_[0] &= ~0x00000001u;
  9075. }
  9076. inline const std::string& FieldDescriptorProto::name() const {
  9077. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
  9078. return _internal_name();
  9079. }
  9080. template <typename ArgT0, typename... ArgT>
  9081. inline PROTOBUF_ALWAYS_INLINE
  9082. void FieldDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  9083. _has_bits_[0] |= 0x00000001u;
  9084. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9085. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
  9086. }
  9087. inline std::string* FieldDescriptorProto::mutable_name() {
  9088. std::string* _s = _internal_mutable_name();
  9089. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
  9090. return _s;
  9091. }
  9092. inline const std::string& FieldDescriptorProto::_internal_name() const {
  9093. return name_.Get();
  9094. }
  9095. inline void FieldDescriptorProto::_internal_set_name(const std::string& value) {
  9096. _has_bits_[0] |= 0x00000001u;
  9097. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9098. }
  9099. inline std::string* FieldDescriptorProto::_internal_mutable_name() {
  9100. _has_bits_[0] |= 0x00000001u;
  9101. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9102. }
  9103. inline std::string* FieldDescriptorProto::release_name() {
  9104. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name)
  9105. if (!_internal_has_name()) {
  9106. return nullptr;
  9107. }
  9108. _has_bits_[0] &= ~0x00000001u;
  9109. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9110. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9111. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9112. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9113. }
  9114. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9115. return p;
  9116. }
  9117. inline void FieldDescriptorProto::set_allocated_name(std::string* name) {
  9118. if (name != nullptr) {
  9119. _has_bits_[0] |= 0x00000001u;
  9120. } else {
  9121. _has_bits_[0] &= ~0x00000001u;
  9122. }
  9123. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  9124. GetArenaForAllocation());
  9125. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9126. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9127. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9128. }
  9129. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9130. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
  9131. }
  9132. // optional int32 number = 3;
  9133. inline bool FieldDescriptorProto::_internal_has_number() const {
  9134. bool value = (_has_bits_[0] & 0x00000040u) != 0;
  9135. return value;
  9136. }
  9137. inline bool FieldDescriptorProto::has_number() const {
  9138. return _internal_has_number();
  9139. }
  9140. inline void FieldDescriptorProto::clear_number() {
  9141. number_ = 0;
  9142. _has_bits_[0] &= ~0x00000040u;
  9143. }
  9144. inline int32_t FieldDescriptorProto::_internal_number() const {
  9145. return number_;
  9146. }
  9147. inline int32_t FieldDescriptorProto::number() const {
  9148. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
  9149. return _internal_number();
  9150. }
  9151. inline void FieldDescriptorProto::_internal_set_number(int32_t value) {
  9152. _has_bits_[0] |= 0x00000040u;
  9153. number_ = value;
  9154. }
  9155. inline void FieldDescriptorProto::set_number(int32_t value) {
  9156. _internal_set_number(value);
  9157. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
  9158. }
  9159. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  9160. inline bool FieldDescriptorProto::_internal_has_label() const {
  9161. bool value = (_has_bits_[0] & 0x00000200u) != 0;
  9162. return value;
  9163. }
  9164. inline bool FieldDescriptorProto::has_label() const {
  9165. return _internal_has_label();
  9166. }
  9167. inline void FieldDescriptorProto::clear_label() {
  9168. label_ = 1;
  9169. _has_bits_[0] &= ~0x00000200u;
  9170. }
  9171. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label FieldDescriptorProto::_internal_label() const {
  9172. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label >(label_);
  9173. }
  9174. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
  9175. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
  9176. return _internal_label();
  9177. }
  9178. inline void FieldDescriptorProto::_internal_set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value) {
  9179. assert(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_IsValid(value));
  9180. _has_bits_[0] |= 0x00000200u;
  9181. label_ = value;
  9182. }
  9183. inline void FieldDescriptorProto::set_label(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label value) {
  9184. _internal_set_label(value);
  9185. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
  9186. }
  9187. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  9188. inline bool FieldDescriptorProto::_internal_has_type() const {
  9189. bool value = (_has_bits_[0] & 0x00000400u) != 0;
  9190. return value;
  9191. }
  9192. inline bool FieldDescriptorProto::has_type() const {
  9193. return _internal_has_type();
  9194. }
  9195. inline void FieldDescriptorProto::clear_type() {
  9196. type_ = 1;
  9197. _has_bits_[0] &= ~0x00000400u;
  9198. }
  9199. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type FieldDescriptorProto::_internal_type() const {
  9200. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type >(type_);
  9201. }
  9202. inline ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
  9203. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
  9204. return _internal_type();
  9205. }
  9206. inline void FieldDescriptorProto::_internal_set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value) {
  9207. assert(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_IsValid(value));
  9208. _has_bits_[0] |= 0x00000400u;
  9209. type_ = value;
  9210. }
  9211. inline void FieldDescriptorProto::set_type(::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type value) {
  9212. _internal_set_type(value);
  9213. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
  9214. }
  9215. // optional string type_name = 6;
  9216. inline bool FieldDescriptorProto::_internal_has_type_name() const {
  9217. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  9218. return value;
  9219. }
  9220. inline bool FieldDescriptorProto::has_type_name() const {
  9221. return _internal_has_type_name();
  9222. }
  9223. inline void FieldDescriptorProto::clear_type_name() {
  9224. type_name_.ClearToEmpty();
  9225. _has_bits_[0] &= ~0x00000004u;
  9226. }
  9227. inline const std::string& FieldDescriptorProto::type_name() const {
  9228. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
  9229. return _internal_type_name();
  9230. }
  9231. template <typename ArgT0, typename... ArgT>
  9232. inline PROTOBUF_ALWAYS_INLINE
  9233. void FieldDescriptorProto::set_type_name(ArgT0&& arg0, ArgT... args) {
  9234. _has_bits_[0] |= 0x00000004u;
  9235. type_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9236. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
  9237. }
  9238. inline std::string* FieldDescriptorProto::mutable_type_name() {
  9239. std::string* _s = _internal_mutable_type_name();
  9240. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
  9241. return _s;
  9242. }
  9243. inline const std::string& FieldDescriptorProto::_internal_type_name() const {
  9244. return type_name_.Get();
  9245. }
  9246. inline void FieldDescriptorProto::_internal_set_type_name(const std::string& value) {
  9247. _has_bits_[0] |= 0x00000004u;
  9248. type_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9249. }
  9250. inline std::string* FieldDescriptorProto::_internal_mutable_type_name() {
  9251. _has_bits_[0] |= 0x00000004u;
  9252. return type_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9253. }
  9254. inline std::string* FieldDescriptorProto::release_type_name() {
  9255. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name)
  9256. if (!_internal_has_type_name()) {
  9257. return nullptr;
  9258. }
  9259. _has_bits_[0] &= ~0x00000004u;
  9260. auto* p = type_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9261. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9262. if (type_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9263. type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9264. }
  9265. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9266. return p;
  9267. }
  9268. inline void FieldDescriptorProto::set_allocated_type_name(std::string* type_name) {
  9269. if (type_name != nullptr) {
  9270. _has_bits_[0] |= 0x00000004u;
  9271. } else {
  9272. _has_bits_[0] &= ~0x00000004u;
  9273. }
  9274. type_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_name,
  9275. GetArenaForAllocation());
  9276. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9277. if (type_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9278. type_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9279. }
  9280. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9281. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  9282. }
  9283. // optional string extendee = 2;
  9284. inline bool FieldDescriptorProto::_internal_has_extendee() const {
  9285. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9286. return value;
  9287. }
  9288. inline bool FieldDescriptorProto::has_extendee() const {
  9289. return _internal_has_extendee();
  9290. }
  9291. inline void FieldDescriptorProto::clear_extendee() {
  9292. extendee_.ClearToEmpty();
  9293. _has_bits_[0] &= ~0x00000002u;
  9294. }
  9295. inline const std::string& FieldDescriptorProto::extendee() const {
  9296. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
  9297. return _internal_extendee();
  9298. }
  9299. template <typename ArgT0, typename... ArgT>
  9300. inline PROTOBUF_ALWAYS_INLINE
  9301. void FieldDescriptorProto::set_extendee(ArgT0&& arg0, ArgT... args) {
  9302. _has_bits_[0] |= 0x00000002u;
  9303. extendee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9304. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
  9305. }
  9306. inline std::string* FieldDescriptorProto::mutable_extendee() {
  9307. std::string* _s = _internal_mutable_extendee();
  9308. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
  9309. return _s;
  9310. }
  9311. inline const std::string& FieldDescriptorProto::_internal_extendee() const {
  9312. return extendee_.Get();
  9313. }
  9314. inline void FieldDescriptorProto::_internal_set_extendee(const std::string& value) {
  9315. _has_bits_[0] |= 0x00000002u;
  9316. extendee_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9317. }
  9318. inline std::string* FieldDescriptorProto::_internal_mutable_extendee() {
  9319. _has_bits_[0] |= 0x00000002u;
  9320. return extendee_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9321. }
  9322. inline std::string* FieldDescriptorProto::release_extendee() {
  9323. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee)
  9324. if (!_internal_has_extendee()) {
  9325. return nullptr;
  9326. }
  9327. _has_bits_[0] &= ~0x00000002u;
  9328. auto* p = extendee_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9329. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9330. if (extendee_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9331. extendee_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9332. }
  9333. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9334. return p;
  9335. }
  9336. inline void FieldDescriptorProto::set_allocated_extendee(std::string* extendee) {
  9337. if (extendee != nullptr) {
  9338. _has_bits_[0] |= 0x00000002u;
  9339. } else {
  9340. _has_bits_[0] &= ~0x00000002u;
  9341. }
  9342. extendee_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), extendee,
  9343. GetArenaForAllocation());
  9344. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9345. if (extendee_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9346. extendee_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9347. }
  9348. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9349. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  9350. }
  9351. // optional string default_value = 7;
  9352. inline bool FieldDescriptorProto::_internal_has_default_value() const {
  9353. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  9354. return value;
  9355. }
  9356. inline bool FieldDescriptorProto::has_default_value() const {
  9357. return _internal_has_default_value();
  9358. }
  9359. inline void FieldDescriptorProto::clear_default_value() {
  9360. default_value_.ClearToEmpty();
  9361. _has_bits_[0] &= ~0x00000008u;
  9362. }
  9363. inline const std::string& FieldDescriptorProto::default_value() const {
  9364. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
  9365. return _internal_default_value();
  9366. }
  9367. template <typename ArgT0, typename... ArgT>
  9368. inline PROTOBUF_ALWAYS_INLINE
  9369. void FieldDescriptorProto::set_default_value(ArgT0&& arg0, ArgT... args) {
  9370. _has_bits_[0] |= 0x00000008u;
  9371. default_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9372. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
  9373. }
  9374. inline std::string* FieldDescriptorProto::mutable_default_value() {
  9375. std::string* _s = _internal_mutable_default_value();
  9376. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
  9377. return _s;
  9378. }
  9379. inline const std::string& FieldDescriptorProto::_internal_default_value() const {
  9380. return default_value_.Get();
  9381. }
  9382. inline void FieldDescriptorProto::_internal_set_default_value(const std::string& value) {
  9383. _has_bits_[0] |= 0x00000008u;
  9384. default_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9385. }
  9386. inline std::string* FieldDescriptorProto::_internal_mutable_default_value() {
  9387. _has_bits_[0] |= 0x00000008u;
  9388. return default_value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9389. }
  9390. inline std::string* FieldDescriptorProto::release_default_value() {
  9391. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value)
  9392. if (!_internal_has_default_value()) {
  9393. return nullptr;
  9394. }
  9395. _has_bits_[0] &= ~0x00000008u;
  9396. auto* p = default_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9397. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9398. if (default_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9399. default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9400. }
  9401. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9402. return p;
  9403. }
  9404. inline void FieldDescriptorProto::set_allocated_default_value(std::string* default_value) {
  9405. if (default_value != nullptr) {
  9406. _has_bits_[0] |= 0x00000008u;
  9407. } else {
  9408. _has_bits_[0] &= ~0x00000008u;
  9409. }
  9410. default_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), default_value,
  9411. GetArenaForAllocation());
  9412. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9413. if (default_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9414. default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9415. }
  9416. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9417. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  9418. }
  9419. // optional int32 oneof_index = 9;
  9420. inline bool FieldDescriptorProto::_internal_has_oneof_index() const {
  9421. bool value = (_has_bits_[0] & 0x00000080u) != 0;
  9422. return value;
  9423. }
  9424. inline bool FieldDescriptorProto::has_oneof_index() const {
  9425. return _internal_has_oneof_index();
  9426. }
  9427. inline void FieldDescriptorProto::clear_oneof_index() {
  9428. oneof_index_ = 0;
  9429. _has_bits_[0] &= ~0x00000080u;
  9430. }
  9431. inline int32_t FieldDescriptorProto::_internal_oneof_index() const {
  9432. return oneof_index_;
  9433. }
  9434. inline int32_t FieldDescriptorProto::oneof_index() const {
  9435. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
  9436. return _internal_oneof_index();
  9437. }
  9438. inline void FieldDescriptorProto::_internal_set_oneof_index(int32_t value) {
  9439. _has_bits_[0] |= 0x00000080u;
  9440. oneof_index_ = value;
  9441. }
  9442. inline void FieldDescriptorProto::set_oneof_index(int32_t value) {
  9443. _internal_set_oneof_index(value);
  9444. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
  9445. }
  9446. // optional string json_name = 10;
  9447. inline bool FieldDescriptorProto::_internal_has_json_name() const {
  9448. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  9449. return value;
  9450. }
  9451. inline bool FieldDescriptorProto::has_json_name() const {
  9452. return _internal_has_json_name();
  9453. }
  9454. inline void FieldDescriptorProto::clear_json_name() {
  9455. json_name_.ClearToEmpty();
  9456. _has_bits_[0] &= ~0x00000010u;
  9457. }
  9458. inline const std::string& FieldDescriptorProto::json_name() const {
  9459. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name)
  9460. return _internal_json_name();
  9461. }
  9462. template <typename ArgT0, typename... ArgT>
  9463. inline PROTOBUF_ALWAYS_INLINE
  9464. void FieldDescriptorProto::set_json_name(ArgT0&& arg0, ArgT... args) {
  9465. _has_bits_[0] |= 0x00000010u;
  9466. json_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9467. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name)
  9468. }
  9469. inline std::string* FieldDescriptorProto::mutable_json_name() {
  9470. std::string* _s = _internal_mutable_json_name();
  9471. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name)
  9472. return _s;
  9473. }
  9474. inline const std::string& FieldDescriptorProto::_internal_json_name() const {
  9475. return json_name_.Get();
  9476. }
  9477. inline void FieldDescriptorProto::_internal_set_json_name(const std::string& value) {
  9478. _has_bits_[0] |= 0x00000010u;
  9479. json_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9480. }
  9481. inline std::string* FieldDescriptorProto::_internal_mutable_json_name() {
  9482. _has_bits_[0] |= 0x00000010u;
  9483. return json_name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9484. }
  9485. inline std::string* FieldDescriptorProto::release_json_name() {
  9486. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name)
  9487. if (!_internal_has_json_name()) {
  9488. return nullptr;
  9489. }
  9490. _has_bits_[0] &= ~0x00000010u;
  9491. auto* p = json_name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9492. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9493. if (json_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9494. json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9495. }
  9496. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9497. return p;
  9498. }
  9499. inline void FieldDescriptorProto::set_allocated_json_name(std::string* json_name) {
  9500. if (json_name != nullptr) {
  9501. _has_bits_[0] |= 0x00000010u;
  9502. } else {
  9503. _has_bits_[0] &= ~0x00000010u;
  9504. }
  9505. json_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json_name,
  9506. GetArenaForAllocation());
  9507. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9508. if (json_name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9509. json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9510. }
  9511. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9512. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
  9513. }
  9514. // optional .google.protobuf.FieldOptions options = 8;
  9515. inline bool FieldDescriptorProto::_internal_has_options() const {
  9516. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  9517. PROTOBUF_ASSUME(!value || options_ != nullptr);
  9518. return value;
  9519. }
  9520. inline bool FieldDescriptorProto::has_options() const {
  9521. return _internal_has_options();
  9522. }
  9523. inline void FieldDescriptorProto::clear_options() {
  9524. if (options_ != nullptr) options_->Clear();
  9525. _has_bits_[0] &= ~0x00000020u;
  9526. }
  9527. inline const ::PROTOBUF_NAMESPACE_ID::FieldOptions& FieldDescriptorProto::_internal_options() const {
  9528. const ::PROTOBUF_NAMESPACE_ID::FieldOptions* p = options_;
  9529. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::FieldOptions&>(
  9530. ::PROTOBUF_NAMESPACE_ID::_FieldOptions_default_instance_);
  9531. }
  9532. inline const ::PROTOBUF_NAMESPACE_ID::FieldOptions& FieldDescriptorProto::options() const {
  9533. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
  9534. return _internal_options();
  9535. }
  9536. inline void FieldDescriptorProto::unsafe_arena_set_allocated_options(
  9537. ::PROTOBUF_NAMESPACE_ID::FieldOptions* options) {
  9538. if (GetArenaForAllocation() == nullptr) {
  9539. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  9540. }
  9541. options_ = options;
  9542. if (options) {
  9543. _has_bits_[0] |= 0x00000020u;
  9544. } else {
  9545. _has_bits_[0] &= ~0x00000020u;
  9546. }
  9547. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.options)
  9548. }
  9549. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::release_options() {
  9550. _has_bits_[0] &= ~0x00000020u;
  9551. ::PROTOBUF_NAMESPACE_ID::FieldOptions* temp = options_;
  9552. options_ = nullptr;
  9553. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9554. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  9555. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9556. if (GetArenaForAllocation() == nullptr) { delete old; }
  9557. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9558. if (GetArenaForAllocation() != nullptr) {
  9559. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9560. }
  9561. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  9562. return temp;
  9563. }
  9564. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::unsafe_arena_release_options() {
  9565. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.options)
  9566. _has_bits_[0] &= ~0x00000020u;
  9567. ::PROTOBUF_NAMESPACE_ID::FieldOptions* temp = options_;
  9568. options_ = nullptr;
  9569. return temp;
  9570. }
  9571. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::_internal_mutable_options() {
  9572. _has_bits_[0] |= 0x00000020u;
  9573. if (options_ == nullptr) {
  9574. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::FieldOptions>(GetArenaForAllocation());
  9575. options_ = p;
  9576. }
  9577. return options_;
  9578. }
  9579. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions* FieldDescriptorProto::mutable_options() {
  9580. ::PROTOBUF_NAMESPACE_ID::FieldOptions* _msg = _internal_mutable_options();
  9581. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
  9582. return _msg;
  9583. }
  9584. inline void FieldDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::FieldOptions* options) {
  9585. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  9586. if (message_arena == nullptr) {
  9587. delete options_;
  9588. }
  9589. if (options) {
  9590. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9591. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::FieldOptions>::GetOwningArena(options);
  9592. if (message_arena != submessage_arena) {
  9593. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9594. message_arena, options, submessage_arena);
  9595. }
  9596. _has_bits_[0] |= 0x00000020u;
  9597. } else {
  9598. _has_bits_[0] &= ~0x00000020u;
  9599. }
  9600. options_ = options;
  9601. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
  9602. }
  9603. // optional bool proto3_optional = 17;
  9604. inline bool FieldDescriptorProto::_internal_has_proto3_optional() const {
  9605. bool value = (_has_bits_[0] & 0x00000100u) != 0;
  9606. return value;
  9607. }
  9608. inline bool FieldDescriptorProto::has_proto3_optional() const {
  9609. return _internal_has_proto3_optional();
  9610. }
  9611. inline void FieldDescriptorProto::clear_proto3_optional() {
  9612. proto3_optional_ = false;
  9613. _has_bits_[0] &= ~0x00000100u;
  9614. }
  9615. inline bool FieldDescriptorProto::_internal_proto3_optional() const {
  9616. return proto3_optional_;
  9617. }
  9618. inline bool FieldDescriptorProto::proto3_optional() const {
  9619. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.proto3_optional)
  9620. return _internal_proto3_optional();
  9621. }
  9622. inline void FieldDescriptorProto::_internal_set_proto3_optional(bool value) {
  9623. _has_bits_[0] |= 0x00000100u;
  9624. proto3_optional_ = value;
  9625. }
  9626. inline void FieldDescriptorProto::set_proto3_optional(bool value) {
  9627. _internal_set_proto3_optional(value);
  9628. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.proto3_optional)
  9629. }
  9630. // -------------------------------------------------------------------
  9631. // OneofDescriptorProto
  9632. // optional string name = 1;
  9633. inline bool OneofDescriptorProto::_internal_has_name() const {
  9634. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  9635. return value;
  9636. }
  9637. inline bool OneofDescriptorProto::has_name() const {
  9638. return _internal_has_name();
  9639. }
  9640. inline void OneofDescriptorProto::clear_name() {
  9641. name_.ClearToEmpty();
  9642. _has_bits_[0] &= ~0x00000001u;
  9643. }
  9644. inline const std::string& OneofDescriptorProto::name() const {
  9645. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
  9646. return _internal_name();
  9647. }
  9648. template <typename ArgT0, typename... ArgT>
  9649. inline PROTOBUF_ALWAYS_INLINE
  9650. void OneofDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  9651. _has_bits_[0] |= 0x00000001u;
  9652. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9653. // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
  9654. }
  9655. inline std::string* OneofDescriptorProto::mutable_name() {
  9656. std::string* _s = _internal_mutable_name();
  9657. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
  9658. return _s;
  9659. }
  9660. inline const std::string& OneofDescriptorProto::_internal_name() const {
  9661. return name_.Get();
  9662. }
  9663. inline void OneofDescriptorProto::_internal_set_name(const std::string& value) {
  9664. _has_bits_[0] |= 0x00000001u;
  9665. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9666. }
  9667. inline std::string* OneofDescriptorProto::_internal_mutable_name() {
  9668. _has_bits_[0] |= 0x00000001u;
  9669. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9670. }
  9671. inline std::string* OneofDescriptorProto::release_name() {
  9672. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.name)
  9673. if (!_internal_has_name()) {
  9674. return nullptr;
  9675. }
  9676. _has_bits_[0] &= ~0x00000001u;
  9677. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9678. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9679. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9680. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9681. }
  9682. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9683. return p;
  9684. }
  9685. inline void OneofDescriptorProto::set_allocated_name(std::string* name) {
  9686. if (name != nullptr) {
  9687. _has_bits_[0] |= 0x00000001u;
  9688. } else {
  9689. _has_bits_[0] &= ~0x00000001u;
  9690. }
  9691. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  9692. GetArenaForAllocation());
  9693. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9694. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9695. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9696. }
  9697. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9698. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
  9699. }
  9700. // optional .google.protobuf.OneofOptions options = 2;
  9701. inline bool OneofDescriptorProto::_internal_has_options() const {
  9702. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9703. PROTOBUF_ASSUME(!value || options_ != nullptr);
  9704. return value;
  9705. }
  9706. inline bool OneofDescriptorProto::has_options() const {
  9707. return _internal_has_options();
  9708. }
  9709. inline void OneofDescriptorProto::clear_options() {
  9710. if (options_ != nullptr) options_->Clear();
  9711. _has_bits_[0] &= ~0x00000002u;
  9712. }
  9713. inline const ::PROTOBUF_NAMESPACE_ID::OneofOptions& OneofDescriptorProto::_internal_options() const {
  9714. const ::PROTOBUF_NAMESPACE_ID::OneofOptions* p = options_;
  9715. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::OneofOptions&>(
  9716. ::PROTOBUF_NAMESPACE_ID::_OneofOptions_default_instance_);
  9717. }
  9718. inline const ::PROTOBUF_NAMESPACE_ID::OneofOptions& OneofDescriptorProto::options() const {
  9719. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.options)
  9720. return _internal_options();
  9721. }
  9722. inline void OneofDescriptorProto::unsafe_arena_set_allocated_options(
  9723. ::PROTOBUF_NAMESPACE_ID::OneofOptions* options) {
  9724. if (GetArenaForAllocation() == nullptr) {
  9725. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  9726. }
  9727. options_ = options;
  9728. if (options) {
  9729. _has_bits_[0] |= 0x00000002u;
  9730. } else {
  9731. _has_bits_[0] &= ~0x00000002u;
  9732. }
  9733. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.OneofDescriptorProto.options)
  9734. }
  9735. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::release_options() {
  9736. _has_bits_[0] &= ~0x00000002u;
  9737. ::PROTOBUF_NAMESPACE_ID::OneofOptions* temp = options_;
  9738. options_ = nullptr;
  9739. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9740. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  9741. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9742. if (GetArenaForAllocation() == nullptr) { delete old; }
  9743. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9744. if (GetArenaForAllocation() != nullptr) {
  9745. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9746. }
  9747. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  9748. return temp;
  9749. }
  9750. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::unsafe_arena_release_options() {
  9751. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.options)
  9752. _has_bits_[0] &= ~0x00000002u;
  9753. ::PROTOBUF_NAMESPACE_ID::OneofOptions* temp = options_;
  9754. options_ = nullptr;
  9755. return temp;
  9756. }
  9757. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::_internal_mutable_options() {
  9758. _has_bits_[0] |= 0x00000002u;
  9759. if (options_ == nullptr) {
  9760. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::OneofOptions>(GetArenaForAllocation());
  9761. options_ = p;
  9762. }
  9763. return options_;
  9764. }
  9765. inline ::PROTOBUF_NAMESPACE_ID::OneofOptions* OneofDescriptorProto::mutable_options() {
  9766. ::PROTOBUF_NAMESPACE_ID::OneofOptions* _msg = _internal_mutable_options();
  9767. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.options)
  9768. return _msg;
  9769. }
  9770. inline void OneofDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::OneofOptions* options) {
  9771. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  9772. if (message_arena == nullptr) {
  9773. delete options_;
  9774. }
  9775. if (options) {
  9776. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  9777. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::OneofOptions>::GetOwningArena(options);
  9778. if (message_arena != submessage_arena) {
  9779. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  9780. message_arena, options, submessage_arena);
  9781. }
  9782. _has_bits_[0] |= 0x00000002u;
  9783. } else {
  9784. _has_bits_[0] &= ~0x00000002u;
  9785. }
  9786. options_ = options;
  9787. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.options)
  9788. }
  9789. // -------------------------------------------------------------------
  9790. // EnumDescriptorProto_EnumReservedRange
  9791. // optional int32 start = 1;
  9792. inline bool EnumDescriptorProto_EnumReservedRange::_internal_has_start() const {
  9793. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  9794. return value;
  9795. }
  9796. inline bool EnumDescriptorProto_EnumReservedRange::has_start() const {
  9797. return _internal_has_start();
  9798. }
  9799. inline void EnumDescriptorProto_EnumReservedRange::clear_start() {
  9800. start_ = 0;
  9801. _has_bits_[0] &= ~0x00000001u;
  9802. }
  9803. inline int32_t EnumDescriptorProto_EnumReservedRange::_internal_start() const {
  9804. return start_;
  9805. }
  9806. inline int32_t EnumDescriptorProto_EnumReservedRange::start() const {
  9807. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  9808. return _internal_start();
  9809. }
  9810. inline void EnumDescriptorProto_EnumReservedRange::_internal_set_start(int32_t value) {
  9811. _has_bits_[0] |= 0x00000001u;
  9812. start_ = value;
  9813. }
  9814. inline void EnumDescriptorProto_EnumReservedRange::set_start(int32_t value) {
  9815. _internal_set_start(value);
  9816. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  9817. }
  9818. // optional int32 end = 2;
  9819. inline bool EnumDescriptorProto_EnumReservedRange::_internal_has_end() const {
  9820. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9821. return value;
  9822. }
  9823. inline bool EnumDescriptorProto_EnumReservedRange::has_end() const {
  9824. return _internal_has_end();
  9825. }
  9826. inline void EnumDescriptorProto_EnumReservedRange::clear_end() {
  9827. end_ = 0;
  9828. _has_bits_[0] &= ~0x00000002u;
  9829. }
  9830. inline int32_t EnumDescriptorProto_EnumReservedRange::_internal_end() const {
  9831. return end_;
  9832. }
  9833. inline int32_t EnumDescriptorProto_EnumReservedRange::end() const {
  9834. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  9835. return _internal_end();
  9836. }
  9837. inline void EnumDescriptorProto_EnumReservedRange::_internal_set_end(int32_t value) {
  9838. _has_bits_[0] |= 0x00000002u;
  9839. end_ = value;
  9840. }
  9841. inline void EnumDescriptorProto_EnumReservedRange::set_end(int32_t value) {
  9842. _internal_set_end(value);
  9843. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  9844. }
  9845. // -------------------------------------------------------------------
  9846. // EnumDescriptorProto
  9847. // optional string name = 1;
  9848. inline bool EnumDescriptorProto::_internal_has_name() const {
  9849. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  9850. return value;
  9851. }
  9852. inline bool EnumDescriptorProto::has_name() const {
  9853. return _internal_has_name();
  9854. }
  9855. inline void EnumDescriptorProto::clear_name() {
  9856. name_.ClearToEmpty();
  9857. _has_bits_[0] &= ~0x00000001u;
  9858. }
  9859. inline const std::string& EnumDescriptorProto::name() const {
  9860. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
  9861. return _internal_name();
  9862. }
  9863. template <typename ArgT0, typename... ArgT>
  9864. inline PROTOBUF_ALWAYS_INLINE
  9865. void EnumDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  9866. _has_bits_[0] |= 0x00000001u;
  9867. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  9868. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
  9869. }
  9870. inline std::string* EnumDescriptorProto::mutable_name() {
  9871. std::string* _s = _internal_mutable_name();
  9872. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
  9873. return _s;
  9874. }
  9875. inline const std::string& EnumDescriptorProto::_internal_name() const {
  9876. return name_.Get();
  9877. }
  9878. inline void EnumDescriptorProto::_internal_set_name(const std::string& value) {
  9879. _has_bits_[0] |= 0x00000001u;
  9880. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  9881. }
  9882. inline std::string* EnumDescriptorProto::_internal_mutable_name() {
  9883. _has_bits_[0] |= 0x00000001u;
  9884. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  9885. }
  9886. inline std::string* EnumDescriptorProto::release_name() {
  9887. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.name)
  9888. if (!_internal_has_name()) {
  9889. return nullptr;
  9890. }
  9891. _has_bits_[0] &= ~0x00000001u;
  9892. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  9893. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9894. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9895. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9896. }
  9897. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9898. return p;
  9899. }
  9900. inline void EnumDescriptorProto::set_allocated_name(std::string* name) {
  9901. if (name != nullptr) {
  9902. _has_bits_[0] |= 0x00000001u;
  9903. } else {
  9904. _has_bits_[0] &= ~0x00000001u;
  9905. }
  9906. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  9907. GetArenaForAllocation());
  9908. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9909. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  9910. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  9911. }
  9912. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  9913. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
  9914. }
  9915. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  9916. inline int EnumDescriptorProto::_internal_value_size() const {
  9917. return value_.size();
  9918. }
  9919. inline int EnumDescriptorProto::value_size() const {
  9920. return _internal_value_size();
  9921. }
  9922. inline void EnumDescriptorProto::clear_value() {
  9923. value_.Clear();
  9924. }
  9925. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
  9926. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
  9927. return value_.Mutable(index);
  9928. }
  9929. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >*
  9930. EnumDescriptorProto::mutable_value() {
  9931. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
  9932. return &value_;
  9933. }
  9934. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& EnumDescriptorProto::_internal_value(int index) const {
  9935. return value_.Get(index);
  9936. }
  9937. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
  9938. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
  9939. return _internal_value(index);
  9940. }
  9941. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::_internal_add_value() {
  9942. return value_.Add();
  9943. }
  9944. inline ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
  9945. ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto* _add = _internal_add_value();
  9946. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
  9947. return _add;
  9948. }
  9949. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumValueDescriptorProto >&
  9950. EnumDescriptorProto::value() const {
  9951. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
  9952. return value_;
  9953. }
  9954. // optional .google.protobuf.EnumOptions options = 3;
  9955. inline bool EnumDescriptorProto::_internal_has_options() const {
  9956. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  9957. PROTOBUF_ASSUME(!value || options_ != nullptr);
  9958. return value;
  9959. }
  9960. inline bool EnumDescriptorProto::has_options() const {
  9961. return _internal_has_options();
  9962. }
  9963. inline void EnumDescriptorProto::clear_options() {
  9964. if (options_ != nullptr) options_->Clear();
  9965. _has_bits_[0] &= ~0x00000002u;
  9966. }
  9967. inline const ::PROTOBUF_NAMESPACE_ID::EnumOptions& EnumDescriptorProto::_internal_options() const {
  9968. const ::PROTOBUF_NAMESPACE_ID::EnumOptions* p = options_;
  9969. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::EnumOptions&>(
  9970. ::PROTOBUF_NAMESPACE_ID::_EnumOptions_default_instance_);
  9971. }
  9972. inline const ::PROTOBUF_NAMESPACE_ID::EnumOptions& EnumDescriptorProto::options() const {
  9973. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
  9974. return _internal_options();
  9975. }
  9976. inline void EnumDescriptorProto::unsafe_arena_set_allocated_options(
  9977. ::PROTOBUF_NAMESPACE_ID::EnumOptions* options) {
  9978. if (GetArenaForAllocation() == nullptr) {
  9979. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  9980. }
  9981. options_ = options;
  9982. if (options) {
  9983. _has_bits_[0] |= 0x00000002u;
  9984. } else {
  9985. _has_bits_[0] &= ~0x00000002u;
  9986. }
  9987. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumDescriptorProto.options)
  9988. }
  9989. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::release_options() {
  9990. _has_bits_[0] &= ~0x00000002u;
  9991. ::PROTOBUF_NAMESPACE_ID::EnumOptions* temp = options_;
  9992. options_ = nullptr;
  9993. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  9994. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  9995. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  9996. if (GetArenaForAllocation() == nullptr) { delete old; }
  9997. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  9998. if (GetArenaForAllocation() != nullptr) {
  9999. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10000. }
  10001. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10002. return temp;
  10003. }
  10004. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::unsafe_arena_release_options() {
  10005. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.options)
  10006. _has_bits_[0] &= ~0x00000002u;
  10007. ::PROTOBUF_NAMESPACE_ID::EnumOptions* temp = options_;
  10008. options_ = nullptr;
  10009. return temp;
  10010. }
  10011. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::_internal_mutable_options() {
  10012. _has_bits_[0] |= 0x00000002u;
  10013. if (options_ == nullptr) {
  10014. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumOptions>(GetArenaForAllocation());
  10015. options_ = p;
  10016. }
  10017. return options_;
  10018. }
  10019. inline ::PROTOBUF_NAMESPACE_ID::EnumOptions* EnumDescriptorProto::mutable_options() {
  10020. ::PROTOBUF_NAMESPACE_ID::EnumOptions* _msg = _internal_mutable_options();
  10021. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
  10022. return _msg;
  10023. }
  10024. inline void EnumDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumOptions* options) {
  10025. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10026. if (message_arena == nullptr) {
  10027. delete options_;
  10028. }
  10029. if (options) {
  10030. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10031. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::EnumOptions>::GetOwningArena(options);
  10032. if (message_arena != submessage_arena) {
  10033. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10034. message_arena, options, submessage_arena);
  10035. }
  10036. _has_bits_[0] |= 0x00000002u;
  10037. } else {
  10038. _has_bits_[0] &= ~0x00000002u;
  10039. }
  10040. options_ = options;
  10041. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
  10042. }
  10043. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  10044. inline int EnumDescriptorProto::_internal_reserved_range_size() const {
  10045. return reserved_range_.size();
  10046. }
  10047. inline int EnumDescriptorProto::reserved_range_size() const {
  10048. return _internal_reserved_range_size();
  10049. }
  10050. inline void EnumDescriptorProto::clear_reserved_range() {
  10051. reserved_range_.Clear();
  10052. }
  10053. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::mutable_reserved_range(int index) {
  10054. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_range)
  10055. return reserved_range_.Mutable(index);
  10056. }
  10057. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >*
  10058. EnumDescriptorProto::mutable_reserved_range() {
  10059. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_range)
  10060. return &reserved_range_;
  10061. }
  10062. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::_internal_reserved_range(int index) const {
  10063. return reserved_range_.Get(index);
  10064. }
  10065. inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::reserved_range(int index) const {
  10066. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_range)
  10067. return _internal_reserved_range(index);
  10068. }
  10069. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::_internal_add_reserved_range() {
  10070. return reserved_range_.Add();
  10071. }
  10072. inline ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::add_reserved_range() {
  10073. ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange* _add = _internal_add_reserved_range();
  10074. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_range)
  10075. return _add;
  10076. }
  10077. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::EnumDescriptorProto_EnumReservedRange >&
  10078. EnumDescriptorProto::reserved_range() const {
  10079. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_range)
  10080. return reserved_range_;
  10081. }
  10082. // repeated string reserved_name = 5;
  10083. inline int EnumDescriptorProto::_internal_reserved_name_size() const {
  10084. return reserved_name_.size();
  10085. }
  10086. inline int EnumDescriptorProto::reserved_name_size() const {
  10087. return _internal_reserved_name_size();
  10088. }
  10089. inline void EnumDescriptorProto::clear_reserved_name() {
  10090. reserved_name_.Clear();
  10091. }
  10092. inline std::string* EnumDescriptorProto::add_reserved_name() {
  10093. std::string* _s = _internal_add_reserved_name();
  10094. // @@protoc_insertion_point(field_add_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  10095. return _s;
  10096. }
  10097. inline const std::string& EnumDescriptorProto::_internal_reserved_name(int index) const {
  10098. return reserved_name_.Get(index);
  10099. }
  10100. inline const std::string& EnumDescriptorProto::reserved_name(int index) const {
  10101. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_name)
  10102. return _internal_reserved_name(index);
  10103. }
  10104. inline std::string* EnumDescriptorProto::mutable_reserved_name(int index) {
  10105. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  10106. return reserved_name_.Mutable(index);
  10107. }
  10108. inline void EnumDescriptorProto::set_reserved_name(int index, const std::string& value) {
  10109. reserved_name_.Mutable(index)->assign(value);
  10110. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  10111. }
  10112. inline void EnumDescriptorProto::set_reserved_name(int index, std::string&& value) {
  10113. reserved_name_.Mutable(index)->assign(std::move(value));
  10114. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  10115. }
  10116. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value) {
  10117. GOOGLE_DCHECK(value != nullptr);
  10118. reserved_name_.Mutable(index)->assign(value);
  10119. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.reserved_name)
  10120. }
  10121. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  10122. reserved_name_.Mutable(index)->assign(
  10123. reinterpret_cast<const char*>(value), size);
  10124. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  10125. }
  10126. inline std::string* EnumDescriptorProto::_internal_add_reserved_name() {
  10127. return reserved_name_.Add();
  10128. }
  10129. inline void EnumDescriptorProto::add_reserved_name(const std::string& value) {
  10130. reserved_name_.Add()->assign(value);
  10131. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  10132. }
  10133. inline void EnumDescriptorProto::add_reserved_name(std::string&& value) {
  10134. reserved_name_.Add(std::move(value));
  10135. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  10136. }
  10137. inline void EnumDescriptorProto::add_reserved_name(const char* value) {
  10138. GOOGLE_DCHECK(value != nullptr);
  10139. reserved_name_.Add()->assign(value);
  10140. // @@protoc_insertion_point(field_add_char:google.protobuf.EnumDescriptorProto.reserved_name)
  10141. }
  10142. inline void EnumDescriptorProto::add_reserved_name(const char* value, size_t size) {
  10143. reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  10144. // @@protoc_insertion_point(field_add_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  10145. }
  10146. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  10147. EnumDescriptorProto::reserved_name() const {
  10148. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_name)
  10149. return reserved_name_;
  10150. }
  10151. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  10152. EnumDescriptorProto::mutable_reserved_name() {
  10153. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_name)
  10154. return &reserved_name_;
  10155. }
  10156. // -------------------------------------------------------------------
  10157. // EnumValueDescriptorProto
  10158. // optional string name = 1;
  10159. inline bool EnumValueDescriptorProto::_internal_has_name() const {
  10160. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  10161. return value;
  10162. }
  10163. inline bool EnumValueDescriptorProto::has_name() const {
  10164. return _internal_has_name();
  10165. }
  10166. inline void EnumValueDescriptorProto::clear_name() {
  10167. name_.ClearToEmpty();
  10168. _has_bits_[0] &= ~0x00000001u;
  10169. }
  10170. inline const std::string& EnumValueDescriptorProto::name() const {
  10171. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
  10172. return _internal_name();
  10173. }
  10174. template <typename ArgT0, typename... ArgT>
  10175. inline PROTOBUF_ALWAYS_INLINE
  10176. void EnumValueDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  10177. _has_bits_[0] |= 0x00000001u;
  10178. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10179. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
  10180. }
  10181. inline std::string* EnumValueDescriptorProto::mutable_name() {
  10182. std::string* _s = _internal_mutable_name();
  10183. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
  10184. return _s;
  10185. }
  10186. inline const std::string& EnumValueDescriptorProto::_internal_name() const {
  10187. return name_.Get();
  10188. }
  10189. inline void EnumValueDescriptorProto::_internal_set_name(const std::string& value) {
  10190. _has_bits_[0] |= 0x00000001u;
  10191. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10192. }
  10193. inline std::string* EnumValueDescriptorProto::_internal_mutable_name() {
  10194. _has_bits_[0] |= 0x00000001u;
  10195. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10196. }
  10197. inline std::string* EnumValueDescriptorProto::release_name() {
  10198. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.name)
  10199. if (!_internal_has_name()) {
  10200. return nullptr;
  10201. }
  10202. _has_bits_[0] &= ~0x00000001u;
  10203. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10204. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10205. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10206. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10207. }
  10208. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10209. return p;
  10210. }
  10211. inline void EnumValueDescriptorProto::set_allocated_name(std::string* name) {
  10212. if (name != nullptr) {
  10213. _has_bits_[0] |= 0x00000001u;
  10214. } else {
  10215. _has_bits_[0] &= ~0x00000001u;
  10216. }
  10217. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  10218. GetArenaForAllocation());
  10219. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10220. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10221. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10222. }
  10223. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10224. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  10225. }
  10226. // optional int32 number = 2;
  10227. inline bool EnumValueDescriptorProto::_internal_has_number() const {
  10228. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  10229. return value;
  10230. }
  10231. inline bool EnumValueDescriptorProto::has_number() const {
  10232. return _internal_has_number();
  10233. }
  10234. inline void EnumValueDescriptorProto::clear_number() {
  10235. number_ = 0;
  10236. _has_bits_[0] &= ~0x00000004u;
  10237. }
  10238. inline int32_t EnumValueDescriptorProto::_internal_number() const {
  10239. return number_;
  10240. }
  10241. inline int32_t EnumValueDescriptorProto::number() const {
  10242. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
  10243. return _internal_number();
  10244. }
  10245. inline void EnumValueDescriptorProto::_internal_set_number(int32_t value) {
  10246. _has_bits_[0] |= 0x00000004u;
  10247. number_ = value;
  10248. }
  10249. inline void EnumValueDescriptorProto::set_number(int32_t value) {
  10250. _internal_set_number(value);
  10251. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
  10252. }
  10253. // optional .google.protobuf.EnumValueOptions options = 3;
  10254. inline bool EnumValueDescriptorProto::_internal_has_options() const {
  10255. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  10256. PROTOBUF_ASSUME(!value || options_ != nullptr);
  10257. return value;
  10258. }
  10259. inline bool EnumValueDescriptorProto::has_options() const {
  10260. return _internal_has_options();
  10261. }
  10262. inline void EnumValueDescriptorProto::clear_options() {
  10263. if (options_ != nullptr) options_->Clear();
  10264. _has_bits_[0] &= ~0x00000002u;
  10265. }
  10266. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& EnumValueDescriptorProto::_internal_options() const {
  10267. const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* p = options_;
  10268. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions&>(
  10269. ::PROTOBUF_NAMESPACE_ID::_EnumValueOptions_default_instance_);
  10270. }
  10271. inline const ::PROTOBUF_NAMESPACE_ID::EnumValueOptions& EnumValueDescriptorProto::options() const {
  10272. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
  10273. return _internal_options();
  10274. }
  10275. inline void EnumValueDescriptorProto::unsafe_arena_set_allocated_options(
  10276. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options) {
  10277. if (GetArenaForAllocation() == nullptr) {
  10278. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  10279. }
  10280. options_ = options;
  10281. if (options) {
  10282. _has_bits_[0] |= 0x00000002u;
  10283. } else {
  10284. _has_bits_[0] &= ~0x00000002u;
  10285. }
  10286. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  10287. }
  10288. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::release_options() {
  10289. _has_bits_[0] &= ~0x00000002u;
  10290. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* temp = options_;
  10291. options_ = nullptr;
  10292. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10293. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10294. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10295. if (GetArenaForAllocation() == nullptr) { delete old; }
  10296. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10297. if (GetArenaForAllocation() != nullptr) {
  10298. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10299. }
  10300. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10301. return temp;
  10302. }
  10303. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::unsafe_arena_release_options() {
  10304. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.options)
  10305. _has_bits_[0] &= ~0x00000002u;
  10306. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* temp = options_;
  10307. options_ = nullptr;
  10308. return temp;
  10309. }
  10310. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::_internal_mutable_options() {
  10311. _has_bits_[0] |= 0x00000002u;
  10312. if (options_ == nullptr) {
  10313. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::EnumValueOptions>(GetArenaForAllocation());
  10314. options_ = p;
  10315. }
  10316. return options_;
  10317. }
  10318. inline ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
  10319. ::PROTOBUF_NAMESPACE_ID::EnumValueOptions* _msg = _internal_mutable_options();
  10320. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
  10321. return _msg;
  10322. }
  10323. inline void EnumValueDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::EnumValueOptions* options) {
  10324. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10325. if (message_arena == nullptr) {
  10326. delete options_;
  10327. }
  10328. if (options) {
  10329. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10330. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::EnumValueOptions>::GetOwningArena(options);
  10331. if (message_arena != submessage_arena) {
  10332. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10333. message_arena, options, submessage_arena);
  10334. }
  10335. _has_bits_[0] |= 0x00000002u;
  10336. } else {
  10337. _has_bits_[0] &= ~0x00000002u;
  10338. }
  10339. options_ = options;
  10340. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  10341. }
  10342. // -------------------------------------------------------------------
  10343. // ServiceDescriptorProto
  10344. // optional string name = 1;
  10345. inline bool ServiceDescriptorProto::_internal_has_name() const {
  10346. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  10347. return value;
  10348. }
  10349. inline bool ServiceDescriptorProto::has_name() const {
  10350. return _internal_has_name();
  10351. }
  10352. inline void ServiceDescriptorProto::clear_name() {
  10353. name_.ClearToEmpty();
  10354. _has_bits_[0] &= ~0x00000001u;
  10355. }
  10356. inline const std::string& ServiceDescriptorProto::name() const {
  10357. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
  10358. return _internal_name();
  10359. }
  10360. template <typename ArgT0, typename... ArgT>
  10361. inline PROTOBUF_ALWAYS_INLINE
  10362. void ServiceDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  10363. _has_bits_[0] |= 0x00000001u;
  10364. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10365. // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
  10366. }
  10367. inline std::string* ServiceDescriptorProto::mutable_name() {
  10368. std::string* _s = _internal_mutable_name();
  10369. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
  10370. return _s;
  10371. }
  10372. inline const std::string& ServiceDescriptorProto::_internal_name() const {
  10373. return name_.Get();
  10374. }
  10375. inline void ServiceDescriptorProto::_internal_set_name(const std::string& value) {
  10376. _has_bits_[0] |= 0x00000001u;
  10377. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10378. }
  10379. inline std::string* ServiceDescriptorProto::_internal_mutable_name() {
  10380. _has_bits_[0] |= 0x00000001u;
  10381. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10382. }
  10383. inline std::string* ServiceDescriptorProto::release_name() {
  10384. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.name)
  10385. if (!_internal_has_name()) {
  10386. return nullptr;
  10387. }
  10388. _has_bits_[0] &= ~0x00000001u;
  10389. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10390. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10391. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10392. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10393. }
  10394. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10395. return p;
  10396. }
  10397. inline void ServiceDescriptorProto::set_allocated_name(std::string* name) {
  10398. if (name != nullptr) {
  10399. _has_bits_[0] |= 0x00000001u;
  10400. } else {
  10401. _has_bits_[0] &= ~0x00000001u;
  10402. }
  10403. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  10404. GetArenaForAllocation());
  10405. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10406. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10407. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10408. }
  10409. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10410. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  10411. }
  10412. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  10413. inline int ServiceDescriptorProto::_internal_method_size() const {
  10414. return method_.size();
  10415. }
  10416. inline int ServiceDescriptorProto::method_size() const {
  10417. return _internal_method_size();
  10418. }
  10419. inline void ServiceDescriptorProto::clear_method() {
  10420. method_.Clear();
  10421. }
  10422. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
  10423. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
  10424. return method_.Mutable(index);
  10425. }
  10426. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >*
  10427. ServiceDescriptorProto::mutable_method() {
  10428. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
  10429. return &method_;
  10430. }
  10431. inline const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& ServiceDescriptorProto::_internal_method(int index) const {
  10432. return method_.Get(index);
  10433. }
  10434. inline const ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
  10435. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
  10436. return _internal_method(index);
  10437. }
  10438. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::_internal_add_method() {
  10439. return method_.Add();
  10440. }
  10441. inline ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
  10442. ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto* _add = _internal_add_method();
  10443. // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
  10444. return _add;
  10445. }
  10446. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::MethodDescriptorProto >&
  10447. ServiceDescriptorProto::method() const {
  10448. // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
  10449. return method_;
  10450. }
  10451. // optional .google.protobuf.ServiceOptions options = 3;
  10452. inline bool ServiceDescriptorProto::_internal_has_options() const {
  10453. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  10454. PROTOBUF_ASSUME(!value || options_ != nullptr);
  10455. return value;
  10456. }
  10457. inline bool ServiceDescriptorProto::has_options() const {
  10458. return _internal_has_options();
  10459. }
  10460. inline void ServiceDescriptorProto::clear_options() {
  10461. if (options_ != nullptr) options_->Clear();
  10462. _has_bits_[0] &= ~0x00000002u;
  10463. }
  10464. inline const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& ServiceDescriptorProto::_internal_options() const {
  10465. const ::PROTOBUF_NAMESPACE_ID::ServiceOptions* p = options_;
  10466. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::ServiceOptions&>(
  10467. ::PROTOBUF_NAMESPACE_ID::_ServiceOptions_default_instance_);
  10468. }
  10469. inline const ::PROTOBUF_NAMESPACE_ID::ServiceOptions& ServiceDescriptorProto::options() const {
  10470. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
  10471. return _internal_options();
  10472. }
  10473. inline void ServiceDescriptorProto::unsafe_arena_set_allocated_options(
  10474. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* options) {
  10475. if (GetArenaForAllocation() == nullptr) {
  10476. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  10477. }
  10478. options_ = options;
  10479. if (options) {
  10480. _has_bits_[0] |= 0x00000002u;
  10481. } else {
  10482. _has_bits_[0] &= ~0x00000002u;
  10483. }
  10484. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  10485. }
  10486. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::release_options() {
  10487. _has_bits_[0] &= ~0x00000002u;
  10488. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* temp = options_;
  10489. options_ = nullptr;
  10490. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10491. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10492. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10493. if (GetArenaForAllocation() == nullptr) { delete old; }
  10494. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10495. if (GetArenaForAllocation() != nullptr) {
  10496. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10497. }
  10498. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10499. return temp;
  10500. }
  10501. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::unsafe_arena_release_options() {
  10502. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.options)
  10503. _has_bits_[0] &= ~0x00000002u;
  10504. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* temp = options_;
  10505. options_ = nullptr;
  10506. return temp;
  10507. }
  10508. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::_internal_mutable_options() {
  10509. _has_bits_[0] |= 0x00000002u;
  10510. if (options_ == nullptr) {
  10511. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::ServiceOptions>(GetArenaForAllocation());
  10512. options_ = p;
  10513. }
  10514. return options_;
  10515. }
  10516. inline ::PROTOBUF_NAMESPACE_ID::ServiceOptions* ServiceDescriptorProto::mutable_options() {
  10517. ::PROTOBUF_NAMESPACE_ID::ServiceOptions* _msg = _internal_mutable_options();
  10518. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
  10519. return _msg;
  10520. }
  10521. inline void ServiceDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::ServiceOptions* options) {
  10522. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10523. if (message_arena == nullptr) {
  10524. delete options_;
  10525. }
  10526. if (options) {
  10527. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10528. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::ServiceOptions>::GetOwningArena(options);
  10529. if (message_arena != submessage_arena) {
  10530. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10531. message_arena, options, submessage_arena);
  10532. }
  10533. _has_bits_[0] |= 0x00000002u;
  10534. } else {
  10535. _has_bits_[0] &= ~0x00000002u;
  10536. }
  10537. options_ = options;
  10538. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  10539. }
  10540. // -------------------------------------------------------------------
  10541. // MethodDescriptorProto
  10542. // optional string name = 1;
  10543. inline bool MethodDescriptorProto::_internal_has_name() const {
  10544. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  10545. return value;
  10546. }
  10547. inline bool MethodDescriptorProto::has_name() const {
  10548. return _internal_has_name();
  10549. }
  10550. inline void MethodDescriptorProto::clear_name() {
  10551. name_.ClearToEmpty();
  10552. _has_bits_[0] &= ~0x00000001u;
  10553. }
  10554. inline const std::string& MethodDescriptorProto::name() const {
  10555. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
  10556. return _internal_name();
  10557. }
  10558. template <typename ArgT0, typename... ArgT>
  10559. inline PROTOBUF_ALWAYS_INLINE
  10560. void MethodDescriptorProto::set_name(ArgT0&& arg0, ArgT... args) {
  10561. _has_bits_[0] |= 0x00000001u;
  10562. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10563. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
  10564. }
  10565. inline std::string* MethodDescriptorProto::mutable_name() {
  10566. std::string* _s = _internal_mutable_name();
  10567. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
  10568. return _s;
  10569. }
  10570. inline const std::string& MethodDescriptorProto::_internal_name() const {
  10571. return name_.Get();
  10572. }
  10573. inline void MethodDescriptorProto::_internal_set_name(const std::string& value) {
  10574. _has_bits_[0] |= 0x00000001u;
  10575. name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10576. }
  10577. inline std::string* MethodDescriptorProto::_internal_mutable_name() {
  10578. _has_bits_[0] |= 0x00000001u;
  10579. return name_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10580. }
  10581. inline std::string* MethodDescriptorProto::release_name() {
  10582. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.name)
  10583. if (!_internal_has_name()) {
  10584. return nullptr;
  10585. }
  10586. _has_bits_[0] &= ~0x00000001u;
  10587. auto* p = name_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10588. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10589. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10590. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10591. }
  10592. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10593. return p;
  10594. }
  10595. inline void MethodDescriptorProto::set_allocated_name(std::string* name) {
  10596. if (name != nullptr) {
  10597. _has_bits_[0] |= 0x00000001u;
  10598. } else {
  10599. _has_bits_[0] &= ~0x00000001u;
  10600. }
  10601. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  10602. GetArenaForAllocation());
  10603. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10604. if (name_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10605. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10606. }
  10607. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10608. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
  10609. }
  10610. // optional string input_type = 2;
  10611. inline bool MethodDescriptorProto::_internal_has_input_type() const {
  10612. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  10613. return value;
  10614. }
  10615. inline bool MethodDescriptorProto::has_input_type() const {
  10616. return _internal_has_input_type();
  10617. }
  10618. inline void MethodDescriptorProto::clear_input_type() {
  10619. input_type_.ClearToEmpty();
  10620. _has_bits_[0] &= ~0x00000002u;
  10621. }
  10622. inline const std::string& MethodDescriptorProto::input_type() const {
  10623. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
  10624. return _internal_input_type();
  10625. }
  10626. template <typename ArgT0, typename... ArgT>
  10627. inline PROTOBUF_ALWAYS_INLINE
  10628. void MethodDescriptorProto::set_input_type(ArgT0&& arg0, ArgT... args) {
  10629. _has_bits_[0] |= 0x00000002u;
  10630. input_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10631. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
  10632. }
  10633. inline std::string* MethodDescriptorProto::mutable_input_type() {
  10634. std::string* _s = _internal_mutable_input_type();
  10635. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
  10636. return _s;
  10637. }
  10638. inline const std::string& MethodDescriptorProto::_internal_input_type() const {
  10639. return input_type_.Get();
  10640. }
  10641. inline void MethodDescriptorProto::_internal_set_input_type(const std::string& value) {
  10642. _has_bits_[0] |= 0x00000002u;
  10643. input_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10644. }
  10645. inline std::string* MethodDescriptorProto::_internal_mutable_input_type() {
  10646. _has_bits_[0] |= 0x00000002u;
  10647. return input_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10648. }
  10649. inline std::string* MethodDescriptorProto::release_input_type() {
  10650. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.input_type)
  10651. if (!_internal_has_input_type()) {
  10652. return nullptr;
  10653. }
  10654. _has_bits_[0] &= ~0x00000002u;
  10655. auto* p = input_type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10656. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10657. if (input_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10658. input_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10659. }
  10660. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10661. return p;
  10662. }
  10663. inline void MethodDescriptorProto::set_allocated_input_type(std::string* input_type) {
  10664. if (input_type != nullptr) {
  10665. _has_bits_[0] |= 0x00000002u;
  10666. } else {
  10667. _has_bits_[0] &= ~0x00000002u;
  10668. }
  10669. input_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), input_type,
  10670. GetArenaForAllocation());
  10671. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10672. if (input_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10673. input_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10674. }
  10675. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10676. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  10677. }
  10678. // optional string output_type = 3;
  10679. inline bool MethodDescriptorProto::_internal_has_output_type() const {
  10680. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  10681. return value;
  10682. }
  10683. inline bool MethodDescriptorProto::has_output_type() const {
  10684. return _internal_has_output_type();
  10685. }
  10686. inline void MethodDescriptorProto::clear_output_type() {
  10687. output_type_.ClearToEmpty();
  10688. _has_bits_[0] &= ~0x00000004u;
  10689. }
  10690. inline const std::string& MethodDescriptorProto::output_type() const {
  10691. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
  10692. return _internal_output_type();
  10693. }
  10694. template <typename ArgT0, typename... ArgT>
  10695. inline PROTOBUF_ALWAYS_INLINE
  10696. void MethodDescriptorProto::set_output_type(ArgT0&& arg0, ArgT... args) {
  10697. _has_bits_[0] |= 0x00000004u;
  10698. output_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10699. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
  10700. }
  10701. inline std::string* MethodDescriptorProto::mutable_output_type() {
  10702. std::string* _s = _internal_mutable_output_type();
  10703. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
  10704. return _s;
  10705. }
  10706. inline const std::string& MethodDescriptorProto::_internal_output_type() const {
  10707. return output_type_.Get();
  10708. }
  10709. inline void MethodDescriptorProto::_internal_set_output_type(const std::string& value) {
  10710. _has_bits_[0] |= 0x00000004u;
  10711. output_type_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10712. }
  10713. inline std::string* MethodDescriptorProto::_internal_mutable_output_type() {
  10714. _has_bits_[0] |= 0x00000004u;
  10715. return output_type_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10716. }
  10717. inline std::string* MethodDescriptorProto::release_output_type() {
  10718. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.output_type)
  10719. if (!_internal_has_output_type()) {
  10720. return nullptr;
  10721. }
  10722. _has_bits_[0] &= ~0x00000004u;
  10723. auto* p = output_type_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10724. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10725. if (output_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10726. output_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10727. }
  10728. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10729. return p;
  10730. }
  10731. inline void MethodDescriptorProto::set_allocated_output_type(std::string* output_type) {
  10732. if (output_type != nullptr) {
  10733. _has_bits_[0] |= 0x00000004u;
  10734. } else {
  10735. _has_bits_[0] &= ~0x00000004u;
  10736. }
  10737. output_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), output_type,
  10738. GetArenaForAllocation());
  10739. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10740. if (output_type_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10741. output_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10742. }
  10743. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10744. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  10745. }
  10746. // optional .google.protobuf.MethodOptions options = 4;
  10747. inline bool MethodDescriptorProto::_internal_has_options() const {
  10748. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  10749. PROTOBUF_ASSUME(!value || options_ != nullptr);
  10750. return value;
  10751. }
  10752. inline bool MethodDescriptorProto::has_options() const {
  10753. return _internal_has_options();
  10754. }
  10755. inline void MethodDescriptorProto::clear_options() {
  10756. if (options_ != nullptr) options_->Clear();
  10757. _has_bits_[0] &= ~0x00000008u;
  10758. }
  10759. inline const ::PROTOBUF_NAMESPACE_ID::MethodOptions& MethodDescriptorProto::_internal_options() const {
  10760. const ::PROTOBUF_NAMESPACE_ID::MethodOptions* p = options_;
  10761. return p != nullptr ? *p : reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::MethodOptions&>(
  10762. ::PROTOBUF_NAMESPACE_ID::_MethodOptions_default_instance_);
  10763. }
  10764. inline const ::PROTOBUF_NAMESPACE_ID::MethodOptions& MethodDescriptorProto::options() const {
  10765. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
  10766. return _internal_options();
  10767. }
  10768. inline void MethodDescriptorProto::unsafe_arena_set_allocated_options(
  10769. ::PROTOBUF_NAMESPACE_ID::MethodOptions* options) {
  10770. if (GetArenaForAllocation() == nullptr) {
  10771. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(options_);
  10772. }
  10773. options_ = options;
  10774. if (options) {
  10775. _has_bits_[0] |= 0x00000008u;
  10776. } else {
  10777. _has_bits_[0] &= ~0x00000008u;
  10778. }
  10779. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.options)
  10780. }
  10781. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::release_options() {
  10782. _has_bits_[0] &= ~0x00000008u;
  10783. ::PROTOBUF_NAMESPACE_ID::MethodOptions* temp = options_;
  10784. options_ = nullptr;
  10785. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  10786. auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
  10787. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10788. if (GetArenaForAllocation() == nullptr) { delete old; }
  10789. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  10790. if (GetArenaForAllocation() != nullptr) {
  10791. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  10792. }
  10793. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  10794. return temp;
  10795. }
  10796. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::unsafe_arena_release_options() {
  10797. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.options)
  10798. _has_bits_[0] &= ~0x00000008u;
  10799. ::PROTOBUF_NAMESPACE_ID::MethodOptions* temp = options_;
  10800. options_ = nullptr;
  10801. return temp;
  10802. }
  10803. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::_internal_mutable_options() {
  10804. _has_bits_[0] |= 0x00000008u;
  10805. if (options_ == nullptr) {
  10806. auto* p = CreateMaybeMessage<::PROTOBUF_NAMESPACE_ID::MethodOptions>(GetArenaForAllocation());
  10807. options_ = p;
  10808. }
  10809. return options_;
  10810. }
  10811. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions* MethodDescriptorProto::mutable_options() {
  10812. ::PROTOBUF_NAMESPACE_ID::MethodOptions* _msg = _internal_mutable_options();
  10813. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
  10814. return _msg;
  10815. }
  10816. inline void MethodDescriptorProto::set_allocated_options(::PROTOBUF_NAMESPACE_ID::MethodOptions* options) {
  10817. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  10818. if (message_arena == nullptr) {
  10819. delete options_;
  10820. }
  10821. if (options) {
  10822. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  10823. ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::PROTOBUF_NAMESPACE_ID::MethodOptions>::GetOwningArena(options);
  10824. if (message_arena != submessage_arena) {
  10825. options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  10826. message_arena, options, submessage_arena);
  10827. }
  10828. _has_bits_[0] |= 0x00000008u;
  10829. } else {
  10830. _has_bits_[0] &= ~0x00000008u;
  10831. }
  10832. options_ = options;
  10833. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
  10834. }
  10835. // optional bool client_streaming = 5 [default = false];
  10836. inline bool MethodDescriptorProto::_internal_has_client_streaming() const {
  10837. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  10838. return value;
  10839. }
  10840. inline bool MethodDescriptorProto::has_client_streaming() const {
  10841. return _internal_has_client_streaming();
  10842. }
  10843. inline void MethodDescriptorProto::clear_client_streaming() {
  10844. client_streaming_ = false;
  10845. _has_bits_[0] &= ~0x00000010u;
  10846. }
  10847. inline bool MethodDescriptorProto::_internal_client_streaming() const {
  10848. return client_streaming_;
  10849. }
  10850. inline bool MethodDescriptorProto::client_streaming() const {
  10851. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming)
  10852. return _internal_client_streaming();
  10853. }
  10854. inline void MethodDescriptorProto::_internal_set_client_streaming(bool value) {
  10855. _has_bits_[0] |= 0x00000010u;
  10856. client_streaming_ = value;
  10857. }
  10858. inline void MethodDescriptorProto::set_client_streaming(bool value) {
  10859. _internal_set_client_streaming(value);
  10860. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming)
  10861. }
  10862. // optional bool server_streaming = 6 [default = false];
  10863. inline bool MethodDescriptorProto::_internal_has_server_streaming() const {
  10864. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  10865. return value;
  10866. }
  10867. inline bool MethodDescriptorProto::has_server_streaming() const {
  10868. return _internal_has_server_streaming();
  10869. }
  10870. inline void MethodDescriptorProto::clear_server_streaming() {
  10871. server_streaming_ = false;
  10872. _has_bits_[0] &= ~0x00000020u;
  10873. }
  10874. inline bool MethodDescriptorProto::_internal_server_streaming() const {
  10875. return server_streaming_;
  10876. }
  10877. inline bool MethodDescriptorProto::server_streaming() const {
  10878. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming)
  10879. return _internal_server_streaming();
  10880. }
  10881. inline void MethodDescriptorProto::_internal_set_server_streaming(bool value) {
  10882. _has_bits_[0] |= 0x00000020u;
  10883. server_streaming_ = value;
  10884. }
  10885. inline void MethodDescriptorProto::set_server_streaming(bool value) {
  10886. _internal_set_server_streaming(value);
  10887. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming)
  10888. }
  10889. // -------------------------------------------------------------------
  10890. // FileOptions
  10891. // optional string java_package = 1;
  10892. inline bool FileOptions::_internal_has_java_package() const {
  10893. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  10894. return value;
  10895. }
  10896. inline bool FileOptions::has_java_package() const {
  10897. return _internal_has_java_package();
  10898. }
  10899. inline void FileOptions::clear_java_package() {
  10900. java_package_.ClearToEmpty();
  10901. _has_bits_[0] &= ~0x00000001u;
  10902. }
  10903. inline const std::string& FileOptions::java_package() const {
  10904. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
  10905. return _internal_java_package();
  10906. }
  10907. template <typename ArgT0, typename... ArgT>
  10908. inline PROTOBUF_ALWAYS_INLINE
  10909. void FileOptions::set_java_package(ArgT0&& arg0, ArgT... args) {
  10910. _has_bits_[0] |= 0x00000001u;
  10911. java_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10912. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
  10913. }
  10914. inline std::string* FileOptions::mutable_java_package() {
  10915. std::string* _s = _internal_mutable_java_package();
  10916. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
  10917. return _s;
  10918. }
  10919. inline const std::string& FileOptions::_internal_java_package() const {
  10920. return java_package_.Get();
  10921. }
  10922. inline void FileOptions::_internal_set_java_package(const std::string& value) {
  10923. _has_bits_[0] |= 0x00000001u;
  10924. java_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10925. }
  10926. inline std::string* FileOptions::_internal_mutable_java_package() {
  10927. _has_bits_[0] |= 0x00000001u;
  10928. return java_package_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10929. }
  10930. inline std::string* FileOptions::release_java_package() {
  10931. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_package)
  10932. if (!_internal_has_java_package()) {
  10933. return nullptr;
  10934. }
  10935. _has_bits_[0] &= ~0x00000001u;
  10936. auto* p = java_package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  10937. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10938. if (java_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10939. java_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10940. }
  10941. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10942. return p;
  10943. }
  10944. inline void FileOptions::set_allocated_java_package(std::string* java_package) {
  10945. if (java_package != nullptr) {
  10946. _has_bits_[0] |= 0x00000001u;
  10947. } else {
  10948. _has_bits_[0] &= ~0x00000001u;
  10949. }
  10950. java_package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), java_package,
  10951. GetArenaForAllocation());
  10952. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10953. if (java_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  10954. java_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  10955. }
  10956. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  10957. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
  10958. }
  10959. // optional string java_outer_classname = 8;
  10960. inline bool FileOptions::_internal_has_java_outer_classname() const {
  10961. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  10962. return value;
  10963. }
  10964. inline bool FileOptions::has_java_outer_classname() const {
  10965. return _internal_has_java_outer_classname();
  10966. }
  10967. inline void FileOptions::clear_java_outer_classname() {
  10968. java_outer_classname_.ClearToEmpty();
  10969. _has_bits_[0] &= ~0x00000002u;
  10970. }
  10971. inline const std::string& FileOptions::java_outer_classname() const {
  10972. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
  10973. return _internal_java_outer_classname();
  10974. }
  10975. template <typename ArgT0, typename... ArgT>
  10976. inline PROTOBUF_ALWAYS_INLINE
  10977. void FileOptions::set_java_outer_classname(ArgT0&& arg0, ArgT... args) {
  10978. _has_bits_[0] |= 0x00000002u;
  10979. java_outer_classname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  10980. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
  10981. }
  10982. inline std::string* FileOptions::mutable_java_outer_classname() {
  10983. std::string* _s = _internal_mutable_java_outer_classname();
  10984. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
  10985. return _s;
  10986. }
  10987. inline const std::string& FileOptions::_internal_java_outer_classname() const {
  10988. return java_outer_classname_.Get();
  10989. }
  10990. inline void FileOptions::_internal_set_java_outer_classname(const std::string& value) {
  10991. _has_bits_[0] |= 0x00000002u;
  10992. java_outer_classname_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  10993. }
  10994. inline std::string* FileOptions::_internal_mutable_java_outer_classname() {
  10995. _has_bits_[0] |= 0x00000002u;
  10996. return java_outer_classname_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  10997. }
  10998. inline std::string* FileOptions::release_java_outer_classname() {
  10999. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_outer_classname)
  11000. if (!_internal_has_java_outer_classname()) {
  11001. return nullptr;
  11002. }
  11003. _has_bits_[0] &= ~0x00000002u;
  11004. auto* p = java_outer_classname_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11005. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11006. if (java_outer_classname_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11007. java_outer_classname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11008. }
  11009. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11010. return p;
  11011. }
  11012. inline void FileOptions::set_allocated_java_outer_classname(std::string* java_outer_classname) {
  11013. if (java_outer_classname != nullptr) {
  11014. _has_bits_[0] |= 0x00000002u;
  11015. } else {
  11016. _has_bits_[0] &= ~0x00000002u;
  11017. }
  11018. java_outer_classname_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), java_outer_classname,
  11019. GetArenaForAllocation());
  11020. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11021. if (java_outer_classname_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11022. java_outer_classname_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11023. }
  11024. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11025. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  11026. }
  11027. // optional bool java_multiple_files = 10 [default = false];
  11028. inline bool FileOptions::_internal_has_java_multiple_files() const {
  11029. bool value = (_has_bits_[0] & 0x00000400u) != 0;
  11030. return value;
  11031. }
  11032. inline bool FileOptions::has_java_multiple_files() const {
  11033. return _internal_has_java_multiple_files();
  11034. }
  11035. inline void FileOptions::clear_java_multiple_files() {
  11036. java_multiple_files_ = false;
  11037. _has_bits_[0] &= ~0x00000400u;
  11038. }
  11039. inline bool FileOptions::_internal_java_multiple_files() const {
  11040. return java_multiple_files_;
  11041. }
  11042. inline bool FileOptions::java_multiple_files() const {
  11043. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
  11044. return _internal_java_multiple_files();
  11045. }
  11046. inline void FileOptions::_internal_set_java_multiple_files(bool value) {
  11047. _has_bits_[0] |= 0x00000400u;
  11048. java_multiple_files_ = value;
  11049. }
  11050. inline void FileOptions::set_java_multiple_files(bool value) {
  11051. _internal_set_java_multiple_files(value);
  11052. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
  11053. }
  11054. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  11055. inline bool FileOptions::_internal_has_java_generate_equals_and_hash() const {
  11056. bool value = (_has_bits_[0] & 0x00000800u) != 0;
  11057. return value;
  11058. }
  11059. inline bool FileOptions::has_java_generate_equals_and_hash() const {
  11060. return _internal_has_java_generate_equals_and_hash();
  11061. }
  11062. inline void FileOptions::clear_java_generate_equals_and_hash() {
  11063. java_generate_equals_and_hash_ = false;
  11064. _has_bits_[0] &= ~0x00000800u;
  11065. }
  11066. inline bool FileOptions::_internal_java_generate_equals_and_hash() const {
  11067. return java_generate_equals_and_hash_;
  11068. }
  11069. inline bool FileOptions::java_generate_equals_and_hash() const {
  11070. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
  11071. return _internal_java_generate_equals_and_hash();
  11072. }
  11073. inline void FileOptions::_internal_set_java_generate_equals_and_hash(bool value) {
  11074. _has_bits_[0] |= 0x00000800u;
  11075. java_generate_equals_and_hash_ = value;
  11076. }
  11077. inline void FileOptions::set_java_generate_equals_and_hash(bool value) {
  11078. _internal_set_java_generate_equals_and_hash(value);
  11079. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
  11080. }
  11081. // optional bool java_string_check_utf8 = 27 [default = false];
  11082. inline bool FileOptions::_internal_has_java_string_check_utf8() const {
  11083. bool value = (_has_bits_[0] & 0x00001000u) != 0;
  11084. return value;
  11085. }
  11086. inline bool FileOptions::has_java_string_check_utf8() const {
  11087. return _internal_has_java_string_check_utf8();
  11088. }
  11089. inline void FileOptions::clear_java_string_check_utf8() {
  11090. java_string_check_utf8_ = false;
  11091. _has_bits_[0] &= ~0x00001000u;
  11092. }
  11093. inline bool FileOptions::_internal_java_string_check_utf8() const {
  11094. return java_string_check_utf8_;
  11095. }
  11096. inline bool FileOptions::java_string_check_utf8() const {
  11097. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
  11098. return _internal_java_string_check_utf8();
  11099. }
  11100. inline void FileOptions::_internal_set_java_string_check_utf8(bool value) {
  11101. _has_bits_[0] |= 0x00001000u;
  11102. java_string_check_utf8_ = value;
  11103. }
  11104. inline void FileOptions::set_java_string_check_utf8(bool value) {
  11105. _internal_set_java_string_check_utf8(value);
  11106. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
  11107. }
  11108. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  11109. inline bool FileOptions::_internal_has_optimize_for() const {
  11110. bool value = (_has_bits_[0] & 0x00040000u) != 0;
  11111. return value;
  11112. }
  11113. inline bool FileOptions::has_optimize_for() const {
  11114. return _internal_has_optimize_for();
  11115. }
  11116. inline void FileOptions::clear_optimize_for() {
  11117. optimize_for_ = 1;
  11118. _has_bits_[0] &= ~0x00040000u;
  11119. }
  11120. inline ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode FileOptions::_internal_optimize_for() const {
  11121. return static_cast< ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode >(optimize_for_);
  11122. }
  11123. inline ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode FileOptions::optimize_for() const {
  11124. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
  11125. return _internal_optimize_for();
  11126. }
  11127. inline void FileOptions::_internal_set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value) {
  11128. assert(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_IsValid(value));
  11129. _has_bits_[0] |= 0x00040000u;
  11130. optimize_for_ = value;
  11131. }
  11132. inline void FileOptions::set_optimize_for(::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode value) {
  11133. _internal_set_optimize_for(value);
  11134. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
  11135. }
  11136. // optional string go_package = 11;
  11137. inline bool FileOptions::_internal_has_go_package() const {
  11138. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  11139. return value;
  11140. }
  11141. inline bool FileOptions::has_go_package() const {
  11142. return _internal_has_go_package();
  11143. }
  11144. inline void FileOptions::clear_go_package() {
  11145. go_package_.ClearToEmpty();
  11146. _has_bits_[0] &= ~0x00000004u;
  11147. }
  11148. inline const std::string& FileOptions::go_package() const {
  11149. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
  11150. return _internal_go_package();
  11151. }
  11152. template <typename ArgT0, typename... ArgT>
  11153. inline PROTOBUF_ALWAYS_INLINE
  11154. void FileOptions::set_go_package(ArgT0&& arg0, ArgT... args) {
  11155. _has_bits_[0] |= 0x00000004u;
  11156. go_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11157. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
  11158. }
  11159. inline std::string* FileOptions::mutable_go_package() {
  11160. std::string* _s = _internal_mutable_go_package();
  11161. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
  11162. return _s;
  11163. }
  11164. inline const std::string& FileOptions::_internal_go_package() const {
  11165. return go_package_.Get();
  11166. }
  11167. inline void FileOptions::_internal_set_go_package(const std::string& value) {
  11168. _has_bits_[0] |= 0x00000004u;
  11169. go_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11170. }
  11171. inline std::string* FileOptions::_internal_mutable_go_package() {
  11172. _has_bits_[0] |= 0x00000004u;
  11173. return go_package_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11174. }
  11175. inline std::string* FileOptions::release_go_package() {
  11176. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_package)
  11177. if (!_internal_has_go_package()) {
  11178. return nullptr;
  11179. }
  11180. _has_bits_[0] &= ~0x00000004u;
  11181. auto* p = go_package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11182. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11183. if (go_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11184. go_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11185. }
  11186. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11187. return p;
  11188. }
  11189. inline void FileOptions::set_allocated_go_package(std::string* go_package) {
  11190. if (go_package != nullptr) {
  11191. _has_bits_[0] |= 0x00000004u;
  11192. } else {
  11193. _has_bits_[0] &= ~0x00000004u;
  11194. }
  11195. go_package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), go_package,
  11196. GetArenaForAllocation());
  11197. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11198. if (go_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11199. go_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11200. }
  11201. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11202. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
  11203. }
  11204. // optional bool cc_generic_services = 16 [default = false];
  11205. inline bool FileOptions::_internal_has_cc_generic_services() const {
  11206. bool value = (_has_bits_[0] & 0x00002000u) != 0;
  11207. return value;
  11208. }
  11209. inline bool FileOptions::has_cc_generic_services() const {
  11210. return _internal_has_cc_generic_services();
  11211. }
  11212. inline void FileOptions::clear_cc_generic_services() {
  11213. cc_generic_services_ = false;
  11214. _has_bits_[0] &= ~0x00002000u;
  11215. }
  11216. inline bool FileOptions::_internal_cc_generic_services() const {
  11217. return cc_generic_services_;
  11218. }
  11219. inline bool FileOptions::cc_generic_services() const {
  11220. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
  11221. return _internal_cc_generic_services();
  11222. }
  11223. inline void FileOptions::_internal_set_cc_generic_services(bool value) {
  11224. _has_bits_[0] |= 0x00002000u;
  11225. cc_generic_services_ = value;
  11226. }
  11227. inline void FileOptions::set_cc_generic_services(bool value) {
  11228. _internal_set_cc_generic_services(value);
  11229. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
  11230. }
  11231. // optional bool java_generic_services = 17 [default = false];
  11232. inline bool FileOptions::_internal_has_java_generic_services() const {
  11233. bool value = (_has_bits_[0] & 0x00004000u) != 0;
  11234. return value;
  11235. }
  11236. inline bool FileOptions::has_java_generic_services() const {
  11237. return _internal_has_java_generic_services();
  11238. }
  11239. inline void FileOptions::clear_java_generic_services() {
  11240. java_generic_services_ = false;
  11241. _has_bits_[0] &= ~0x00004000u;
  11242. }
  11243. inline bool FileOptions::_internal_java_generic_services() const {
  11244. return java_generic_services_;
  11245. }
  11246. inline bool FileOptions::java_generic_services() const {
  11247. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
  11248. return _internal_java_generic_services();
  11249. }
  11250. inline void FileOptions::_internal_set_java_generic_services(bool value) {
  11251. _has_bits_[0] |= 0x00004000u;
  11252. java_generic_services_ = value;
  11253. }
  11254. inline void FileOptions::set_java_generic_services(bool value) {
  11255. _internal_set_java_generic_services(value);
  11256. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
  11257. }
  11258. // optional bool py_generic_services = 18 [default = false];
  11259. inline bool FileOptions::_internal_has_py_generic_services() const {
  11260. bool value = (_has_bits_[0] & 0x00008000u) != 0;
  11261. return value;
  11262. }
  11263. inline bool FileOptions::has_py_generic_services() const {
  11264. return _internal_has_py_generic_services();
  11265. }
  11266. inline void FileOptions::clear_py_generic_services() {
  11267. py_generic_services_ = false;
  11268. _has_bits_[0] &= ~0x00008000u;
  11269. }
  11270. inline bool FileOptions::_internal_py_generic_services() const {
  11271. return py_generic_services_;
  11272. }
  11273. inline bool FileOptions::py_generic_services() const {
  11274. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
  11275. return _internal_py_generic_services();
  11276. }
  11277. inline void FileOptions::_internal_set_py_generic_services(bool value) {
  11278. _has_bits_[0] |= 0x00008000u;
  11279. py_generic_services_ = value;
  11280. }
  11281. inline void FileOptions::set_py_generic_services(bool value) {
  11282. _internal_set_py_generic_services(value);
  11283. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
  11284. }
  11285. // optional bool php_generic_services = 42 [default = false];
  11286. inline bool FileOptions::_internal_has_php_generic_services() const {
  11287. bool value = (_has_bits_[0] & 0x00010000u) != 0;
  11288. return value;
  11289. }
  11290. inline bool FileOptions::has_php_generic_services() const {
  11291. return _internal_has_php_generic_services();
  11292. }
  11293. inline void FileOptions::clear_php_generic_services() {
  11294. php_generic_services_ = false;
  11295. _has_bits_[0] &= ~0x00010000u;
  11296. }
  11297. inline bool FileOptions::_internal_php_generic_services() const {
  11298. return php_generic_services_;
  11299. }
  11300. inline bool FileOptions::php_generic_services() const {
  11301. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_generic_services)
  11302. return _internal_php_generic_services();
  11303. }
  11304. inline void FileOptions::_internal_set_php_generic_services(bool value) {
  11305. _has_bits_[0] |= 0x00010000u;
  11306. php_generic_services_ = value;
  11307. }
  11308. inline void FileOptions::set_php_generic_services(bool value) {
  11309. _internal_set_php_generic_services(value);
  11310. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_generic_services)
  11311. }
  11312. // optional bool deprecated = 23 [default = false];
  11313. inline bool FileOptions::_internal_has_deprecated() const {
  11314. bool value = (_has_bits_[0] & 0x00020000u) != 0;
  11315. return value;
  11316. }
  11317. inline bool FileOptions::has_deprecated() const {
  11318. return _internal_has_deprecated();
  11319. }
  11320. inline void FileOptions::clear_deprecated() {
  11321. deprecated_ = false;
  11322. _has_bits_[0] &= ~0x00020000u;
  11323. }
  11324. inline bool FileOptions::_internal_deprecated() const {
  11325. return deprecated_;
  11326. }
  11327. inline bool FileOptions::deprecated() const {
  11328. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
  11329. return _internal_deprecated();
  11330. }
  11331. inline void FileOptions::_internal_set_deprecated(bool value) {
  11332. _has_bits_[0] |= 0x00020000u;
  11333. deprecated_ = value;
  11334. }
  11335. inline void FileOptions::set_deprecated(bool value) {
  11336. _internal_set_deprecated(value);
  11337. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
  11338. }
  11339. // optional bool cc_enable_arenas = 31 [default = true];
  11340. inline bool FileOptions::_internal_has_cc_enable_arenas() const {
  11341. bool value = (_has_bits_[0] & 0x00080000u) != 0;
  11342. return value;
  11343. }
  11344. inline bool FileOptions::has_cc_enable_arenas() const {
  11345. return _internal_has_cc_enable_arenas();
  11346. }
  11347. inline void FileOptions::clear_cc_enable_arenas() {
  11348. cc_enable_arenas_ = true;
  11349. _has_bits_[0] &= ~0x00080000u;
  11350. }
  11351. inline bool FileOptions::_internal_cc_enable_arenas() const {
  11352. return cc_enable_arenas_;
  11353. }
  11354. inline bool FileOptions::cc_enable_arenas() const {
  11355. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas)
  11356. return _internal_cc_enable_arenas();
  11357. }
  11358. inline void FileOptions::_internal_set_cc_enable_arenas(bool value) {
  11359. _has_bits_[0] |= 0x00080000u;
  11360. cc_enable_arenas_ = value;
  11361. }
  11362. inline void FileOptions::set_cc_enable_arenas(bool value) {
  11363. _internal_set_cc_enable_arenas(value);
  11364. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas)
  11365. }
  11366. // optional string objc_class_prefix = 36;
  11367. inline bool FileOptions::_internal_has_objc_class_prefix() const {
  11368. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  11369. return value;
  11370. }
  11371. inline bool FileOptions::has_objc_class_prefix() const {
  11372. return _internal_has_objc_class_prefix();
  11373. }
  11374. inline void FileOptions::clear_objc_class_prefix() {
  11375. objc_class_prefix_.ClearToEmpty();
  11376. _has_bits_[0] &= ~0x00000008u;
  11377. }
  11378. inline const std::string& FileOptions::objc_class_prefix() const {
  11379. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix)
  11380. return _internal_objc_class_prefix();
  11381. }
  11382. template <typename ArgT0, typename... ArgT>
  11383. inline PROTOBUF_ALWAYS_INLINE
  11384. void FileOptions::set_objc_class_prefix(ArgT0&& arg0, ArgT... args) {
  11385. _has_bits_[0] |= 0x00000008u;
  11386. objc_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11387. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix)
  11388. }
  11389. inline std::string* FileOptions::mutable_objc_class_prefix() {
  11390. std::string* _s = _internal_mutable_objc_class_prefix();
  11391. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix)
  11392. return _s;
  11393. }
  11394. inline const std::string& FileOptions::_internal_objc_class_prefix() const {
  11395. return objc_class_prefix_.Get();
  11396. }
  11397. inline void FileOptions::_internal_set_objc_class_prefix(const std::string& value) {
  11398. _has_bits_[0] |= 0x00000008u;
  11399. objc_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11400. }
  11401. inline std::string* FileOptions::_internal_mutable_objc_class_prefix() {
  11402. _has_bits_[0] |= 0x00000008u;
  11403. return objc_class_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11404. }
  11405. inline std::string* FileOptions::release_objc_class_prefix() {
  11406. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_class_prefix)
  11407. if (!_internal_has_objc_class_prefix()) {
  11408. return nullptr;
  11409. }
  11410. _has_bits_[0] &= ~0x00000008u;
  11411. auto* p = objc_class_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11412. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11413. if (objc_class_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11414. objc_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11415. }
  11416. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11417. return p;
  11418. }
  11419. inline void FileOptions::set_allocated_objc_class_prefix(std::string* objc_class_prefix) {
  11420. if (objc_class_prefix != nullptr) {
  11421. _has_bits_[0] |= 0x00000008u;
  11422. } else {
  11423. _has_bits_[0] &= ~0x00000008u;
  11424. }
  11425. objc_class_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), objc_class_prefix,
  11426. GetArenaForAllocation());
  11427. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11428. if (objc_class_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11429. objc_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11430. }
  11431. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11432. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
  11433. }
  11434. // optional string csharp_namespace = 37;
  11435. inline bool FileOptions::_internal_has_csharp_namespace() const {
  11436. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  11437. return value;
  11438. }
  11439. inline bool FileOptions::has_csharp_namespace() const {
  11440. return _internal_has_csharp_namespace();
  11441. }
  11442. inline void FileOptions::clear_csharp_namespace() {
  11443. csharp_namespace_.ClearToEmpty();
  11444. _has_bits_[0] &= ~0x00000010u;
  11445. }
  11446. inline const std::string& FileOptions::csharp_namespace() const {
  11447. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace)
  11448. return _internal_csharp_namespace();
  11449. }
  11450. template <typename ArgT0, typename... ArgT>
  11451. inline PROTOBUF_ALWAYS_INLINE
  11452. void FileOptions::set_csharp_namespace(ArgT0&& arg0, ArgT... args) {
  11453. _has_bits_[0] |= 0x00000010u;
  11454. csharp_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11455. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace)
  11456. }
  11457. inline std::string* FileOptions::mutable_csharp_namespace() {
  11458. std::string* _s = _internal_mutable_csharp_namespace();
  11459. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace)
  11460. return _s;
  11461. }
  11462. inline const std::string& FileOptions::_internal_csharp_namespace() const {
  11463. return csharp_namespace_.Get();
  11464. }
  11465. inline void FileOptions::_internal_set_csharp_namespace(const std::string& value) {
  11466. _has_bits_[0] |= 0x00000010u;
  11467. csharp_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11468. }
  11469. inline std::string* FileOptions::_internal_mutable_csharp_namespace() {
  11470. _has_bits_[0] |= 0x00000010u;
  11471. return csharp_namespace_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11472. }
  11473. inline std::string* FileOptions::release_csharp_namespace() {
  11474. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_namespace)
  11475. if (!_internal_has_csharp_namespace()) {
  11476. return nullptr;
  11477. }
  11478. _has_bits_[0] &= ~0x00000010u;
  11479. auto* p = csharp_namespace_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11480. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11481. if (csharp_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11482. csharp_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11483. }
  11484. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11485. return p;
  11486. }
  11487. inline void FileOptions::set_allocated_csharp_namespace(std::string* csharp_namespace) {
  11488. if (csharp_namespace != nullptr) {
  11489. _has_bits_[0] |= 0x00000010u;
  11490. } else {
  11491. _has_bits_[0] &= ~0x00000010u;
  11492. }
  11493. csharp_namespace_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), csharp_namespace,
  11494. GetArenaForAllocation());
  11495. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11496. if (csharp_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11497. csharp_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11498. }
  11499. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11500. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
  11501. }
  11502. // optional string swift_prefix = 39;
  11503. inline bool FileOptions::_internal_has_swift_prefix() const {
  11504. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  11505. return value;
  11506. }
  11507. inline bool FileOptions::has_swift_prefix() const {
  11508. return _internal_has_swift_prefix();
  11509. }
  11510. inline void FileOptions::clear_swift_prefix() {
  11511. swift_prefix_.ClearToEmpty();
  11512. _has_bits_[0] &= ~0x00000020u;
  11513. }
  11514. inline const std::string& FileOptions::swift_prefix() const {
  11515. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.swift_prefix)
  11516. return _internal_swift_prefix();
  11517. }
  11518. template <typename ArgT0, typename... ArgT>
  11519. inline PROTOBUF_ALWAYS_INLINE
  11520. void FileOptions::set_swift_prefix(ArgT0&& arg0, ArgT... args) {
  11521. _has_bits_[0] |= 0x00000020u;
  11522. swift_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11523. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.swift_prefix)
  11524. }
  11525. inline std::string* FileOptions::mutable_swift_prefix() {
  11526. std::string* _s = _internal_mutable_swift_prefix();
  11527. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.swift_prefix)
  11528. return _s;
  11529. }
  11530. inline const std::string& FileOptions::_internal_swift_prefix() const {
  11531. return swift_prefix_.Get();
  11532. }
  11533. inline void FileOptions::_internal_set_swift_prefix(const std::string& value) {
  11534. _has_bits_[0] |= 0x00000020u;
  11535. swift_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11536. }
  11537. inline std::string* FileOptions::_internal_mutable_swift_prefix() {
  11538. _has_bits_[0] |= 0x00000020u;
  11539. return swift_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11540. }
  11541. inline std::string* FileOptions::release_swift_prefix() {
  11542. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.swift_prefix)
  11543. if (!_internal_has_swift_prefix()) {
  11544. return nullptr;
  11545. }
  11546. _has_bits_[0] &= ~0x00000020u;
  11547. auto* p = swift_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11548. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11549. if (swift_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11550. swift_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11551. }
  11552. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11553. return p;
  11554. }
  11555. inline void FileOptions::set_allocated_swift_prefix(std::string* swift_prefix) {
  11556. if (swift_prefix != nullptr) {
  11557. _has_bits_[0] |= 0x00000020u;
  11558. } else {
  11559. _has_bits_[0] &= ~0x00000020u;
  11560. }
  11561. swift_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), swift_prefix,
  11562. GetArenaForAllocation());
  11563. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11564. if (swift_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11565. swift_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11566. }
  11567. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11568. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.swift_prefix)
  11569. }
  11570. // optional string php_class_prefix = 40;
  11571. inline bool FileOptions::_internal_has_php_class_prefix() const {
  11572. bool value = (_has_bits_[0] & 0x00000040u) != 0;
  11573. return value;
  11574. }
  11575. inline bool FileOptions::has_php_class_prefix() const {
  11576. return _internal_has_php_class_prefix();
  11577. }
  11578. inline void FileOptions::clear_php_class_prefix() {
  11579. php_class_prefix_.ClearToEmpty();
  11580. _has_bits_[0] &= ~0x00000040u;
  11581. }
  11582. inline const std::string& FileOptions::php_class_prefix() const {
  11583. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_class_prefix)
  11584. return _internal_php_class_prefix();
  11585. }
  11586. template <typename ArgT0, typename... ArgT>
  11587. inline PROTOBUF_ALWAYS_INLINE
  11588. void FileOptions::set_php_class_prefix(ArgT0&& arg0, ArgT... args) {
  11589. _has_bits_[0] |= 0x00000040u;
  11590. php_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11591. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_class_prefix)
  11592. }
  11593. inline std::string* FileOptions::mutable_php_class_prefix() {
  11594. std::string* _s = _internal_mutable_php_class_prefix();
  11595. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_class_prefix)
  11596. return _s;
  11597. }
  11598. inline const std::string& FileOptions::_internal_php_class_prefix() const {
  11599. return php_class_prefix_.Get();
  11600. }
  11601. inline void FileOptions::_internal_set_php_class_prefix(const std::string& value) {
  11602. _has_bits_[0] |= 0x00000040u;
  11603. php_class_prefix_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11604. }
  11605. inline std::string* FileOptions::_internal_mutable_php_class_prefix() {
  11606. _has_bits_[0] |= 0x00000040u;
  11607. return php_class_prefix_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11608. }
  11609. inline std::string* FileOptions::release_php_class_prefix() {
  11610. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_class_prefix)
  11611. if (!_internal_has_php_class_prefix()) {
  11612. return nullptr;
  11613. }
  11614. _has_bits_[0] &= ~0x00000040u;
  11615. auto* p = php_class_prefix_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11616. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11617. if (php_class_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11618. php_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11619. }
  11620. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11621. return p;
  11622. }
  11623. inline void FileOptions::set_allocated_php_class_prefix(std::string* php_class_prefix) {
  11624. if (php_class_prefix != nullptr) {
  11625. _has_bits_[0] |= 0x00000040u;
  11626. } else {
  11627. _has_bits_[0] &= ~0x00000040u;
  11628. }
  11629. php_class_prefix_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), php_class_prefix,
  11630. GetArenaForAllocation());
  11631. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11632. if (php_class_prefix_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11633. php_class_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11634. }
  11635. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11636. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_class_prefix)
  11637. }
  11638. // optional string php_namespace = 41;
  11639. inline bool FileOptions::_internal_has_php_namespace() const {
  11640. bool value = (_has_bits_[0] & 0x00000080u) != 0;
  11641. return value;
  11642. }
  11643. inline bool FileOptions::has_php_namespace() const {
  11644. return _internal_has_php_namespace();
  11645. }
  11646. inline void FileOptions::clear_php_namespace() {
  11647. php_namespace_.ClearToEmpty();
  11648. _has_bits_[0] &= ~0x00000080u;
  11649. }
  11650. inline const std::string& FileOptions::php_namespace() const {
  11651. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_namespace)
  11652. return _internal_php_namespace();
  11653. }
  11654. template <typename ArgT0, typename... ArgT>
  11655. inline PROTOBUF_ALWAYS_INLINE
  11656. void FileOptions::set_php_namespace(ArgT0&& arg0, ArgT... args) {
  11657. _has_bits_[0] |= 0x00000080u;
  11658. php_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11659. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_namespace)
  11660. }
  11661. inline std::string* FileOptions::mutable_php_namespace() {
  11662. std::string* _s = _internal_mutable_php_namespace();
  11663. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_namespace)
  11664. return _s;
  11665. }
  11666. inline const std::string& FileOptions::_internal_php_namespace() const {
  11667. return php_namespace_.Get();
  11668. }
  11669. inline void FileOptions::_internal_set_php_namespace(const std::string& value) {
  11670. _has_bits_[0] |= 0x00000080u;
  11671. php_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11672. }
  11673. inline std::string* FileOptions::_internal_mutable_php_namespace() {
  11674. _has_bits_[0] |= 0x00000080u;
  11675. return php_namespace_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11676. }
  11677. inline std::string* FileOptions::release_php_namespace() {
  11678. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_namespace)
  11679. if (!_internal_has_php_namespace()) {
  11680. return nullptr;
  11681. }
  11682. _has_bits_[0] &= ~0x00000080u;
  11683. auto* p = php_namespace_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11684. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11685. if (php_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11686. php_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11687. }
  11688. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11689. return p;
  11690. }
  11691. inline void FileOptions::set_allocated_php_namespace(std::string* php_namespace) {
  11692. if (php_namespace != nullptr) {
  11693. _has_bits_[0] |= 0x00000080u;
  11694. } else {
  11695. _has_bits_[0] &= ~0x00000080u;
  11696. }
  11697. php_namespace_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), php_namespace,
  11698. GetArenaForAllocation());
  11699. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11700. if (php_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11701. php_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11702. }
  11703. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11704. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_namespace)
  11705. }
  11706. // optional string php_metadata_namespace = 44;
  11707. inline bool FileOptions::_internal_has_php_metadata_namespace() const {
  11708. bool value = (_has_bits_[0] & 0x00000100u) != 0;
  11709. return value;
  11710. }
  11711. inline bool FileOptions::has_php_metadata_namespace() const {
  11712. return _internal_has_php_metadata_namespace();
  11713. }
  11714. inline void FileOptions::clear_php_metadata_namespace() {
  11715. php_metadata_namespace_.ClearToEmpty();
  11716. _has_bits_[0] &= ~0x00000100u;
  11717. }
  11718. inline const std::string& FileOptions::php_metadata_namespace() const {
  11719. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_metadata_namespace)
  11720. return _internal_php_metadata_namespace();
  11721. }
  11722. template <typename ArgT0, typename... ArgT>
  11723. inline PROTOBUF_ALWAYS_INLINE
  11724. void FileOptions::set_php_metadata_namespace(ArgT0&& arg0, ArgT... args) {
  11725. _has_bits_[0] |= 0x00000100u;
  11726. php_metadata_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11727. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_metadata_namespace)
  11728. }
  11729. inline std::string* FileOptions::mutable_php_metadata_namespace() {
  11730. std::string* _s = _internal_mutable_php_metadata_namespace();
  11731. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_metadata_namespace)
  11732. return _s;
  11733. }
  11734. inline const std::string& FileOptions::_internal_php_metadata_namespace() const {
  11735. return php_metadata_namespace_.Get();
  11736. }
  11737. inline void FileOptions::_internal_set_php_metadata_namespace(const std::string& value) {
  11738. _has_bits_[0] |= 0x00000100u;
  11739. php_metadata_namespace_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11740. }
  11741. inline std::string* FileOptions::_internal_mutable_php_metadata_namespace() {
  11742. _has_bits_[0] |= 0x00000100u;
  11743. return php_metadata_namespace_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11744. }
  11745. inline std::string* FileOptions::release_php_metadata_namespace() {
  11746. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_metadata_namespace)
  11747. if (!_internal_has_php_metadata_namespace()) {
  11748. return nullptr;
  11749. }
  11750. _has_bits_[0] &= ~0x00000100u;
  11751. auto* p = php_metadata_namespace_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11752. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11753. if (php_metadata_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11754. php_metadata_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11755. }
  11756. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11757. return p;
  11758. }
  11759. inline void FileOptions::set_allocated_php_metadata_namespace(std::string* php_metadata_namespace) {
  11760. if (php_metadata_namespace != nullptr) {
  11761. _has_bits_[0] |= 0x00000100u;
  11762. } else {
  11763. _has_bits_[0] &= ~0x00000100u;
  11764. }
  11765. php_metadata_namespace_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), php_metadata_namespace,
  11766. GetArenaForAllocation());
  11767. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11768. if (php_metadata_namespace_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11769. php_metadata_namespace_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11770. }
  11771. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11772. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
  11773. }
  11774. // optional string ruby_package = 45;
  11775. inline bool FileOptions::_internal_has_ruby_package() const {
  11776. bool value = (_has_bits_[0] & 0x00000200u) != 0;
  11777. return value;
  11778. }
  11779. inline bool FileOptions::has_ruby_package() const {
  11780. return _internal_has_ruby_package();
  11781. }
  11782. inline void FileOptions::clear_ruby_package() {
  11783. ruby_package_.ClearToEmpty();
  11784. _has_bits_[0] &= ~0x00000200u;
  11785. }
  11786. inline const std::string& FileOptions::ruby_package() const {
  11787. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.ruby_package)
  11788. return _internal_ruby_package();
  11789. }
  11790. template <typename ArgT0, typename... ArgT>
  11791. inline PROTOBUF_ALWAYS_INLINE
  11792. void FileOptions::set_ruby_package(ArgT0&& arg0, ArgT... args) {
  11793. _has_bits_[0] |= 0x00000200u;
  11794. ruby_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  11795. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.ruby_package)
  11796. }
  11797. inline std::string* FileOptions::mutable_ruby_package() {
  11798. std::string* _s = _internal_mutable_ruby_package();
  11799. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.ruby_package)
  11800. return _s;
  11801. }
  11802. inline const std::string& FileOptions::_internal_ruby_package() const {
  11803. return ruby_package_.Get();
  11804. }
  11805. inline void FileOptions::_internal_set_ruby_package(const std::string& value) {
  11806. _has_bits_[0] |= 0x00000200u;
  11807. ruby_package_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  11808. }
  11809. inline std::string* FileOptions::_internal_mutable_ruby_package() {
  11810. _has_bits_[0] |= 0x00000200u;
  11811. return ruby_package_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  11812. }
  11813. inline std::string* FileOptions::release_ruby_package() {
  11814. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.ruby_package)
  11815. if (!_internal_has_ruby_package()) {
  11816. return nullptr;
  11817. }
  11818. _has_bits_[0] &= ~0x00000200u;
  11819. auto* p = ruby_package_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  11820. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11821. if (ruby_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11822. ruby_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11823. }
  11824. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11825. return p;
  11826. }
  11827. inline void FileOptions::set_allocated_ruby_package(std::string* ruby_package) {
  11828. if (ruby_package != nullptr) {
  11829. _has_bits_[0] |= 0x00000200u;
  11830. } else {
  11831. _has_bits_[0] &= ~0x00000200u;
  11832. }
  11833. ruby_package_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ruby_package,
  11834. GetArenaForAllocation());
  11835. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11836. if (ruby_package_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  11837. ruby_package_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  11838. }
  11839. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  11840. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ruby_package)
  11841. }
  11842. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11843. inline int FileOptions::_internal_uninterpreted_option_size() const {
  11844. return uninterpreted_option_.size();
  11845. }
  11846. inline int FileOptions::uninterpreted_option_size() const {
  11847. return _internal_uninterpreted_option_size();
  11848. }
  11849. inline void FileOptions::clear_uninterpreted_option() {
  11850. uninterpreted_option_.Clear();
  11851. }
  11852. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
  11853. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
  11854. return uninterpreted_option_.Mutable(index);
  11855. }
  11856. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  11857. FileOptions::mutable_uninterpreted_option() {
  11858. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
  11859. return &uninterpreted_option_;
  11860. }
  11861. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FileOptions::_internal_uninterpreted_option(int index) const {
  11862. return uninterpreted_option_.Get(index);
  11863. }
  11864. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
  11865. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
  11866. return _internal_uninterpreted_option(index);
  11867. }
  11868. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::_internal_add_uninterpreted_option() {
  11869. return uninterpreted_option_.Add();
  11870. }
  11871. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FileOptions::add_uninterpreted_option() {
  11872. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  11873. // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
  11874. return _add;
  11875. }
  11876. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  11877. FileOptions::uninterpreted_option() const {
  11878. // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
  11879. return uninterpreted_option_;
  11880. }
  11881. // -------------------------------------------------------------------
  11882. // MessageOptions
  11883. // optional bool message_set_wire_format = 1 [default = false];
  11884. inline bool MessageOptions::_internal_has_message_set_wire_format() const {
  11885. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  11886. return value;
  11887. }
  11888. inline bool MessageOptions::has_message_set_wire_format() const {
  11889. return _internal_has_message_set_wire_format();
  11890. }
  11891. inline void MessageOptions::clear_message_set_wire_format() {
  11892. message_set_wire_format_ = false;
  11893. _has_bits_[0] &= ~0x00000001u;
  11894. }
  11895. inline bool MessageOptions::_internal_message_set_wire_format() const {
  11896. return message_set_wire_format_;
  11897. }
  11898. inline bool MessageOptions::message_set_wire_format() const {
  11899. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
  11900. return _internal_message_set_wire_format();
  11901. }
  11902. inline void MessageOptions::_internal_set_message_set_wire_format(bool value) {
  11903. _has_bits_[0] |= 0x00000001u;
  11904. message_set_wire_format_ = value;
  11905. }
  11906. inline void MessageOptions::set_message_set_wire_format(bool value) {
  11907. _internal_set_message_set_wire_format(value);
  11908. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
  11909. }
  11910. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  11911. inline bool MessageOptions::_internal_has_no_standard_descriptor_accessor() const {
  11912. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  11913. return value;
  11914. }
  11915. inline bool MessageOptions::has_no_standard_descriptor_accessor() const {
  11916. return _internal_has_no_standard_descriptor_accessor();
  11917. }
  11918. inline void MessageOptions::clear_no_standard_descriptor_accessor() {
  11919. no_standard_descriptor_accessor_ = false;
  11920. _has_bits_[0] &= ~0x00000002u;
  11921. }
  11922. inline bool MessageOptions::_internal_no_standard_descriptor_accessor() const {
  11923. return no_standard_descriptor_accessor_;
  11924. }
  11925. inline bool MessageOptions::no_standard_descriptor_accessor() const {
  11926. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  11927. return _internal_no_standard_descriptor_accessor();
  11928. }
  11929. inline void MessageOptions::_internal_set_no_standard_descriptor_accessor(bool value) {
  11930. _has_bits_[0] |= 0x00000002u;
  11931. no_standard_descriptor_accessor_ = value;
  11932. }
  11933. inline void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
  11934. _internal_set_no_standard_descriptor_accessor(value);
  11935. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  11936. }
  11937. // optional bool deprecated = 3 [default = false];
  11938. inline bool MessageOptions::_internal_has_deprecated() const {
  11939. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  11940. return value;
  11941. }
  11942. inline bool MessageOptions::has_deprecated() const {
  11943. return _internal_has_deprecated();
  11944. }
  11945. inline void MessageOptions::clear_deprecated() {
  11946. deprecated_ = false;
  11947. _has_bits_[0] &= ~0x00000004u;
  11948. }
  11949. inline bool MessageOptions::_internal_deprecated() const {
  11950. return deprecated_;
  11951. }
  11952. inline bool MessageOptions::deprecated() const {
  11953. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
  11954. return _internal_deprecated();
  11955. }
  11956. inline void MessageOptions::_internal_set_deprecated(bool value) {
  11957. _has_bits_[0] |= 0x00000004u;
  11958. deprecated_ = value;
  11959. }
  11960. inline void MessageOptions::set_deprecated(bool value) {
  11961. _internal_set_deprecated(value);
  11962. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
  11963. }
  11964. // optional bool map_entry = 7;
  11965. inline bool MessageOptions::_internal_has_map_entry() const {
  11966. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  11967. return value;
  11968. }
  11969. inline bool MessageOptions::has_map_entry() const {
  11970. return _internal_has_map_entry();
  11971. }
  11972. inline void MessageOptions::clear_map_entry() {
  11973. map_entry_ = false;
  11974. _has_bits_[0] &= ~0x00000008u;
  11975. }
  11976. inline bool MessageOptions::_internal_map_entry() const {
  11977. return map_entry_;
  11978. }
  11979. inline bool MessageOptions::map_entry() const {
  11980. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
  11981. return _internal_map_entry();
  11982. }
  11983. inline void MessageOptions::_internal_set_map_entry(bool value) {
  11984. _has_bits_[0] |= 0x00000008u;
  11985. map_entry_ = value;
  11986. }
  11987. inline void MessageOptions::set_map_entry(bool value) {
  11988. _internal_set_map_entry(value);
  11989. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry)
  11990. }
  11991. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  11992. inline int MessageOptions::_internal_uninterpreted_option_size() const {
  11993. return uninterpreted_option_.size();
  11994. }
  11995. inline int MessageOptions::uninterpreted_option_size() const {
  11996. return _internal_uninterpreted_option_size();
  11997. }
  11998. inline void MessageOptions::clear_uninterpreted_option() {
  11999. uninterpreted_option_.Clear();
  12000. }
  12001. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
  12002. // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
  12003. return uninterpreted_option_.Mutable(index);
  12004. }
  12005. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12006. MessageOptions::mutable_uninterpreted_option() {
  12007. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
  12008. return &uninterpreted_option_;
  12009. }
  12010. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MessageOptions::_internal_uninterpreted_option(int index) const {
  12011. return uninterpreted_option_.Get(index);
  12012. }
  12013. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
  12014. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
  12015. return _internal_uninterpreted_option(index);
  12016. }
  12017. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::_internal_add_uninterpreted_option() {
  12018. return uninterpreted_option_.Add();
  12019. }
  12020. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
  12021. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12022. // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
  12023. return _add;
  12024. }
  12025. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12026. MessageOptions::uninterpreted_option() const {
  12027. // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
  12028. return uninterpreted_option_;
  12029. }
  12030. // -------------------------------------------------------------------
  12031. // FieldOptions
  12032. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  12033. inline bool FieldOptions::_internal_has_ctype() const {
  12034. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12035. return value;
  12036. }
  12037. inline bool FieldOptions::has_ctype() const {
  12038. return _internal_has_ctype();
  12039. }
  12040. inline void FieldOptions::clear_ctype() {
  12041. ctype_ = 0;
  12042. _has_bits_[0] &= ~0x00000001u;
  12043. }
  12044. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType FieldOptions::_internal_ctype() const {
  12045. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType >(ctype_);
  12046. }
  12047. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType FieldOptions::ctype() const {
  12048. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
  12049. return _internal_ctype();
  12050. }
  12051. inline void FieldOptions::_internal_set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value) {
  12052. assert(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType_IsValid(value));
  12053. _has_bits_[0] |= 0x00000001u;
  12054. ctype_ = value;
  12055. }
  12056. inline void FieldOptions::set_ctype(::PROTOBUF_NAMESPACE_ID::FieldOptions_CType value) {
  12057. _internal_set_ctype(value);
  12058. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
  12059. }
  12060. // optional bool packed = 2;
  12061. inline bool FieldOptions::_internal_has_packed() const {
  12062. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12063. return value;
  12064. }
  12065. inline bool FieldOptions::has_packed() const {
  12066. return _internal_has_packed();
  12067. }
  12068. inline void FieldOptions::clear_packed() {
  12069. packed_ = false;
  12070. _has_bits_[0] &= ~0x00000002u;
  12071. }
  12072. inline bool FieldOptions::_internal_packed() const {
  12073. return packed_;
  12074. }
  12075. inline bool FieldOptions::packed() const {
  12076. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
  12077. return _internal_packed();
  12078. }
  12079. inline void FieldOptions::_internal_set_packed(bool value) {
  12080. _has_bits_[0] |= 0x00000002u;
  12081. packed_ = value;
  12082. }
  12083. inline void FieldOptions::set_packed(bool value) {
  12084. _internal_set_packed(value);
  12085. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
  12086. }
  12087. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  12088. inline bool FieldOptions::_internal_has_jstype() const {
  12089. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  12090. return value;
  12091. }
  12092. inline bool FieldOptions::has_jstype() const {
  12093. return _internal_has_jstype();
  12094. }
  12095. inline void FieldOptions::clear_jstype() {
  12096. jstype_ = 0;
  12097. _has_bits_[0] &= ~0x00000020u;
  12098. }
  12099. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType FieldOptions::_internal_jstype() const {
  12100. return static_cast< ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType >(jstype_);
  12101. }
  12102. inline ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType FieldOptions::jstype() const {
  12103. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
  12104. return _internal_jstype();
  12105. }
  12106. inline void FieldOptions::_internal_set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value) {
  12107. assert(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_IsValid(value));
  12108. _has_bits_[0] |= 0x00000020u;
  12109. jstype_ = value;
  12110. }
  12111. inline void FieldOptions::set_jstype(::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType value) {
  12112. _internal_set_jstype(value);
  12113. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
  12114. }
  12115. // optional bool lazy = 5 [default = false];
  12116. inline bool FieldOptions::_internal_has_lazy() const {
  12117. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  12118. return value;
  12119. }
  12120. inline bool FieldOptions::has_lazy() const {
  12121. return _internal_has_lazy();
  12122. }
  12123. inline void FieldOptions::clear_lazy() {
  12124. lazy_ = false;
  12125. _has_bits_[0] &= ~0x00000004u;
  12126. }
  12127. inline bool FieldOptions::_internal_lazy() const {
  12128. return lazy_;
  12129. }
  12130. inline bool FieldOptions::lazy() const {
  12131. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
  12132. return _internal_lazy();
  12133. }
  12134. inline void FieldOptions::_internal_set_lazy(bool value) {
  12135. _has_bits_[0] |= 0x00000004u;
  12136. lazy_ = value;
  12137. }
  12138. inline void FieldOptions::set_lazy(bool value) {
  12139. _internal_set_lazy(value);
  12140. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
  12141. }
  12142. // optional bool deprecated = 3 [default = false];
  12143. inline bool FieldOptions::_internal_has_deprecated() const {
  12144. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  12145. return value;
  12146. }
  12147. inline bool FieldOptions::has_deprecated() const {
  12148. return _internal_has_deprecated();
  12149. }
  12150. inline void FieldOptions::clear_deprecated() {
  12151. deprecated_ = false;
  12152. _has_bits_[0] &= ~0x00000008u;
  12153. }
  12154. inline bool FieldOptions::_internal_deprecated() const {
  12155. return deprecated_;
  12156. }
  12157. inline bool FieldOptions::deprecated() const {
  12158. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
  12159. return _internal_deprecated();
  12160. }
  12161. inline void FieldOptions::_internal_set_deprecated(bool value) {
  12162. _has_bits_[0] |= 0x00000008u;
  12163. deprecated_ = value;
  12164. }
  12165. inline void FieldOptions::set_deprecated(bool value) {
  12166. _internal_set_deprecated(value);
  12167. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
  12168. }
  12169. // optional bool weak = 10 [default = false];
  12170. inline bool FieldOptions::_internal_has_weak() const {
  12171. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  12172. return value;
  12173. }
  12174. inline bool FieldOptions::has_weak() const {
  12175. return _internal_has_weak();
  12176. }
  12177. inline void FieldOptions::clear_weak() {
  12178. weak_ = false;
  12179. _has_bits_[0] &= ~0x00000010u;
  12180. }
  12181. inline bool FieldOptions::_internal_weak() const {
  12182. return weak_;
  12183. }
  12184. inline bool FieldOptions::weak() const {
  12185. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
  12186. return _internal_weak();
  12187. }
  12188. inline void FieldOptions::_internal_set_weak(bool value) {
  12189. _has_bits_[0] |= 0x00000010u;
  12190. weak_ = value;
  12191. }
  12192. inline void FieldOptions::set_weak(bool value) {
  12193. _internal_set_weak(value);
  12194. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
  12195. }
  12196. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12197. inline int FieldOptions::_internal_uninterpreted_option_size() const {
  12198. return uninterpreted_option_.size();
  12199. }
  12200. inline int FieldOptions::uninterpreted_option_size() const {
  12201. return _internal_uninterpreted_option_size();
  12202. }
  12203. inline void FieldOptions::clear_uninterpreted_option() {
  12204. uninterpreted_option_.Clear();
  12205. }
  12206. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
  12207. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
  12208. return uninterpreted_option_.Mutable(index);
  12209. }
  12210. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12211. FieldOptions::mutable_uninterpreted_option() {
  12212. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
  12213. return &uninterpreted_option_;
  12214. }
  12215. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FieldOptions::_internal_uninterpreted_option(int index) const {
  12216. return uninterpreted_option_.Get(index);
  12217. }
  12218. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
  12219. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
  12220. return _internal_uninterpreted_option(index);
  12221. }
  12222. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::_internal_add_uninterpreted_option() {
  12223. return uninterpreted_option_.Add();
  12224. }
  12225. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
  12226. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12227. // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
  12228. return _add;
  12229. }
  12230. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12231. FieldOptions::uninterpreted_option() const {
  12232. // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
  12233. return uninterpreted_option_;
  12234. }
  12235. // -------------------------------------------------------------------
  12236. // OneofOptions
  12237. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12238. inline int OneofOptions::_internal_uninterpreted_option_size() const {
  12239. return uninterpreted_option_.size();
  12240. }
  12241. inline int OneofOptions::uninterpreted_option_size() const {
  12242. return _internal_uninterpreted_option_size();
  12243. }
  12244. inline void OneofOptions::clear_uninterpreted_option() {
  12245. uninterpreted_option_.Clear();
  12246. }
  12247. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::mutable_uninterpreted_option(int index) {
  12248. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninterpreted_option)
  12249. return uninterpreted_option_.Mutable(index);
  12250. }
  12251. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12252. OneofOptions::mutable_uninterpreted_option() {
  12253. // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.uninterpreted_option)
  12254. return &uninterpreted_option_;
  12255. }
  12256. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& OneofOptions::_internal_uninterpreted_option(int index) const {
  12257. return uninterpreted_option_.Get(index);
  12258. }
  12259. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& OneofOptions::uninterpreted_option(int index) const {
  12260. // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpreted_option)
  12261. return _internal_uninterpreted_option(index);
  12262. }
  12263. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::_internal_add_uninterpreted_option() {
  12264. return uninterpreted_option_.Add();
  12265. }
  12266. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* OneofOptions::add_uninterpreted_option() {
  12267. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12268. // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpreted_option)
  12269. return _add;
  12270. }
  12271. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12272. OneofOptions::uninterpreted_option() const {
  12273. // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpreted_option)
  12274. return uninterpreted_option_;
  12275. }
  12276. // -------------------------------------------------------------------
  12277. // EnumOptions
  12278. // optional bool allow_alias = 2;
  12279. inline bool EnumOptions::_internal_has_allow_alias() const {
  12280. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12281. return value;
  12282. }
  12283. inline bool EnumOptions::has_allow_alias() const {
  12284. return _internal_has_allow_alias();
  12285. }
  12286. inline void EnumOptions::clear_allow_alias() {
  12287. allow_alias_ = false;
  12288. _has_bits_[0] &= ~0x00000001u;
  12289. }
  12290. inline bool EnumOptions::_internal_allow_alias() const {
  12291. return allow_alias_;
  12292. }
  12293. inline bool EnumOptions::allow_alias() const {
  12294. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
  12295. return _internal_allow_alias();
  12296. }
  12297. inline void EnumOptions::_internal_set_allow_alias(bool value) {
  12298. _has_bits_[0] |= 0x00000001u;
  12299. allow_alias_ = value;
  12300. }
  12301. inline void EnumOptions::set_allow_alias(bool value) {
  12302. _internal_set_allow_alias(value);
  12303. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
  12304. }
  12305. // optional bool deprecated = 3 [default = false];
  12306. inline bool EnumOptions::_internal_has_deprecated() const {
  12307. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12308. return value;
  12309. }
  12310. inline bool EnumOptions::has_deprecated() const {
  12311. return _internal_has_deprecated();
  12312. }
  12313. inline void EnumOptions::clear_deprecated() {
  12314. deprecated_ = false;
  12315. _has_bits_[0] &= ~0x00000002u;
  12316. }
  12317. inline bool EnumOptions::_internal_deprecated() const {
  12318. return deprecated_;
  12319. }
  12320. inline bool EnumOptions::deprecated() const {
  12321. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
  12322. return _internal_deprecated();
  12323. }
  12324. inline void EnumOptions::_internal_set_deprecated(bool value) {
  12325. _has_bits_[0] |= 0x00000002u;
  12326. deprecated_ = value;
  12327. }
  12328. inline void EnumOptions::set_deprecated(bool value) {
  12329. _internal_set_deprecated(value);
  12330. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
  12331. }
  12332. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12333. inline int EnumOptions::_internal_uninterpreted_option_size() const {
  12334. return uninterpreted_option_.size();
  12335. }
  12336. inline int EnumOptions::uninterpreted_option_size() const {
  12337. return _internal_uninterpreted_option_size();
  12338. }
  12339. inline void EnumOptions::clear_uninterpreted_option() {
  12340. uninterpreted_option_.Clear();
  12341. }
  12342. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
  12343. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
  12344. return uninterpreted_option_.Mutable(index);
  12345. }
  12346. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12347. EnumOptions::mutable_uninterpreted_option() {
  12348. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
  12349. return &uninterpreted_option_;
  12350. }
  12351. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumOptions::_internal_uninterpreted_option(int index) const {
  12352. return uninterpreted_option_.Get(index);
  12353. }
  12354. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
  12355. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
  12356. return _internal_uninterpreted_option(index);
  12357. }
  12358. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::_internal_add_uninterpreted_option() {
  12359. return uninterpreted_option_.Add();
  12360. }
  12361. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
  12362. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12363. // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
  12364. return _add;
  12365. }
  12366. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12367. EnumOptions::uninterpreted_option() const {
  12368. // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
  12369. return uninterpreted_option_;
  12370. }
  12371. // -------------------------------------------------------------------
  12372. // EnumValueOptions
  12373. // optional bool deprecated = 1 [default = false];
  12374. inline bool EnumValueOptions::_internal_has_deprecated() const {
  12375. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12376. return value;
  12377. }
  12378. inline bool EnumValueOptions::has_deprecated() const {
  12379. return _internal_has_deprecated();
  12380. }
  12381. inline void EnumValueOptions::clear_deprecated() {
  12382. deprecated_ = false;
  12383. _has_bits_[0] &= ~0x00000001u;
  12384. }
  12385. inline bool EnumValueOptions::_internal_deprecated() const {
  12386. return deprecated_;
  12387. }
  12388. inline bool EnumValueOptions::deprecated() const {
  12389. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
  12390. return _internal_deprecated();
  12391. }
  12392. inline void EnumValueOptions::_internal_set_deprecated(bool value) {
  12393. _has_bits_[0] |= 0x00000001u;
  12394. deprecated_ = value;
  12395. }
  12396. inline void EnumValueOptions::set_deprecated(bool value) {
  12397. _internal_set_deprecated(value);
  12398. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
  12399. }
  12400. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12401. inline int EnumValueOptions::_internal_uninterpreted_option_size() const {
  12402. return uninterpreted_option_.size();
  12403. }
  12404. inline int EnumValueOptions::uninterpreted_option_size() const {
  12405. return _internal_uninterpreted_option_size();
  12406. }
  12407. inline void EnumValueOptions::clear_uninterpreted_option() {
  12408. uninterpreted_option_.Clear();
  12409. }
  12410. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
  12411. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
  12412. return uninterpreted_option_.Mutable(index);
  12413. }
  12414. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12415. EnumValueOptions::mutable_uninterpreted_option() {
  12416. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  12417. return &uninterpreted_option_;
  12418. }
  12419. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumValueOptions::_internal_uninterpreted_option(int index) const {
  12420. return uninterpreted_option_.Get(index);
  12421. }
  12422. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
  12423. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
  12424. return _internal_uninterpreted_option(index);
  12425. }
  12426. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::_internal_add_uninterpreted_option() {
  12427. return uninterpreted_option_.Add();
  12428. }
  12429. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
  12430. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12431. // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
  12432. return _add;
  12433. }
  12434. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12435. EnumValueOptions::uninterpreted_option() const {
  12436. // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  12437. return uninterpreted_option_;
  12438. }
  12439. // -------------------------------------------------------------------
  12440. // ServiceOptions
  12441. // optional bool deprecated = 33 [default = false];
  12442. inline bool ServiceOptions::_internal_has_deprecated() const {
  12443. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12444. return value;
  12445. }
  12446. inline bool ServiceOptions::has_deprecated() const {
  12447. return _internal_has_deprecated();
  12448. }
  12449. inline void ServiceOptions::clear_deprecated() {
  12450. deprecated_ = false;
  12451. _has_bits_[0] &= ~0x00000001u;
  12452. }
  12453. inline bool ServiceOptions::_internal_deprecated() const {
  12454. return deprecated_;
  12455. }
  12456. inline bool ServiceOptions::deprecated() const {
  12457. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
  12458. return _internal_deprecated();
  12459. }
  12460. inline void ServiceOptions::_internal_set_deprecated(bool value) {
  12461. _has_bits_[0] |= 0x00000001u;
  12462. deprecated_ = value;
  12463. }
  12464. inline void ServiceOptions::set_deprecated(bool value) {
  12465. _internal_set_deprecated(value);
  12466. // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
  12467. }
  12468. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12469. inline int ServiceOptions::_internal_uninterpreted_option_size() const {
  12470. return uninterpreted_option_.size();
  12471. }
  12472. inline int ServiceOptions::uninterpreted_option_size() const {
  12473. return _internal_uninterpreted_option_size();
  12474. }
  12475. inline void ServiceOptions::clear_uninterpreted_option() {
  12476. uninterpreted_option_.Clear();
  12477. }
  12478. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
  12479. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
  12480. return uninterpreted_option_.Mutable(index);
  12481. }
  12482. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12483. ServiceOptions::mutable_uninterpreted_option() {
  12484. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
  12485. return &uninterpreted_option_;
  12486. }
  12487. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ServiceOptions::_internal_uninterpreted_option(int index) const {
  12488. return uninterpreted_option_.Get(index);
  12489. }
  12490. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
  12491. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
  12492. return _internal_uninterpreted_option(index);
  12493. }
  12494. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::_internal_add_uninterpreted_option() {
  12495. return uninterpreted_option_.Add();
  12496. }
  12497. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
  12498. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12499. // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
  12500. return _add;
  12501. }
  12502. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12503. ServiceOptions::uninterpreted_option() const {
  12504. // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
  12505. return uninterpreted_option_;
  12506. }
  12507. // -------------------------------------------------------------------
  12508. // MethodOptions
  12509. // optional bool deprecated = 33 [default = false];
  12510. inline bool MethodOptions::_internal_has_deprecated() const {
  12511. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12512. return value;
  12513. }
  12514. inline bool MethodOptions::has_deprecated() const {
  12515. return _internal_has_deprecated();
  12516. }
  12517. inline void MethodOptions::clear_deprecated() {
  12518. deprecated_ = false;
  12519. _has_bits_[0] &= ~0x00000001u;
  12520. }
  12521. inline bool MethodOptions::_internal_deprecated() const {
  12522. return deprecated_;
  12523. }
  12524. inline bool MethodOptions::deprecated() const {
  12525. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
  12526. return _internal_deprecated();
  12527. }
  12528. inline void MethodOptions::_internal_set_deprecated(bool value) {
  12529. _has_bits_[0] |= 0x00000001u;
  12530. deprecated_ = value;
  12531. }
  12532. inline void MethodOptions::set_deprecated(bool value) {
  12533. _internal_set_deprecated(value);
  12534. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
  12535. }
  12536. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  12537. inline bool MethodOptions::_internal_has_idempotency_level() const {
  12538. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12539. return value;
  12540. }
  12541. inline bool MethodOptions::has_idempotency_level() const {
  12542. return _internal_has_idempotency_level();
  12543. }
  12544. inline void MethodOptions::clear_idempotency_level() {
  12545. idempotency_level_ = 0;
  12546. _has_bits_[0] &= ~0x00000002u;
  12547. }
  12548. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel MethodOptions::_internal_idempotency_level() const {
  12549. return static_cast< ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel >(idempotency_level_);
  12550. }
  12551. inline ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel MethodOptions::idempotency_level() const {
  12552. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.idempotency_level)
  12553. return _internal_idempotency_level();
  12554. }
  12555. inline void MethodOptions::_internal_set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value) {
  12556. assert(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_IsValid(value));
  12557. _has_bits_[0] |= 0x00000002u;
  12558. idempotency_level_ = value;
  12559. }
  12560. inline void MethodOptions::set_idempotency_level(::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel value) {
  12561. _internal_set_idempotency_level(value);
  12562. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.idempotency_level)
  12563. }
  12564. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  12565. inline int MethodOptions::_internal_uninterpreted_option_size() const {
  12566. return uninterpreted_option_.size();
  12567. }
  12568. inline int MethodOptions::uninterpreted_option_size() const {
  12569. return _internal_uninterpreted_option_size();
  12570. }
  12571. inline void MethodOptions::clear_uninterpreted_option() {
  12572. uninterpreted_option_.Clear();
  12573. }
  12574. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
  12575. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
  12576. return uninterpreted_option_.Mutable(index);
  12577. }
  12578. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >*
  12579. MethodOptions::mutable_uninterpreted_option() {
  12580. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
  12581. return &uninterpreted_option_;
  12582. }
  12583. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MethodOptions::_internal_uninterpreted_option(int index) const {
  12584. return uninterpreted_option_.Get(index);
  12585. }
  12586. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
  12587. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
  12588. return _internal_uninterpreted_option(index);
  12589. }
  12590. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::_internal_add_uninterpreted_option() {
  12591. return uninterpreted_option_.Add();
  12592. }
  12593. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
  12594. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption* _add = _internal_add_uninterpreted_option();
  12595. // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
  12596. return _add;
  12597. }
  12598. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption >&
  12599. MethodOptions::uninterpreted_option() const {
  12600. // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
  12601. return uninterpreted_option_;
  12602. }
  12603. // -------------------------------------------------------------------
  12604. // UninterpretedOption_NamePart
  12605. // required string name_part = 1;
  12606. inline bool UninterpretedOption_NamePart::_internal_has_name_part() const {
  12607. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12608. return value;
  12609. }
  12610. inline bool UninterpretedOption_NamePart::has_name_part() const {
  12611. return _internal_has_name_part();
  12612. }
  12613. inline void UninterpretedOption_NamePart::clear_name_part() {
  12614. name_part_.ClearToEmpty();
  12615. _has_bits_[0] &= ~0x00000001u;
  12616. }
  12617. inline const std::string& UninterpretedOption_NamePart::name_part() const {
  12618. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
  12619. return _internal_name_part();
  12620. }
  12621. template <typename ArgT0, typename... ArgT>
  12622. inline PROTOBUF_ALWAYS_INLINE
  12623. void UninterpretedOption_NamePart::set_name_part(ArgT0&& arg0, ArgT... args) {
  12624. _has_bits_[0] |= 0x00000001u;
  12625. name_part_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  12626. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
  12627. }
  12628. inline std::string* UninterpretedOption_NamePart::mutable_name_part() {
  12629. std::string* _s = _internal_mutable_name_part();
  12630. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
  12631. return _s;
  12632. }
  12633. inline const std::string& UninterpretedOption_NamePart::_internal_name_part() const {
  12634. return name_part_.Get();
  12635. }
  12636. inline void UninterpretedOption_NamePart::_internal_set_name_part(const std::string& value) {
  12637. _has_bits_[0] |= 0x00000001u;
  12638. name_part_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  12639. }
  12640. inline std::string* UninterpretedOption_NamePart::_internal_mutable_name_part() {
  12641. _has_bits_[0] |= 0x00000001u;
  12642. return name_part_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  12643. }
  12644. inline std::string* UninterpretedOption_NamePart::release_name_part() {
  12645. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.NamePart.name_part)
  12646. if (!_internal_has_name_part()) {
  12647. return nullptr;
  12648. }
  12649. _has_bits_[0] &= ~0x00000001u;
  12650. auto* p = name_part_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  12651. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12652. if (name_part_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12653. name_part_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12654. }
  12655. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12656. return p;
  12657. }
  12658. inline void UninterpretedOption_NamePart::set_allocated_name_part(std::string* name_part) {
  12659. if (name_part != nullptr) {
  12660. _has_bits_[0] |= 0x00000001u;
  12661. } else {
  12662. _has_bits_[0] &= ~0x00000001u;
  12663. }
  12664. name_part_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name_part,
  12665. GetArenaForAllocation());
  12666. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12667. if (name_part_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12668. name_part_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12669. }
  12670. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12671. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  12672. }
  12673. // required bool is_extension = 2;
  12674. inline bool UninterpretedOption_NamePart::_internal_has_is_extension() const {
  12675. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12676. return value;
  12677. }
  12678. inline bool UninterpretedOption_NamePart::has_is_extension() const {
  12679. return _internal_has_is_extension();
  12680. }
  12681. inline void UninterpretedOption_NamePart::clear_is_extension() {
  12682. is_extension_ = false;
  12683. _has_bits_[0] &= ~0x00000002u;
  12684. }
  12685. inline bool UninterpretedOption_NamePart::_internal_is_extension() const {
  12686. return is_extension_;
  12687. }
  12688. inline bool UninterpretedOption_NamePart::is_extension() const {
  12689. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
  12690. return _internal_is_extension();
  12691. }
  12692. inline void UninterpretedOption_NamePart::_internal_set_is_extension(bool value) {
  12693. _has_bits_[0] |= 0x00000002u;
  12694. is_extension_ = value;
  12695. }
  12696. inline void UninterpretedOption_NamePart::set_is_extension(bool value) {
  12697. _internal_set_is_extension(value);
  12698. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
  12699. }
  12700. // -------------------------------------------------------------------
  12701. // UninterpretedOption
  12702. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  12703. inline int UninterpretedOption::_internal_name_size() const {
  12704. return name_.size();
  12705. }
  12706. inline int UninterpretedOption::name_size() const {
  12707. return _internal_name_size();
  12708. }
  12709. inline void UninterpretedOption::clear_name() {
  12710. name_.Clear();
  12711. }
  12712. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
  12713. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
  12714. return name_.Mutable(index);
  12715. }
  12716. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >*
  12717. UninterpretedOption::mutable_name() {
  12718. // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
  12719. return &name_;
  12720. }
  12721. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& UninterpretedOption::_internal_name(int index) const {
  12722. return name_.Get(index);
  12723. }
  12724. inline const ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
  12725. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
  12726. return _internal_name(index);
  12727. }
  12728. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::_internal_add_name() {
  12729. return name_.Add();
  12730. }
  12731. inline ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
  12732. ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart* _add = _internal_add_name();
  12733. // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
  12734. return _add;
  12735. }
  12736. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::UninterpretedOption_NamePart >&
  12737. UninterpretedOption::name() const {
  12738. // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
  12739. return name_;
  12740. }
  12741. // optional string identifier_value = 3;
  12742. inline bool UninterpretedOption::_internal_has_identifier_value() const {
  12743. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  12744. return value;
  12745. }
  12746. inline bool UninterpretedOption::has_identifier_value() const {
  12747. return _internal_has_identifier_value();
  12748. }
  12749. inline void UninterpretedOption::clear_identifier_value() {
  12750. identifier_value_.ClearToEmpty();
  12751. _has_bits_[0] &= ~0x00000001u;
  12752. }
  12753. inline const std::string& UninterpretedOption::identifier_value() const {
  12754. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
  12755. return _internal_identifier_value();
  12756. }
  12757. template <typename ArgT0, typename... ArgT>
  12758. inline PROTOBUF_ALWAYS_INLINE
  12759. void UninterpretedOption::set_identifier_value(ArgT0&& arg0, ArgT... args) {
  12760. _has_bits_[0] |= 0x00000001u;
  12761. identifier_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  12762. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
  12763. }
  12764. inline std::string* UninterpretedOption::mutable_identifier_value() {
  12765. std::string* _s = _internal_mutable_identifier_value();
  12766. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
  12767. return _s;
  12768. }
  12769. inline const std::string& UninterpretedOption::_internal_identifier_value() const {
  12770. return identifier_value_.Get();
  12771. }
  12772. inline void UninterpretedOption::_internal_set_identifier_value(const std::string& value) {
  12773. _has_bits_[0] |= 0x00000001u;
  12774. identifier_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  12775. }
  12776. inline std::string* UninterpretedOption::_internal_mutable_identifier_value() {
  12777. _has_bits_[0] |= 0x00000001u;
  12778. return identifier_value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  12779. }
  12780. inline std::string* UninterpretedOption::release_identifier_value() {
  12781. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.identifier_value)
  12782. if (!_internal_has_identifier_value()) {
  12783. return nullptr;
  12784. }
  12785. _has_bits_[0] &= ~0x00000001u;
  12786. auto* p = identifier_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  12787. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12788. if (identifier_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12789. identifier_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12790. }
  12791. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12792. return p;
  12793. }
  12794. inline void UninterpretedOption::set_allocated_identifier_value(std::string* identifier_value) {
  12795. if (identifier_value != nullptr) {
  12796. _has_bits_[0] |= 0x00000001u;
  12797. } else {
  12798. _has_bits_[0] &= ~0x00000001u;
  12799. }
  12800. identifier_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), identifier_value,
  12801. GetArenaForAllocation());
  12802. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12803. if (identifier_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12804. identifier_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12805. }
  12806. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12807. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  12808. }
  12809. // optional uint64 positive_int_value = 4;
  12810. inline bool UninterpretedOption::_internal_has_positive_int_value() const {
  12811. bool value = (_has_bits_[0] & 0x00000008u) != 0;
  12812. return value;
  12813. }
  12814. inline bool UninterpretedOption::has_positive_int_value() const {
  12815. return _internal_has_positive_int_value();
  12816. }
  12817. inline void UninterpretedOption::clear_positive_int_value() {
  12818. positive_int_value_ = uint64_t{0u};
  12819. _has_bits_[0] &= ~0x00000008u;
  12820. }
  12821. inline uint64_t UninterpretedOption::_internal_positive_int_value() const {
  12822. return positive_int_value_;
  12823. }
  12824. inline uint64_t UninterpretedOption::positive_int_value() const {
  12825. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
  12826. return _internal_positive_int_value();
  12827. }
  12828. inline void UninterpretedOption::_internal_set_positive_int_value(uint64_t value) {
  12829. _has_bits_[0] |= 0x00000008u;
  12830. positive_int_value_ = value;
  12831. }
  12832. inline void UninterpretedOption::set_positive_int_value(uint64_t value) {
  12833. _internal_set_positive_int_value(value);
  12834. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
  12835. }
  12836. // optional int64 negative_int_value = 5;
  12837. inline bool UninterpretedOption::_internal_has_negative_int_value() const {
  12838. bool value = (_has_bits_[0] & 0x00000010u) != 0;
  12839. return value;
  12840. }
  12841. inline bool UninterpretedOption::has_negative_int_value() const {
  12842. return _internal_has_negative_int_value();
  12843. }
  12844. inline void UninterpretedOption::clear_negative_int_value() {
  12845. negative_int_value_ = int64_t{0};
  12846. _has_bits_[0] &= ~0x00000010u;
  12847. }
  12848. inline int64_t UninterpretedOption::_internal_negative_int_value() const {
  12849. return negative_int_value_;
  12850. }
  12851. inline int64_t UninterpretedOption::negative_int_value() const {
  12852. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
  12853. return _internal_negative_int_value();
  12854. }
  12855. inline void UninterpretedOption::_internal_set_negative_int_value(int64_t value) {
  12856. _has_bits_[0] |= 0x00000010u;
  12857. negative_int_value_ = value;
  12858. }
  12859. inline void UninterpretedOption::set_negative_int_value(int64_t value) {
  12860. _internal_set_negative_int_value(value);
  12861. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
  12862. }
  12863. // optional double double_value = 6;
  12864. inline bool UninterpretedOption::_internal_has_double_value() const {
  12865. bool value = (_has_bits_[0] & 0x00000020u) != 0;
  12866. return value;
  12867. }
  12868. inline bool UninterpretedOption::has_double_value() const {
  12869. return _internal_has_double_value();
  12870. }
  12871. inline void UninterpretedOption::clear_double_value() {
  12872. double_value_ = 0;
  12873. _has_bits_[0] &= ~0x00000020u;
  12874. }
  12875. inline double UninterpretedOption::_internal_double_value() const {
  12876. return double_value_;
  12877. }
  12878. inline double UninterpretedOption::double_value() const {
  12879. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
  12880. return _internal_double_value();
  12881. }
  12882. inline void UninterpretedOption::_internal_set_double_value(double value) {
  12883. _has_bits_[0] |= 0x00000020u;
  12884. double_value_ = value;
  12885. }
  12886. inline void UninterpretedOption::set_double_value(double value) {
  12887. _internal_set_double_value(value);
  12888. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
  12889. }
  12890. // optional bytes string_value = 7;
  12891. inline bool UninterpretedOption::_internal_has_string_value() const {
  12892. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  12893. return value;
  12894. }
  12895. inline bool UninterpretedOption::has_string_value() const {
  12896. return _internal_has_string_value();
  12897. }
  12898. inline void UninterpretedOption::clear_string_value() {
  12899. string_value_.ClearToEmpty();
  12900. _has_bits_[0] &= ~0x00000002u;
  12901. }
  12902. inline const std::string& UninterpretedOption::string_value() const {
  12903. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
  12904. return _internal_string_value();
  12905. }
  12906. template <typename ArgT0, typename... ArgT>
  12907. inline PROTOBUF_ALWAYS_INLINE
  12908. void UninterpretedOption::set_string_value(ArgT0&& arg0, ArgT... args) {
  12909. _has_bits_[0] |= 0x00000002u;
  12910. string_value_.SetBytes(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  12911. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
  12912. }
  12913. inline std::string* UninterpretedOption::mutable_string_value() {
  12914. std::string* _s = _internal_mutable_string_value();
  12915. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
  12916. return _s;
  12917. }
  12918. inline const std::string& UninterpretedOption::_internal_string_value() const {
  12919. return string_value_.Get();
  12920. }
  12921. inline void UninterpretedOption::_internal_set_string_value(const std::string& value) {
  12922. _has_bits_[0] |= 0x00000002u;
  12923. string_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  12924. }
  12925. inline std::string* UninterpretedOption::_internal_mutable_string_value() {
  12926. _has_bits_[0] |= 0x00000002u;
  12927. return string_value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  12928. }
  12929. inline std::string* UninterpretedOption::release_string_value() {
  12930. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.string_value)
  12931. if (!_internal_has_string_value()) {
  12932. return nullptr;
  12933. }
  12934. _has_bits_[0] &= ~0x00000002u;
  12935. auto* p = string_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  12936. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12937. if (string_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12938. string_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12939. }
  12940. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12941. return p;
  12942. }
  12943. inline void UninterpretedOption::set_allocated_string_value(std::string* string_value) {
  12944. if (string_value != nullptr) {
  12945. _has_bits_[0] |= 0x00000002u;
  12946. } else {
  12947. _has_bits_[0] &= ~0x00000002u;
  12948. }
  12949. string_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), string_value,
  12950. GetArenaForAllocation());
  12951. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12952. if (string_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  12953. string_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  12954. }
  12955. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  12956. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
  12957. }
  12958. // optional string aggregate_value = 8;
  12959. inline bool UninterpretedOption::_internal_has_aggregate_value() const {
  12960. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  12961. return value;
  12962. }
  12963. inline bool UninterpretedOption::has_aggregate_value() const {
  12964. return _internal_has_aggregate_value();
  12965. }
  12966. inline void UninterpretedOption::clear_aggregate_value() {
  12967. aggregate_value_.ClearToEmpty();
  12968. _has_bits_[0] &= ~0x00000004u;
  12969. }
  12970. inline const std::string& UninterpretedOption::aggregate_value() const {
  12971. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
  12972. return _internal_aggregate_value();
  12973. }
  12974. template <typename ArgT0, typename... ArgT>
  12975. inline PROTOBUF_ALWAYS_INLINE
  12976. void UninterpretedOption::set_aggregate_value(ArgT0&& arg0, ArgT... args) {
  12977. _has_bits_[0] |= 0x00000004u;
  12978. aggregate_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  12979. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
  12980. }
  12981. inline std::string* UninterpretedOption::mutable_aggregate_value() {
  12982. std::string* _s = _internal_mutable_aggregate_value();
  12983. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
  12984. return _s;
  12985. }
  12986. inline const std::string& UninterpretedOption::_internal_aggregate_value() const {
  12987. return aggregate_value_.Get();
  12988. }
  12989. inline void UninterpretedOption::_internal_set_aggregate_value(const std::string& value) {
  12990. _has_bits_[0] |= 0x00000004u;
  12991. aggregate_value_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  12992. }
  12993. inline std::string* UninterpretedOption::_internal_mutable_aggregate_value() {
  12994. _has_bits_[0] |= 0x00000004u;
  12995. return aggregate_value_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  12996. }
  12997. inline std::string* UninterpretedOption::release_aggregate_value() {
  12998. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.aggregate_value)
  12999. if (!_internal_has_aggregate_value()) {
  13000. return nullptr;
  13001. }
  13002. _has_bits_[0] &= ~0x00000004u;
  13003. auto* p = aggregate_value_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  13004. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13005. if (aggregate_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13006. aggregate_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13007. }
  13008. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13009. return p;
  13010. }
  13011. inline void UninterpretedOption::set_allocated_aggregate_value(std::string* aggregate_value) {
  13012. if (aggregate_value != nullptr) {
  13013. _has_bits_[0] |= 0x00000004u;
  13014. } else {
  13015. _has_bits_[0] &= ~0x00000004u;
  13016. }
  13017. aggregate_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), aggregate_value,
  13018. GetArenaForAllocation());
  13019. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13020. if (aggregate_value_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13021. aggregate_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13022. }
  13023. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13024. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  13025. }
  13026. // -------------------------------------------------------------------
  13027. // SourceCodeInfo_Location
  13028. // repeated int32 path = 1 [packed = true];
  13029. inline int SourceCodeInfo_Location::_internal_path_size() const {
  13030. return path_.size();
  13031. }
  13032. inline int SourceCodeInfo_Location::path_size() const {
  13033. return _internal_path_size();
  13034. }
  13035. inline void SourceCodeInfo_Location::clear_path() {
  13036. path_.Clear();
  13037. }
  13038. inline int32_t SourceCodeInfo_Location::_internal_path(int index) const {
  13039. return path_.Get(index);
  13040. }
  13041. inline int32_t SourceCodeInfo_Location::path(int index) const {
  13042. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
  13043. return _internal_path(index);
  13044. }
  13045. inline void SourceCodeInfo_Location::set_path(int index, int32_t value) {
  13046. path_.Set(index, value);
  13047. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
  13048. }
  13049. inline void SourceCodeInfo_Location::_internal_add_path(int32_t value) {
  13050. path_.Add(value);
  13051. }
  13052. inline void SourceCodeInfo_Location::add_path(int32_t value) {
  13053. _internal_add_path(value);
  13054. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
  13055. }
  13056. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13057. SourceCodeInfo_Location::_internal_path() const {
  13058. return path_;
  13059. }
  13060. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13061. SourceCodeInfo_Location::path() const {
  13062. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
  13063. return _internal_path();
  13064. }
  13065. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13066. SourceCodeInfo_Location::_internal_mutable_path() {
  13067. return &path_;
  13068. }
  13069. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13070. SourceCodeInfo_Location::mutable_path() {
  13071. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
  13072. return _internal_mutable_path();
  13073. }
  13074. // repeated int32 span = 2 [packed = true];
  13075. inline int SourceCodeInfo_Location::_internal_span_size() const {
  13076. return span_.size();
  13077. }
  13078. inline int SourceCodeInfo_Location::span_size() const {
  13079. return _internal_span_size();
  13080. }
  13081. inline void SourceCodeInfo_Location::clear_span() {
  13082. span_.Clear();
  13083. }
  13084. inline int32_t SourceCodeInfo_Location::_internal_span(int index) const {
  13085. return span_.Get(index);
  13086. }
  13087. inline int32_t SourceCodeInfo_Location::span(int index) const {
  13088. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
  13089. return _internal_span(index);
  13090. }
  13091. inline void SourceCodeInfo_Location::set_span(int index, int32_t value) {
  13092. span_.Set(index, value);
  13093. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
  13094. }
  13095. inline void SourceCodeInfo_Location::_internal_add_span(int32_t value) {
  13096. span_.Add(value);
  13097. }
  13098. inline void SourceCodeInfo_Location::add_span(int32_t value) {
  13099. _internal_add_span(value);
  13100. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
  13101. }
  13102. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13103. SourceCodeInfo_Location::_internal_span() const {
  13104. return span_;
  13105. }
  13106. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13107. SourceCodeInfo_Location::span() const {
  13108. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
  13109. return _internal_span();
  13110. }
  13111. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13112. SourceCodeInfo_Location::_internal_mutable_span() {
  13113. return &span_;
  13114. }
  13115. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13116. SourceCodeInfo_Location::mutable_span() {
  13117. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
  13118. return _internal_mutable_span();
  13119. }
  13120. // optional string leading_comments = 3;
  13121. inline bool SourceCodeInfo_Location::_internal_has_leading_comments() const {
  13122. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  13123. return value;
  13124. }
  13125. inline bool SourceCodeInfo_Location::has_leading_comments() const {
  13126. return _internal_has_leading_comments();
  13127. }
  13128. inline void SourceCodeInfo_Location::clear_leading_comments() {
  13129. leading_comments_.ClearToEmpty();
  13130. _has_bits_[0] &= ~0x00000001u;
  13131. }
  13132. inline const std::string& SourceCodeInfo_Location::leading_comments() const {
  13133. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13134. return _internal_leading_comments();
  13135. }
  13136. template <typename ArgT0, typename... ArgT>
  13137. inline PROTOBUF_ALWAYS_INLINE
  13138. void SourceCodeInfo_Location::set_leading_comments(ArgT0&& arg0, ArgT... args) {
  13139. _has_bits_[0] |= 0x00000001u;
  13140. leading_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  13141. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13142. }
  13143. inline std::string* SourceCodeInfo_Location::mutable_leading_comments() {
  13144. std::string* _s = _internal_mutable_leading_comments();
  13145. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13146. return _s;
  13147. }
  13148. inline const std::string& SourceCodeInfo_Location::_internal_leading_comments() const {
  13149. return leading_comments_.Get();
  13150. }
  13151. inline void SourceCodeInfo_Location::_internal_set_leading_comments(const std::string& value) {
  13152. _has_bits_[0] |= 0x00000001u;
  13153. leading_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  13154. }
  13155. inline std::string* SourceCodeInfo_Location::_internal_mutable_leading_comments() {
  13156. _has_bits_[0] |= 0x00000001u;
  13157. return leading_comments_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  13158. }
  13159. inline std::string* SourceCodeInfo_Location::release_leading_comments() {
  13160. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13161. if (!_internal_has_leading_comments()) {
  13162. return nullptr;
  13163. }
  13164. _has_bits_[0] &= ~0x00000001u;
  13165. auto* p = leading_comments_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  13166. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13167. if (leading_comments_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13168. leading_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13169. }
  13170. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13171. return p;
  13172. }
  13173. inline void SourceCodeInfo_Location::set_allocated_leading_comments(std::string* leading_comments) {
  13174. if (leading_comments != nullptr) {
  13175. _has_bits_[0] |= 0x00000001u;
  13176. } else {
  13177. _has_bits_[0] &= ~0x00000001u;
  13178. }
  13179. leading_comments_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), leading_comments,
  13180. GetArenaForAllocation());
  13181. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13182. if (leading_comments_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13183. leading_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13184. }
  13185. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13186. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  13187. }
  13188. // optional string trailing_comments = 4;
  13189. inline bool SourceCodeInfo_Location::_internal_has_trailing_comments() const {
  13190. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  13191. return value;
  13192. }
  13193. inline bool SourceCodeInfo_Location::has_trailing_comments() const {
  13194. return _internal_has_trailing_comments();
  13195. }
  13196. inline void SourceCodeInfo_Location::clear_trailing_comments() {
  13197. trailing_comments_.ClearToEmpty();
  13198. _has_bits_[0] &= ~0x00000002u;
  13199. }
  13200. inline const std::string& SourceCodeInfo_Location::trailing_comments() const {
  13201. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13202. return _internal_trailing_comments();
  13203. }
  13204. template <typename ArgT0, typename... ArgT>
  13205. inline PROTOBUF_ALWAYS_INLINE
  13206. void SourceCodeInfo_Location::set_trailing_comments(ArgT0&& arg0, ArgT... args) {
  13207. _has_bits_[0] |= 0x00000002u;
  13208. trailing_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  13209. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13210. }
  13211. inline std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
  13212. std::string* _s = _internal_mutable_trailing_comments();
  13213. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13214. return _s;
  13215. }
  13216. inline const std::string& SourceCodeInfo_Location::_internal_trailing_comments() const {
  13217. return trailing_comments_.Get();
  13218. }
  13219. inline void SourceCodeInfo_Location::_internal_set_trailing_comments(const std::string& value) {
  13220. _has_bits_[0] |= 0x00000002u;
  13221. trailing_comments_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  13222. }
  13223. inline std::string* SourceCodeInfo_Location::_internal_mutable_trailing_comments() {
  13224. _has_bits_[0] |= 0x00000002u;
  13225. return trailing_comments_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  13226. }
  13227. inline std::string* SourceCodeInfo_Location::release_trailing_comments() {
  13228. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13229. if (!_internal_has_trailing_comments()) {
  13230. return nullptr;
  13231. }
  13232. _has_bits_[0] &= ~0x00000002u;
  13233. auto* p = trailing_comments_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  13234. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13235. if (trailing_comments_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13236. trailing_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13237. }
  13238. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13239. return p;
  13240. }
  13241. inline void SourceCodeInfo_Location::set_allocated_trailing_comments(std::string* trailing_comments) {
  13242. if (trailing_comments != nullptr) {
  13243. _has_bits_[0] |= 0x00000002u;
  13244. } else {
  13245. _has_bits_[0] &= ~0x00000002u;
  13246. }
  13247. trailing_comments_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), trailing_comments,
  13248. GetArenaForAllocation());
  13249. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13250. if (trailing_comments_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13251. trailing_comments_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13252. }
  13253. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13254. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  13255. }
  13256. // repeated string leading_detached_comments = 6;
  13257. inline int SourceCodeInfo_Location::_internal_leading_detached_comments_size() const {
  13258. return leading_detached_comments_.size();
  13259. }
  13260. inline int SourceCodeInfo_Location::leading_detached_comments_size() const {
  13261. return _internal_leading_detached_comments_size();
  13262. }
  13263. inline void SourceCodeInfo_Location::clear_leading_detached_comments() {
  13264. leading_detached_comments_.Clear();
  13265. }
  13266. inline std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
  13267. std::string* _s = _internal_add_leading_detached_comments();
  13268. // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13269. return _s;
  13270. }
  13271. inline const std::string& SourceCodeInfo_Location::_internal_leading_detached_comments(int index) const {
  13272. return leading_detached_comments_.Get(index);
  13273. }
  13274. inline const std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const {
  13275. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13276. return _internal_leading_detached_comments(index);
  13277. }
  13278. inline std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) {
  13279. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13280. return leading_detached_comments_.Mutable(index);
  13281. }
  13282. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const std::string& value) {
  13283. leading_detached_comments_.Mutable(index)->assign(value);
  13284. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13285. }
  13286. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, std::string&& value) {
  13287. leading_detached_comments_.Mutable(index)->assign(std::move(value));
  13288. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13289. }
  13290. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) {
  13291. GOOGLE_DCHECK(value != nullptr);
  13292. leading_detached_comments_.Mutable(index)->assign(value);
  13293. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13294. }
  13295. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) {
  13296. leading_detached_comments_.Mutable(index)->assign(
  13297. reinterpret_cast<const char*>(value), size);
  13298. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13299. }
  13300. inline std::string* SourceCodeInfo_Location::_internal_add_leading_detached_comments() {
  13301. return leading_detached_comments_.Add();
  13302. }
  13303. inline void SourceCodeInfo_Location::add_leading_detached_comments(const std::string& value) {
  13304. leading_detached_comments_.Add()->assign(value);
  13305. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13306. }
  13307. inline void SourceCodeInfo_Location::add_leading_detached_comments(std::string&& value) {
  13308. leading_detached_comments_.Add(std::move(value));
  13309. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13310. }
  13311. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
  13312. GOOGLE_DCHECK(value != nullptr);
  13313. leading_detached_comments_.Add()->assign(value);
  13314. // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13315. }
  13316. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) {
  13317. leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
  13318. // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13319. }
  13320. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  13321. SourceCodeInfo_Location::leading_detached_comments() const {
  13322. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13323. return leading_detached_comments_;
  13324. }
  13325. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  13326. SourceCodeInfo_Location::mutable_leading_detached_comments() {
  13327. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  13328. return &leading_detached_comments_;
  13329. }
  13330. // -------------------------------------------------------------------
  13331. // SourceCodeInfo
  13332. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  13333. inline int SourceCodeInfo::_internal_location_size() const {
  13334. return location_.size();
  13335. }
  13336. inline int SourceCodeInfo::location_size() const {
  13337. return _internal_location_size();
  13338. }
  13339. inline void SourceCodeInfo::clear_location() {
  13340. location_.Clear();
  13341. }
  13342. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
  13343. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
  13344. return location_.Mutable(index);
  13345. }
  13346. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >*
  13347. SourceCodeInfo::mutable_location() {
  13348. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
  13349. return &location_;
  13350. }
  13351. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& SourceCodeInfo::_internal_location(int index) const {
  13352. return location_.Get(index);
  13353. }
  13354. inline const ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
  13355. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
  13356. return _internal_location(index);
  13357. }
  13358. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::_internal_add_location() {
  13359. return location_.Add();
  13360. }
  13361. inline ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
  13362. ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location* _add = _internal_add_location();
  13363. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
  13364. return _add;
  13365. }
  13366. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::SourceCodeInfo_Location >&
  13367. SourceCodeInfo::location() const {
  13368. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
  13369. return location_;
  13370. }
  13371. // -------------------------------------------------------------------
  13372. // GeneratedCodeInfo_Annotation
  13373. // repeated int32 path = 1 [packed = true];
  13374. inline int GeneratedCodeInfo_Annotation::_internal_path_size() const {
  13375. return path_.size();
  13376. }
  13377. inline int GeneratedCodeInfo_Annotation::path_size() const {
  13378. return _internal_path_size();
  13379. }
  13380. inline void GeneratedCodeInfo_Annotation::clear_path() {
  13381. path_.Clear();
  13382. }
  13383. inline int32_t GeneratedCodeInfo_Annotation::_internal_path(int index) const {
  13384. return path_.Get(index);
  13385. }
  13386. inline int32_t GeneratedCodeInfo_Annotation::path(int index) const {
  13387. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13388. return _internal_path(index);
  13389. }
  13390. inline void GeneratedCodeInfo_Annotation::set_path(int index, int32_t value) {
  13391. path_.Set(index, value);
  13392. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13393. }
  13394. inline void GeneratedCodeInfo_Annotation::_internal_add_path(int32_t value) {
  13395. path_.Add(value);
  13396. }
  13397. inline void GeneratedCodeInfo_Annotation::add_path(int32_t value) {
  13398. _internal_add_path(value);
  13399. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13400. }
  13401. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13402. GeneratedCodeInfo_Annotation::_internal_path() const {
  13403. return path_;
  13404. }
  13405. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
  13406. GeneratedCodeInfo_Annotation::path() const {
  13407. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13408. return _internal_path();
  13409. }
  13410. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13411. GeneratedCodeInfo_Annotation::_internal_mutable_path() {
  13412. return &path_;
  13413. }
  13414. inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
  13415. GeneratedCodeInfo_Annotation::mutable_path() {
  13416. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  13417. return _internal_mutable_path();
  13418. }
  13419. // optional string source_file = 2;
  13420. inline bool GeneratedCodeInfo_Annotation::_internal_has_source_file() const {
  13421. bool value = (_has_bits_[0] & 0x00000001u) != 0;
  13422. return value;
  13423. }
  13424. inline bool GeneratedCodeInfo_Annotation::has_source_file() const {
  13425. return _internal_has_source_file();
  13426. }
  13427. inline void GeneratedCodeInfo_Annotation::clear_source_file() {
  13428. source_file_.ClearToEmpty();
  13429. _has_bits_[0] &= ~0x00000001u;
  13430. }
  13431. inline const std::string& GeneratedCodeInfo_Annotation::source_file() const {
  13432. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13433. return _internal_source_file();
  13434. }
  13435. template <typename ArgT0, typename... ArgT>
  13436. inline PROTOBUF_ALWAYS_INLINE
  13437. void GeneratedCodeInfo_Annotation::set_source_file(ArgT0&& arg0, ArgT... args) {
  13438. _has_bits_[0] |= 0x00000001u;
  13439. source_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
  13440. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13441. }
  13442. inline std::string* GeneratedCodeInfo_Annotation::mutable_source_file() {
  13443. std::string* _s = _internal_mutable_source_file();
  13444. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13445. return _s;
  13446. }
  13447. inline const std::string& GeneratedCodeInfo_Annotation::_internal_source_file() const {
  13448. return source_file_.Get();
  13449. }
  13450. inline void GeneratedCodeInfo_Annotation::_internal_set_source_file(const std::string& value) {
  13451. _has_bits_[0] |= 0x00000001u;
  13452. source_file_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation());
  13453. }
  13454. inline std::string* GeneratedCodeInfo_Annotation::_internal_mutable_source_file() {
  13455. _has_bits_[0] |= 0x00000001u;
  13456. return source_file_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation());
  13457. }
  13458. inline std::string* GeneratedCodeInfo_Annotation::release_source_file() {
  13459. // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13460. if (!_internal_has_source_file()) {
  13461. return nullptr;
  13462. }
  13463. _has_bits_[0] &= ~0x00000001u;
  13464. auto* p = source_file_.ReleaseNonDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation());
  13465. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13466. if (source_file_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13467. source_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13468. }
  13469. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13470. return p;
  13471. }
  13472. inline void GeneratedCodeInfo_Annotation::set_allocated_source_file(std::string* source_file) {
  13473. if (source_file != nullptr) {
  13474. _has_bits_[0] |= 0x00000001u;
  13475. } else {
  13476. _has_bits_[0] &= ~0x00000001u;
  13477. }
  13478. source_file_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), source_file,
  13479. GetArenaForAllocation());
  13480. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13481. if (source_file_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) {
  13482. source_file_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
  13483. }
  13484. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  13485. // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  13486. }
  13487. // optional int32 begin = 3;
  13488. inline bool GeneratedCodeInfo_Annotation::_internal_has_begin() const {
  13489. bool value = (_has_bits_[0] & 0x00000002u) != 0;
  13490. return value;
  13491. }
  13492. inline bool GeneratedCodeInfo_Annotation::has_begin() const {
  13493. return _internal_has_begin();
  13494. }
  13495. inline void GeneratedCodeInfo_Annotation::clear_begin() {
  13496. begin_ = 0;
  13497. _has_bits_[0] &= ~0x00000002u;
  13498. }
  13499. inline int32_t GeneratedCodeInfo_Annotation::_internal_begin() const {
  13500. return begin_;
  13501. }
  13502. inline int32_t GeneratedCodeInfo_Annotation::begin() const {
  13503. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  13504. return _internal_begin();
  13505. }
  13506. inline void GeneratedCodeInfo_Annotation::_internal_set_begin(int32_t value) {
  13507. _has_bits_[0] |= 0x00000002u;
  13508. begin_ = value;
  13509. }
  13510. inline void GeneratedCodeInfo_Annotation::set_begin(int32_t value) {
  13511. _internal_set_begin(value);
  13512. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  13513. }
  13514. // optional int32 end = 4;
  13515. inline bool GeneratedCodeInfo_Annotation::_internal_has_end() const {
  13516. bool value = (_has_bits_[0] & 0x00000004u) != 0;
  13517. return value;
  13518. }
  13519. inline bool GeneratedCodeInfo_Annotation::has_end() const {
  13520. return _internal_has_end();
  13521. }
  13522. inline void GeneratedCodeInfo_Annotation::clear_end() {
  13523. end_ = 0;
  13524. _has_bits_[0] &= ~0x00000004u;
  13525. }
  13526. inline int32_t GeneratedCodeInfo_Annotation::_internal_end() const {
  13527. return end_;
  13528. }
  13529. inline int32_t GeneratedCodeInfo_Annotation::end() const {
  13530. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end)
  13531. return _internal_end();
  13532. }
  13533. inline void GeneratedCodeInfo_Annotation::_internal_set_end(int32_t value) {
  13534. _has_bits_[0] |= 0x00000004u;
  13535. end_ = value;
  13536. }
  13537. inline void GeneratedCodeInfo_Annotation::set_end(int32_t value) {
  13538. _internal_set_end(value);
  13539. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end)
  13540. }
  13541. // -------------------------------------------------------------------
  13542. // GeneratedCodeInfo
  13543. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  13544. inline int GeneratedCodeInfo::_internal_annotation_size() const {
  13545. return annotation_.size();
  13546. }
  13547. inline int GeneratedCodeInfo::annotation_size() const {
  13548. return _internal_annotation_size();
  13549. }
  13550. inline void GeneratedCodeInfo::clear_annotation() {
  13551. annotation_.Clear();
  13552. }
  13553. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::mutable_annotation(int index) {
  13554. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.annotation)
  13555. return annotation_.Mutable(index);
  13556. }
  13557. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >*
  13558. GeneratedCodeInfo::mutable_annotation() {
  13559. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.annotation)
  13560. return &annotation_;
  13561. }
  13562. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::_internal_annotation(int index) const {
  13563. return annotation_.Get(index);
  13564. }
  13565. inline const ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annotation(int index) const {
  13566. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.annotation)
  13567. return _internal_annotation(index);
  13568. }
  13569. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::_internal_add_annotation() {
  13570. return annotation_.Add();
  13571. }
  13572. inline ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::add_annotation() {
  13573. ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation* _add = _internal_add_annotation();
  13574. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.annotation)
  13575. return _add;
  13576. }
  13577. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PROTOBUF_NAMESPACE_ID::GeneratedCodeInfo_Annotation >&
  13578. GeneratedCodeInfo::annotation() const {
  13579. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.annotation)
  13580. return annotation_;
  13581. }
  13582. #ifdef __GNUC__
  13583. #pragma GCC diagnostic pop
  13584. #endif // __GNUC__
  13585. // -------------------------------------------------------------------
  13586. // -------------------------------------------------------------------
  13587. // -------------------------------------------------------------------
  13588. // -------------------------------------------------------------------
  13589. // -------------------------------------------------------------------
  13590. // -------------------------------------------------------------------
  13591. // -------------------------------------------------------------------
  13592. // -------------------------------------------------------------------
  13593. // -------------------------------------------------------------------
  13594. // -------------------------------------------------------------------
  13595. // -------------------------------------------------------------------
  13596. // -------------------------------------------------------------------
  13597. // -------------------------------------------------------------------
  13598. // -------------------------------------------------------------------
  13599. // -------------------------------------------------------------------
  13600. // -------------------------------------------------------------------
  13601. // -------------------------------------------------------------------
  13602. // -------------------------------------------------------------------
  13603. // -------------------------------------------------------------------
  13604. // -------------------------------------------------------------------
  13605. // -------------------------------------------------------------------
  13606. // -------------------------------------------------------------------
  13607. // -------------------------------------------------------------------
  13608. // -------------------------------------------------------------------
  13609. // -------------------------------------------------------------------
  13610. // -------------------------------------------------------------------
  13611. // @@protoc_insertion_point(namespace_scope)
  13612. PROTOBUF_NAMESPACE_CLOSE
  13613. PROTOBUF_NAMESPACE_OPEN
  13614. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type> : ::std::true_type {};
  13615. template <>
  13616. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type>() {
  13617. return ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Type_descriptor();
  13618. }
  13619. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label> : ::std::true_type {};
  13620. template <>
  13621. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label>() {
  13622. return ::PROTOBUF_NAMESPACE_ID::FieldDescriptorProto_Label_descriptor();
  13623. }
  13624. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode> : ::std::true_type {};
  13625. template <>
  13626. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode>() {
  13627. return ::PROTOBUF_NAMESPACE_ID::FileOptions_OptimizeMode_descriptor();
  13628. }
  13629. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType> : ::std::true_type {};
  13630. template <>
  13631. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType>() {
  13632. return ::PROTOBUF_NAMESPACE_ID::FieldOptions_CType_descriptor();
  13633. }
  13634. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType> : ::std::true_type {};
  13635. template <>
  13636. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType>() {
  13637. return ::PROTOBUF_NAMESPACE_ID::FieldOptions_JSType_descriptor();
  13638. }
  13639. template <> struct is_proto_enum< ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel> : ::std::true_type {};
  13640. template <>
  13641. inline const EnumDescriptor* GetEnumDescriptor< ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel>() {
  13642. return ::PROTOBUF_NAMESPACE_ID::MethodOptions_IdempotencyLevel_descriptor();
  13643. }
  13644. PROTOBUF_NAMESPACE_CLOSE
  13645. // @@protoc_insertion_point(global_scope)
  13646. #include <google/protobuf/port_undef.inc>
  13647. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto