descriptor.pb.h 264 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #ifndef PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED
  4. #define PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 2006000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/generated_message_util.h>
  18. #include <google/protobuf/message.h>
  19. #include <google/protobuf/repeated_field.h>
  20. #include <google/protobuf/extension_set.h>
  21. #include <google/protobuf/generated_enum_reflection.h>
  22. #include <google/protobuf/unknown_field_set.h>
  23. // @@protoc_insertion_point(includes)
  24. namespace google {
  25. namespace protobuf {
  26. // Internal implementation detail -- do not call these.
  27. void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  28. void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  29. void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  30. class FileDescriptorSet;
  31. class FileDescriptorProto;
  32. class DescriptorProto;
  33. class DescriptorProto_ExtensionRange;
  34. class FieldDescriptorProto;
  35. class OneofDescriptorProto;
  36. class EnumDescriptorProto;
  37. class EnumValueDescriptorProto;
  38. class ServiceDescriptorProto;
  39. class MethodDescriptorProto;
  40. class FileOptions;
  41. class MessageOptions;
  42. class FieldOptions;
  43. class EnumOptions;
  44. class EnumValueOptions;
  45. class ServiceOptions;
  46. class MethodOptions;
  47. class UninterpretedOption;
  48. class UninterpretedOption_NamePart;
  49. class SourceCodeInfo;
  50. class SourceCodeInfo_Location;
  51. enum FieldDescriptorProto_Type {
  52. FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
  53. FieldDescriptorProto_Type_TYPE_FLOAT = 2,
  54. FieldDescriptorProto_Type_TYPE_INT64 = 3,
  55. FieldDescriptorProto_Type_TYPE_UINT64 = 4,
  56. FieldDescriptorProto_Type_TYPE_INT32 = 5,
  57. FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
  58. FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
  59. FieldDescriptorProto_Type_TYPE_BOOL = 8,
  60. FieldDescriptorProto_Type_TYPE_STRING = 9,
  61. FieldDescriptorProto_Type_TYPE_GROUP = 10,
  62. FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
  63. FieldDescriptorProto_Type_TYPE_BYTES = 12,
  64. FieldDescriptorProto_Type_TYPE_UINT32 = 13,
  65. FieldDescriptorProto_Type_TYPE_ENUM = 14,
  66. FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
  67. FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
  68. FieldDescriptorProto_Type_TYPE_SINT32 = 17,
  69. FieldDescriptorProto_Type_TYPE_SINT64 = 18
  70. };
  71. LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
  72. const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
  73. const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
  74. const int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
  75. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
  76. inline const ::std::string& FieldDescriptorProto_Type_Name(FieldDescriptorProto_Type value) {
  77. return ::google::protobuf::internal::NameOfEnum(
  78. FieldDescriptorProto_Type_descriptor(), value);
  79. }
  80. inline bool FieldDescriptorProto_Type_Parse(
  81. const ::std::string& name, FieldDescriptorProto_Type* value) {
  82. return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
  83. FieldDescriptorProto_Type_descriptor(), name, value);
  84. }
  85. enum FieldDescriptorProto_Label {
  86. FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
  87. FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
  88. FieldDescriptorProto_Label_LABEL_REPEATED = 3
  89. };
  90. LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
  91. const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  92. const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
  93. const int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
  94. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
  95. inline const ::std::string& FieldDescriptorProto_Label_Name(FieldDescriptorProto_Label value) {
  96. return ::google::protobuf::internal::NameOfEnum(
  97. FieldDescriptorProto_Label_descriptor(), value);
  98. }
  99. inline bool FieldDescriptorProto_Label_Parse(
  100. const ::std::string& name, FieldDescriptorProto_Label* value) {
  101. return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
  102. FieldDescriptorProto_Label_descriptor(), name, value);
  103. }
  104. enum FileOptions_OptimizeMode {
  105. FileOptions_OptimizeMode_SPEED = 1,
  106. FileOptions_OptimizeMode_CODE_SIZE = 2,
  107. FileOptions_OptimizeMode_LITE_RUNTIME = 3
  108. };
  109. LIBPROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
  110. const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
  111. const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
  112. const int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
  113. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
  114. inline const ::std::string& FileOptions_OptimizeMode_Name(FileOptions_OptimizeMode value) {
  115. return ::google::protobuf::internal::NameOfEnum(
  116. FileOptions_OptimizeMode_descriptor(), value);
  117. }
  118. inline bool FileOptions_OptimizeMode_Parse(
  119. const ::std::string& name, FileOptions_OptimizeMode* value) {
  120. return ::google::protobuf::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
  121. FileOptions_OptimizeMode_descriptor(), name, value);
  122. }
  123. enum FieldOptions_CType {
  124. FieldOptions_CType_STRING = 0,
  125. FieldOptions_CType_CORD = 1,
  126. FieldOptions_CType_STRING_PIECE = 2
  127. };
  128. LIBPROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
  129. const FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
  130. const FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
  131. const int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
  132. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor();
  133. inline const ::std::string& FieldOptions_CType_Name(FieldOptions_CType value) {
  134. return ::google::protobuf::internal::NameOfEnum(
  135. FieldOptions_CType_descriptor(), value);
  136. }
  137. inline bool FieldOptions_CType_Parse(
  138. const ::std::string& name, FieldOptions_CType* value) {
  139. return ::google::protobuf::internal::ParseNamedEnum<FieldOptions_CType>(
  140. FieldOptions_CType_descriptor(), name, value);
  141. }
  142. // ===================================================================
  143. class LIBPROTOBUF_EXPORT FileDescriptorSet : public ::google::protobuf::Message {
  144. public:
  145. FileDescriptorSet();
  146. virtual ~FileDescriptorSet();
  147. FileDescriptorSet(const FileDescriptorSet& from);
  148. inline FileDescriptorSet& operator=(const FileDescriptorSet& from) {
  149. CopyFrom(from);
  150. return *this;
  151. }
  152. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  153. return _unknown_fields_;
  154. }
  155. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  156. return &_unknown_fields_;
  157. }
  158. static const ::google::protobuf::Descriptor* descriptor();
  159. static const FileDescriptorSet& default_instance();
  160. void Swap(FileDescriptorSet* other);
  161. // implements Message ----------------------------------------------
  162. FileDescriptorSet* New() const;
  163. void CopyFrom(const ::google::protobuf::Message& from);
  164. void MergeFrom(const ::google::protobuf::Message& from);
  165. void CopyFrom(const FileDescriptorSet& from);
  166. void MergeFrom(const FileDescriptorSet& from);
  167. void Clear();
  168. bool IsInitialized() const;
  169. int ByteSize() const;
  170. bool MergePartialFromCodedStream(
  171. ::google::protobuf::io::CodedInputStream* input);
  172. void SerializeWithCachedSizes(
  173. ::google::protobuf::io::CodedOutputStream* output) const;
  174. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  175. int GetCachedSize() const { return _cached_size_; }
  176. private:
  177. void SharedCtor();
  178. void SharedDtor();
  179. void SetCachedSize(int size) const;
  180. public:
  181. ::google::protobuf::Metadata GetMetadata() const;
  182. // nested types ----------------------------------------------------
  183. // accessors -------------------------------------------------------
  184. // repeated .google.protobuf.FileDescriptorProto file = 1;
  185. inline int file_size() const;
  186. inline void clear_file();
  187. static const int kFileFieldNumber = 1;
  188. inline const ::google::protobuf::FileDescriptorProto& file(int index) const;
  189. inline ::google::protobuf::FileDescriptorProto* mutable_file(int index);
  190. inline ::google::protobuf::FileDescriptorProto* add_file();
  191. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  192. file() const;
  193. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  194. mutable_file();
  195. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
  196. private:
  197. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  198. ::google::protobuf::uint32 _has_bits_[1];
  199. mutable int _cached_size_;
  200. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_;
  201. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  202. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  203. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  204. void InitAsDefaultInstance();
  205. static FileDescriptorSet* default_instance_;
  206. };
  207. // -------------------------------------------------------------------
  208. class LIBPROTOBUF_EXPORT FileDescriptorProto : public ::google::protobuf::Message {
  209. public:
  210. FileDescriptorProto();
  211. virtual ~FileDescriptorProto();
  212. FileDescriptorProto(const FileDescriptorProto& from);
  213. inline FileDescriptorProto& operator=(const FileDescriptorProto& from) {
  214. CopyFrom(from);
  215. return *this;
  216. }
  217. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  218. return _unknown_fields_;
  219. }
  220. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  221. return &_unknown_fields_;
  222. }
  223. static const ::google::protobuf::Descriptor* descriptor();
  224. static const FileDescriptorProto& default_instance();
  225. void Swap(FileDescriptorProto* other);
  226. // implements Message ----------------------------------------------
  227. FileDescriptorProto* New() const;
  228. void CopyFrom(const ::google::protobuf::Message& from);
  229. void MergeFrom(const ::google::protobuf::Message& from);
  230. void CopyFrom(const FileDescriptorProto& from);
  231. void MergeFrom(const FileDescriptorProto& from);
  232. void Clear();
  233. bool IsInitialized() const;
  234. int ByteSize() const;
  235. bool MergePartialFromCodedStream(
  236. ::google::protobuf::io::CodedInputStream* input);
  237. void SerializeWithCachedSizes(
  238. ::google::protobuf::io::CodedOutputStream* output) const;
  239. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  240. int GetCachedSize() const { return _cached_size_; }
  241. private:
  242. void SharedCtor();
  243. void SharedDtor();
  244. void SetCachedSize(int size) const;
  245. public:
  246. ::google::protobuf::Metadata GetMetadata() const;
  247. // nested types ----------------------------------------------------
  248. // accessors -------------------------------------------------------
  249. // optional string name = 1;
  250. inline bool has_name() const;
  251. inline void clear_name();
  252. static const int kNameFieldNumber = 1;
  253. inline const ::std::string& name() const;
  254. inline void set_name(const ::std::string& value);
  255. inline void set_name(const char* value);
  256. inline void set_name(const char* value, size_t size);
  257. inline ::std::string* mutable_name();
  258. inline ::std::string* release_name();
  259. inline void set_allocated_name(::std::string* name);
  260. // optional string package = 2;
  261. inline bool has_package() const;
  262. inline void clear_package();
  263. static const int kPackageFieldNumber = 2;
  264. inline const ::std::string& package() const;
  265. inline void set_package(const ::std::string& value);
  266. inline void set_package(const char* value);
  267. inline void set_package(const char* value, size_t size);
  268. inline ::std::string* mutable_package();
  269. inline ::std::string* release_package();
  270. inline void set_allocated_package(::std::string* package);
  271. // repeated string dependency = 3;
  272. inline int dependency_size() const;
  273. inline void clear_dependency();
  274. static const int kDependencyFieldNumber = 3;
  275. inline const ::std::string& dependency(int index) const;
  276. inline ::std::string* mutable_dependency(int index);
  277. inline void set_dependency(int index, const ::std::string& value);
  278. inline void set_dependency(int index, const char* value);
  279. inline void set_dependency(int index, const char* value, size_t size);
  280. inline ::std::string* add_dependency();
  281. inline void add_dependency(const ::std::string& value);
  282. inline void add_dependency(const char* value);
  283. inline void add_dependency(const char* value, size_t size);
  284. inline const ::google::protobuf::RepeatedPtrField< ::std::string>& dependency() const;
  285. inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dependency();
  286. // repeated int32 public_dependency = 10;
  287. inline int public_dependency_size() const;
  288. inline void clear_public_dependency();
  289. static const int kPublicDependencyFieldNumber = 10;
  290. inline ::google::protobuf::int32 public_dependency(int index) const;
  291. inline void set_public_dependency(int index, ::google::protobuf::int32 value);
  292. inline void add_public_dependency(::google::protobuf::int32 value);
  293. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  294. public_dependency() const;
  295. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  296. mutable_public_dependency();
  297. // repeated int32 weak_dependency = 11;
  298. inline int weak_dependency_size() const;
  299. inline void clear_weak_dependency();
  300. static const int kWeakDependencyFieldNumber = 11;
  301. inline ::google::protobuf::int32 weak_dependency(int index) const;
  302. inline void set_weak_dependency(int index, ::google::protobuf::int32 value);
  303. inline void add_weak_dependency(::google::protobuf::int32 value);
  304. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  305. weak_dependency() const;
  306. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  307. mutable_weak_dependency();
  308. // repeated .google.protobuf.DescriptorProto message_type = 4;
  309. inline int message_type_size() const;
  310. inline void clear_message_type();
  311. static const int kMessageTypeFieldNumber = 4;
  312. inline const ::google::protobuf::DescriptorProto& message_type(int index) const;
  313. inline ::google::protobuf::DescriptorProto* mutable_message_type(int index);
  314. inline ::google::protobuf::DescriptorProto* add_message_type();
  315. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  316. message_type() const;
  317. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  318. mutable_message_type();
  319. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  320. inline int enum_type_size() const;
  321. inline void clear_enum_type();
  322. static const int kEnumTypeFieldNumber = 5;
  323. inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
  324. inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
  325. inline ::google::protobuf::EnumDescriptorProto* add_enum_type();
  326. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  327. enum_type() const;
  328. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  329. mutable_enum_type();
  330. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  331. inline int service_size() const;
  332. inline void clear_service();
  333. static const int kServiceFieldNumber = 6;
  334. inline const ::google::protobuf::ServiceDescriptorProto& service(int index) const;
  335. inline ::google::protobuf::ServiceDescriptorProto* mutable_service(int index);
  336. inline ::google::protobuf::ServiceDescriptorProto* add_service();
  337. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
  338. service() const;
  339. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
  340. mutable_service();
  341. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  342. inline int extension_size() const;
  343. inline void clear_extension();
  344. static const int kExtensionFieldNumber = 7;
  345. inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
  346. inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
  347. inline ::google::protobuf::FieldDescriptorProto* add_extension();
  348. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  349. extension() const;
  350. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  351. mutable_extension();
  352. // optional .google.protobuf.FileOptions options = 8;
  353. inline bool has_options() const;
  354. inline void clear_options();
  355. static const int kOptionsFieldNumber = 8;
  356. inline const ::google::protobuf::FileOptions& options() const;
  357. inline ::google::protobuf::FileOptions* mutable_options();
  358. inline ::google::protobuf::FileOptions* release_options();
  359. inline void set_allocated_options(::google::protobuf::FileOptions* options);
  360. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  361. inline bool has_source_code_info() const;
  362. inline void clear_source_code_info();
  363. static const int kSourceCodeInfoFieldNumber = 9;
  364. inline const ::google::protobuf::SourceCodeInfo& source_code_info() const;
  365. inline ::google::protobuf::SourceCodeInfo* mutable_source_code_info();
  366. inline ::google::protobuf::SourceCodeInfo* release_source_code_info();
  367. inline void set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info);
  368. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
  369. private:
  370. inline void set_has_name();
  371. inline void clear_has_name();
  372. inline void set_has_package();
  373. inline void clear_has_package();
  374. inline void set_has_options();
  375. inline void clear_has_options();
  376. inline void set_has_source_code_info();
  377. inline void clear_has_source_code_info();
  378. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  379. ::google::protobuf::uint32 _has_bits_[1];
  380. mutable int _cached_size_;
  381. ::std::string* name_;
  382. ::std::string* package_;
  383. ::google::protobuf::RepeatedPtrField< ::std::string> dependency_;
  384. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > public_dependency_;
  385. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > weak_dependency_;
  386. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > message_type_;
  387. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
  388. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto > service_;
  389. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
  390. ::google::protobuf::FileOptions* options_;
  391. ::google::protobuf::SourceCodeInfo* source_code_info_;
  392. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  393. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  394. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  395. void InitAsDefaultInstance();
  396. static FileDescriptorProto* default_instance_;
  397. };
  398. // -------------------------------------------------------------------
  399. class LIBPROTOBUF_EXPORT DescriptorProto_ExtensionRange : public ::google::protobuf::Message {
  400. public:
  401. DescriptorProto_ExtensionRange();
  402. virtual ~DescriptorProto_ExtensionRange();
  403. DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from);
  404. inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) {
  405. CopyFrom(from);
  406. return *this;
  407. }
  408. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  409. return _unknown_fields_;
  410. }
  411. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  412. return &_unknown_fields_;
  413. }
  414. static const ::google::protobuf::Descriptor* descriptor();
  415. static const DescriptorProto_ExtensionRange& default_instance();
  416. void Swap(DescriptorProto_ExtensionRange* other);
  417. // implements Message ----------------------------------------------
  418. DescriptorProto_ExtensionRange* New() const;
  419. void CopyFrom(const ::google::protobuf::Message& from);
  420. void MergeFrom(const ::google::protobuf::Message& from);
  421. void CopyFrom(const DescriptorProto_ExtensionRange& from);
  422. void MergeFrom(const DescriptorProto_ExtensionRange& from);
  423. void Clear();
  424. bool IsInitialized() const;
  425. int ByteSize() const;
  426. bool MergePartialFromCodedStream(
  427. ::google::protobuf::io::CodedInputStream* input);
  428. void SerializeWithCachedSizes(
  429. ::google::protobuf::io::CodedOutputStream* output) const;
  430. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  431. int GetCachedSize() const { return _cached_size_; }
  432. private:
  433. void SharedCtor();
  434. void SharedDtor();
  435. void SetCachedSize(int size) const;
  436. public:
  437. ::google::protobuf::Metadata GetMetadata() const;
  438. // nested types ----------------------------------------------------
  439. // accessors -------------------------------------------------------
  440. // optional int32 start = 1;
  441. inline bool has_start() const;
  442. inline void clear_start();
  443. static const int kStartFieldNumber = 1;
  444. inline ::google::protobuf::int32 start() const;
  445. inline void set_start(::google::protobuf::int32 value);
  446. // optional int32 end = 2;
  447. inline bool has_end() const;
  448. inline void clear_end();
  449. static const int kEndFieldNumber = 2;
  450. inline ::google::protobuf::int32 end() const;
  451. inline void set_end(::google::protobuf::int32 value);
  452. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
  453. private:
  454. inline void set_has_start();
  455. inline void clear_has_start();
  456. inline void set_has_end();
  457. inline void clear_has_end();
  458. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  459. ::google::protobuf::uint32 _has_bits_[1];
  460. mutable int _cached_size_;
  461. ::google::protobuf::int32 start_;
  462. ::google::protobuf::int32 end_;
  463. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  464. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  465. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  466. void InitAsDefaultInstance();
  467. static DescriptorProto_ExtensionRange* default_instance_;
  468. };
  469. // -------------------------------------------------------------------
  470. class LIBPROTOBUF_EXPORT DescriptorProto : public ::google::protobuf::Message {
  471. public:
  472. DescriptorProto();
  473. virtual ~DescriptorProto();
  474. DescriptorProto(const DescriptorProto& from);
  475. inline DescriptorProto& operator=(const DescriptorProto& from) {
  476. CopyFrom(from);
  477. return *this;
  478. }
  479. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  480. return _unknown_fields_;
  481. }
  482. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  483. return &_unknown_fields_;
  484. }
  485. static const ::google::protobuf::Descriptor* descriptor();
  486. static const DescriptorProto& default_instance();
  487. void Swap(DescriptorProto* other);
  488. // implements Message ----------------------------------------------
  489. DescriptorProto* New() const;
  490. void CopyFrom(const ::google::protobuf::Message& from);
  491. void MergeFrom(const ::google::protobuf::Message& from);
  492. void CopyFrom(const DescriptorProto& from);
  493. void MergeFrom(const DescriptorProto& from);
  494. void Clear();
  495. bool IsInitialized() const;
  496. int ByteSize() const;
  497. bool MergePartialFromCodedStream(
  498. ::google::protobuf::io::CodedInputStream* input);
  499. void SerializeWithCachedSizes(
  500. ::google::protobuf::io::CodedOutputStream* output) const;
  501. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  502. int GetCachedSize() const { return _cached_size_; }
  503. private:
  504. void SharedCtor();
  505. void SharedDtor();
  506. void SetCachedSize(int size) const;
  507. public:
  508. ::google::protobuf::Metadata GetMetadata() const;
  509. // nested types ----------------------------------------------------
  510. typedef DescriptorProto_ExtensionRange ExtensionRange;
  511. // accessors -------------------------------------------------------
  512. // optional string name = 1;
  513. inline bool has_name() const;
  514. inline void clear_name();
  515. static const int kNameFieldNumber = 1;
  516. inline const ::std::string& name() const;
  517. inline void set_name(const ::std::string& value);
  518. inline void set_name(const char* value);
  519. inline void set_name(const char* value, size_t size);
  520. inline ::std::string* mutable_name();
  521. inline ::std::string* release_name();
  522. inline void set_allocated_name(::std::string* name);
  523. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  524. inline int field_size() const;
  525. inline void clear_field();
  526. static const int kFieldFieldNumber = 2;
  527. inline const ::google::protobuf::FieldDescriptorProto& field(int index) const;
  528. inline ::google::protobuf::FieldDescriptorProto* mutable_field(int index);
  529. inline ::google::protobuf::FieldDescriptorProto* add_field();
  530. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  531. field() const;
  532. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  533. mutable_field();
  534. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  535. inline int extension_size() const;
  536. inline void clear_extension();
  537. static const int kExtensionFieldNumber = 6;
  538. inline const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
  539. inline ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
  540. inline ::google::protobuf::FieldDescriptorProto* add_extension();
  541. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  542. extension() const;
  543. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  544. mutable_extension();
  545. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  546. inline int nested_type_size() const;
  547. inline void clear_nested_type();
  548. static const int kNestedTypeFieldNumber = 3;
  549. inline const ::google::protobuf::DescriptorProto& nested_type(int index) const;
  550. inline ::google::protobuf::DescriptorProto* mutable_nested_type(int index);
  551. inline ::google::protobuf::DescriptorProto* add_nested_type();
  552. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  553. nested_type() const;
  554. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  555. mutable_nested_type();
  556. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  557. inline int enum_type_size() const;
  558. inline void clear_enum_type();
  559. static const int kEnumTypeFieldNumber = 4;
  560. inline const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
  561. inline ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
  562. inline ::google::protobuf::EnumDescriptorProto* add_enum_type();
  563. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  564. enum_type() const;
  565. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  566. mutable_enum_type();
  567. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  568. inline int extension_range_size() const;
  569. inline void clear_extension_range();
  570. static const int kExtensionRangeFieldNumber = 5;
  571. inline const ::google::protobuf::DescriptorProto_ExtensionRange& extension_range(int index) const;
  572. inline ::google::protobuf::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
  573. inline ::google::protobuf::DescriptorProto_ExtensionRange* add_extension_range();
  574. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
  575. extension_range() const;
  576. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
  577. mutable_extension_range();
  578. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  579. inline int oneof_decl_size() const;
  580. inline void clear_oneof_decl();
  581. static const int kOneofDeclFieldNumber = 8;
  582. inline const ::google::protobuf::OneofDescriptorProto& oneof_decl(int index) const;
  583. inline ::google::protobuf::OneofDescriptorProto* mutable_oneof_decl(int index);
  584. inline ::google::protobuf::OneofDescriptorProto* add_oneof_decl();
  585. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
  586. oneof_decl() const;
  587. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
  588. mutable_oneof_decl();
  589. // optional .google.protobuf.MessageOptions options = 7;
  590. inline bool has_options() const;
  591. inline void clear_options();
  592. static const int kOptionsFieldNumber = 7;
  593. inline const ::google::protobuf::MessageOptions& options() const;
  594. inline ::google::protobuf::MessageOptions* mutable_options();
  595. inline ::google::protobuf::MessageOptions* release_options();
  596. inline void set_allocated_options(::google::protobuf::MessageOptions* options);
  597. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
  598. private:
  599. inline void set_has_name();
  600. inline void clear_has_name();
  601. inline void set_has_options();
  602. inline void clear_has_options();
  603. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  604. ::google::protobuf::uint32 _has_bits_[1];
  605. mutable int _cached_size_;
  606. ::std::string* name_;
  607. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > field_;
  608. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
  609. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > nested_type_;
  610. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
  611. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange > extension_range_;
  612. ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto > oneof_decl_;
  613. ::google::protobuf::MessageOptions* options_;
  614. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  615. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  616. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  617. void InitAsDefaultInstance();
  618. static DescriptorProto* default_instance_;
  619. };
  620. // -------------------------------------------------------------------
  621. class LIBPROTOBUF_EXPORT FieldDescriptorProto : public ::google::protobuf::Message {
  622. public:
  623. FieldDescriptorProto();
  624. virtual ~FieldDescriptorProto();
  625. FieldDescriptorProto(const FieldDescriptorProto& from);
  626. inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) {
  627. CopyFrom(from);
  628. return *this;
  629. }
  630. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  631. return _unknown_fields_;
  632. }
  633. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  634. return &_unknown_fields_;
  635. }
  636. static const ::google::protobuf::Descriptor* descriptor();
  637. static const FieldDescriptorProto& default_instance();
  638. void Swap(FieldDescriptorProto* other);
  639. // implements Message ----------------------------------------------
  640. FieldDescriptorProto* New() const;
  641. void CopyFrom(const ::google::protobuf::Message& from);
  642. void MergeFrom(const ::google::protobuf::Message& from);
  643. void CopyFrom(const FieldDescriptorProto& from);
  644. void MergeFrom(const FieldDescriptorProto& from);
  645. void Clear();
  646. bool IsInitialized() const;
  647. int ByteSize() const;
  648. bool MergePartialFromCodedStream(
  649. ::google::protobuf::io::CodedInputStream* input);
  650. void SerializeWithCachedSizes(
  651. ::google::protobuf::io::CodedOutputStream* output) const;
  652. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  653. int GetCachedSize() const { return _cached_size_; }
  654. private:
  655. void SharedCtor();
  656. void SharedDtor();
  657. void SetCachedSize(int size) const;
  658. public:
  659. ::google::protobuf::Metadata GetMetadata() const;
  660. // nested types ----------------------------------------------------
  661. typedef FieldDescriptorProto_Type Type;
  662. static const Type TYPE_DOUBLE = FieldDescriptorProto_Type_TYPE_DOUBLE;
  663. static const Type TYPE_FLOAT = FieldDescriptorProto_Type_TYPE_FLOAT;
  664. static const Type TYPE_INT64 = FieldDescriptorProto_Type_TYPE_INT64;
  665. static const Type TYPE_UINT64 = FieldDescriptorProto_Type_TYPE_UINT64;
  666. static const Type TYPE_INT32 = FieldDescriptorProto_Type_TYPE_INT32;
  667. static const Type TYPE_FIXED64 = FieldDescriptorProto_Type_TYPE_FIXED64;
  668. static const Type TYPE_FIXED32 = FieldDescriptorProto_Type_TYPE_FIXED32;
  669. static const Type TYPE_BOOL = FieldDescriptorProto_Type_TYPE_BOOL;
  670. static const Type TYPE_STRING = FieldDescriptorProto_Type_TYPE_STRING;
  671. static const Type TYPE_GROUP = FieldDescriptorProto_Type_TYPE_GROUP;
  672. static const Type TYPE_MESSAGE = FieldDescriptorProto_Type_TYPE_MESSAGE;
  673. static const Type TYPE_BYTES = FieldDescriptorProto_Type_TYPE_BYTES;
  674. static const Type TYPE_UINT32 = FieldDescriptorProto_Type_TYPE_UINT32;
  675. static const Type TYPE_ENUM = FieldDescriptorProto_Type_TYPE_ENUM;
  676. static const Type TYPE_SFIXED32 = FieldDescriptorProto_Type_TYPE_SFIXED32;
  677. static const Type TYPE_SFIXED64 = FieldDescriptorProto_Type_TYPE_SFIXED64;
  678. static const Type TYPE_SINT32 = FieldDescriptorProto_Type_TYPE_SINT32;
  679. static const Type TYPE_SINT64 = FieldDescriptorProto_Type_TYPE_SINT64;
  680. static inline bool Type_IsValid(int value) {
  681. return FieldDescriptorProto_Type_IsValid(value);
  682. }
  683. static const Type Type_MIN =
  684. FieldDescriptorProto_Type_Type_MIN;
  685. static const Type Type_MAX =
  686. FieldDescriptorProto_Type_Type_MAX;
  687. static const int Type_ARRAYSIZE =
  688. FieldDescriptorProto_Type_Type_ARRAYSIZE;
  689. static inline const ::google::protobuf::EnumDescriptor*
  690. Type_descriptor() {
  691. return FieldDescriptorProto_Type_descriptor();
  692. }
  693. static inline const ::std::string& Type_Name(Type value) {
  694. return FieldDescriptorProto_Type_Name(value);
  695. }
  696. static inline bool Type_Parse(const ::std::string& name,
  697. Type* value) {
  698. return FieldDescriptorProto_Type_Parse(name, value);
  699. }
  700. typedef FieldDescriptorProto_Label Label;
  701. static const Label LABEL_OPTIONAL = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  702. static const Label LABEL_REQUIRED = FieldDescriptorProto_Label_LABEL_REQUIRED;
  703. static const Label LABEL_REPEATED = FieldDescriptorProto_Label_LABEL_REPEATED;
  704. static inline bool Label_IsValid(int value) {
  705. return FieldDescriptorProto_Label_IsValid(value);
  706. }
  707. static const Label Label_MIN =
  708. FieldDescriptorProto_Label_Label_MIN;
  709. static const Label Label_MAX =
  710. FieldDescriptorProto_Label_Label_MAX;
  711. static const int Label_ARRAYSIZE =
  712. FieldDescriptorProto_Label_Label_ARRAYSIZE;
  713. static inline const ::google::protobuf::EnumDescriptor*
  714. Label_descriptor() {
  715. return FieldDescriptorProto_Label_descriptor();
  716. }
  717. static inline const ::std::string& Label_Name(Label value) {
  718. return FieldDescriptorProto_Label_Name(value);
  719. }
  720. static inline bool Label_Parse(const ::std::string& name,
  721. Label* value) {
  722. return FieldDescriptorProto_Label_Parse(name, value);
  723. }
  724. // accessors -------------------------------------------------------
  725. // optional string name = 1;
  726. inline bool has_name() const;
  727. inline void clear_name();
  728. static const int kNameFieldNumber = 1;
  729. inline const ::std::string& name() const;
  730. inline void set_name(const ::std::string& value);
  731. inline void set_name(const char* value);
  732. inline void set_name(const char* value, size_t size);
  733. inline ::std::string* mutable_name();
  734. inline ::std::string* release_name();
  735. inline void set_allocated_name(::std::string* name);
  736. // optional int32 number = 3;
  737. inline bool has_number() const;
  738. inline void clear_number();
  739. static const int kNumberFieldNumber = 3;
  740. inline ::google::protobuf::int32 number() const;
  741. inline void set_number(::google::protobuf::int32 value);
  742. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  743. inline bool has_label() const;
  744. inline void clear_label();
  745. static const int kLabelFieldNumber = 4;
  746. inline ::google::protobuf::FieldDescriptorProto_Label label() const;
  747. inline void set_label(::google::protobuf::FieldDescriptorProto_Label value);
  748. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  749. inline bool has_type() const;
  750. inline void clear_type();
  751. static const int kTypeFieldNumber = 5;
  752. inline ::google::protobuf::FieldDescriptorProto_Type type() const;
  753. inline void set_type(::google::protobuf::FieldDescriptorProto_Type value);
  754. // optional string type_name = 6;
  755. inline bool has_type_name() const;
  756. inline void clear_type_name();
  757. static const int kTypeNameFieldNumber = 6;
  758. inline const ::std::string& type_name() const;
  759. inline void set_type_name(const ::std::string& value);
  760. inline void set_type_name(const char* value);
  761. inline void set_type_name(const char* value, size_t size);
  762. inline ::std::string* mutable_type_name();
  763. inline ::std::string* release_type_name();
  764. inline void set_allocated_type_name(::std::string* type_name);
  765. // optional string extendee = 2;
  766. inline bool has_extendee() const;
  767. inline void clear_extendee();
  768. static const int kExtendeeFieldNumber = 2;
  769. inline const ::std::string& extendee() const;
  770. inline void set_extendee(const ::std::string& value);
  771. inline void set_extendee(const char* value);
  772. inline void set_extendee(const char* value, size_t size);
  773. inline ::std::string* mutable_extendee();
  774. inline ::std::string* release_extendee();
  775. inline void set_allocated_extendee(::std::string* extendee);
  776. // optional string default_value = 7;
  777. inline bool has_default_value() const;
  778. inline void clear_default_value();
  779. static const int kDefaultValueFieldNumber = 7;
  780. inline const ::std::string& default_value() const;
  781. inline void set_default_value(const ::std::string& value);
  782. inline void set_default_value(const char* value);
  783. inline void set_default_value(const char* value, size_t size);
  784. inline ::std::string* mutable_default_value();
  785. inline ::std::string* release_default_value();
  786. inline void set_allocated_default_value(::std::string* default_value);
  787. // optional int32 oneof_index = 9;
  788. inline bool has_oneof_index() const;
  789. inline void clear_oneof_index();
  790. static const int kOneofIndexFieldNumber = 9;
  791. inline ::google::protobuf::int32 oneof_index() const;
  792. inline void set_oneof_index(::google::protobuf::int32 value);
  793. // optional .google.protobuf.FieldOptions options = 8;
  794. inline bool has_options() const;
  795. inline void clear_options();
  796. static const int kOptionsFieldNumber = 8;
  797. inline const ::google::protobuf::FieldOptions& options() const;
  798. inline ::google::protobuf::FieldOptions* mutable_options();
  799. inline ::google::protobuf::FieldOptions* release_options();
  800. inline void set_allocated_options(::google::protobuf::FieldOptions* options);
  801. // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
  802. private:
  803. inline void set_has_name();
  804. inline void clear_has_name();
  805. inline void set_has_number();
  806. inline void clear_has_number();
  807. inline void set_has_label();
  808. inline void clear_has_label();
  809. inline void set_has_type();
  810. inline void clear_has_type();
  811. inline void set_has_type_name();
  812. inline void clear_has_type_name();
  813. inline void set_has_extendee();
  814. inline void clear_has_extendee();
  815. inline void set_has_default_value();
  816. inline void clear_has_default_value();
  817. inline void set_has_oneof_index();
  818. inline void clear_has_oneof_index();
  819. inline void set_has_options();
  820. inline void clear_has_options();
  821. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  822. ::google::protobuf::uint32 _has_bits_[1];
  823. mutable int _cached_size_;
  824. ::std::string* name_;
  825. ::google::protobuf::int32 number_;
  826. int label_;
  827. ::std::string* type_name_;
  828. ::std::string* extendee_;
  829. int type_;
  830. ::google::protobuf::int32 oneof_index_;
  831. ::std::string* default_value_;
  832. ::google::protobuf::FieldOptions* options_;
  833. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  834. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  835. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  836. void InitAsDefaultInstance();
  837. static FieldDescriptorProto* default_instance_;
  838. };
  839. // -------------------------------------------------------------------
  840. class LIBPROTOBUF_EXPORT OneofDescriptorProto : public ::google::protobuf::Message {
  841. public:
  842. OneofDescriptorProto();
  843. virtual ~OneofDescriptorProto();
  844. OneofDescriptorProto(const OneofDescriptorProto& from);
  845. inline OneofDescriptorProto& operator=(const OneofDescriptorProto& from) {
  846. CopyFrom(from);
  847. return *this;
  848. }
  849. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  850. return _unknown_fields_;
  851. }
  852. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  853. return &_unknown_fields_;
  854. }
  855. static const ::google::protobuf::Descriptor* descriptor();
  856. static const OneofDescriptorProto& default_instance();
  857. void Swap(OneofDescriptorProto* other);
  858. // implements Message ----------------------------------------------
  859. OneofDescriptorProto* New() const;
  860. void CopyFrom(const ::google::protobuf::Message& from);
  861. void MergeFrom(const ::google::protobuf::Message& from);
  862. void CopyFrom(const OneofDescriptorProto& from);
  863. void MergeFrom(const OneofDescriptorProto& from);
  864. void Clear();
  865. bool IsInitialized() const;
  866. int ByteSize() const;
  867. bool MergePartialFromCodedStream(
  868. ::google::protobuf::io::CodedInputStream* input);
  869. void SerializeWithCachedSizes(
  870. ::google::protobuf::io::CodedOutputStream* output) const;
  871. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  872. int GetCachedSize() const { return _cached_size_; }
  873. private:
  874. void SharedCtor();
  875. void SharedDtor();
  876. void SetCachedSize(int size) const;
  877. public:
  878. ::google::protobuf::Metadata GetMetadata() const;
  879. // nested types ----------------------------------------------------
  880. // accessors -------------------------------------------------------
  881. // optional string name = 1;
  882. inline bool has_name() const;
  883. inline void clear_name();
  884. static const int kNameFieldNumber = 1;
  885. inline const ::std::string& name() const;
  886. inline void set_name(const ::std::string& value);
  887. inline void set_name(const char* value);
  888. inline void set_name(const char* value, size_t size);
  889. inline ::std::string* mutable_name();
  890. inline ::std::string* release_name();
  891. inline void set_allocated_name(::std::string* name);
  892. // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto)
  893. private:
  894. inline void set_has_name();
  895. inline void clear_has_name();
  896. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  897. ::google::protobuf::uint32 _has_bits_[1];
  898. mutable int _cached_size_;
  899. ::std::string* name_;
  900. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  901. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  902. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  903. void InitAsDefaultInstance();
  904. static OneofDescriptorProto* default_instance_;
  905. };
  906. // -------------------------------------------------------------------
  907. class LIBPROTOBUF_EXPORT EnumDescriptorProto : public ::google::protobuf::Message {
  908. public:
  909. EnumDescriptorProto();
  910. virtual ~EnumDescriptorProto();
  911. EnumDescriptorProto(const EnumDescriptorProto& from);
  912. inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) {
  913. CopyFrom(from);
  914. return *this;
  915. }
  916. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  917. return _unknown_fields_;
  918. }
  919. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  920. return &_unknown_fields_;
  921. }
  922. static const ::google::protobuf::Descriptor* descriptor();
  923. static const EnumDescriptorProto& default_instance();
  924. void Swap(EnumDescriptorProto* other);
  925. // implements Message ----------------------------------------------
  926. EnumDescriptorProto* New() const;
  927. void CopyFrom(const ::google::protobuf::Message& from);
  928. void MergeFrom(const ::google::protobuf::Message& from);
  929. void CopyFrom(const EnumDescriptorProto& from);
  930. void MergeFrom(const EnumDescriptorProto& from);
  931. void Clear();
  932. bool IsInitialized() const;
  933. int ByteSize() const;
  934. bool MergePartialFromCodedStream(
  935. ::google::protobuf::io::CodedInputStream* input);
  936. void SerializeWithCachedSizes(
  937. ::google::protobuf::io::CodedOutputStream* output) const;
  938. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  939. int GetCachedSize() const { return _cached_size_; }
  940. private:
  941. void SharedCtor();
  942. void SharedDtor();
  943. void SetCachedSize(int size) const;
  944. public:
  945. ::google::protobuf::Metadata GetMetadata() const;
  946. // nested types ----------------------------------------------------
  947. // accessors -------------------------------------------------------
  948. // optional string name = 1;
  949. inline bool has_name() const;
  950. inline void clear_name();
  951. static const int kNameFieldNumber = 1;
  952. inline const ::std::string& name() const;
  953. inline void set_name(const ::std::string& value);
  954. inline void set_name(const char* value);
  955. inline void set_name(const char* value, size_t size);
  956. inline ::std::string* mutable_name();
  957. inline ::std::string* release_name();
  958. inline void set_allocated_name(::std::string* name);
  959. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  960. inline int value_size() const;
  961. inline void clear_value();
  962. static const int kValueFieldNumber = 2;
  963. inline const ::google::protobuf::EnumValueDescriptorProto& value(int index) const;
  964. inline ::google::protobuf::EnumValueDescriptorProto* mutable_value(int index);
  965. inline ::google::protobuf::EnumValueDescriptorProto* add_value();
  966. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
  967. value() const;
  968. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
  969. mutable_value();
  970. // optional .google.protobuf.EnumOptions options = 3;
  971. inline bool has_options() const;
  972. inline void clear_options();
  973. static const int kOptionsFieldNumber = 3;
  974. inline const ::google::protobuf::EnumOptions& options() const;
  975. inline ::google::protobuf::EnumOptions* mutable_options();
  976. inline ::google::protobuf::EnumOptions* release_options();
  977. inline void set_allocated_options(::google::protobuf::EnumOptions* options);
  978. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
  979. private:
  980. inline void set_has_name();
  981. inline void clear_has_name();
  982. inline void set_has_options();
  983. inline void clear_has_options();
  984. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  985. ::google::protobuf::uint32 _has_bits_[1];
  986. mutable int _cached_size_;
  987. ::std::string* name_;
  988. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_;
  989. ::google::protobuf::EnumOptions* options_;
  990. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  991. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  992. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  993. void InitAsDefaultInstance();
  994. static EnumDescriptorProto* default_instance_;
  995. };
  996. // -------------------------------------------------------------------
  997. class LIBPROTOBUF_EXPORT EnumValueDescriptorProto : public ::google::protobuf::Message {
  998. public:
  999. EnumValueDescriptorProto();
  1000. virtual ~EnumValueDescriptorProto();
  1001. EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
  1002. inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) {
  1003. CopyFrom(from);
  1004. return *this;
  1005. }
  1006. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1007. return _unknown_fields_;
  1008. }
  1009. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1010. return &_unknown_fields_;
  1011. }
  1012. static const ::google::protobuf::Descriptor* descriptor();
  1013. static const EnumValueDescriptorProto& default_instance();
  1014. void Swap(EnumValueDescriptorProto* other);
  1015. // implements Message ----------------------------------------------
  1016. EnumValueDescriptorProto* New() const;
  1017. void CopyFrom(const ::google::protobuf::Message& from);
  1018. void MergeFrom(const ::google::protobuf::Message& from);
  1019. void CopyFrom(const EnumValueDescriptorProto& from);
  1020. void MergeFrom(const EnumValueDescriptorProto& from);
  1021. void Clear();
  1022. bool IsInitialized() const;
  1023. int ByteSize() const;
  1024. bool MergePartialFromCodedStream(
  1025. ::google::protobuf::io::CodedInputStream* input);
  1026. void SerializeWithCachedSizes(
  1027. ::google::protobuf::io::CodedOutputStream* output) const;
  1028. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1029. int GetCachedSize() const { return _cached_size_; }
  1030. private:
  1031. void SharedCtor();
  1032. void SharedDtor();
  1033. void SetCachedSize(int size) const;
  1034. public:
  1035. ::google::protobuf::Metadata GetMetadata() const;
  1036. // nested types ----------------------------------------------------
  1037. // accessors -------------------------------------------------------
  1038. // optional string name = 1;
  1039. inline bool has_name() const;
  1040. inline void clear_name();
  1041. static const int kNameFieldNumber = 1;
  1042. inline const ::std::string& name() const;
  1043. inline void set_name(const ::std::string& value);
  1044. inline void set_name(const char* value);
  1045. inline void set_name(const char* value, size_t size);
  1046. inline ::std::string* mutable_name();
  1047. inline ::std::string* release_name();
  1048. inline void set_allocated_name(::std::string* name);
  1049. // optional int32 number = 2;
  1050. inline bool has_number() const;
  1051. inline void clear_number();
  1052. static const int kNumberFieldNumber = 2;
  1053. inline ::google::protobuf::int32 number() const;
  1054. inline void set_number(::google::protobuf::int32 value);
  1055. // optional .google.protobuf.EnumValueOptions options = 3;
  1056. inline bool has_options() const;
  1057. inline void clear_options();
  1058. static const int kOptionsFieldNumber = 3;
  1059. inline const ::google::protobuf::EnumValueOptions& options() const;
  1060. inline ::google::protobuf::EnumValueOptions* mutable_options();
  1061. inline ::google::protobuf::EnumValueOptions* release_options();
  1062. inline void set_allocated_options(::google::protobuf::EnumValueOptions* options);
  1063. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
  1064. private:
  1065. inline void set_has_name();
  1066. inline void clear_has_name();
  1067. inline void set_has_number();
  1068. inline void clear_has_number();
  1069. inline void set_has_options();
  1070. inline void clear_has_options();
  1071. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1072. ::google::protobuf::uint32 _has_bits_[1];
  1073. mutable int _cached_size_;
  1074. ::std::string* name_;
  1075. ::google::protobuf::EnumValueOptions* options_;
  1076. ::google::protobuf::int32 number_;
  1077. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1078. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1079. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1080. void InitAsDefaultInstance();
  1081. static EnumValueDescriptorProto* default_instance_;
  1082. };
  1083. // -------------------------------------------------------------------
  1084. class LIBPROTOBUF_EXPORT ServiceDescriptorProto : public ::google::protobuf::Message {
  1085. public:
  1086. ServiceDescriptorProto();
  1087. virtual ~ServiceDescriptorProto();
  1088. ServiceDescriptorProto(const ServiceDescriptorProto& from);
  1089. inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) {
  1090. CopyFrom(from);
  1091. return *this;
  1092. }
  1093. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1094. return _unknown_fields_;
  1095. }
  1096. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1097. return &_unknown_fields_;
  1098. }
  1099. static const ::google::protobuf::Descriptor* descriptor();
  1100. static const ServiceDescriptorProto& default_instance();
  1101. void Swap(ServiceDescriptorProto* other);
  1102. // implements Message ----------------------------------------------
  1103. ServiceDescriptorProto* New() const;
  1104. void CopyFrom(const ::google::protobuf::Message& from);
  1105. void MergeFrom(const ::google::protobuf::Message& from);
  1106. void CopyFrom(const ServiceDescriptorProto& from);
  1107. void MergeFrom(const ServiceDescriptorProto& from);
  1108. void Clear();
  1109. bool IsInitialized() const;
  1110. int ByteSize() const;
  1111. bool MergePartialFromCodedStream(
  1112. ::google::protobuf::io::CodedInputStream* input);
  1113. void SerializeWithCachedSizes(
  1114. ::google::protobuf::io::CodedOutputStream* output) const;
  1115. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1116. int GetCachedSize() const { return _cached_size_; }
  1117. private:
  1118. void SharedCtor();
  1119. void SharedDtor();
  1120. void SetCachedSize(int size) const;
  1121. public:
  1122. ::google::protobuf::Metadata GetMetadata() const;
  1123. // nested types ----------------------------------------------------
  1124. // accessors -------------------------------------------------------
  1125. // optional string name = 1;
  1126. inline bool has_name() const;
  1127. inline void clear_name();
  1128. static const int kNameFieldNumber = 1;
  1129. inline const ::std::string& name() const;
  1130. inline void set_name(const ::std::string& value);
  1131. inline void set_name(const char* value);
  1132. inline void set_name(const char* value, size_t size);
  1133. inline ::std::string* mutable_name();
  1134. inline ::std::string* release_name();
  1135. inline void set_allocated_name(::std::string* name);
  1136. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  1137. inline int method_size() const;
  1138. inline void clear_method();
  1139. static const int kMethodFieldNumber = 2;
  1140. inline const ::google::protobuf::MethodDescriptorProto& method(int index) const;
  1141. inline ::google::protobuf::MethodDescriptorProto* mutable_method(int index);
  1142. inline ::google::protobuf::MethodDescriptorProto* add_method();
  1143. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
  1144. method() const;
  1145. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
  1146. mutable_method();
  1147. // optional .google.protobuf.ServiceOptions options = 3;
  1148. inline bool has_options() const;
  1149. inline void clear_options();
  1150. static const int kOptionsFieldNumber = 3;
  1151. inline const ::google::protobuf::ServiceOptions& options() const;
  1152. inline ::google::protobuf::ServiceOptions* mutable_options();
  1153. inline ::google::protobuf::ServiceOptions* release_options();
  1154. inline void set_allocated_options(::google::protobuf::ServiceOptions* options);
  1155. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
  1156. private:
  1157. inline void set_has_name();
  1158. inline void clear_has_name();
  1159. inline void set_has_options();
  1160. inline void clear_has_options();
  1161. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1162. ::google::protobuf::uint32 _has_bits_[1];
  1163. mutable int _cached_size_;
  1164. ::std::string* name_;
  1165. ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto > method_;
  1166. ::google::protobuf::ServiceOptions* options_;
  1167. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1168. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1169. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1170. void InitAsDefaultInstance();
  1171. static ServiceDescriptorProto* default_instance_;
  1172. };
  1173. // -------------------------------------------------------------------
  1174. class LIBPROTOBUF_EXPORT MethodDescriptorProto : public ::google::protobuf::Message {
  1175. public:
  1176. MethodDescriptorProto();
  1177. virtual ~MethodDescriptorProto();
  1178. MethodDescriptorProto(const MethodDescriptorProto& from);
  1179. inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) {
  1180. CopyFrom(from);
  1181. return *this;
  1182. }
  1183. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1184. return _unknown_fields_;
  1185. }
  1186. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1187. return &_unknown_fields_;
  1188. }
  1189. static const ::google::protobuf::Descriptor* descriptor();
  1190. static const MethodDescriptorProto& default_instance();
  1191. void Swap(MethodDescriptorProto* other);
  1192. // implements Message ----------------------------------------------
  1193. MethodDescriptorProto* New() const;
  1194. void CopyFrom(const ::google::protobuf::Message& from);
  1195. void MergeFrom(const ::google::protobuf::Message& from);
  1196. void CopyFrom(const MethodDescriptorProto& from);
  1197. void MergeFrom(const MethodDescriptorProto& from);
  1198. void Clear();
  1199. bool IsInitialized() const;
  1200. int ByteSize() const;
  1201. bool MergePartialFromCodedStream(
  1202. ::google::protobuf::io::CodedInputStream* input);
  1203. void SerializeWithCachedSizes(
  1204. ::google::protobuf::io::CodedOutputStream* output) const;
  1205. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1206. int GetCachedSize() const { return _cached_size_; }
  1207. private:
  1208. void SharedCtor();
  1209. void SharedDtor();
  1210. void SetCachedSize(int size) const;
  1211. public:
  1212. ::google::protobuf::Metadata GetMetadata() const;
  1213. // nested types ----------------------------------------------------
  1214. // accessors -------------------------------------------------------
  1215. // optional string name = 1;
  1216. inline bool has_name() const;
  1217. inline void clear_name();
  1218. static const int kNameFieldNumber = 1;
  1219. inline const ::std::string& name() const;
  1220. inline void set_name(const ::std::string& value);
  1221. inline void set_name(const char* value);
  1222. inline void set_name(const char* value, size_t size);
  1223. inline ::std::string* mutable_name();
  1224. inline ::std::string* release_name();
  1225. inline void set_allocated_name(::std::string* name);
  1226. // optional string input_type = 2;
  1227. inline bool has_input_type() const;
  1228. inline void clear_input_type();
  1229. static const int kInputTypeFieldNumber = 2;
  1230. inline const ::std::string& input_type() const;
  1231. inline void set_input_type(const ::std::string& value);
  1232. inline void set_input_type(const char* value);
  1233. inline void set_input_type(const char* value, size_t size);
  1234. inline ::std::string* mutable_input_type();
  1235. inline ::std::string* release_input_type();
  1236. inline void set_allocated_input_type(::std::string* input_type);
  1237. // optional string output_type = 3;
  1238. inline bool has_output_type() const;
  1239. inline void clear_output_type();
  1240. static const int kOutputTypeFieldNumber = 3;
  1241. inline const ::std::string& output_type() const;
  1242. inline void set_output_type(const ::std::string& value);
  1243. inline void set_output_type(const char* value);
  1244. inline void set_output_type(const char* value, size_t size);
  1245. inline ::std::string* mutable_output_type();
  1246. inline ::std::string* release_output_type();
  1247. inline void set_allocated_output_type(::std::string* output_type);
  1248. // optional .google.protobuf.MethodOptions options = 4;
  1249. inline bool has_options() const;
  1250. inline void clear_options();
  1251. static const int kOptionsFieldNumber = 4;
  1252. inline const ::google::protobuf::MethodOptions& options() const;
  1253. inline ::google::protobuf::MethodOptions* mutable_options();
  1254. inline ::google::protobuf::MethodOptions* release_options();
  1255. inline void set_allocated_options(::google::protobuf::MethodOptions* options);
  1256. // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
  1257. private:
  1258. inline void set_has_name();
  1259. inline void clear_has_name();
  1260. inline void set_has_input_type();
  1261. inline void clear_has_input_type();
  1262. inline void set_has_output_type();
  1263. inline void clear_has_output_type();
  1264. inline void set_has_options();
  1265. inline void clear_has_options();
  1266. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1267. ::google::protobuf::uint32 _has_bits_[1];
  1268. mutable int _cached_size_;
  1269. ::std::string* name_;
  1270. ::std::string* input_type_;
  1271. ::std::string* output_type_;
  1272. ::google::protobuf::MethodOptions* options_;
  1273. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1274. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1275. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1276. void InitAsDefaultInstance();
  1277. static MethodDescriptorProto* default_instance_;
  1278. };
  1279. // -------------------------------------------------------------------
  1280. class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message {
  1281. public:
  1282. FileOptions();
  1283. virtual ~FileOptions();
  1284. FileOptions(const FileOptions& from);
  1285. inline FileOptions& operator=(const FileOptions& from) {
  1286. CopyFrom(from);
  1287. return *this;
  1288. }
  1289. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1290. return _unknown_fields_;
  1291. }
  1292. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1293. return &_unknown_fields_;
  1294. }
  1295. static const ::google::protobuf::Descriptor* descriptor();
  1296. static const FileOptions& default_instance();
  1297. void Swap(FileOptions* other);
  1298. // implements Message ----------------------------------------------
  1299. FileOptions* New() const;
  1300. void CopyFrom(const ::google::protobuf::Message& from);
  1301. void MergeFrom(const ::google::protobuf::Message& from);
  1302. void CopyFrom(const FileOptions& from);
  1303. void MergeFrom(const FileOptions& from);
  1304. void Clear();
  1305. bool IsInitialized() const;
  1306. int ByteSize() const;
  1307. bool MergePartialFromCodedStream(
  1308. ::google::protobuf::io::CodedInputStream* input);
  1309. void SerializeWithCachedSizes(
  1310. ::google::protobuf::io::CodedOutputStream* output) const;
  1311. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1312. int GetCachedSize() const { return _cached_size_; }
  1313. private:
  1314. void SharedCtor();
  1315. void SharedDtor();
  1316. void SetCachedSize(int size) const;
  1317. public:
  1318. ::google::protobuf::Metadata GetMetadata() const;
  1319. // nested types ----------------------------------------------------
  1320. typedef FileOptions_OptimizeMode OptimizeMode;
  1321. static const OptimizeMode SPEED = FileOptions_OptimizeMode_SPEED;
  1322. static const OptimizeMode CODE_SIZE = FileOptions_OptimizeMode_CODE_SIZE;
  1323. static const OptimizeMode LITE_RUNTIME = FileOptions_OptimizeMode_LITE_RUNTIME;
  1324. static inline bool OptimizeMode_IsValid(int value) {
  1325. return FileOptions_OptimizeMode_IsValid(value);
  1326. }
  1327. static const OptimizeMode OptimizeMode_MIN =
  1328. FileOptions_OptimizeMode_OptimizeMode_MIN;
  1329. static const OptimizeMode OptimizeMode_MAX =
  1330. FileOptions_OptimizeMode_OptimizeMode_MAX;
  1331. static const int OptimizeMode_ARRAYSIZE =
  1332. FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
  1333. static inline const ::google::protobuf::EnumDescriptor*
  1334. OptimizeMode_descriptor() {
  1335. return FileOptions_OptimizeMode_descriptor();
  1336. }
  1337. static inline const ::std::string& OptimizeMode_Name(OptimizeMode value) {
  1338. return FileOptions_OptimizeMode_Name(value);
  1339. }
  1340. static inline bool OptimizeMode_Parse(const ::std::string& name,
  1341. OptimizeMode* value) {
  1342. return FileOptions_OptimizeMode_Parse(name, value);
  1343. }
  1344. // accessors -------------------------------------------------------
  1345. // optional string java_package = 1;
  1346. inline bool has_java_package() const;
  1347. inline void clear_java_package();
  1348. static const int kJavaPackageFieldNumber = 1;
  1349. inline const ::std::string& java_package() const;
  1350. inline void set_java_package(const ::std::string& value);
  1351. inline void set_java_package(const char* value);
  1352. inline void set_java_package(const char* value, size_t size);
  1353. inline ::std::string* mutable_java_package();
  1354. inline ::std::string* release_java_package();
  1355. inline void set_allocated_java_package(::std::string* java_package);
  1356. // optional string java_outer_classname = 8;
  1357. inline bool has_java_outer_classname() const;
  1358. inline void clear_java_outer_classname();
  1359. static const int kJavaOuterClassnameFieldNumber = 8;
  1360. inline const ::std::string& java_outer_classname() const;
  1361. inline void set_java_outer_classname(const ::std::string& value);
  1362. inline void set_java_outer_classname(const char* value);
  1363. inline void set_java_outer_classname(const char* value, size_t size);
  1364. inline ::std::string* mutable_java_outer_classname();
  1365. inline ::std::string* release_java_outer_classname();
  1366. inline void set_allocated_java_outer_classname(::std::string* java_outer_classname);
  1367. // optional bool java_multiple_files = 10 [default = false];
  1368. inline bool has_java_multiple_files() const;
  1369. inline void clear_java_multiple_files();
  1370. static const int kJavaMultipleFilesFieldNumber = 10;
  1371. inline bool java_multiple_files() const;
  1372. inline void set_java_multiple_files(bool value);
  1373. // optional bool java_generate_equals_and_hash = 20 [default = false];
  1374. inline bool has_java_generate_equals_and_hash() const;
  1375. inline void clear_java_generate_equals_and_hash();
  1376. static const int kJavaGenerateEqualsAndHashFieldNumber = 20;
  1377. inline bool java_generate_equals_and_hash() const;
  1378. inline void set_java_generate_equals_and_hash(bool value);
  1379. // optional bool java_string_check_utf8 = 27 [default = false];
  1380. inline bool has_java_string_check_utf8() const;
  1381. inline void clear_java_string_check_utf8();
  1382. static const int kJavaStringCheckUtf8FieldNumber = 27;
  1383. inline bool java_string_check_utf8() const;
  1384. inline void set_java_string_check_utf8(bool value);
  1385. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  1386. inline bool has_optimize_for() const;
  1387. inline void clear_optimize_for();
  1388. static const int kOptimizeForFieldNumber = 9;
  1389. inline ::google::protobuf::FileOptions_OptimizeMode optimize_for() const;
  1390. inline void set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value);
  1391. // optional string go_package = 11;
  1392. inline bool has_go_package() const;
  1393. inline void clear_go_package();
  1394. static const int kGoPackageFieldNumber = 11;
  1395. inline const ::std::string& go_package() const;
  1396. inline void set_go_package(const ::std::string& value);
  1397. inline void set_go_package(const char* value);
  1398. inline void set_go_package(const char* value, size_t size);
  1399. inline ::std::string* mutable_go_package();
  1400. inline ::std::string* release_go_package();
  1401. inline void set_allocated_go_package(::std::string* go_package);
  1402. // optional bool cc_generic_services = 16 [default = false];
  1403. inline bool has_cc_generic_services() const;
  1404. inline void clear_cc_generic_services();
  1405. static const int kCcGenericServicesFieldNumber = 16;
  1406. inline bool cc_generic_services() const;
  1407. inline void set_cc_generic_services(bool value);
  1408. // optional bool java_generic_services = 17 [default = false];
  1409. inline bool has_java_generic_services() const;
  1410. inline void clear_java_generic_services();
  1411. static const int kJavaGenericServicesFieldNumber = 17;
  1412. inline bool java_generic_services() const;
  1413. inline void set_java_generic_services(bool value);
  1414. // optional bool py_generic_services = 18 [default = false];
  1415. inline bool has_py_generic_services() const;
  1416. inline void clear_py_generic_services();
  1417. static const int kPyGenericServicesFieldNumber = 18;
  1418. inline bool py_generic_services() const;
  1419. inline void set_py_generic_services(bool value);
  1420. // optional bool deprecated = 23 [default = false];
  1421. inline bool has_deprecated() const;
  1422. inline void clear_deprecated();
  1423. static const int kDeprecatedFieldNumber = 23;
  1424. inline bool deprecated() const;
  1425. inline void set_deprecated(bool value);
  1426. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1427. inline int uninterpreted_option_size() const;
  1428. inline void clear_uninterpreted_option();
  1429. static const int kUninterpretedOptionFieldNumber = 999;
  1430. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1431. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1432. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1433. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1434. uninterpreted_option() const;
  1435. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1436. mutable_uninterpreted_option();
  1437. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FileOptions)
  1438. // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
  1439. private:
  1440. inline void set_has_java_package();
  1441. inline void clear_has_java_package();
  1442. inline void set_has_java_outer_classname();
  1443. inline void clear_has_java_outer_classname();
  1444. inline void set_has_java_multiple_files();
  1445. inline void clear_has_java_multiple_files();
  1446. inline void set_has_java_generate_equals_and_hash();
  1447. inline void clear_has_java_generate_equals_and_hash();
  1448. inline void set_has_java_string_check_utf8();
  1449. inline void clear_has_java_string_check_utf8();
  1450. inline void set_has_optimize_for();
  1451. inline void clear_has_optimize_for();
  1452. inline void set_has_go_package();
  1453. inline void clear_has_go_package();
  1454. inline void set_has_cc_generic_services();
  1455. inline void clear_has_cc_generic_services();
  1456. inline void set_has_java_generic_services();
  1457. inline void clear_has_java_generic_services();
  1458. inline void set_has_py_generic_services();
  1459. inline void clear_has_py_generic_services();
  1460. inline void set_has_deprecated();
  1461. inline void clear_has_deprecated();
  1462. ::google::protobuf::internal::ExtensionSet _extensions_;
  1463. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1464. ::google::protobuf::uint32 _has_bits_[1];
  1465. mutable int _cached_size_;
  1466. ::std::string* java_package_;
  1467. ::std::string* java_outer_classname_;
  1468. bool java_multiple_files_;
  1469. bool java_generate_equals_and_hash_;
  1470. bool java_string_check_utf8_;
  1471. bool cc_generic_services_;
  1472. int optimize_for_;
  1473. ::std::string* go_package_;
  1474. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1475. bool java_generic_services_;
  1476. bool py_generic_services_;
  1477. bool deprecated_;
  1478. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1479. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1480. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1481. void InitAsDefaultInstance();
  1482. static FileOptions* default_instance_;
  1483. };
  1484. // -------------------------------------------------------------------
  1485. class LIBPROTOBUF_EXPORT MessageOptions : public ::google::protobuf::Message {
  1486. public:
  1487. MessageOptions();
  1488. virtual ~MessageOptions();
  1489. MessageOptions(const MessageOptions& from);
  1490. inline MessageOptions& operator=(const MessageOptions& from) {
  1491. CopyFrom(from);
  1492. return *this;
  1493. }
  1494. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1495. return _unknown_fields_;
  1496. }
  1497. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1498. return &_unknown_fields_;
  1499. }
  1500. static const ::google::protobuf::Descriptor* descriptor();
  1501. static const MessageOptions& default_instance();
  1502. void Swap(MessageOptions* other);
  1503. // implements Message ----------------------------------------------
  1504. MessageOptions* New() const;
  1505. void CopyFrom(const ::google::protobuf::Message& from);
  1506. void MergeFrom(const ::google::protobuf::Message& from);
  1507. void CopyFrom(const MessageOptions& from);
  1508. void MergeFrom(const MessageOptions& from);
  1509. void Clear();
  1510. bool IsInitialized() const;
  1511. int ByteSize() const;
  1512. bool MergePartialFromCodedStream(
  1513. ::google::protobuf::io::CodedInputStream* input);
  1514. void SerializeWithCachedSizes(
  1515. ::google::protobuf::io::CodedOutputStream* output) const;
  1516. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1517. int GetCachedSize() const { return _cached_size_; }
  1518. private:
  1519. void SharedCtor();
  1520. void SharedDtor();
  1521. void SetCachedSize(int size) const;
  1522. public:
  1523. ::google::protobuf::Metadata GetMetadata() const;
  1524. // nested types ----------------------------------------------------
  1525. // accessors -------------------------------------------------------
  1526. // optional bool message_set_wire_format = 1 [default = false];
  1527. inline bool has_message_set_wire_format() const;
  1528. inline void clear_message_set_wire_format();
  1529. static const int kMessageSetWireFormatFieldNumber = 1;
  1530. inline bool message_set_wire_format() const;
  1531. inline void set_message_set_wire_format(bool value);
  1532. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  1533. inline bool has_no_standard_descriptor_accessor() const;
  1534. inline void clear_no_standard_descriptor_accessor();
  1535. static const int kNoStandardDescriptorAccessorFieldNumber = 2;
  1536. inline bool no_standard_descriptor_accessor() const;
  1537. inline void set_no_standard_descriptor_accessor(bool value);
  1538. // optional bool deprecated = 3 [default = false];
  1539. inline bool has_deprecated() const;
  1540. inline void clear_deprecated();
  1541. static const int kDeprecatedFieldNumber = 3;
  1542. inline bool deprecated() const;
  1543. inline void set_deprecated(bool value);
  1544. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1545. inline int uninterpreted_option_size() const;
  1546. inline void clear_uninterpreted_option();
  1547. static const int kUninterpretedOptionFieldNumber = 999;
  1548. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1549. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1550. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1551. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1552. uninterpreted_option() const;
  1553. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1554. mutable_uninterpreted_option();
  1555. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MessageOptions)
  1556. // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
  1557. private:
  1558. inline void set_has_message_set_wire_format();
  1559. inline void clear_has_message_set_wire_format();
  1560. inline void set_has_no_standard_descriptor_accessor();
  1561. inline void clear_has_no_standard_descriptor_accessor();
  1562. inline void set_has_deprecated();
  1563. inline void clear_has_deprecated();
  1564. ::google::protobuf::internal::ExtensionSet _extensions_;
  1565. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1566. ::google::protobuf::uint32 _has_bits_[1];
  1567. mutable int _cached_size_;
  1568. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1569. bool message_set_wire_format_;
  1570. bool no_standard_descriptor_accessor_;
  1571. bool deprecated_;
  1572. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1573. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1574. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1575. void InitAsDefaultInstance();
  1576. static MessageOptions* default_instance_;
  1577. };
  1578. // -------------------------------------------------------------------
  1579. class LIBPROTOBUF_EXPORT FieldOptions : public ::google::protobuf::Message {
  1580. public:
  1581. FieldOptions();
  1582. virtual ~FieldOptions();
  1583. FieldOptions(const FieldOptions& from);
  1584. inline FieldOptions& operator=(const FieldOptions& from) {
  1585. CopyFrom(from);
  1586. return *this;
  1587. }
  1588. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1589. return _unknown_fields_;
  1590. }
  1591. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1592. return &_unknown_fields_;
  1593. }
  1594. static const ::google::protobuf::Descriptor* descriptor();
  1595. static const FieldOptions& default_instance();
  1596. void Swap(FieldOptions* other);
  1597. // implements Message ----------------------------------------------
  1598. FieldOptions* New() const;
  1599. void CopyFrom(const ::google::protobuf::Message& from);
  1600. void MergeFrom(const ::google::protobuf::Message& from);
  1601. void CopyFrom(const FieldOptions& from);
  1602. void MergeFrom(const FieldOptions& from);
  1603. void Clear();
  1604. bool IsInitialized() const;
  1605. int ByteSize() const;
  1606. bool MergePartialFromCodedStream(
  1607. ::google::protobuf::io::CodedInputStream* input);
  1608. void SerializeWithCachedSizes(
  1609. ::google::protobuf::io::CodedOutputStream* output) const;
  1610. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1611. int GetCachedSize() const { return _cached_size_; }
  1612. private:
  1613. void SharedCtor();
  1614. void SharedDtor();
  1615. void SetCachedSize(int size) const;
  1616. public:
  1617. ::google::protobuf::Metadata GetMetadata() const;
  1618. // nested types ----------------------------------------------------
  1619. typedef FieldOptions_CType CType;
  1620. static const CType STRING = FieldOptions_CType_STRING;
  1621. static const CType CORD = FieldOptions_CType_CORD;
  1622. static const CType STRING_PIECE = FieldOptions_CType_STRING_PIECE;
  1623. static inline bool CType_IsValid(int value) {
  1624. return FieldOptions_CType_IsValid(value);
  1625. }
  1626. static const CType CType_MIN =
  1627. FieldOptions_CType_CType_MIN;
  1628. static const CType CType_MAX =
  1629. FieldOptions_CType_CType_MAX;
  1630. static const int CType_ARRAYSIZE =
  1631. FieldOptions_CType_CType_ARRAYSIZE;
  1632. static inline const ::google::protobuf::EnumDescriptor*
  1633. CType_descriptor() {
  1634. return FieldOptions_CType_descriptor();
  1635. }
  1636. static inline const ::std::string& CType_Name(CType value) {
  1637. return FieldOptions_CType_Name(value);
  1638. }
  1639. static inline bool CType_Parse(const ::std::string& name,
  1640. CType* value) {
  1641. return FieldOptions_CType_Parse(name, value);
  1642. }
  1643. // accessors -------------------------------------------------------
  1644. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  1645. inline bool has_ctype() const;
  1646. inline void clear_ctype();
  1647. static const int kCtypeFieldNumber = 1;
  1648. inline ::google::protobuf::FieldOptions_CType ctype() const;
  1649. inline void set_ctype(::google::protobuf::FieldOptions_CType value);
  1650. // optional bool packed = 2;
  1651. inline bool has_packed() const;
  1652. inline void clear_packed();
  1653. static const int kPackedFieldNumber = 2;
  1654. inline bool packed() const;
  1655. inline void set_packed(bool value);
  1656. // optional bool lazy = 5 [default = false];
  1657. inline bool has_lazy() const;
  1658. inline void clear_lazy();
  1659. static const int kLazyFieldNumber = 5;
  1660. inline bool lazy() const;
  1661. inline void set_lazy(bool value);
  1662. // optional bool deprecated = 3 [default = false];
  1663. inline bool has_deprecated() const;
  1664. inline void clear_deprecated();
  1665. static const int kDeprecatedFieldNumber = 3;
  1666. inline bool deprecated() const;
  1667. inline void set_deprecated(bool value);
  1668. // optional string experimental_map_key = 9;
  1669. inline bool has_experimental_map_key() const;
  1670. inline void clear_experimental_map_key();
  1671. static const int kExperimentalMapKeyFieldNumber = 9;
  1672. inline const ::std::string& experimental_map_key() const;
  1673. inline void set_experimental_map_key(const ::std::string& value);
  1674. inline void set_experimental_map_key(const char* value);
  1675. inline void set_experimental_map_key(const char* value, size_t size);
  1676. inline ::std::string* mutable_experimental_map_key();
  1677. inline ::std::string* release_experimental_map_key();
  1678. inline void set_allocated_experimental_map_key(::std::string* experimental_map_key);
  1679. // optional bool weak = 10 [default = false];
  1680. inline bool has_weak() const;
  1681. inline void clear_weak();
  1682. static const int kWeakFieldNumber = 10;
  1683. inline bool weak() const;
  1684. inline void set_weak(bool value);
  1685. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1686. inline int uninterpreted_option_size() const;
  1687. inline void clear_uninterpreted_option();
  1688. static const int kUninterpretedOptionFieldNumber = 999;
  1689. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1690. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1691. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1692. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1693. uninterpreted_option() const;
  1694. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1695. mutable_uninterpreted_option();
  1696. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FieldOptions)
  1697. // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
  1698. private:
  1699. inline void set_has_ctype();
  1700. inline void clear_has_ctype();
  1701. inline void set_has_packed();
  1702. inline void clear_has_packed();
  1703. inline void set_has_lazy();
  1704. inline void clear_has_lazy();
  1705. inline void set_has_deprecated();
  1706. inline void clear_has_deprecated();
  1707. inline void set_has_experimental_map_key();
  1708. inline void clear_has_experimental_map_key();
  1709. inline void set_has_weak();
  1710. inline void clear_has_weak();
  1711. ::google::protobuf::internal::ExtensionSet _extensions_;
  1712. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1713. ::google::protobuf::uint32 _has_bits_[1];
  1714. mutable int _cached_size_;
  1715. int ctype_;
  1716. bool packed_;
  1717. bool lazy_;
  1718. bool deprecated_;
  1719. bool weak_;
  1720. ::std::string* experimental_map_key_;
  1721. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1722. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1723. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1724. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1725. void InitAsDefaultInstance();
  1726. static FieldOptions* default_instance_;
  1727. };
  1728. // -------------------------------------------------------------------
  1729. class LIBPROTOBUF_EXPORT EnumOptions : public ::google::protobuf::Message {
  1730. public:
  1731. EnumOptions();
  1732. virtual ~EnumOptions();
  1733. EnumOptions(const EnumOptions& from);
  1734. inline EnumOptions& operator=(const EnumOptions& from) {
  1735. CopyFrom(from);
  1736. return *this;
  1737. }
  1738. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1739. return _unknown_fields_;
  1740. }
  1741. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1742. return &_unknown_fields_;
  1743. }
  1744. static const ::google::protobuf::Descriptor* descriptor();
  1745. static const EnumOptions& default_instance();
  1746. void Swap(EnumOptions* other);
  1747. // implements Message ----------------------------------------------
  1748. EnumOptions* New() const;
  1749. void CopyFrom(const ::google::protobuf::Message& from);
  1750. void MergeFrom(const ::google::protobuf::Message& from);
  1751. void CopyFrom(const EnumOptions& from);
  1752. void MergeFrom(const EnumOptions& from);
  1753. void Clear();
  1754. bool IsInitialized() const;
  1755. int ByteSize() const;
  1756. bool MergePartialFromCodedStream(
  1757. ::google::protobuf::io::CodedInputStream* input);
  1758. void SerializeWithCachedSizes(
  1759. ::google::protobuf::io::CodedOutputStream* output) const;
  1760. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1761. int GetCachedSize() const { return _cached_size_; }
  1762. private:
  1763. void SharedCtor();
  1764. void SharedDtor();
  1765. void SetCachedSize(int size) const;
  1766. public:
  1767. ::google::protobuf::Metadata GetMetadata() const;
  1768. // nested types ----------------------------------------------------
  1769. // accessors -------------------------------------------------------
  1770. // optional bool allow_alias = 2;
  1771. inline bool has_allow_alias() const;
  1772. inline void clear_allow_alias();
  1773. static const int kAllowAliasFieldNumber = 2;
  1774. inline bool allow_alias() const;
  1775. inline void set_allow_alias(bool value);
  1776. // optional bool deprecated = 3 [default = false];
  1777. inline bool has_deprecated() const;
  1778. inline void clear_deprecated();
  1779. static const int kDeprecatedFieldNumber = 3;
  1780. inline bool deprecated() const;
  1781. inline void set_deprecated(bool value);
  1782. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1783. inline int uninterpreted_option_size() const;
  1784. inline void clear_uninterpreted_option();
  1785. static const int kUninterpretedOptionFieldNumber = 999;
  1786. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1787. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1788. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1789. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1790. uninterpreted_option() const;
  1791. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1792. mutable_uninterpreted_option();
  1793. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumOptions)
  1794. // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
  1795. private:
  1796. inline void set_has_allow_alias();
  1797. inline void clear_has_allow_alias();
  1798. inline void set_has_deprecated();
  1799. inline void clear_has_deprecated();
  1800. ::google::protobuf::internal::ExtensionSet _extensions_;
  1801. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1802. ::google::protobuf::uint32 _has_bits_[1];
  1803. mutable int _cached_size_;
  1804. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1805. bool allow_alias_;
  1806. bool deprecated_;
  1807. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1808. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1809. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1810. void InitAsDefaultInstance();
  1811. static EnumOptions* default_instance_;
  1812. };
  1813. // -------------------------------------------------------------------
  1814. class LIBPROTOBUF_EXPORT EnumValueOptions : public ::google::protobuf::Message {
  1815. public:
  1816. EnumValueOptions();
  1817. virtual ~EnumValueOptions();
  1818. EnumValueOptions(const EnumValueOptions& from);
  1819. inline EnumValueOptions& operator=(const EnumValueOptions& from) {
  1820. CopyFrom(from);
  1821. return *this;
  1822. }
  1823. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1824. return _unknown_fields_;
  1825. }
  1826. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1827. return &_unknown_fields_;
  1828. }
  1829. static const ::google::protobuf::Descriptor* descriptor();
  1830. static const EnumValueOptions& default_instance();
  1831. void Swap(EnumValueOptions* other);
  1832. // implements Message ----------------------------------------------
  1833. EnumValueOptions* New() const;
  1834. void CopyFrom(const ::google::protobuf::Message& from);
  1835. void MergeFrom(const ::google::protobuf::Message& from);
  1836. void CopyFrom(const EnumValueOptions& from);
  1837. void MergeFrom(const EnumValueOptions& from);
  1838. void Clear();
  1839. bool IsInitialized() const;
  1840. int ByteSize() const;
  1841. bool MergePartialFromCodedStream(
  1842. ::google::protobuf::io::CodedInputStream* input);
  1843. void SerializeWithCachedSizes(
  1844. ::google::protobuf::io::CodedOutputStream* output) const;
  1845. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1846. int GetCachedSize() const { return _cached_size_; }
  1847. private:
  1848. void SharedCtor();
  1849. void SharedDtor();
  1850. void SetCachedSize(int size) const;
  1851. public:
  1852. ::google::protobuf::Metadata GetMetadata() const;
  1853. // nested types ----------------------------------------------------
  1854. // accessors -------------------------------------------------------
  1855. // optional bool deprecated = 1 [default = false];
  1856. inline bool has_deprecated() const;
  1857. inline void clear_deprecated();
  1858. static const int kDeprecatedFieldNumber = 1;
  1859. inline bool deprecated() const;
  1860. inline void set_deprecated(bool value);
  1861. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1862. inline int uninterpreted_option_size() const;
  1863. inline void clear_uninterpreted_option();
  1864. static const int kUninterpretedOptionFieldNumber = 999;
  1865. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1866. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1867. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1868. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1869. uninterpreted_option() const;
  1870. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1871. mutable_uninterpreted_option();
  1872. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumValueOptions)
  1873. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
  1874. private:
  1875. inline void set_has_deprecated();
  1876. inline void clear_has_deprecated();
  1877. ::google::protobuf::internal::ExtensionSet _extensions_;
  1878. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1879. ::google::protobuf::uint32 _has_bits_[1];
  1880. mutable int _cached_size_;
  1881. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1882. bool deprecated_;
  1883. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1884. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1885. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1886. void InitAsDefaultInstance();
  1887. static EnumValueOptions* default_instance_;
  1888. };
  1889. // -------------------------------------------------------------------
  1890. class LIBPROTOBUF_EXPORT ServiceOptions : public ::google::protobuf::Message {
  1891. public:
  1892. ServiceOptions();
  1893. virtual ~ServiceOptions();
  1894. ServiceOptions(const ServiceOptions& from);
  1895. inline ServiceOptions& operator=(const ServiceOptions& from) {
  1896. CopyFrom(from);
  1897. return *this;
  1898. }
  1899. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1900. return _unknown_fields_;
  1901. }
  1902. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1903. return &_unknown_fields_;
  1904. }
  1905. static const ::google::protobuf::Descriptor* descriptor();
  1906. static const ServiceOptions& default_instance();
  1907. void Swap(ServiceOptions* other);
  1908. // implements Message ----------------------------------------------
  1909. ServiceOptions* New() const;
  1910. void CopyFrom(const ::google::protobuf::Message& from);
  1911. void MergeFrom(const ::google::protobuf::Message& from);
  1912. void CopyFrom(const ServiceOptions& from);
  1913. void MergeFrom(const ServiceOptions& from);
  1914. void Clear();
  1915. bool IsInitialized() const;
  1916. int ByteSize() const;
  1917. bool MergePartialFromCodedStream(
  1918. ::google::protobuf::io::CodedInputStream* input);
  1919. void SerializeWithCachedSizes(
  1920. ::google::protobuf::io::CodedOutputStream* output) const;
  1921. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1922. int GetCachedSize() const { return _cached_size_; }
  1923. private:
  1924. void SharedCtor();
  1925. void SharedDtor();
  1926. void SetCachedSize(int size) const;
  1927. public:
  1928. ::google::protobuf::Metadata GetMetadata() const;
  1929. // nested types ----------------------------------------------------
  1930. // accessors -------------------------------------------------------
  1931. // optional bool deprecated = 33 [default = false];
  1932. inline bool has_deprecated() const;
  1933. inline void clear_deprecated();
  1934. static const int kDeprecatedFieldNumber = 33;
  1935. inline bool deprecated() const;
  1936. inline void set_deprecated(bool value);
  1937. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1938. inline int uninterpreted_option_size() const;
  1939. inline void clear_uninterpreted_option();
  1940. static const int kUninterpretedOptionFieldNumber = 999;
  1941. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1942. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1943. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1944. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1945. uninterpreted_option() const;
  1946. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1947. mutable_uninterpreted_option();
  1948. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ServiceOptions)
  1949. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
  1950. private:
  1951. inline void set_has_deprecated();
  1952. inline void clear_has_deprecated();
  1953. ::google::protobuf::internal::ExtensionSet _extensions_;
  1954. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  1955. ::google::protobuf::uint32 _has_bits_[1];
  1956. mutable int _cached_size_;
  1957. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1958. bool deprecated_;
  1959. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1960. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  1961. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  1962. void InitAsDefaultInstance();
  1963. static ServiceOptions* default_instance_;
  1964. };
  1965. // -------------------------------------------------------------------
  1966. class LIBPROTOBUF_EXPORT MethodOptions : public ::google::protobuf::Message {
  1967. public:
  1968. MethodOptions();
  1969. virtual ~MethodOptions();
  1970. MethodOptions(const MethodOptions& from);
  1971. inline MethodOptions& operator=(const MethodOptions& from) {
  1972. CopyFrom(from);
  1973. return *this;
  1974. }
  1975. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1976. return _unknown_fields_;
  1977. }
  1978. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1979. return &_unknown_fields_;
  1980. }
  1981. static const ::google::protobuf::Descriptor* descriptor();
  1982. static const MethodOptions& default_instance();
  1983. void Swap(MethodOptions* other);
  1984. // implements Message ----------------------------------------------
  1985. MethodOptions* New() const;
  1986. void CopyFrom(const ::google::protobuf::Message& from);
  1987. void MergeFrom(const ::google::protobuf::Message& from);
  1988. void CopyFrom(const MethodOptions& from);
  1989. void MergeFrom(const MethodOptions& from);
  1990. void Clear();
  1991. bool IsInitialized() const;
  1992. int ByteSize() const;
  1993. bool MergePartialFromCodedStream(
  1994. ::google::protobuf::io::CodedInputStream* input);
  1995. void SerializeWithCachedSizes(
  1996. ::google::protobuf::io::CodedOutputStream* output) const;
  1997. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  1998. int GetCachedSize() const { return _cached_size_; }
  1999. private:
  2000. void SharedCtor();
  2001. void SharedDtor();
  2002. void SetCachedSize(int size) const;
  2003. public:
  2004. ::google::protobuf::Metadata GetMetadata() const;
  2005. // nested types ----------------------------------------------------
  2006. // accessors -------------------------------------------------------
  2007. // optional bool deprecated = 33 [default = false];
  2008. inline bool has_deprecated() const;
  2009. inline void clear_deprecated();
  2010. static const int kDeprecatedFieldNumber = 33;
  2011. inline bool deprecated() const;
  2012. inline void set_deprecated(bool value);
  2013. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  2014. inline int uninterpreted_option_size() const;
  2015. inline void clear_uninterpreted_option();
  2016. static const int kUninterpretedOptionFieldNumber = 999;
  2017. inline const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  2018. inline ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  2019. inline ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  2020. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  2021. uninterpreted_option() const;
  2022. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  2023. mutable_uninterpreted_option();
  2024. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MethodOptions)
  2025. // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
  2026. private:
  2027. inline void set_has_deprecated();
  2028. inline void clear_has_deprecated();
  2029. ::google::protobuf::internal::ExtensionSet _extensions_;
  2030. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  2031. ::google::protobuf::uint32 _has_bits_[1];
  2032. mutable int _cached_size_;
  2033. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  2034. bool deprecated_;
  2035. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2036. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2037. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  2038. void InitAsDefaultInstance();
  2039. static MethodOptions* default_instance_;
  2040. };
  2041. // -------------------------------------------------------------------
  2042. class LIBPROTOBUF_EXPORT UninterpretedOption_NamePart : public ::google::protobuf::Message {
  2043. public:
  2044. UninterpretedOption_NamePart();
  2045. virtual ~UninterpretedOption_NamePart();
  2046. UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from);
  2047. inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) {
  2048. CopyFrom(from);
  2049. return *this;
  2050. }
  2051. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2052. return _unknown_fields_;
  2053. }
  2054. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2055. return &_unknown_fields_;
  2056. }
  2057. static const ::google::protobuf::Descriptor* descriptor();
  2058. static const UninterpretedOption_NamePart& default_instance();
  2059. void Swap(UninterpretedOption_NamePart* other);
  2060. // implements Message ----------------------------------------------
  2061. UninterpretedOption_NamePart* New() const;
  2062. void CopyFrom(const ::google::protobuf::Message& from);
  2063. void MergeFrom(const ::google::protobuf::Message& from);
  2064. void CopyFrom(const UninterpretedOption_NamePart& from);
  2065. void MergeFrom(const UninterpretedOption_NamePart& from);
  2066. void Clear();
  2067. bool IsInitialized() const;
  2068. int ByteSize() const;
  2069. bool MergePartialFromCodedStream(
  2070. ::google::protobuf::io::CodedInputStream* input);
  2071. void SerializeWithCachedSizes(
  2072. ::google::protobuf::io::CodedOutputStream* output) const;
  2073. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  2074. int GetCachedSize() const { return _cached_size_; }
  2075. private:
  2076. void SharedCtor();
  2077. void SharedDtor();
  2078. void SetCachedSize(int size) const;
  2079. public:
  2080. ::google::protobuf::Metadata GetMetadata() const;
  2081. // nested types ----------------------------------------------------
  2082. // accessors -------------------------------------------------------
  2083. // required string name_part = 1;
  2084. inline bool has_name_part() const;
  2085. inline void clear_name_part();
  2086. static const int kNamePartFieldNumber = 1;
  2087. inline const ::std::string& name_part() const;
  2088. inline void set_name_part(const ::std::string& value);
  2089. inline void set_name_part(const char* value);
  2090. inline void set_name_part(const char* value, size_t size);
  2091. inline ::std::string* mutable_name_part();
  2092. inline ::std::string* release_name_part();
  2093. inline void set_allocated_name_part(::std::string* name_part);
  2094. // required bool is_extension = 2;
  2095. inline bool has_is_extension() const;
  2096. inline void clear_is_extension();
  2097. static const int kIsExtensionFieldNumber = 2;
  2098. inline bool is_extension() const;
  2099. inline void set_is_extension(bool value);
  2100. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
  2101. private:
  2102. inline void set_has_name_part();
  2103. inline void clear_has_name_part();
  2104. inline void set_has_is_extension();
  2105. inline void clear_has_is_extension();
  2106. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  2107. ::google::protobuf::uint32 _has_bits_[1];
  2108. mutable int _cached_size_;
  2109. ::std::string* name_part_;
  2110. bool is_extension_;
  2111. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2112. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2113. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  2114. void InitAsDefaultInstance();
  2115. static UninterpretedOption_NamePart* default_instance_;
  2116. };
  2117. // -------------------------------------------------------------------
  2118. class LIBPROTOBUF_EXPORT UninterpretedOption : public ::google::protobuf::Message {
  2119. public:
  2120. UninterpretedOption();
  2121. virtual ~UninterpretedOption();
  2122. UninterpretedOption(const UninterpretedOption& from);
  2123. inline UninterpretedOption& operator=(const UninterpretedOption& from) {
  2124. CopyFrom(from);
  2125. return *this;
  2126. }
  2127. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2128. return _unknown_fields_;
  2129. }
  2130. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2131. return &_unknown_fields_;
  2132. }
  2133. static const ::google::protobuf::Descriptor* descriptor();
  2134. static const UninterpretedOption& default_instance();
  2135. void Swap(UninterpretedOption* other);
  2136. // implements Message ----------------------------------------------
  2137. UninterpretedOption* New() const;
  2138. void CopyFrom(const ::google::protobuf::Message& from);
  2139. void MergeFrom(const ::google::protobuf::Message& from);
  2140. void CopyFrom(const UninterpretedOption& from);
  2141. void MergeFrom(const UninterpretedOption& from);
  2142. void Clear();
  2143. bool IsInitialized() const;
  2144. int ByteSize() const;
  2145. bool MergePartialFromCodedStream(
  2146. ::google::protobuf::io::CodedInputStream* input);
  2147. void SerializeWithCachedSizes(
  2148. ::google::protobuf::io::CodedOutputStream* output) const;
  2149. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  2150. int GetCachedSize() const { return _cached_size_; }
  2151. private:
  2152. void SharedCtor();
  2153. void SharedDtor();
  2154. void SetCachedSize(int size) const;
  2155. public:
  2156. ::google::protobuf::Metadata GetMetadata() const;
  2157. // nested types ----------------------------------------------------
  2158. typedef UninterpretedOption_NamePart NamePart;
  2159. // accessors -------------------------------------------------------
  2160. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  2161. inline int name_size() const;
  2162. inline void clear_name();
  2163. static const int kNameFieldNumber = 2;
  2164. inline const ::google::protobuf::UninterpretedOption_NamePart& name(int index) const;
  2165. inline ::google::protobuf::UninterpretedOption_NamePart* mutable_name(int index);
  2166. inline ::google::protobuf::UninterpretedOption_NamePart* add_name();
  2167. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
  2168. name() const;
  2169. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
  2170. mutable_name();
  2171. // optional string identifier_value = 3;
  2172. inline bool has_identifier_value() const;
  2173. inline void clear_identifier_value();
  2174. static const int kIdentifierValueFieldNumber = 3;
  2175. inline const ::std::string& identifier_value() const;
  2176. inline void set_identifier_value(const ::std::string& value);
  2177. inline void set_identifier_value(const char* value);
  2178. inline void set_identifier_value(const char* value, size_t size);
  2179. inline ::std::string* mutable_identifier_value();
  2180. inline ::std::string* release_identifier_value();
  2181. inline void set_allocated_identifier_value(::std::string* identifier_value);
  2182. // optional uint64 positive_int_value = 4;
  2183. inline bool has_positive_int_value() const;
  2184. inline void clear_positive_int_value();
  2185. static const int kPositiveIntValueFieldNumber = 4;
  2186. inline ::google::protobuf::uint64 positive_int_value() const;
  2187. inline void set_positive_int_value(::google::protobuf::uint64 value);
  2188. // optional int64 negative_int_value = 5;
  2189. inline bool has_negative_int_value() const;
  2190. inline void clear_negative_int_value();
  2191. static const int kNegativeIntValueFieldNumber = 5;
  2192. inline ::google::protobuf::int64 negative_int_value() const;
  2193. inline void set_negative_int_value(::google::protobuf::int64 value);
  2194. // optional double double_value = 6;
  2195. inline bool has_double_value() const;
  2196. inline void clear_double_value();
  2197. static const int kDoubleValueFieldNumber = 6;
  2198. inline double double_value() const;
  2199. inline void set_double_value(double value);
  2200. // optional bytes string_value = 7;
  2201. inline bool has_string_value() const;
  2202. inline void clear_string_value();
  2203. static const int kStringValueFieldNumber = 7;
  2204. inline const ::std::string& string_value() const;
  2205. inline void set_string_value(const ::std::string& value);
  2206. inline void set_string_value(const char* value);
  2207. inline void set_string_value(const void* value, size_t size);
  2208. inline ::std::string* mutable_string_value();
  2209. inline ::std::string* release_string_value();
  2210. inline void set_allocated_string_value(::std::string* string_value);
  2211. // optional string aggregate_value = 8;
  2212. inline bool has_aggregate_value() const;
  2213. inline void clear_aggregate_value();
  2214. static const int kAggregateValueFieldNumber = 8;
  2215. inline const ::std::string& aggregate_value() const;
  2216. inline void set_aggregate_value(const ::std::string& value);
  2217. inline void set_aggregate_value(const char* value);
  2218. inline void set_aggregate_value(const char* value, size_t size);
  2219. inline ::std::string* mutable_aggregate_value();
  2220. inline ::std::string* release_aggregate_value();
  2221. inline void set_allocated_aggregate_value(::std::string* aggregate_value);
  2222. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
  2223. private:
  2224. inline void set_has_identifier_value();
  2225. inline void clear_has_identifier_value();
  2226. inline void set_has_positive_int_value();
  2227. inline void clear_has_positive_int_value();
  2228. inline void set_has_negative_int_value();
  2229. inline void clear_has_negative_int_value();
  2230. inline void set_has_double_value();
  2231. inline void clear_has_double_value();
  2232. inline void set_has_string_value();
  2233. inline void clear_has_string_value();
  2234. inline void set_has_aggregate_value();
  2235. inline void clear_has_aggregate_value();
  2236. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  2237. ::google::protobuf::uint32 _has_bits_[1];
  2238. mutable int _cached_size_;
  2239. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart > name_;
  2240. ::std::string* identifier_value_;
  2241. ::google::protobuf::uint64 positive_int_value_;
  2242. ::google::protobuf::int64 negative_int_value_;
  2243. double double_value_;
  2244. ::std::string* string_value_;
  2245. ::std::string* aggregate_value_;
  2246. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2247. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2248. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  2249. void InitAsDefaultInstance();
  2250. static UninterpretedOption* default_instance_;
  2251. };
  2252. // -------------------------------------------------------------------
  2253. class LIBPROTOBUF_EXPORT SourceCodeInfo_Location : public ::google::protobuf::Message {
  2254. public:
  2255. SourceCodeInfo_Location();
  2256. virtual ~SourceCodeInfo_Location();
  2257. SourceCodeInfo_Location(const SourceCodeInfo_Location& from);
  2258. inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) {
  2259. CopyFrom(from);
  2260. return *this;
  2261. }
  2262. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2263. return _unknown_fields_;
  2264. }
  2265. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2266. return &_unknown_fields_;
  2267. }
  2268. static const ::google::protobuf::Descriptor* descriptor();
  2269. static const SourceCodeInfo_Location& default_instance();
  2270. void Swap(SourceCodeInfo_Location* other);
  2271. // implements Message ----------------------------------------------
  2272. SourceCodeInfo_Location* New() const;
  2273. void CopyFrom(const ::google::protobuf::Message& from);
  2274. void MergeFrom(const ::google::protobuf::Message& from);
  2275. void CopyFrom(const SourceCodeInfo_Location& from);
  2276. void MergeFrom(const SourceCodeInfo_Location& from);
  2277. void Clear();
  2278. bool IsInitialized() const;
  2279. int ByteSize() const;
  2280. bool MergePartialFromCodedStream(
  2281. ::google::protobuf::io::CodedInputStream* input);
  2282. void SerializeWithCachedSizes(
  2283. ::google::protobuf::io::CodedOutputStream* output) const;
  2284. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  2285. int GetCachedSize() const { return _cached_size_; }
  2286. private:
  2287. void SharedCtor();
  2288. void SharedDtor();
  2289. void SetCachedSize(int size) const;
  2290. public:
  2291. ::google::protobuf::Metadata GetMetadata() const;
  2292. // nested types ----------------------------------------------------
  2293. // accessors -------------------------------------------------------
  2294. // repeated int32 path = 1 [packed = true];
  2295. inline int path_size() const;
  2296. inline void clear_path();
  2297. static const int kPathFieldNumber = 1;
  2298. inline ::google::protobuf::int32 path(int index) const;
  2299. inline void set_path(int index, ::google::protobuf::int32 value);
  2300. inline void add_path(::google::protobuf::int32 value);
  2301. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  2302. path() const;
  2303. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  2304. mutable_path();
  2305. // repeated int32 span = 2 [packed = true];
  2306. inline int span_size() const;
  2307. inline void clear_span();
  2308. static const int kSpanFieldNumber = 2;
  2309. inline ::google::protobuf::int32 span(int index) const;
  2310. inline void set_span(int index, ::google::protobuf::int32 value);
  2311. inline void add_span(::google::protobuf::int32 value);
  2312. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  2313. span() const;
  2314. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  2315. mutable_span();
  2316. // optional string leading_comments = 3;
  2317. inline bool has_leading_comments() const;
  2318. inline void clear_leading_comments();
  2319. static const int kLeadingCommentsFieldNumber = 3;
  2320. inline const ::std::string& leading_comments() const;
  2321. inline void set_leading_comments(const ::std::string& value);
  2322. inline void set_leading_comments(const char* value);
  2323. inline void set_leading_comments(const char* value, size_t size);
  2324. inline ::std::string* mutable_leading_comments();
  2325. inline ::std::string* release_leading_comments();
  2326. inline void set_allocated_leading_comments(::std::string* leading_comments);
  2327. // optional string trailing_comments = 4;
  2328. inline bool has_trailing_comments() const;
  2329. inline void clear_trailing_comments();
  2330. static const int kTrailingCommentsFieldNumber = 4;
  2331. inline const ::std::string& trailing_comments() const;
  2332. inline void set_trailing_comments(const ::std::string& value);
  2333. inline void set_trailing_comments(const char* value);
  2334. inline void set_trailing_comments(const char* value, size_t size);
  2335. inline ::std::string* mutable_trailing_comments();
  2336. inline ::std::string* release_trailing_comments();
  2337. inline void set_allocated_trailing_comments(::std::string* trailing_comments);
  2338. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location)
  2339. private:
  2340. inline void set_has_leading_comments();
  2341. inline void clear_has_leading_comments();
  2342. inline void set_has_trailing_comments();
  2343. inline void clear_has_trailing_comments();
  2344. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  2345. ::google::protobuf::uint32 _has_bits_[1];
  2346. mutable int _cached_size_;
  2347. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > path_;
  2348. mutable int _path_cached_byte_size_;
  2349. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > span_;
  2350. mutable int _span_cached_byte_size_;
  2351. ::std::string* leading_comments_;
  2352. ::std::string* trailing_comments_;
  2353. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2354. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2355. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  2356. void InitAsDefaultInstance();
  2357. static SourceCodeInfo_Location* default_instance_;
  2358. };
  2359. // -------------------------------------------------------------------
  2360. class LIBPROTOBUF_EXPORT SourceCodeInfo : public ::google::protobuf::Message {
  2361. public:
  2362. SourceCodeInfo();
  2363. virtual ~SourceCodeInfo();
  2364. SourceCodeInfo(const SourceCodeInfo& from);
  2365. inline SourceCodeInfo& operator=(const SourceCodeInfo& from) {
  2366. CopyFrom(from);
  2367. return *this;
  2368. }
  2369. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2370. return _unknown_fields_;
  2371. }
  2372. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2373. return &_unknown_fields_;
  2374. }
  2375. static const ::google::protobuf::Descriptor* descriptor();
  2376. static const SourceCodeInfo& default_instance();
  2377. void Swap(SourceCodeInfo* other);
  2378. // implements Message ----------------------------------------------
  2379. SourceCodeInfo* New() const;
  2380. void CopyFrom(const ::google::protobuf::Message& from);
  2381. void MergeFrom(const ::google::protobuf::Message& from);
  2382. void CopyFrom(const SourceCodeInfo& from);
  2383. void MergeFrom(const SourceCodeInfo& from);
  2384. void Clear();
  2385. bool IsInitialized() const;
  2386. int ByteSize() const;
  2387. bool MergePartialFromCodedStream(
  2388. ::google::protobuf::io::CodedInputStream* input);
  2389. void SerializeWithCachedSizes(
  2390. ::google::protobuf::io::CodedOutputStream* output) const;
  2391. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
  2392. int GetCachedSize() const { return _cached_size_; }
  2393. private:
  2394. void SharedCtor();
  2395. void SharedDtor();
  2396. void SetCachedSize(int size) const;
  2397. public:
  2398. ::google::protobuf::Metadata GetMetadata() const;
  2399. // nested types ----------------------------------------------------
  2400. typedef SourceCodeInfo_Location Location;
  2401. // accessors -------------------------------------------------------
  2402. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  2403. inline int location_size() const;
  2404. inline void clear_location();
  2405. static const int kLocationFieldNumber = 1;
  2406. inline const ::google::protobuf::SourceCodeInfo_Location& location(int index) const;
  2407. inline ::google::protobuf::SourceCodeInfo_Location* mutable_location(int index);
  2408. inline ::google::protobuf::SourceCodeInfo_Location* add_location();
  2409. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
  2410. location() const;
  2411. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
  2412. mutable_location();
  2413. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo)
  2414. private:
  2415. ::google::protobuf::UnknownFieldSet _unknown_fields_;
  2416. ::google::protobuf::uint32 _has_bits_[1];
  2417. mutable int _cached_size_;
  2418. ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location > location_;
  2419. friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2420. friend void protobuf_AssignDesc_google_2fprotobuf_2fdescriptor_2eproto();
  2421. friend void protobuf_ShutdownFile_google_2fprotobuf_2fdescriptor_2eproto();
  2422. void InitAsDefaultInstance();
  2423. static SourceCodeInfo* default_instance_;
  2424. };
  2425. // ===================================================================
  2426. // ===================================================================
  2427. // FileDescriptorSet
  2428. // repeated .google.protobuf.FileDescriptorProto file = 1;
  2429. inline int FileDescriptorSet::file_size() const {
  2430. return file_.size();
  2431. }
  2432. inline void FileDescriptorSet::clear_file() {
  2433. file_.Clear();
  2434. }
  2435. inline const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const {
  2436. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
  2437. return file_.Get(index);
  2438. }
  2439. inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
  2440. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
  2441. return file_.Mutable(index);
  2442. }
  2443. inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() {
  2444. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
  2445. return file_.Add();
  2446. }
  2447. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  2448. FileDescriptorSet::file() const {
  2449. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
  2450. return file_;
  2451. }
  2452. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  2453. FileDescriptorSet::mutable_file() {
  2454. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
  2455. return &file_;
  2456. }
  2457. // -------------------------------------------------------------------
  2458. // FileDescriptorProto
  2459. // optional string name = 1;
  2460. inline bool FileDescriptorProto::has_name() const {
  2461. return (_has_bits_[0] & 0x00000001u) != 0;
  2462. }
  2463. inline void FileDescriptorProto::set_has_name() {
  2464. _has_bits_[0] |= 0x00000001u;
  2465. }
  2466. inline void FileDescriptorProto::clear_has_name() {
  2467. _has_bits_[0] &= ~0x00000001u;
  2468. }
  2469. inline void FileDescriptorProto::clear_name() {
  2470. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2471. name_->clear();
  2472. }
  2473. clear_has_name();
  2474. }
  2475. inline const ::std::string& FileDescriptorProto::name() const {
  2476. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
  2477. return *name_;
  2478. }
  2479. inline void FileDescriptorProto::set_name(const ::std::string& value) {
  2480. set_has_name();
  2481. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2482. name_ = new ::std::string;
  2483. }
  2484. name_->assign(value);
  2485. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
  2486. }
  2487. inline void FileDescriptorProto::set_name(const char* value) {
  2488. set_has_name();
  2489. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2490. name_ = new ::std::string;
  2491. }
  2492. name_->assign(value);
  2493. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name)
  2494. }
  2495. inline void FileDescriptorProto::set_name(const char* value, size_t size) {
  2496. set_has_name();
  2497. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2498. name_ = new ::std::string;
  2499. }
  2500. name_->assign(reinterpret_cast<const char*>(value), size);
  2501. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name)
  2502. }
  2503. inline ::std::string* FileDescriptorProto::mutable_name() {
  2504. set_has_name();
  2505. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2506. name_ = new ::std::string;
  2507. }
  2508. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
  2509. return name_;
  2510. }
  2511. inline ::std::string* FileDescriptorProto::release_name() {
  2512. clear_has_name();
  2513. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2514. return NULL;
  2515. } else {
  2516. ::std::string* temp = name_;
  2517. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2518. return temp;
  2519. }
  2520. }
  2521. inline void FileDescriptorProto::set_allocated_name(::std::string* name) {
  2522. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2523. delete name_;
  2524. }
  2525. if (name) {
  2526. set_has_name();
  2527. name_ = name;
  2528. } else {
  2529. clear_has_name();
  2530. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2531. }
  2532. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
  2533. }
  2534. // optional string package = 2;
  2535. inline bool FileDescriptorProto::has_package() const {
  2536. return (_has_bits_[0] & 0x00000002u) != 0;
  2537. }
  2538. inline void FileDescriptorProto::set_has_package() {
  2539. _has_bits_[0] |= 0x00000002u;
  2540. }
  2541. inline void FileDescriptorProto::clear_has_package() {
  2542. _has_bits_[0] &= ~0x00000002u;
  2543. }
  2544. inline void FileDescriptorProto::clear_package() {
  2545. if (package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2546. package_->clear();
  2547. }
  2548. clear_has_package();
  2549. }
  2550. inline const ::std::string& FileDescriptorProto::package() const {
  2551. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
  2552. return *package_;
  2553. }
  2554. inline void FileDescriptorProto::set_package(const ::std::string& value) {
  2555. set_has_package();
  2556. if (package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2557. package_ = new ::std::string;
  2558. }
  2559. package_->assign(value);
  2560. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
  2561. }
  2562. inline void FileDescriptorProto::set_package(const char* value) {
  2563. set_has_package();
  2564. if (package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2565. package_ = new ::std::string;
  2566. }
  2567. package_->assign(value);
  2568. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package)
  2569. }
  2570. inline void FileDescriptorProto::set_package(const char* value, size_t size) {
  2571. set_has_package();
  2572. if (package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2573. package_ = new ::std::string;
  2574. }
  2575. package_->assign(reinterpret_cast<const char*>(value), size);
  2576. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package)
  2577. }
  2578. inline ::std::string* FileDescriptorProto::mutable_package() {
  2579. set_has_package();
  2580. if (package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2581. package_ = new ::std::string;
  2582. }
  2583. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
  2584. return package_;
  2585. }
  2586. inline ::std::string* FileDescriptorProto::release_package() {
  2587. clear_has_package();
  2588. if (package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2589. return NULL;
  2590. } else {
  2591. ::std::string* temp = package_;
  2592. package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2593. return temp;
  2594. }
  2595. }
  2596. inline void FileDescriptorProto::set_allocated_package(::std::string* package) {
  2597. if (package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2598. delete package_;
  2599. }
  2600. if (package) {
  2601. set_has_package();
  2602. package_ = package;
  2603. } else {
  2604. clear_has_package();
  2605. package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  2606. }
  2607. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
  2608. }
  2609. // repeated string dependency = 3;
  2610. inline int FileDescriptorProto::dependency_size() const {
  2611. return dependency_.size();
  2612. }
  2613. inline void FileDescriptorProto::clear_dependency() {
  2614. dependency_.Clear();
  2615. }
  2616. inline const ::std::string& FileDescriptorProto::dependency(int index) const {
  2617. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
  2618. return dependency_.Get(index);
  2619. }
  2620. inline ::std::string* FileDescriptorProto::mutable_dependency(int index) {
  2621. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
  2622. return dependency_.Mutable(index);
  2623. }
  2624. inline void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
  2625. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  2626. dependency_.Mutable(index)->assign(value);
  2627. }
  2628. inline void FileDescriptorProto::set_dependency(int index, const char* value) {
  2629. dependency_.Mutable(index)->assign(value);
  2630. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
  2631. }
  2632. inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
  2633. dependency_.Mutable(index)->assign(
  2634. reinterpret_cast<const char*>(value), size);
  2635. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
  2636. }
  2637. inline ::std::string* FileDescriptorProto::add_dependency() {
  2638. return dependency_.Add();
  2639. }
  2640. inline void FileDescriptorProto::add_dependency(const ::std::string& value) {
  2641. dependency_.Add()->assign(value);
  2642. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  2643. }
  2644. inline void FileDescriptorProto::add_dependency(const char* value) {
  2645. dependency_.Add()->assign(value);
  2646. // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
  2647. }
  2648. inline void FileDescriptorProto::add_dependency(const char* value, size_t size) {
  2649. dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
  2650. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
  2651. }
  2652. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  2653. FileDescriptorProto::dependency() const {
  2654. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
  2655. return dependency_;
  2656. }
  2657. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  2658. FileDescriptorProto::mutable_dependency() {
  2659. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
  2660. return &dependency_;
  2661. }
  2662. // repeated int32 public_dependency = 10;
  2663. inline int FileDescriptorProto::public_dependency_size() const {
  2664. return public_dependency_.size();
  2665. }
  2666. inline void FileDescriptorProto::clear_public_dependency() {
  2667. public_dependency_.Clear();
  2668. }
  2669. inline ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const {
  2670. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
  2671. return public_dependency_.Get(index);
  2672. }
  2673. inline void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) {
  2674. public_dependency_.Set(index, value);
  2675. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
  2676. }
  2677. inline void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) {
  2678. public_dependency_.Add(value);
  2679. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
  2680. }
  2681. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  2682. FileDescriptorProto::public_dependency() const {
  2683. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
  2684. return public_dependency_;
  2685. }
  2686. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  2687. FileDescriptorProto::mutable_public_dependency() {
  2688. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
  2689. return &public_dependency_;
  2690. }
  2691. // repeated int32 weak_dependency = 11;
  2692. inline int FileDescriptorProto::weak_dependency_size() const {
  2693. return weak_dependency_.size();
  2694. }
  2695. inline void FileDescriptorProto::clear_weak_dependency() {
  2696. weak_dependency_.Clear();
  2697. }
  2698. inline ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const {
  2699. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
  2700. return weak_dependency_.Get(index);
  2701. }
  2702. inline void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) {
  2703. weak_dependency_.Set(index, value);
  2704. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
  2705. }
  2706. inline void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) {
  2707. weak_dependency_.Add(value);
  2708. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
  2709. }
  2710. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  2711. FileDescriptorProto::weak_dependency() const {
  2712. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
  2713. return weak_dependency_;
  2714. }
  2715. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  2716. FileDescriptorProto::mutable_weak_dependency() {
  2717. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
  2718. return &weak_dependency_;
  2719. }
  2720. // repeated .google.protobuf.DescriptorProto message_type = 4;
  2721. inline int FileDescriptorProto::message_type_size() const {
  2722. return message_type_.size();
  2723. }
  2724. inline void FileDescriptorProto::clear_message_type() {
  2725. message_type_.Clear();
  2726. }
  2727. inline const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const {
  2728. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
  2729. return message_type_.Get(index);
  2730. }
  2731. inline ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
  2732. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
  2733. return message_type_.Mutable(index);
  2734. }
  2735. inline ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() {
  2736. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
  2737. return message_type_.Add();
  2738. }
  2739. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  2740. FileDescriptorProto::message_type() const {
  2741. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
  2742. return message_type_;
  2743. }
  2744. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  2745. FileDescriptorProto::mutable_message_type() {
  2746. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
  2747. return &message_type_;
  2748. }
  2749. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  2750. inline int FileDescriptorProto::enum_type_size() const {
  2751. return enum_type_.size();
  2752. }
  2753. inline void FileDescriptorProto::clear_enum_type() {
  2754. enum_type_.Clear();
  2755. }
  2756. inline const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
  2757. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
  2758. return enum_type_.Get(index);
  2759. }
  2760. inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
  2761. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
  2762. return enum_type_.Mutable(index);
  2763. }
  2764. inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
  2765. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
  2766. return enum_type_.Add();
  2767. }
  2768. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  2769. FileDescriptorProto::enum_type() const {
  2770. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
  2771. return enum_type_;
  2772. }
  2773. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  2774. FileDescriptorProto::mutable_enum_type() {
  2775. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
  2776. return &enum_type_;
  2777. }
  2778. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  2779. inline int FileDescriptorProto::service_size() const {
  2780. return service_.size();
  2781. }
  2782. inline void FileDescriptorProto::clear_service() {
  2783. service_.Clear();
  2784. }
  2785. inline const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
  2786. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
  2787. return service_.Get(index);
  2788. }
  2789. inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
  2790. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
  2791. return service_.Mutable(index);
  2792. }
  2793. inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() {
  2794. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
  2795. return service_.Add();
  2796. }
  2797. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
  2798. FileDescriptorProto::service() const {
  2799. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
  2800. return service_;
  2801. }
  2802. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
  2803. FileDescriptorProto::mutable_service() {
  2804. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
  2805. return &service_;
  2806. }
  2807. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  2808. inline int FileDescriptorProto::extension_size() const {
  2809. return extension_.size();
  2810. }
  2811. inline void FileDescriptorProto::clear_extension() {
  2812. extension_.Clear();
  2813. }
  2814. inline const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
  2815. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
  2816. return extension_.Get(index);
  2817. }
  2818. inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
  2819. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
  2820. return extension_.Mutable(index);
  2821. }
  2822. inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() {
  2823. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
  2824. return extension_.Add();
  2825. }
  2826. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  2827. FileDescriptorProto::extension() const {
  2828. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
  2829. return extension_;
  2830. }
  2831. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  2832. FileDescriptorProto::mutable_extension() {
  2833. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
  2834. return &extension_;
  2835. }
  2836. // optional .google.protobuf.FileOptions options = 8;
  2837. inline bool FileDescriptorProto::has_options() const {
  2838. return (_has_bits_[0] & 0x00000200u) != 0;
  2839. }
  2840. inline void FileDescriptorProto::set_has_options() {
  2841. _has_bits_[0] |= 0x00000200u;
  2842. }
  2843. inline void FileDescriptorProto::clear_has_options() {
  2844. _has_bits_[0] &= ~0x00000200u;
  2845. }
  2846. inline void FileDescriptorProto::clear_options() {
  2847. if (options_ != NULL) options_->::google::protobuf::FileOptions::Clear();
  2848. clear_has_options();
  2849. }
  2850. inline const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
  2851. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
  2852. return options_ != NULL ? *options_ : *default_instance_->options_;
  2853. }
  2854. inline ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
  2855. set_has_options();
  2856. if (options_ == NULL) options_ = new ::google::protobuf::FileOptions;
  2857. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
  2858. return options_;
  2859. }
  2860. inline ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
  2861. clear_has_options();
  2862. ::google::protobuf::FileOptions* temp = options_;
  2863. options_ = NULL;
  2864. return temp;
  2865. }
  2866. inline void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) {
  2867. delete options_;
  2868. options_ = options;
  2869. if (options) {
  2870. set_has_options();
  2871. } else {
  2872. clear_has_options();
  2873. }
  2874. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
  2875. }
  2876. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  2877. inline bool FileDescriptorProto::has_source_code_info() const {
  2878. return (_has_bits_[0] & 0x00000400u) != 0;
  2879. }
  2880. inline void FileDescriptorProto::set_has_source_code_info() {
  2881. _has_bits_[0] |= 0x00000400u;
  2882. }
  2883. inline void FileDescriptorProto::clear_has_source_code_info() {
  2884. _has_bits_[0] &= ~0x00000400u;
  2885. }
  2886. inline void FileDescriptorProto::clear_source_code_info() {
  2887. if (source_code_info_ != NULL) source_code_info_->::google::protobuf::SourceCodeInfo::Clear();
  2888. clear_has_source_code_info();
  2889. }
  2890. inline const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
  2891. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
  2892. return source_code_info_ != NULL ? *source_code_info_ : *default_instance_->source_code_info_;
  2893. }
  2894. inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
  2895. set_has_source_code_info();
  2896. if (source_code_info_ == NULL) source_code_info_ = new ::google::protobuf::SourceCodeInfo;
  2897. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
  2898. return source_code_info_;
  2899. }
  2900. inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
  2901. clear_has_source_code_info();
  2902. ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
  2903. source_code_info_ = NULL;
  2904. return temp;
  2905. }
  2906. inline void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info) {
  2907. delete source_code_info_;
  2908. source_code_info_ = source_code_info;
  2909. if (source_code_info) {
  2910. set_has_source_code_info();
  2911. } else {
  2912. clear_has_source_code_info();
  2913. }
  2914. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  2915. }
  2916. // -------------------------------------------------------------------
  2917. // DescriptorProto_ExtensionRange
  2918. // optional int32 start = 1;
  2919. inline bool DescriptorProto_ExtensionRange::has_start() const {
  2920. return (_has_bits_[0] & 0x00000001u) != 0;
  2921. }
  2922. inline void DescriptorProto_ExtensionRange::set_has_start() {
  2923. _has_bits_[0] |= 0x00000001u;
  2924. }
  2925. inline void DescriptorProto_ExtensionRange::clear_has_start() {
  2926. _has_bits_[0] &= ~0x00000001u;
  2927. }
  2928. inline void DescriptorProto_ExtensionRange::clear_start() {
  2929. start_ = 0;
  2930. clear_has_start();
  2931. }
  2932. inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
  2933. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
  2934. return start_;
  2935. }
  2936. inline void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
  2937. set_has_start();
  2938. start_ = value;
  2939. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
  2940. }
  2941. // optional int32 end = 2;
  2942. inline bool DescriptorProto_ExtensionRange::has_end() const {
  2943. return (_has_bits_[0] & 0x00000002u) != 0;
  2944. }
  2945. inline void DescriptorProto_ExtensionRange::set_has_end() {
  2946. _has_bits_[0] |= 0x00000002u;
  2947. }
  2948. inline void DescriptorProto_ExtensionRange::clear_has_end() {
  2949. _has_bits_[0] &= ~0x00000002u;
  2950. }
  2951. inline void DescriptorProto_ExtensionRange::clear_end() {
  2952. end_ = 0;
  2953. clear_has_end();
  2954. }
  2955. inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
  2956. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
  2957. return end_;
  2958. }
  2959. inline void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
  2960. set_has_end();
  2961. end_ = value;
  2962. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
  2963. }
  2964. // -------------------------------------------------------------------
  2965. // DescriptorProto
  2966. // optional string name = 1;
  2967. inline bool DescriptorProto::has_name() const {
  2968. return (_has_bits_[0] & 0x00000001u) != 0;
  2969. }
  2970. inline void DescriptorProto::set_has_name() {
  2971. _has_bits_[0] |= 0x00000001u;
  2972. }
  2973. inline void DescriptorProto::clear_has_name() {
  2974. _has_bits_[0] &= ~0x00000001u;
  2975. }
  2976. inline void DescriptorProto::clear_name() {
  2977. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2978. name_->clear();
  2979. }
  2980. clear_has_name();
  2981. }
  2982. inline const ::std::string& DescriptorProto::name() const {
  2983. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
  2984. return *name_;
  2985. }
  2986. inline void DescriptorProto::set_name(const ::std::string& value) {
  2987. set_has_name();
  2988. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2989. name_ = new ::std::string;
  2990. }
  2991. name_->assign(value);
  2992. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
  2993. }
  2994. inline void DescriptorProto::set_name(const char* value) {
  2995. set_has_name();
  2996. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  2997. name_ = new ::std::string;
  2998. }
  2999. name_->assign(value);
  3000. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name)
  3001. }
  3002. inline void DescriptorProto::set_name(const char* value, size_t size) {
  3003. set_has_name();
  3004. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3005. name_ = new ::std::string;
  3006. }
  3007. name_->assign(reinterpret_cast<const char*>(value), size);
  3008. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name)
  3009. }
  3010. inline ::std::string* DescriptorProto::mutable_name() {
  3011. set_has_name();
  3012. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3013. name_ = new ::std::string;
  3014. }
  3015. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
  3016. return name_;
  3017. }
  3018. inline ::std::string* DescriptorProto::release_name() {
  3019. clear_has_name();
  3020. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3021. return NULL;
  3022. } else {
  3023. ::std::string* temp = name_;
  3024. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3025. return temp;
  3026. }
  3027. }
  3028. inline void DescriptorProto::set_allocated_name(::std::string* name) {
  3029. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3030. delete name_;
  3031. }
  3032. if (name) {
  3033. set_has_name();
  3034. name_ = name;
  3035. } else {
  3036. clear_has_name();
  3037. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3038. }
  3039. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
  3040. }
  3041. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  3042. inline int DescriptorProto::field_size() const {
  3043. return field_.size();
  3044. }
  3045. inline void DescriptorProto::clear_field() {
  3046. field_.Clear();
  3047. }
  3048. inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const {
  3049. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
  3050. return field_.Get(index);
  3051. }
  3052. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
  3053. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
  3054. return field_.Mutable(index);
  3055. }
  3056. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() {
  3057. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
  3058. return field_.Add();
  3059. }
  3060. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  3061. DescriptorProto::field() const {
  3062. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
  3063. return field_;
  3064. }
  3065. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  3066. DescriptorProto::mutable_field() {
  3067. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
  3068. return &field_;
  3069. }
  3070. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  3071. inline int DescriptorProto::extension_size() const {
  3072. return extension_.size();
  3073. }
  3074. inline void DescriptorProto::clear_extension() {
  3075. extension_.Clear();
  3076. }
  3077. inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const {
  3078. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
  3079. return extension_.Get(index);
  3080. }
  3081. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
  3082. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
  3083. return extension_.Mutable(index);
  3084. }
  3085. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() {
  3086. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
  3087. return extension_.Add();
  3088. }
  3089. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  3090. DescriptorProto::extension() const {
  3091. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
  3092. return extension_;
  3093. }
  3094. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  3095. DescriptorProto::mutable_extension() {
  3096. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
  3097. return &extension_;
  3098. }
  3099. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  3100. inline int DescriptorProto::nested_type_size() const {
  3101. return nested_type_.size();
  3102. }
  3103. inline void DescriptorProto::clear_nested_type() {
  3104. nested_type_.Clear();
  3105. }
  3106. inline const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const {
  3107. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
  3108. return nested_type_.Get(index);
  3109. }
  3110. inline ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
  3111. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
  3112. return nested_type_.Mutable(index);
  3113. }
  3114. inline ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() {
  3115. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
  3116. return nested_type_.Add();
  3117. }
  3118. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  3119. DescriptorProto::nested_type() const {
  3120. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
  3121. return nested_type_;
  3122. }
  3123. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  3124. DescriptorProto::mutable_nested_type() {
  3125. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
  3126. return &nested_type_;
  3127. }
  3128. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  3129. inline int DescriptorProto::enum_type_size() const {
  3130. return enum_type_.size();
  3131. }
  3132. inline void DescriptorProto::clear_enum_type() {
  3133. enum_type_.Clear();
  3134. }
  3135. inline const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
  3136. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
  3137. return enum_type_.Get(index);
  3138. }
  3139. inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
  3140. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
  3141. return enum_type_.Mutable(index);
  3142. }
  3143. inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() {
  3144. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
  3145. return enum_type_.Add();
  3146. }
  3147. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  3148. DescriptorProto::enum_type() const {
  3149. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
  3150. return enum_type_;
  3151. }
  3152. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  3153. DescriptorProto::mutable_enum_type() {
  3154. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
  3155. return &enum_type_;
  3156. }
  3157. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  3158. inline int DescriptorProto::extension_range_size() const {
  3159. return extension_range_.size();
  3160. }
  3161. inline void DescriptorProto::clear_extension_range() {
  3162. extension_range_.Clear();
  3163. }
  3164. inline const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
  3165. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
  3166. return extension_range_.Get(index);
  3167. }
  3168. inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
  3169. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
  3170. return extension_range_.Mutable(index);
  3171. }
  3172. inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
  3173. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
  3174. return extension_range_.Add();
  3175. }
  3176. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
  3177. DescriptorProto::extension_range() const {
  3178. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
  3179. return extension_range_;
  3180. }
  3181. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
  3182. DescriptorProto::mutable_extension_range() {
  3183. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
  3184. return &extension_range_;
  3185. }
  3186. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  3187. inline int DescriptorProto::oneof_decl_size() const {
  3188. return oneof_decl_.size();
  3189. }
  3190. inline void DescriptorProto::clear_oneof_decl() {
  3191. oneof_decl_.Clear();
  3192. }
  3193. inline const ::google::protobuf::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
  3194. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
  3195. return oneof_decl_.Get(index);
  3196. }
  3197. inline ::google::protobuf::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
  3198. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
  3199. return oneof_decl_.Mutable(index);
  3200. }
  3201. inline ::google::protobuf::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
  3202. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
  3203. return oneof_decl_.Add();
  3204. }
  3205. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
  3206. DescriptorProto::oneof_decl() const {
  3207. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
  3208. return oneof_decl_;
  3209. }
  3210. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
  3211. DescriptorProto::mutable_oneof_decl() {
  3212. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
  3213. return &oneof_decl_;
  3214. }
  3215. // optional .google.protobuf.MessageOptions options = 7;
  3216. inline bool DescriptorProto::has_options() const {
  3217. return (_has_bits_[0] & 0x00000080u) != 0;
  3218. }
  3219. inline void DescriptorProto::set_has_options() {
  3220. _has_bits_[0] |= 0x00000080u;
  3221. }
  3222. inline void DescriptorProto::clear_has_options() {
  3223. _has_bits_[0] &= ~0x00000080u;
  3224. }
  3225. inline void DescriptorProto::clear_options() {
  3226. if (options_ != NULL) options_->::google::protobuf::MessageOptions::Clear();
  3227. clear_has_options();
  3228. }
  3229. inline const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
  3230. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
  3231. return options_ != NULL ? *options_ : *default_instance_->options_;
  3232. }
  3233. inline ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
  3234. set_has_options();
  3235. if (options_ == NULL) options_ = new ::google::protobuf::MessageOptions;
  3236. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
  3237. return options_;
  3238. }
  3239. inline ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
  3240. clear_has_options();
  3241. ::google::protobuf::MessageOptions* temp = options_;
  3242. options_ = NULL;
  3243. return temp;
  3244. }
  3245. inline void DescriptorProto::set_allocated_options(::google::protobuf::MessageOptions* options) {
  3246. delete options_;
  3247. options_ = options;
  3248. if (options) {
  3249. set_has_options();
  3250. } else {
  3251. clear_has_options();
  3252. }
  3253. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
  3254. }
  3255. // -------------------------------------------------------------------
  3256. // FieldDescriptorProto
  3257. // optional string name = 1;
  3258. inline bool FieldDescriptorProto::has_name() const {
  3259. return (_has_bits_[0] & 0x00000001u) != 0;
  3260. }
  3261. inline void FieldDescriptorProto::set_has_name() {
  3262. _has_bits_[0] |= 0x00000001u;
  3263. }
  3264. inline void FieldDescriptorProto::clear_has_name() {
  3265. _has_bits_[0] &= ~0x00000001u;
  3266. }
  3267. inline void FieldDescriptorProto::clear_name() {
  3268. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3269. name_->clear();
  3270. }
  3271. clear_has_name();
  3272. }
  3273. inline const ::std::string& FieldDescriptorProto::name() const {
  3274. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
  3275. return *name_;
  3276. }
  3277. inline void FieldDescriptorProto::set_name(const ::std::string& value) {
  3278. set_has_name();
  3279. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3280. name_ = new ::std::string;
  3281. }
  3282. name_->assign(value);
  3283. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
  3284. }
  3285. inline void FieldDescriptorProto::set_name(const char* value) {
  3286. set_has_name();
  3287. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3288. name_ = new ::std::string;
  3289. }
  3290. name_->assign(value);
  3291. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name)
  3292. }
  3293. inline void FieldDescriptorProto::set_name(const char* value, size_t size) {
  3294. set_has_name();
  3295. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3296. name_ = new ::std::string;
  3297. }
  3298. name_->assign(reinterpret_cast<const char*>(value), size);
  3299. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name)
  3300. }
  3301. inline ::std::string* FieldDescriptorProto::mutable_name() {
  3302. set_has_name();
  3303. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3304. name_ = new ::std::string;
  3305. }
  3306. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
  3307. return name_;
  3308. }
  3309. inline ::std::string* FieldDescriptorProto::release_name() {
  3310. clear_has_name();
  3311. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3312. return NULL;
  3313. } else {
  3314. ::std::string* temp = name_;
  3315. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3316. return temp;
  3317. }
  3318. }
  3319. inline void FieldDescriptorProto::set_allocated_name(::std::string* name) {
  3320. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3321. delete name_;
  3322. }
  3323. if (name) {
  3324. set_has_name();
  3325. name_ = name;
  3326. } else {
  3327. clear_has_name();
  3328. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3329. }
  3330. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
  3331. }
  3332. // optional int32 number = 3;
  3333. inline bool FieldDescriptorProto::has_number() const {
  3334. return (_has_bits_[0] & 0x00000002u) != 0;
  3335. }
  3336. inline void FieldDescriptorProto::set_has_number() {
  3337. _has_bits_[0] |= 0x00000002u;
  3338. }
  3339. inline void FieldDescriptorProto::clear_has_number() {
  3340. _has_bits_[0] &= ~0x00000002u;
  3341. }
  3342. inline void FieldDescriptorProto::clear_number() {
  3343. number_ = 0;
  3344. clear_has_number();
  3345. }
  3346. inline ::google::protobuf::int32 FieldDescriptorProto::number() const {
  3347. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
  3348. return number_;
  3349. }
  3350. inline void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
  3351. set_has_number();
  3352. number_ = value;
  3353. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
  3354. }
  3355. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  3356. inline bool FieldDescriptorProto::has_label() const {
  3357. return (_has_bits_[0] & 0x00000004u) != 0;
  3358. }
  3359. inline void FieldDescriptorProto::set_has_label() {
  3360. _has_bits_[0] |= 0x00000004u;
  3361. }
  3362. inline void FieldDescriptorProto::clear_has_label() {
  3363. _has_bits_[0] &= ~0x00000004u;
  3364. }
  3365. inline void FieldDescriptorProto::clear_label() {
  3366. label_ = 1;
  3367. clear_has_label();
  3368. }
  3369. inline ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
  3370. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
  3371. return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
  3372. }
  3373. inline void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) {
  3374. assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
  3375. set_has_label();
  3376. label_ = value;
  3377. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
  3378. }
  3379. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  3380. inline bool FieldDescriptorProto::has_type() const {
  3381. return (_has_bits_[0] & 0x00000008u) != 0;
  3382. }
  3383. inline void FieldDescriptorProto::set_has_type() {
  3384. _has_bits_[0] |= 0x00000008u;
  3385. }
  3386. inline void FieldDescriptorProto::clear_has_type() {
  3387. _has_bits_[0] &= ~0x00000008u;
  3388. }
  3389. inline void FieldDescriptorProto::clear_type() {
  3390. type_ = 1;
  3391. clear_has_type();
  3392. }
  3393. inline ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
  3394. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
  3395. return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
  3396. }
  3397. inline void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) {
  3398. assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
  3399. set_has_type();
  3400. type_ = value;
  3401. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
  3402. }
  3403. // optional string type_name = 6;
  3404. inline bool FieldDescriptorProto::has_type_name() const {
  3405. return (_has_bits_[0] & 0x00000010u) != 0;
  3406. }
  3407. inline void FieldDescriptorProto::set_has_type_name() {
  3408. _has_bits_[0] |= 0x00000010u;
  3409. }
  3410. inline void FieldDescriptorProto::clear_has_type_name() {
  3411. _has_bits_[0] &= ~0x00000010u;
  3412. }
  3413. inline void FieldDescriptorProto::clear_type_name() {
  3414. if (type_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3415. type_name_->clear();
  3416. }
  3417. clear_has_type_name();
  3418. }
  3419. inline const ::std::string& FieldDescriptorProto::type_name() const {
  3420. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
  3421. return *type_name_;
  3422. }
  3423. inline void FieldDescriptorProto::set_type_name(const ::std::string& value) {
  3424. set_has_type_name();
  3425. if (type_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3426. type_name_ = new ::std::string;
  3427. }
  3428. type_name_->assign(value);
  3429. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
  3430. }
  3431. inline void FieldDescriptorProto::set_type_name(const char* value) {
  3432. set_has_type_name();
  3433. if (type_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3434. type_name_ = new ::std::string;
  3435. }
  3436. type_name_->assign(value);
  3437. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name)
  3438. }
  3439. inline void FieldDescriptorProto::set_type_name(const char* value, size_t size) {
  3440. set_has_type_name();
  3441. if (type_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3442. type_name_ = new ::std::string;
  3443. }
  3444. type_name_->assign(reinterpret_cast<const char*>(value), size);
  3445. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name)
  3446. }
  3447. inline ::std::string* FieldDescriptorProto::mutable_type_name() {
  3448. set_has_type_name();
  3449. if (type_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3450. type_name_ = new ::std::string;
  3451. }
  3452. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
  3453. return type_name_;
  3454. }
  3455. inline ::std::string* FieldDescriptorProto::release_type_name() {
  3456. clear_has_type_name();
  3457. if (type_name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3458. return NULL;
  3459. } else {
  3460. ::std::string* temp = type_name_;
  3461. type_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3462. return temp;
  3463. }
  3464. }
  3465. inline void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) {
  3466. if (type_name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3467. delete type_name_;
  3468. }
  3469. if (type_name) {
  3470. set_has_type_name();
  3471. type_name_ = type_name;
  3472. } else {
  3473. clear_has_type_name();
  3474. type_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3475. }
  3476. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  3477. }
  3478. // optional string extendee = 2;
  3479. inline bool FieldDescriptorProto::has_extendee() const {
  3480. return (_has_bits_[0] & 0x00000020u) != 0;
  3481. }
  3482. inline void FieldDescriptorProto::set_has_extendee() {
  3483. _has_bits_[0] |= 0x00000020u;
  3484. }
  3485. inline void FieldDescriptorProto::clear_has_extendee() {
  3486. _has_bits_[0] &= ~0x00000020u;
  3487. }
  3488. inline void FieldDescriptorProto::clear_extendee() {
  3489. if (extendee_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3490. extendee_->clear();
  3491. }
  3492. clear_has_extendee();
  3493. }
  3494. inline const ::std::string& FieldDescriptorProto::extendee() const {
  3495. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
  3496. return *extendee_;
  3497. }
  3498. inline void FieldDescriptorProto::set_extendee(const ::std::string& value) {
  3499. set_has_extendee();
  3500. if (extendee_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3501. extendee_ = new ::std::string;
  3502. }
  3503. extendee_->assign(value);
  3504. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
  3505. }
  3506. inline void FieldDescriptorProto::set_extendee(const char* value) {
  3507. set_has_extendee();
  3508. if (extendee_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3509. extendee_ = new ::std::string;
  3510. }
  3511. extendee_->assign(value);
  3512. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee)
  3513. }
  3514. inline void FieldDescriptorProto::set_extendee(const char* value, size_t size) {
  3515. set_has_extendee();
  3516. if (extendee_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3517. extendee_ = new ::std::string;
  3518. }
  3519. extendee_->assign(reinterpret_cast<const char*>(value), size);
  3520. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee)
  3521. }
  3522. inline ::std::string* FieldDescriptorProto::mutable_extendee() {
  3523. set_has_extendee();
  3524. if (extendee_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3525. extendee_ = new ::std::string;
  3526. }
  3527. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
  3528. return extendee_;
  3529. }
  3530. inline ::std::string* FieldDescriptorProto::release_extendee() {
  3531. clear_has_extendee();
  3532. if (extendee_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3533. return NULL;
  3534. } else {
  3535. ::std::string* temp = extendee_;
  3536. extendee_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3537. return temp;
  3538. }
  3539. }
  3540. inline void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) {
  3541. if (extendee_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3542. delete extendee_;
  3543. }
  3544. if (extendee) {
  3545. set_has_extendee();
  3546. extendee_ = extendee;
  3547. } else {
  3548. clear_has_extendee();
  3549. extendee_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3550. }
  3551. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  3552. }
  3553. // optional string default_value = 7;
  3554. inline bool FieldDescriptorProto::has_default_value() const {
  3555. return (_has_bits_[0] & 0x00000040u) != 0;
  3556. }
  3557. inline void FieldDescriptorProto::set_has_default_value() {
  3558. _has_bits_[0] |= 0x00000040u;
  3559. }
  3560. inline void FieldDescriptorProto::clear_has_default_value() {
  3561. _has_bits_[0] &= ~0x00000040u;
  3562. }
  3563. inline void FieldDescriptorProto::clear_default_value() {
  3564. if (default_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3565. default_value_->clear();
  3566. }
  3567. clear_has_default_value();
  3568. }
  3569. inline const ::std::string& FieldDescriptorProto::default_value() const {
  3570. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
  3571. return *default_value_;
  3572. }
  3573. inline void FieldDescriptorProto::set_default_value(const ::std::string& value) {
  3574. set_has_default_value();
  3575. if (default_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3576. default_value_ = new ::std::string;
  3577. }
  3578. default_value_->assign(value);
  3579. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
  3580. }
  3581. inline void FieldDescriptorProto::set_default_value(const char* value) {
  3582. set_has_default_value();
  3583. if (default_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3584. default_value_ = new ::std::string;
  3585. }
  3586. default_value_->assign(value);
  3587. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value)
  3588. }
  3589. inline void FieldDescriptorProto::set_default_value(const char* value, size_t size) {
  3590. set_has_default_value();
  3591. if (default_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3592. default_value_ = new ::std::string;
  3593. }
  3594. default_value_->assign(reinterpret_cast<const char*>(value), size);
  3595. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value)
  3596. }
  3597. inline ::std::string* FieldDescriptorProto::mutable_default_value() {
  3598. set_has_default_value();
  3599. if (default_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3600. default_value_ = new ::std::string;
  3601. }
  3602. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
  3603. return default_value_;
  3604. }
  3605. inline ::std::string* FieldDescriptorProto::release_default_value() {
  3606. clear_has_default_value();
  3607. if (default_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3608. return NULL;
  3609. } else {
  3610. ::std::string* temp = default_value_;
  3611. default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3612. return temp;
  3613. }
  3614. }
  3615. inline void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) {
  3616. if (default_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3617. delete default_value_;
  3618. }
  3619. if (default_value) {
  3620. set_has_default_value();
  3621. default_value_ = default_value;
  3622. } else {
  3623. clear_has_default_value();
  3624. default_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3625. }
  3626. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  3627. }
  3628. // optional int32 oneof_index = 9;
  3629. inline bool FieldDescriptorProto::has_oneof_index() const {
  3630. return (_has_bits_[0] & 0x00000080u) != 0;
  3631. }
  3632. inline void FieldDescriptorProto::set_has_oneof_index() {
  3633. _has_bits_[0] |= 0x00000080u;
  3634. }
  3635. inline void FieldDescriptorProto::clear_has_oneof_index() {
  3636. _has_bits_[0] &= ~0x00000080u;
  3637. }
  3638. inline void FieldDescriptorProto::clear_oneof_index() {
  3639. oneof_index_ = 0;
  3640. clear_has_oneof_index();
  3641. }
  3642. inline ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const {
  3643. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
  3644. return oneof_index_;
  3645. }
  3646. inline void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) {
  3647. set_has_oneof_index();
  3648. oneof_index_ = value;
  3649. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
  3650. }
  3651. // optional .google.protobuf.FieldOptions options = 8;
  3652. inline bool FieldDescriptorProto::has_options() const {
  3653. return (_has_bits_[0] & 0x00000100u) != 0;
  3654. }
  3655. inline void FieldDescriptorProto::set_has_options() {
  3656. _has_bits_[0] |= 0x00000100u;
  3657. }
  3658. inline void FieldDescriptorProto::clear_has_options() {
  3659. _has_bits_[0] &= ~0x00000100u;
  3660. }
  3661. inline void FieldDescriptorProto::clear_options() {
  3662. if (options_ != NULL) options_->::google::protobuf::FieldOptions::Clear();
  3663. clear_has_options();
  3664. }
  3665. inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
  3666. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
  3667. return options_ != NULL ? *options_ : *default_instance_->options_;
  3668. }
  3669. inline ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
  3670. set_has_options();
  3671. if (options_ == NULL) options_ = new ::google::protobuf::FieldOptions;
  3672. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
  3673. return options_;
  3674. }
  3675. inline ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
  3676. clear_has_options();
  3677. ::google::protobuf::FieldOptions* temp = options_;
  3678. options_ = NULL;
  3679. return temp;
  3680. }
  3681. inline void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOptions* options) {
  3682. delete options_;
  3683. options_ = options;
  3684. if (options) {
  3685. set_has_options();
  3686. } else {
  3687. clear_has_options();
  3688. }
  3689. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
  3690. }
  3691. // -------------------------------------------------------------------
  3692. // OneofDescriptorProto
  3693. // optional string name = 1;
  3694. inline bool OneofDescriptorProto::has_name() const {
  3695. return (_has_bits_[0] & 0x00000001u) != 0;
  3696. }
  3697. inline void OneofDescriptorProto::set_has_name() {
  3698. _has_bits_[0] |= 0x00000001u;
  3699. }
  3700. inline void OneofDescriptorProto::clear_has_name() {
  3701. _has_bits_[0] &= ~0x00000001u;
  3702. }
  3703. inline void OneofDescriptorProto::clear_name() {
  3704. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3705. name_->clear();
  3706. }
  3707. clear_has_name();
  3708. }
  3709. inline const ::std::string& OneofDescriptorProto::name() const {
  3710. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
  3711. return *name_;
  3712. }
  3713. inline void OneofDescriptorProto::set_name(const ::std::string& value) {
  3714. set_has_name();
  3715. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3716. name_ = new ::std::string;
  3717. }
  3718. name_->assign(value);
  3719. // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
  3720. }
  3721. inline void OneofDescriptorProto::set_name(const char* value) {
  3722. set_has_name();
  3723. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3724. name_ = new ::std::string;
  3725. }
  3726. name_->assign(value);
  3727. // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProto.name)
  3728. }
  3729. inline void OneofDescriptorProto::set_name(const char* value, size_t size) {
  3730. set_has_name();
  3731. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3732. name_ = new ::std::string;
  3733. }
  3734. name_->assign(reinterpret_cast<const char*>(value), size);
  3735. // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorProto.name)
  3736. }
  3737. inline ::std::string* OneofDescriptorProto::mutable_name() {
  3738. set_has_name();
  3739. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3740. name_ = new ::std::string;
  3741. }
  3742. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
  3743. return name_;
  3744. }
  3745. inline ::std::string* OneofDescriptorProto::release_name() {
  3746. clear_has_name();
  3747. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3748. return NULL;
  3749. } else {
  3750. ::std::string* temp = name_;
  3751. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3752. return temp;
  3753. }
  3754. }
  3755. inline void OneofDescriptorProto::set_allocated_name(::std::string* name) {
  3756. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3757. delete name_;
  3758. }
  3759. if (name) {
  3760. set_has_name();
  3761. name_ = name;
  3762. } else {
  3763. clear_has_name();
  3764. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3765. }
  3766. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
  3767. }
  3768. // -------------------------------------------------------------------
  3769. // EnumDescriptorProto
  3770. // optional string name = 1;
  3771. inline bool EnumDescriptorProto::has_name() const {
  3772. return (_has_bits_[0] & 0x00000001u) != 0;
  3773. }
  3774. inline void EnumDescriptorProto::set_has_name() {
  3775. _has_bits_[0] |= 0x00000001u;
  3776. }
  3777. inline void EnumDescriptorProto::clear_has_name() {
  3778. _has_bits_[0] &= ~0x00000001u;
  3779. }
  3780. inline void EnumDescriptorProto::clear_name() {
  3781. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3782. name_->clear();
  3783. }
  3784. clear_has_name();
  3785. }
  3786. inline const ::std::string& EnumDescriptorProto::name() const {
  3787. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
  3788. return *name_;
  3789. }
  3790. inline void EnumDescriptorProto::set_name(const ::std::string& value) {
  3791. set_has_name();
  3792. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3793. name_ = new ::std::string;
  3794. }
  3795. name_->assign(value);
  3796. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
  3797. }
  3798. inline void EnumDescriptorProto::set_name(const char* value) {
  3799. set_has_name();
  3800. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3801. name_ = new ::std::string;
  3802. }
  3803. name_->assign(value);
  3804. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name)
  3805. }
  3806. inline void EnumDescriptorProto::set_name(const char* value, size_t size) {
  3807. set_has_name();
  3808. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3809. name_ = new ::std::string;
  3810. }
  3811. name_->assign(reinterpret_cast<const char*>(value), size);
  3812. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name)
  3813. }
  3814. inline ::std::string* EnumDescriptorProto::mutable_name() {
  3815. set_has_name();
  3816. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3817. name_ = new ::std::string;
  3818. }
  3819. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
  3820. return name_;
  3821. }
  3822. inline ::std::string* EnumDescriptorProto::release_name() {
  3823. clear_has_name();
  3824. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3825. return NULL;
  3826. } else {
  3827. ::std::string* temp = name_;
  3828. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3829. return temp;
  3830. }
  3831. }
  3832. inline void EnumDescriptorProto::set_allocated_name(::std::string* name) {
  3833. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3834. delete name_;
  3835. }
  3836. if (name) {
  3837. set_has_name();
  3838. name_ = name;
  3839. } else {
  3840. clear_has_name();
  3841. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3842. }
  3843. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
  3844. }
  3845. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  3846. inline int EnumDescriptorProto::value_size() const {
  3847. return value_.size();
  3848. }
  3849. inline void EnumDescriptorProto::clear_value() {
  3850. value_.Clear();
  3851. }
  3852. inline const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
  3853. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
  3854. return value_.Get(index);
  3855. }
  3856. inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
  3857. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
  3858. return value_.Mutable(index);
  3859. }
  3860. inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
  3861. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
  3862. return value_.Add();
  3863. }
  3864. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
  3865. EnumDescriptorProto::value() const {
  3866. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
  3867. return value_;
  3868. }
  3869. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
  3870. EnumDescriptorProto::mutable_value() {
  3871. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
  3872. return &value_;
  3873. }
  3874. // optional .google.protobuf.EnumOptions options = 3;
  3875. inline bool EnumDescriptorProto::has_options() const {
  3876. return (_has_bits_[0] & 0x00000004u) != 0;
  3877. }
  3878. inline void EnumDescriptorProto::set_has_options() {
  3879. _has_bits_[0] |= 0x00000004u;
  3880. }
  3881. inline void EnumDescriptorProto::clear_has_options() {
  3882. _has_bits_[0] &= ~0x00000004u;
  3883. }
  3884. inline void EnumDescriptorProto::clear_options() {
  3885. if (options_ != NULL) options_->::google::protobuf::EnumOptions::Clear();
  3886. clear_has_options();
  3887. }
  3888. inline const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
  3889. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
  3890. return options_ != NULL ? *options_ : *default_instance_->options_;
  3891. }
  3892. inline ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
  3893. set_has_options();
  3894. if (options_ == NULL) options_ = new ::google::protobuf::EnumOptions;
  3895. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
  3896. return options_;
  3897. }
  3898. inline ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
  3899. clear_has_options();
  3900. ::google::protobuf::EnumOptions* temp = options_;
  3901. options_ = NULL;
  3902. return temp;
  3903. }
  3904. inline void EnumDescriptorProto::set_allocated_options(::google::protobuf::EnumOptions* options) {
  3905. delete options_;
  3906. options_ = options;
  3907. if (options) {
  3908. set_has_options();
  3909. } else {
  3910. clear_has_options();
  3911. }
  3912. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
  3913. }
  3914. // -------------------------------------------------------------------
  3915. // EnumValueDescriptorProto
  3916. // optional string name = 1;
  3917. inline bool EnumValueDescriptorProto::has_name() const {
  3918. return (_has_bits_[0] & 0x00000001u) != 0;
  3919. }
  3920. inline void EnumValueDescriptorProto::set_has_name() {
  3921. _has_bits_[0] |= 0x00000001u;
  3922. }
  3923. inline void EnumValueDescriptorProto::clear_has_name() {
  3924. _has_bits_[0] &= ~0x00000001u;
  3925. }
  3926. inline void EnumValueDescriptorProto::clear_name() {
  3927. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3928. name_->clear();
  3929. }
  3930. clear_has_name();
  3931. }
  3932. inline const ::std::string& EnumValueDescriptorProto::name() const {
  3933. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
  3934. return *name_;
  3935. }
  3936. inline void EnumValueDescriptorProto::set_name(const ::std::string& value) {
  3937. set_has_name();
  3938. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3939. name_ = new ::std::string;
  3940. }
  3941. name_->assign(value);
  3942. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
  3943. }
  3944. inline void EnumValueDescriptorProto::set_name(const char* value) {
  3945. set_has_name();
  3946. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3947. name_ = new ::std::string;
  3948. }
  3949. name_->assign(value);
  3950. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptorProto.name)
  3951. }
  3952. inline void EnumValueDescriptorProto::set_name(const char* value, size_t size) {
  3953. set_has_name();
  3954. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3955. name_ = new ::std::string;
  3956. }
  3957. name_->assign(reinterpret_cast<const char*>(value), size);
  3958. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescriptorProto.name)
  3959. }
  3960. inline ::std::string* EnumValueDescriptorProto::mutable_name() {
  3961. set_has_name();
  3962. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3963. name_ = new ::std::string;
  3964. }
  3965. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
  3966. return name_;
  3967. }
  3968. inline ::std::string* EnumValueDescriptorProto::release_name() {
  3969. clear_has_name();
  3970. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3971. return NULL;
  3972. } else {
  3973. ::std::string* temp = name_;
  3974. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3975. return temp;
  3976. }
  3977. }
  3978. inline void EnumValueDescriptorProto::set_allocated_name(::std::string* name) {
  3979. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  3980. delete name_;
  3981. }
  3982. if (name) {
  3983. set_has_name();
  3984. name_ = name;
  3985. } else {
  3986. clear_has_name();
  3987. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3988. }
  3989. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  3990. }
  3991. // optional int32 number = 2;
  3992. inline bool EnumValueDescriptorProto::has_number() const {
  3993. return (_has_bits_[0] & 0x00000002u) != 0;
  3994. }
  3995. inline void EnumValueDescriptorProto::set_has_number() {
  3996. _has_bits_[0] |= 0x00000002u;
  3997. }
  3998. inline void EnumValueDescriptorProto::clear_has_number() {
  3999. _has_bits_[0] &= ~0x00000002u;
  4000. }
  4001. inline void EnumValueDescriptorProto::clear_number() {
  4002. number_ = 0;
  4003. clear_has_number();
  4004. }
  4005. inline ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
  4006. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
  4007. return number_;
  4008. }
  4009. inline void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
  4010. set_has_number();
  4011. number_ = value;
  4012. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
  4013. }
  4014. // optional .google.protobuf.EnumValueOptions options = 3;
  4015. inline bool EnumValueDescriptorProto::has_options() const {
  4016. return (_has_bits_[0] & 0x00000004u) != 0;
  4017. }
  4018. inline void EnumValueDescriptorProto::set_has_options() {
  4019. _has_bits_[0] |= 0x00000004u;
  4020. }
  4021. inline void EnumValueDescriptorProto::clear_has_options() {
  4022. _has_bits_[0] &= ~0x00000004u;
  4023. }
  4024. inline void EnumValueDescriptorProto::clear_options() {
  4025. if (options_ != NULL) options_->::google::protobuf::EnumValueOptions::Clear();
  4026. clear_has_options();
  4027. }
  4028. inline const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const {
  4029. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
  4030. return options_ != NULL ? *options_ : *default_instance_->options_;
  4031. }
  4032. inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
  4033. set_has_options();
  4034. if (options_ == NULL) options_ = new ::google::protobuf::EnumValueOptions;
  4035. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
  4036. return options_;
  4037. }
  4038. inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() {
  4039. clear_has_options();
  4040. ::google::protobuf::EnumValueOptions* temp = options_;
  4041. options_ = NULL;
  4042. return temp;
  4043. }
  4044. inline void EnumValueDescriptorProto::set_allocated_options(::google::protobuf::EnumValueOptions* options) {
  4045. delete options_;
  4046. options_ = options;
  4047. if (options) {
  4048. set_has_options();
  4049. } else {
  4050. clear_has_options();
  4051. }
  4052. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  4053. }
  4054. // -------------------------------------------------------------------
  4055. // ServiceDescriptorProto
  4056. // optional string name = 1;
  4057. inline bool ServiceDescriptorProto::has_name() const {
  4058. return (_has_bits_[0] & 0x00000001u) != 0;
  4059. }
  4060. inline void ServiceDescriptorProto::set_has_name() {
  4061. _has_bits_[0] |= 0x00000001u;
  4062. }
  4063. inline void ServiceDescriptorProto::clear_has_name() {
  4064. _has_bits_[0] &= ~0x00000001u;
  4065. }
  4066. inline void ServiceDescriptorProto::clear_name() {
  4067. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4068. name_->clear();
  4069. }
  4070. clear_has_name();
  4071. }
  4072. inline const ::std::string& ServiceDescriptorProto::name() const {
  4073. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
  4074. return *name_;
  4075. }
  4076. inline void ServiceDescriptorProto::set_name(const ::std::string& value) {
  4077. set_has_name();
  4078. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4079. name_ = new ::std::string;
  4080. }
  4081. name_->assign(value);
  4082. // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
  4083. }
  4084. inline void ServiceDescriptorProto::set_name(const char* value) {
  4085. set_has_name();
  4086. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4087. name_ = new ::std::string;
  4088. }
  4089. name_->assign(value);
  4090. // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorProto.name)
  4091. }
  4092. inline void ServiceDescriptorProto::set_name(const char* value, size_t size) {
  4093. set_has_name();
  4094. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4095. name_ = new ::std::string;
  4096. }
  4097. name_->assign(reinterpret_cast<const char*>(value), size);
  4098. // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescriptorProto.name)
  4099. }
  4100. inline ::std::string* ServiceDescriptorProto::mutable_name() {
  4101. set_has_name();
  4102. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4103. name_ = new ::std::string;
  4104. }
  4105. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
  4106. return name_;
  4107. }
  4108. inline ::std::string* ServiceDescriptorProto::release_name() {
  4109. clear_has_name();
  4110. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4111. return NULL;
  4112. } else {
  4113. ::std::string* temp = name_;
  4114. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4115. return temp;
  4116. }
  4117. }
  4118. inline void ServiceDescriptorProto::set_allocated_name(::std::string* name) {
  4119. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4120. delete name_;
  4121. }
  4122. if (name) {
  4123. set_has_name();
  4124. name_ = name;
  4125. } else {
  4126. clear_has_name();
  4127. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4128. }
  4129. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  4130. }
  4131. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  4132. inline int ServiceDescriptorProto::method_size() const {
  4133. return method_.size();
  4134. }
  4135. inline void ServiceDescriptorProto::clear_method() {
  4136. method_.Clear();
  4137. }
  4138. inline const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
  4139. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
  4140. return method_.Get(index);
  4141. }
  4142. inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
  4143. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
  4144. return method_.Mutable(index);
  4145. }
  4146. inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
  4147. // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
  4148. return method_.Add();
  4149. }
  4150. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
  4151. ServiceDescriptorProto::method() const {
  4152. // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
  4153. return method_;
  4154. }
  4155. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
  4156. ServiceDescriptorProto::mutable_method() {
  4157. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
  4158. return &method_;
  4159. }
  4160. // optional .google.protobuf.ServiceOptions options = 3;
  4161. inline bool ServiceDescriptorProto::has_options() const {
  4162. return (_has_bits_[0] & 0x00000004u) != 0;
  4163. }
  4164. inline void ServiceDescriptorProto::set_has_options() {
  4165. _has_bits_[0] |= 0x00000004u;
  4166. }
  4167. inline void ServiceDescriptorProto::clear_has_options() {
  4168. _has_bits_[0] &= ~0x00000004u;
  4169. }
  4170. inline void ServiceDescriptorProto::clear_options() {
  4171. if (options_ != NULL) options_->::google::protobuf::ServiceOptions::Clear();
  4172. clear_has_options();
  4173. }
  4174. inline const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const {
  4175. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
  4176. return options_ != NULL ? *options_ : *default_instance_->options_;
  4177. }
  4178. inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() {
  4179. set_has_options();
  4180. if (options_ == NULL) options_ = new ::google::protobuf::ServiceOptions;
  4181. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
  4182. return options_;
  4183. }
  4184. inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() {
  4185. clear_has_options();
  4186. ::google::protobuf::ServiceOptions* temp = options_;
  4187. options_ = NULL;
  4188. return temp;
  4189. }
  4190. inline void ServiceDescriptorProto::set_allocated_options(::google::protobuf::ServiceOptions* options) {
  4191. delete options_;
  4192. options_ = options;
  4193. if (options) {
  4194. set_has_options();
  4195. } else {
  4196. clear_has_options();
  4197. }
  4198. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  4199. }
  4200. // -------------------------------------------------------------------
  4201. // MethodDescriptorProto
  4202. // optional string name = 1;
  4203. inline bool MethodDescriptorProto::has_name() const {
  4204. return (_has_bits_[0] & 0x00000001u) != 0;
  4205. }
  4206. inline void MethodDescriptorProto::set_has_name() {
  4207. _has_bits_[0] |= 0x00000001u;
  4208. }
  4209. inline void MethodDescriptorProto::clear_has_name() {
  4210. _has_bits_[0] &= ~0x00000001u;
  4211. }
  4212. inline void MethodDescriptorProto::clear_name() {
  4213. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4214. name_->clear();
  4215. }
  4216. clear_has_name();
  4217. }
  4218. inline const ::std::string& MethodDescriptorProto::name() const {
  4219. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
  4220. return *name_;
  4221. }
  4222. inline void MethodDescriptorProto::set_name(const ::std::string& value) {
  4223. set_has_name();
  4224. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4225. name_ = new ::std::string;
  4226. }
  4227. name_->assign(value);
  4228. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
  4229. }
  4230. inline void MethodDescriptorProto::set_name(const char* value) {
  4231. set_has_name();
  4232. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4233. name_ = new ::std::string;
  4234. }
  4235. name_->assign(value);
  4236. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.name)
  4237. }
  4238. inline void MethodDescriptorProto::set_name(const char* value, size_t size) {
  4239. set_has_name();
  4240. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4241. name_ = new ::std::string;
  4242. }
  4243. name_->assign(reinterpret_cast<const char*>(value), size);
  4244. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.name)
  4245. }
  4246. inline ::std::string* MethodDescriptorProto::mutable_name() {
  4247. set_has_name();
  4248. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4249. name_ = new ::std::string;
  4250. }
  4251. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
  4252. return name_;
  4253. }
  4254. inline ::std::string* MethodDescriptorProto::release_name() {
  4255. clear_has_name();
  4256. if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4257. return NULL;
  4258. } else {
  4259. ::std::string* temp = name_;
  4260. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4261. return temp;
  4262. }
  4263. }
  4264. inline void MethodDescriptorProto::set_allocated_name(::std::string* name) {
  4265. if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4266. delete name_;
  4267. }
  4268. if (name) {
  4269. set_has_name();
  4270. name_ = name;
  4271. } else {
  4272. clear_has_name();
  4273. name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4274. }
  4275. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
  4276. }
  4277. // optional string input_type = 2;
  4278. inline bool MethodDescriptorProto::has_input_type() const {
  4279. return (_has_bits_[0] & 0x00000002u) != 0;
  4280. }
  4281. inline void MethodDescriptorProto::set_has_input_type() {
  4282. _has_bits_[0] |= 0x00000002u;
  4283. }
  4284. inline void MethodDescriptorProto::clear_has_input_type() {
  4285. _has_bits_[0] &= ~0x00000002u;
  4286. }
  4287. inline void MethodDescriptorProto::clear_input_type() {
  4288. if (input_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4289. input_type_->clear();
  4290. }
  4291. clear_has_input_type();
  4292. }
  4293. inline const ::std::string& MethodDescriptorProto::input_type() const {
  4294. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
  4295. return *input_type_;
  4296. }
  4297. inline void MethodDescriptorProto::set_input_type(const ::std::string& value) {
  4298. set_has_input_type();
  4299. if (input_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4300. input_type_ = new ::std::string;
  4301. }
  4302. input_type_->assign(value);
  4303. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
  4304. }
  4305. inline void MethodDescriptorProto::set_input_type(const char* value) {
  4306. set_has_input_type();
  4307. if (input_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4308. input_type_ = new ::std::string;
  4309. }
  4310. input_type_->assign(value);
  4311. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.input_type)
  4312. }
  4313. inline void MethodDescriptorProto::set_input_type(const char* value, size_t size) {
  4314. set_has_input_type();
  4315. if (input_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4316. input_type_ = new ::std::string;
  4317. }
  4318. input_type_->assign(reinterpret_cast<const char*>(value), size);
  4319. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.input_type)
  4320. }
  4321. inline ::std::string* MethodDescriptorProto::mutable_input_type() {
  4322. set_has_input_type();
  4323. if (input_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4324. input_type_ = new ::std::string;
  4325. }
  4326. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
  4327. return input_type_;
  4328. }
  4329. inline ::std::string* MethodDescriptorProto::release_input_type() {
  4330. clear_has_input_type();
  4331. if (input_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4332. return NULL;
  4333. } else {
  4334. ::std::string* temp = input_type_;
  4335. input_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4336. return temp;
  4337. }
  4338. }
  4339. inline void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) {
  4340. if (input_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4341. delete input_type_;
  4342. }
  4343. if (input_type) {
  4344. set_has_input_type();
  4345. input_type_ = input_type;
  4346. } else {
  4347. clear_has_input_type();
  4348. input_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4349. }
  4350. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  4351. }
  4352. // optional string output_type = 3;
  4353. inline bool MethodDescriptorProto::has_output_type() const {
  4354. return (_has_bits_[0] & 0x00000004u) != 0;
  4355. }
  4356. inline void MethodDescriptorProto::set_has_output_type() {
  4357. _has_bits_[0] |= 0x00000004u;
  4358. }
  4359. inline void MethodDescriptorProto::clear_has_output_type() {
  4360. _has_bits_[0] &= ~0x00000004u;
  4361. }
  4362. inline void MethodDescriptorProto::clear_output_type() {
  4363. if (output_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4364. output_type_->clear();
  4365. }
  4366. clear_has_output_type();
  4367. }
  4368. inline const ::std::string& MethodDescriptorProto::output_type() const {
  4369. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
  4370. return *output_type_;
  4371. }
  4372. inline void MethodDescriptorProto::set_output_type(const ::std::string& value) {
  4373. set_has_output_type();
  4374. if (output_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4375. output_type_ = new ::std::string;
  4376. }
  4377. output_type_->assign(value);
  4378. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
  4379. }
  4380. inline void MethodDescriptorProto::set_output_type(const char* value) {
  4381. set_has_output_type();
  4382. if (output_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4383. output_type_ = new ::std::string;
  4384. }
  4385. output_type_->assign(value);
  4386. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.output_type)
  4387. }
  4388. inline void MethodDescriptorProto::set_output_type(const char* value, size_t size) {
  4389. set_has_output_type();
  4390. if (output_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4391. output_type_ = new ::std::string;
  4392. }
  4393. output_type_->assign(reinterpret_cast<const char*>(value), size);
  4394. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.output_type)
  4395. }
  4396. inline ::std::string* MethodDescriptorProto::mutable_output_type() {
  4397. set_has_output_type();
  4398. if (output_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4399. output_type_ = new ::std::string;
  4400. }
  4401. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
  4402. return output_type_;
  4403. }
  4404. inline ::std::string* MethodDescriptorProto::release_output_type() {
  4405. clear_has_output_type();
  4406. if (output_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4407. return NULL;
  4408. } else {
  4409. ::std::string* temp = output_type_;
  4410. output_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4411. return temp;
  4412. }
  4413. }
  4414. inline void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type) {
  4415. if (output_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4416. delete output_type_;
  4417. }
  4418. if (output_type) {
  4419. set_has_output_type();
  4420. output_type_ = output_type;
  4421. } else {
  4422. clear_has_output_type();
  4423. output_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4424. }
  4425. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  4426. }
  4427. // optional .google.protobuf.MethodOptions options = 4;
  4428. inline bool MethodDescriptorProto::has_options() const {
  4429. return (_has_bits_[0] & 0x00000008u) != 0;
  4430. }
  4431. inline void MethodDescriptorProto::set_has_options() {
  4432. _has_bits_[0] |= 0x00000008u;
  4433. }
  4434. inline void MethodDescriptorProto::clear_has_options() {
  4435. _has_bits_[0] &= ~0x00000008u;
  4436. }
  4437. inline void MethodDescriptorProto::clear_options() {
  4438. if (options_ != NULL) options_->::google::protobuf::MethodOptions::Clear();
  4439. clear_has_options();
  4440. }
  4441. inline const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const {
  4442. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
  4443. return options_ != NULL ? *options_ : *default_instance_->options_;
  4444. }
  4445. inline ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() {
  4446. set_has_options();
  4447. if (options_ == NULL) options_ = new ::google::protobuf::MethodOptions;
  4448. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
  4449. return options_;
  4450. }
  4451. inline ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() {
  4452. clear_has_options();
  4453. ::google::protobuf::MethodOptions* temp = options_;
  4454. options_ = NULL;
  4455. return temp;
  4456. }
  4457. inline void MethodDescriptorProto::set_allocated_options(::google::protobuf::MethodOptions* options) {
  4458. delete options_;
  4459. options_ = options;
  4460. if (options) {
  4461. set_has_options();
  4462. } else {
  4463. clear_has_options();
  4464. }
  4465. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
  4466. }
  4467. // -------------------------------------------------------------------
  4468. // FileOptions
  4469. // optional string java_package = 1;
  4470. inline bool FileOptions::has_java_package() const {
  4471. return (_has_bits_[0] & 0x00000001u) != 0;
  4472. }
  4473. inline void FileOptions::set_has_java_package() {
  4474. _has_bits_[0] |= 0x00000001u;
  4475. }
  4476. inline void FileOptions::clear_has_java_package() {
  4477. _has_bits_[0] &= ~0x00000001u;
  4478. }
  4479. inline void FileOptions::clear_java_package() {
  4480. if (java_package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4481. java_package_->clear();
  4482. }
  4483. clear_has_java_package();
  4484. }
  4485. inline const ::std::string& FileOptions::java_package() const {
  4486. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
  4487. return *java_package_;
  4488. }
  4489. inline void FileOptions::set_java_package(const ::std::string& value) {
  4490. set_has_java_package();
  4491. if (java_package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4492. java_package_ = new ::std::string;
  4493. }
  4494. java_package_->assign(value);
  4495. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
  4496. }
  4497. inline void FileOptions::set_java_package(const char* value) {
  4498. set_has_java_package();
  4499. if (java_package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4500. java_package_ = new ::std::string;
  4501. }
  4502. java_package_->assign(value);
  4503. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_package)
  4504. }
  4505. inline void FileOptions::set_java_package(const char* value, size_t size) {
  4506. set_has_java_package();
  4507. if (java_package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4508. java_package_ = new ::std::string;
  4509. }
  4510. java_package_->assign(reinterpret_cast<const char*>(value), size);
  4511. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_package)
  4512. }
  4513. inline ::std::string* FileOptions::mutable_java_package() {
  4514. set_has_java_package();
  4515. if (java_package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4516. java_package_ = new ::std::string;
  4517. }
  4518. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
  4519. return java_package_;
  4520. }
  4521. inline ::std::string* FileOptions::release_java_package() {
  4522. clear_has_java_package();
  4523. if (java_package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4524. return NULL;
  4525. } else {
  4526. ::std::string* temp = java_package_;
  4527. java_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4528. return temp;
  4529. }
  4530. }
  4531. inline void FileOptions::set_allocated_java_package(::std::string* java_package) {
  4532. if (java_package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4533. delete java_package_;
  4534. }
  4535. if (java_package) {
  4536. set_has_java_package();
  4537. java_package_ = java_package;
  4538. } else {
  4539. clear_has_java_package();
  4540. java_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4541. }
  4542. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
  4543. }
  4544. // optional string java_outer_classname = 8;
  4545. inline bool FileOptions::has_java_outer_classname() const {
  4546. return (_has_bits_[0] & 0x00000002u) != 0;
  4547. }
  4548. inline void FileOptions::set_has_java_outer_classname() {
  4549. _has_bits_[0] |= 0x00000002u;
  4550. }
  4551. inline void FileOptions::clear_has_java_outer_classname() {
  4552. _has_bits_[0] &= ~0x00000002u;
  4553. }
  4554. inline void FileOptions::clear_java_outer_classname() {
  4555. if (java_outer_classname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4556. java_outer_classname_->clear();
  4557. }
  4558. clear_has_java_outer_classname();
  4559. }
  4560. inline const ::std::string& FileOptions::java_outer_classname() const {
  4561. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
  4562. return *java_outer_classname_;
  4563. }
  4564. inline void FileOptions::set_java_outer_classname(const ::std::string& value) {
  4565. set_has_java_outer_classname();
  4566. if (java_outer_classname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4567. java_outer_classname_ = new ::std::string;
  4568. }
  4569. java_outer_classname_->assign(value);
  4570. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
  4571. }
  4572. inline void FileOptions::set_java_outer_classname(const char* value) {
  4573. set_has_java_outer_classname();
  4574. if (java_outer_classname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4575. java_outer_classname_ = new ::std::string;
  4576. }
  4577. java_outer_classname_->assign(value);
  4578. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_outer_classname)
  4579. }
  4580. inline void FileOptions::set_java_outer_classname(const char* value, size_t size) {
  4581. set_has_java_outer_classname();
  4582. if (java_outer_classname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4583. java_outer_classname_ = new ::std::string;
  4584. }
  4585. java_outer_classname_->assign(reinterpret_cast<const char*>(value), size);
  4586. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_outer_classname)
  4587. }
  4588. inline ::std::string* FileOptions::mutable_java_outer_classname() {
  4589. set_has_java_outer_classname();
  4590. if (java_outer_classname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4591. java_outer_classname_ = new ::std::string;
  4592. }
  4593. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
  4594. return java_outer_classname_;
  4595. }
  4596. inline ::std::string* FileOptions::release_java_outer_classname() {
  4597. clear_has_java_outer_classname();
  4598. if (java_outer_classname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4599. return NULL;
  4600. } else {
  4601. ::std::string* temp = java_outer_classname_;
  4602. java_outer_classname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4603. return temp;
  4604. }
  4605. }
  4606. inline void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_classname) {
  4607. if (java_outer_classname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4608. delete java_outer_classname_;
  4609. }
  4610. if (java_outer_classname) {
  4611. set_has_java_outer_classname();
  4612. java_outer_classname_ = java_outer_classname;
  4613. } else {
  4614. clear_has_java_outer_classname();
  4615. java_outer_classname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4616. }
  4617. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  4618. }
  4619. // optional bool java_multiple_files = 10 [default = false];
  4620. inline bool FileOptions::has_java_multiple_files() const {
  4621. return (_has_bits_[0] & 0x00000004u) != 0;
  4622. }
  4623. inline void FileOptions::set_has_java_multiple_files() {
  4624. _has_bits_[0] |= 0x00000004u;
  4625. }
  4626. inline void FileOptions::clear_has_java_multiple_files() {
  4627. _has_bits_[0] &= ~0x00000004u;
  4628. }
  4629. inline void FileOptions::clear_java_multiple_files() {
  4630. java_multiple_files_ = false;
  4631. clear_has_java_multiple_files();
  4632. }
  4633. inline bool FileOptions::java_multiple_files() const {
  4634. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
  4635. return java_multiple_files_;
  4636. }
  4637. inline void FileOptions::set_java_multiple_files(bool value) {
  4638. set_has_java_multiple_files();
  4639. java_multiple_files_ = value;
  4640. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
  4641. }
  4642. // optional bool java_generate_equals_and_hash = 20 [default = false];
  4643. inline bool FileOptions::has_java_generate_equals_and_hash() const {
  4644. return (_has_bits_[0] & 0x00000008u) != 0;
  4645. }
  4646. inline void FileOptions::set_has_java_generate_equals_and_hash() {
  4647. _has_bits_[0] |= 0x00000008u;
  4648. }
  4649. inline void FileOptions::clear_has_java_generate_equals_and_hash() {
  4650. _has_bits_[0] &= ~0x00000008u;
  4651. }
  4652. inline void FileOptions::clear_java_generate_equals_and_hash() {
  4653. java_generate_equals_and_hash_ = false;
  4654. clear_has_java_generate_equals_and_hash();
  4655. }
  4656. inline bool FileOptions::java_generate_equals_and_hash() const {
  4657. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
  4658. return java_generate_equals_and_hash_;
  4659. }
  4660. inline void FileOptions::set_java_generate_equals_and_hash(bool value) {
  4661. set_has_java_generate_equals_and_hash();
  4662. java_generate_equals_and_hash_ = value;
  4663. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
  4664. }
  4665. // optional bool java_string_check_utf8 = 27 [default = false];
  4666. inline bool FileOptions::has_java_string_check_utf8() const {
  4667. return (_has_bits_[0] & 0x00000010u) != 0;
  4668. }
  4669. inline void FileOptions::set_has_java_string_check_utf8() {
  4670. _has_bits_[0] |= 0x00000010u;
  4671. }
  4672. inline void FileOptions::clear_has_java_string_check_utf8() {
  4673. _has_bits_[0] &= ~0x00000010u;
  4674. }
  4675. inline void FileOptions::clear_java_string_check_utf8() {
  4676. java_string_check_utf8_ = false;
  4677. clear_has_java_string_check_utf8();
  4678. }
  4679. inline bool FileOptions::java_string_check_utf8() const {
  4680. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
  4681. return java_string_check_utf8_;
  4682. }
  4683. inline void FileOptions::set_java_string_check_utf8(bool value) {
  4684. set_has_java_string_check_utf8();
  4685. java_string_check_utf8_ = value;
  4686. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
  4687. }
  4688. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  4689. inline bool FileOptions::has_optimize_for() const {
  4690. return (_has_bits_[0] & 0x00000020u) != 0;
  4691. }
  4692. inline void FileOptions::set_has_optimize_for() {
  4693. _has_bits_[0] |= 0x00000020u;
  4694. }
  4695. inline void FileOptions::clear_has_optimize_for() {
  4696. _has_bits_[0] &= ~0x00000020u;
  4697. }
  4698. inline void FileOptions::clear_optimize_for() {
  4699. optimize_for_ = 1;
  4700. clear_has_optimize_for();
  4701. }
  4702. inline ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const {
  4703. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
  4704. return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_);
  4705. }
  4706. inline void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) {
  4707. assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value));
  4708. set_has_optimize_for();
  4709. optimize_for_ = value;
  4710. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
  4711. }
  4712. // optional string go_package = 11;
  4713. inline bool FileOptions::has_go_package() const {
  4714. return (_has_bits_[0] & 0x00000040u) != 0;
  4715. }
  4716. inline void FileOptions::set_has_go_package() {
  4717. _has_bits_[0] |= 0x00000040u;
  4718. }
  4719. inline void FileOptions::clear_has_go_package() {
  4720. _has_bits_[0] &= ~0x00000040u;
  4721. }
  4722. inline void FileOptions::clear_go_package() {
  4723. if (go_package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4724. go_package_->clear();
  4725. }
  4726. clear_has_go_package();
  4727. }
  4728. inline const ::std::string& FileOptions::go_package() const {
  4729. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
  4730. return *go_package_;
  4731. }
  4732. inline void FileOptions::set_go_package(const ::std::string& value) {
  4733. set_has_go_package();
  4734. if (go_package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4735. go_package_ = new ::std::string;
  4736. }
  4737. go_package_->assign(value);
  4738. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
  4739. }
  4740. inline void FileOptions::set_go_package(const char* value) {
  4741. set_has_go_package();
  4742. if (go_package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4743. go_package_ = new ::std::string;
  4744. }
  4745. go_package_->assign(value);
  4746. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_package)
  4747. }
  4748. inline void FileOptions::set_go_package(const char* value, size_t size) {
  4749. set_has_go_package();
  4750. if (go_package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4751. go_package_ = new ::std::string;
  4752. }
  4753. go_package_->assign(reinterpret_cast<const char*>(value), size);
  4754. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_package)
  4755. }
  4756. inline ::std::string* FileOptions::mutable_go_package() {
  4757. set_has_go_package();
  4758. if (go_package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4759. go_package_ = new ::std::string;
  4760. }
  4761. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
  4762. return go_package_;
  4763. }
  4764. inline ::std::string* FileOptions::release_go_package() {
  4765. clear_has_go_package();
  4766. if (go_package_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4767. return NULL;
  4768. } else {
  4769. ::std::string* temp = go_package_;
  4770. go_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4771. return temp;
  4772. }
  4773. }
  4774. inline void FileOptions::set_allocated_go_package(::std::string* go_package) {
  4775. if (go_package_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  4776. delete go_package_;
  4777. }
  4778. if (go_package) {
  4779. set_has_go_package();
  4780. go_package_ = go_package;
  4781. } else {
  4782. clear_has_go_package();
  4783. go_package_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  4784. }
  4785. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
  4786. }
  4787. // optional bool cc_generic_services = 16 [default = false];
  4788. inline bool FileOptions::has_cc_generic_services() const {
  4789. return (_has_bits_[0] & 0x00000080u) != 0;
  4790. }
  4791. inline void FileOptions::set_has_cc_generic_services() {
  4792. _has_bits_[0] |= 0x00000080u;
  4793. }
  4794. inline void FileOptions::clear_has_cc_generic_services() {
  4795. _has_bits_[0] &= ~0x00000080u;
  4796. }
  4797. inline void FileOptions::clear_cc_generic_services() {
  4798. cc_generic_services_ = false;
  4799. clear_has_cc_generic_services();
  4800. }
  4801. inline bool FileOptions::cc_generic_services() const {
  4802. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
  4803. return cc_generic_services_;
  4804. }
  4805. inline void FileOptions::set_cc_generic_services(bool value) {
  4806. set_has_cc_generic_services();
  4807. cc_generic_services_ = value;
  4808. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
  4809. }
  4810. // optional bool java_generic_services = 17 [default = false];
  4811. inline bool FileOptions::has_java_generic_services() const {
  4812. return (_has_bits_[0] & 0x00000100u) != 0;
  4813. }
  4814. inline void FileOptions::set_has_java_generic_services() {
  4815. _has_bits_[0] |= 0x00000100u;
  4816. }
  4817. inline void FileOptions::clear_has_java_generic_services() {
  4818. _has_bits_[0] &= ~0x00000100u;
  4819. }
  4820. inline void FileOptions::clear_java_generic_services() {
  4821. java_generic_services_ = false;
  4822. clear_has_java_generic_services();
  4823. }
  4824. inline bool FileOptions::java_generic_services() const {
  4825. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
  4826. return java_generic_services_;
  4827. }
  4828. inline void FileOptions::set_java_generic_services(bool value) {
  4829. set_has_java_generic_services();
  4830. java_generic_services_ = value;
  4831. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
  4832. }
  4833. // optional bool py_generic_services = 18 [default = false];
  4834. inline bool FileOptions::has_py_generic_services() const {
  4835. return (_has_bits_[0] & 0x00000200u) != 0;
  4836. }
  4837. inline void FileOptions::set_has_py_generic_services() {
  4838. _has_bits_[0] |= 0x00000200u;
  4839. }
  4840. inline void FileOptions::clear_has_py_generic_services() {
  4841. _has_bits_[0] &= ~0x00000200u;
  4842. }
  4843. inline void FileOptions::clear_py_generic_services() {
  4844. py_generic_services_ = false;
  4845. clear_has_py_generic_services();
  4846. }
  4847. inline bool FileOptions::py_generic_services() const {
  4848. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
  4849. return py_generic_services_;
  4850. }
  4851. inline void FileOptions::set_py_generic_services(bool value) {
  4852. set_has_py_generic_services();
  4853. py_generic_services_ = value;
  4854. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
  4855. }
  4856. // optional bool deprecated = 23 [default = false];
  4857. inline bool FileOptions::has_deprecated() const {
  4858. return (_has_bits_[0] & 0x00000400u) != 0;
  4859. }
  4860. inline void FileOptions::set_has_deprecated() {
  4861. _has_bits_[0] |= 0x00000400u;
  4862. }
  4863. inline void FileOptions::clear_has_deprecated() {
  4864. _has_bits_[0] &= ~0x00000400u;
  4865. }
  4866. inline void FileOptions::clear_deprecated() {
  4867. deprecated_ = false;
  4868. clear_has_deprecated();
  4869. }
  4870. inline bool FileOptions::deprecated() const {
  4871. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
  4872. return deprecated_;
  4873. }
  4874. inline void FileOptions::set_deprecated(bool value) {
  4875. set_has_deprecated();
  4876. deprecated_ = value;
  4877. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
  4878. }
  4879. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4880. inline int FileOptions::uninterpreted_option_size() const {
  4881. return uninterpreted_option_.size();
  4882. }
  4883. inline void FileOptions::clear_uninterpreted_option() {
  4884. uninterpreted_option_.Clear();
  4885. }
  4886. inline const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
  4887. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
  4888. return uninterpreted_option_.Get(index);
  4889. }
  4890. inline ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
  4891. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
  4892. return uninterpreted_option_.Mutable(index);
  4893. }
  4894. inline ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() {
  4895. // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
  4896. return uninterpreted_option_.Add();
  4897. }
  4898. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  4899. FileOptions::uninterpreted_option() const {
  4900. // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
  4901. return uninterpreted_option_;
  4902. }
  4903. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  4904. FileOptions::mutable_uninterpreted_option() {
  4905. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
  4906. return &uninterpreted_option_;
  4907. }
  4908. // -------------------------------------------------------------------
  4909. // MessageOptions
  4910. // optional bool message_set_wire_format = 1 [default = false];
  4911. inline bool MessageOptions::has_message_set_wire_format() const {
  4912. return (_has_bits_[0] & 0x00000001u) != 0;
  4913. }
  4914. inline void MessageOptions::set_has_message_set_wire_format() {
  4915. _has_bits_[0] |= 0x00000001u;
  4916. }
  4917. inline void MessageOptions::clear_has_message_set_wire_format() {
  4918. _has_bits_[0] &= ~0x00000001u;
  4919. }
  4920. inline void MessageOptions::clear_message_set_wire_format() {
  4921. message_set_wire_format_ = false;
  4922. clear_has_message_set_wire_format();
  4923. }
  4924. inline bool MessageOptions::message_set_wire_format() const {
  4925. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
  4926. return message_set_wire_format_;
  4927. }
  4928. inline void MessageOptions::set_message_set_wire_format(bool value) {
  4929. set_has_message_set_wire_format();
  4930. message_set_wire_format_ = value;
  4931. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
  4932. }
  4933. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  4934. inline bool MessageOptions::has_no_standard_descriptor_accessor() const {
  4935. return (_has_bits_[0] & 0x00000002u) != 0;
  4936. }
  4937. inline void MessageOptions::set_has_no_standard_descriptor_accessor() {
  4938. _has_bits_[0] |= 0x00000002u;
  4939. }
  4940. inline void MessageOptions::clear_has_no_standard_descriptor_accessor() {
  4941. _has_bits_[0] &= ~0x00000002u;
  4942. }
  4943. inline void MessageOptions::clear_no_standard_descriptor_accessor() {
  4944. no_standard_descriptor_accessor_ = false;
  4945. clear_has_no_standard_descriptor_accessor();
  4946. }
  4947. inline bool MessageOptions::no_standard_descriptor_accessor() const {
  4948. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  4949. return no_standard_descriptor_accessor_;
  4950. }
  4951. inline void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
  4952. set_has_no_standard_descriptor_accessor();
  4953. no_standard_descriptor_accessor_ = value;
  4954. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  4955. }
  4956. // optional bool deprecated = 3 [default = false];
  4957. inline bool MessageOptions::has_deprecated() const {
  4958. return (_has_bits_[0] & 0x00000004u) != 0;
  4959. }
  4960. inline void MessageOptions::set_has_deprecated() {
  4961. _has_bits_[0] |= 0x00000004u;
  4962. }
  4963. inline void MessageOptions::clear_has_deprecated() {
  4964. _has_bits_[0] &= ~0x00000004u;
  4965. }
  4966. inline void MessageOptions::clear_deprecated() {
  4967. deprecated_ = false;
  4968. clear_has_deprecated();
  4969. }
  4970. inline bool MessageOptions::deprecated() const {
  4971. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
  4972. return deprecated_;
  4973. }
  4974. inline void MessageOptions::set_deprecated(bool value) {
  4975. set_has_deprecated();
  4976. deprecated_ = value;
  4977. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
  4978. }
  4979. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4980. inline int MessageOptions::uninterpreted_option_size() const {
  4981. return uninterpreted_option_.size();
  4982. }
  4983. inline void MessageOptions::clear_uninterpreted_option() {
  4984. uninterpreted_option_.Clear();
  4985. }
  4986. inline const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
  4987. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
  4988. return uninterpreted_option_.Get(index);
  4989. }
  4990. inline ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
  4991. // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
  4992. return uninterpreted_option_.Mutable(index);
  4993. }
  4994. inline ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
  4995. // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
  4996. return uninterpreted_option_.Add();
  4997. }
  4998. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  4999. MessageOptions::uninterpreted_option() const {
  5000. // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
  5001. return uninterpreted_option_;
  5002. }
  5003. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  5004. MessageOptions::mutable_uninterpreted_option() {
  5005. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
  5006. return &uninterpreted_option_;
  5007. }
  5008. // -------------------------------------------------------------------
  5009. // FieldOptions
  5010. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  5011. inline bool FieldOptions::has_ctype() const {
  5012. return (_has_bits_[0] & 0x00000001u) != 0;
  5013. }
  5014. inline void FieldOptions::set_has_ctype() {
  5015. _has_bits_[0] |= 0x00000001u;
  5016. }
  5017. inline void FieldOptions::clear_has_ctype() {
  5018. _has_bits_[0] &= ~0x00000001u;
  5019. }
  5020. inline void FieldOptions::clear_ctype() {
  5021. ctype_ = 0;
  5022. clear_has_ctype();
  5023. }
  5024. inline ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
  5025. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
  5026. return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_);
  5027. }
  5028. inline void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) {
  5029. assert(::google::protobuf::FieldOptions_CType_IsValid(value));
  5030. set_has_ctype();
  5031. ctype_ = value;
  5032. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
  5033. }
  5034. // optional bool packed = 2;
  5035. inline bool FieldOptions::has_packed() const {
  5036. return (_has_bits_[0] & 0x00000002u) != 0;
  5037. }
  5038. inline void FieldOptions::set_has_packed() {
  5039. _has_bits_[0] |= 0x00000002u;
  5040. }
  5041. inline void FieldOptions::clear_has_packed() {
  5042. _has_bits_[0] &= ~0x00000002u;
  5043. }
  5044. inline void FieldOptions::clear_packed() {
  5045. packed_ = false;
  5046. clear_has_packed();
  5047. }
  5048. inline bool FieldOptions::packed() const {
  5049. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
  5050. return packed_;
  5051. }
  5052. inline void FieldOptions::set_packed(bool value) {
  5053. set_has_packed();
  5054. packed_ = value;
  5055. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
  5056. }
  5057. // optional bool lazy = 5 [default = false];
  5058. inline bool FieldOptions::has_lazy() const {
  5059. return (_has_bits_[0] & 0x00000004u) != 0;
  5060. }
  5061. inline void FieldOptions::set_has_lazy() {
  5062. _has_bits_[0] |= 0x00000004u;
  5063. }
  5064. inline void FieldOptions::clear_has_lazy() {
  5065. _has_bits_[0] &= ~0x00000004u;
  5066. }
  5067. inline void FieldOptions::clear_lazy() {
  5068. lazy_ = false;
  5069. clear_has_lazy();
  5070. }
  5071. inline bool FieldOptions::lazy() const {
  5072. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
  5073. return lazy_;
  5074. }
  5075. inline void FieldOptions::set_lazy(bool value) {
  5076. set_has_lazy();
  5077. lazy_ = value;
  5078. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
  5079. }
  5080. // optional bool deprecated = 3 [default = false];
  5081. inline bool FieldOptions::has_deprecated() const {
  5082. return (_has_bits_[0] & 0x00000008u) != 0;
  5083. }
  5084. inline void FieldOptions::set_has_deprecated() {
  5085. _has_bits_[0] |= 0x00000008u;
  5086. }
  5087. inline void FieldOptions::clear_has_deprecated() {
  5088. _has_bits_[0] &= ~0x00000008u;
  5089. }
  5090. inline void FieldOptions::clear_deprecated() {
  5091. deprecated_ = false;
  5092. clear_has_deprecated();
  5093. }
  5094. inline bool FieldOptions::deprecated() const {
  5095. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
  5096. return deprecated_;
  5097. }
  5098. inline void FieldOptions::set_deprecated(bool value) {
  5099. set_has_deprecated();
  5100. deprecated_ = value;
  5101. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
  5102. }
  5103. // optional string experimental_map_key = 9;
  5104. inline bool FieldOptions::has_experimental_map_key() const {
  5105. return (_has_bits_[0] & 0x00000010u) != 0;
  5106. }
  5107. inline void FieldOptions::set_has_experimental_map_key() {
  5108. _has_bits_[0] |= 0x00000010u;
  5109. }
  5110. inline void FieldOptions::clear_has_experimental_map_key() {
  5111. _has_bits_[0] &= ~0x00000010u;
  5112. }
  5113. inline void FieldOptions::clear_experimental_map_key() {
  5114. if (experimental_map_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5115. experimental_map_key_->clear();
  5116. }
  5117. clear_has_experimental_map_key();
  5118. }
  5119. inline const ::std::string& FieldOptions::experimental_map_key() const {
  5120. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.experimental_map_key)
  5121. return *experimental_map_key_;
  5122. }
  5123. inline void FieldOptions::set_experimental_map_key(const ::std::string& value) {
  5124. set_has_experimental_map_key();
  5125. if (experimental_map_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5126. experimental_map_key_ = new ::std::string;
  5127. }
  5128. experimental_map_key_->assign(value);
  5129. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.experimental_map_key)
  5130. }
  5131. inline void FieldOptions::set_experimental_map_key(const char* value) {
  5132. set_has_experimental_map_key();
  5133. if (experimental_map_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5134. experimental_map_key_ = new ::std::string;
  5135. }
  5136. experimental_map_key_->assign(value);
  5137. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldOptions.experimental_map_key)
  5138. }
  5139. inline void FieldOptions::set_experimental_map_key(const char* value, size_t size) {
  5140. set_has_experimental_map_key();
  5141. if (experimental_map_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5142. experimental_map_key_ = new ::std::string;
  5143. }
  5144. experimental_map_key_->assign(reinterpret_cast<const char*>(value), size);
  5145. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldOptions.experimental_map_key)
  5146. }
  5147. inline ::std::string* FieldOptions::mutable_experimental_map_key() {
  5148. set_has_experimental_map_key();
  5149. if (experimental_map_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5150. experimental_map_key_ = new ::std::string;
  5151. }
  5152. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.experimental_map_key)
  5153. return experimental_map_key_;
  5154. }
  5155. inline ::std::string* FieldOptions::release_experimental_map_key() {
  5156. clear_has_experimental_map_key();
  5157. if (experimental_map_key_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5158. return NULL;
  5159. } else {
  5160. ::std::string* temp = experimental_map_key_;
  5161. experimental_map_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5162. return temp;
  5163. }
  5164. }
  5165. inline void FieldOptions::set_allocated_experimental_map_key(::std::string* experimental_map_key) {
  5166. if (experimental_map_key_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5167. delete experimental_map_key_;
  5168. }
  5169. if (experimental_map_key) {
  5170. set_has_experimental_map_key();
  5171. experimental_map_key_ = experimental_map_key;
  5172. } else {
  5173. clear_has_experimental_map_key();
  5174. experimental_map_key_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5175. }
  5176. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldOptions.experimental_map_key)
  5177. }
  5178. // optional bool weak = 10 [default = false];
  5179. inline bool FieldOptions::has_weak() const {
  5180. return (_has_bits_[0] & 0x00000020u) != 0;
  5181. }
  5182. inline void FieldOptions::set_has_weak() {
  5183. _has_bits_[0] |= 0x00000020u;
  5184. }
  5185. inline void FieldOptions::clear_has_weak() {
  5186. _has_bits_[0] &= ~0x00000020u;
  5187. }
  5188. inline void FieldOptions::clear_weak() {
  5189. weak_ = false;
  5190. clear_has_weak();
  5191. }
  5192. inline bool FieldOptions::weak() const {
  5193. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
  5194. return weak_;
  5195. }
  5196. inline void FieldOptions::set_weak(bool value) {
  5197. set_has_weak();
  5198. weak_ = value;
  5199. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
  5200. }
  5201. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5202. inline int FieldOptions::uninterpreted_option_size() const {
  5203. return uninterpreted_option_.size();
  5204. }
  5205. inline void FieldOptions::clear_uninterpreted_option() {
  5206. uninterpreted_option_.Clear();
  5207. }
  5208. inline const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
  5209. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
  5210. return uninterpreted_option_.Get(index);
  5211. }
  5212. inline ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
  5213. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
  5214. return uninterpreted_option_.Mutable(index);
  5215. }
  5216. inline ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
  5217. // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
  5218. return uninterpreted_option_.Add();
  5219. }
  5220. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  5221. FieldOptions::uninterpreted_option() const {
  5222. // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
  5223. return uninterpreted_option_;
  5224. }
  5225. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  5226. FieldOptions::mutable_uninterpreted_option() {
  5227. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
  5228. return &uninterpreted_option_;
  5229. }
  5230. // -------------------------------------------------------------------
  5231. // EnumOptions
  5232. // optional bool allow_alias = 2;
  5233. inline bool EnumOptions::has_allow_alias() const {
  5234. return (_has_bits_[0] & 0x00000001u) != 0;
  5235. }
  5236. inline void EnumOptions::set_has_allow_alias() {
  5237. _has_bits_[0] |= 0x00000001u;
  5238. }
  5239. inline void EnumOptions::clear_has_allow_alias() {
  5240. _has_bits_[0] &= ~0x00000001u;
  5241. }
  5242. inline void EnumOptions::clear_allow_alias() {
  5243. allow_alias_ = false;
  5244. clear_has_allow_alias();
  5245. }
  5246. inline bool EnumOptions::allow_alias() const {
  5247. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
  5248. return allow_alias_;
  5249. }
  5250. inline void EnumOptions::set_allow_alias(bool value) {
  5251. set_has_allow_alias();
  5252. allow_alias_ = value;
  5253. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
  5254. }
  5255. // optional bool deprecated = 3 [default = false];
  5256. inline bool EnumOptions::has_deprecated() const {
  5257. return (_has_bits_[0] & 0x00000002u) != 0;
  5258. }
  5259. inline void EnumOptions::set_has_deprecated() {
  5260. _has_bits_[0] |= 0x00000002u;
  5261. }
  5262. inline void EnumOptions::clear_has_deprecated() {
  5263. _has_bits_[0] &= ~0x00000002u;
  5264. }
  5265. inline void EnumOptions::clear_deprecated() {
  5266. deprecated_ = false;
  5267. clear_has_deprecated();
  5268. }
  5269. inline bool EnumOptions::deprecated() const {
  5270. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
  5271. return deprecated_;
  5272. }
  5273. inline void EnumOptions::set_deprecated(bool value) {
  5274. set_has_deprecated();
  5275. deprecated_ = value;
  5276. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
  5277. }
  5278. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5279. inline int EnumOptions::uninterpreted_option_size() const {
  5280. return uninterpreted_option_.size();
  5281. }
  5282. inline void EnumOptions::clear_uninterpreted_option() {
  5283. uninterpreted_option_.Clear();
  5284. }
  5285. inline const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
  5286. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
  5287. return uninterpreted_option_.Get(index);
  5288. }
  5289. inline ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
  5290. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
  5291. return uninterpreted_option_.Mutable(index);
  5292. }
  5293. inline ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
  5294. // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
  5295. return uninterpreted_option_.Add();
  5296. }
  5297. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  5298. EnumOptions::uninterpreted_option() const {
  5299. // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
  5300. return uninterpreted_option_;
  5301. }
  5302. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  5303. EnumOptions::mutable_uninterpreted_option() {
  5304. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
  5305. return &uninterpreted_option_;
  5306. }
  5307. // -------------------------------------------------------------------
  5308. // EnumValueOptions
  5309. // optional bool deprecated = 1 [default = false];
  5310. inline bool EnumValueOptions::has_deprecated() const {
  5311. return (_has_bits_[0] & 0x00000001u) != 0;
  5312. }
  5313. inline void EnumValueOptions::set_has_deprecated() {
  5314. _has_bits_[0] |= 0x00000001u;
  5315. }
  5316. inline void EnumValueOptions::clear_has_deprecated() {
  5317. _has_bits_[0] &= ~0x00000001u;
  5318. }
  5319. inline void EnumValueOptions::clear_deprecated() {
  5320. deprecated_ = false;
  5321. clear_has_deprecated();
  5322. }
  5323. inline bool EnumValueOptions::deprecated() const {
  5324. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
  5325. return deprecated_;
  5326. }
  5327. inline void EnumValueOptions::set_deprecated(bool value) {
  5328. set_has_deprecated();
  5329. deprecated_ = value;
  5330. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
  5331. }
  5332. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5333. inline int EnumValueOptions::uninterpreted_option_size() const {
  5334. return uninterpreted_option_.size();
  5335. }
  5336. inline void EnumValueOptions::clear_uninterpreted_option() {
  5337. uninterpreted_option_.Clear();
  5338. }
  5339. inline const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
  5340. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
  5341. return uninterpreted_option_.Get(index);
  5342. }
  5343. inline ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
  5344. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
  5345. return uninterpreted_option_.Mutable(index);
  5346. }
  5347. inline ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
  5348. // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
  5349. return uninterpreted_option_.Add();
  5350. }
  5351. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  5352. EnumValueOptions::uninterpreted_option() const {
  5353. // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  5354. return uninterpreted_option_;
  5355. }
  5356. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  5357. EnumValueOptions::mutable_uninterpreted_option() {
  5358. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  5359. return &uninterpreted_option_;
  5360. }
  5361. // -------------------------------------------------------------------
  5362. // ServiceOptions
  5363. // optional bool deprecated = 33 [default = false];
  5364. inline bool ServiceOptions::has_deprecated() const {
  5365. return (_has_bits_[0] & 0x00000001u) != 0;
  5366. }
  5367. inline void ServiceOptions::set_has_deprecated() {
  5368. _has_bits_[0] |= 0x00000001u;
  5369. }
  5370. inline void ServiceOptions::clear_has_deprecated() {
  5371. _has_bits_[0] &= ~0x00000001u;
  5372. }
  5373. inline void ServiceOptions::clear_deprecated() {
  5374. deprecated_ = false;
  5375. clear_has_deprecated();
  5376. }
  5377. inline bool ServiceOptions::deprecated() const {
  5378. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
  5379. return deprecated_;
  5380. }
  5381. inline void ServiceOptions::set_deprecated(bool value) {
  5382. set_has_deprecated();
  5383. deprecated_ = value;
  5384. // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
  5385. }
  5386. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5387. inline int ServiceOptions::uninterpreted_option_size() const {
  5388. return uninterpreted_option_.size();
  5389. }
  5390. inline void ServiceOptions::clear_uninterpreted_option() {
  5391. uninterpreted_option_.Clear();
  5392. }
  5393. inline const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
  5394. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
  5395. return uninterpreted_option_.Get(index);
  5396. }
  5397. inline ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
  5398. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
  5399. return uninterpreted_option_.Mutable(index);
  5400. }
  5401. inline ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
  5402. // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
  5403. return uninterpreted_option_.Add();
  5404. }
  5405. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  5406. ServiceOptions::uninterpreted_option() const {
  5407. // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
  5408. return uninterpreted_option_;
  5409. }
  5410. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  5411. ServiceOptions::mutable_uninterpreted_option() {
  5412. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
  5413. return &uninterpreted_option_;
  5414. }
  5415. // -------------------------------------------------------------------
  5416. // MethodOptions
  5417. // optional bool deprecated = 33 [default = false];
  5418. inline bool MethodOptions::has_deprecated() const {
  5419. return (_has_bits_[0] & 0x00000001u) != 0;
  5420. }
  5421. inline void MethodOptions::set_has_deprecated() {
  5422. _has_bits_[0] |= 0x00000001u;
  5423. }
  5424. inline void MethodOptions::clear_has_deprecated() {
  5425. _has_bits_[0] &= ~0x00000001u;
  5426. }
  5427. inline void MethodOptions::clear_deprecated() {
  5428. deprecated_ = false;
  5429. clear_has_deprecated();
  5430. }
  5431. inline bool MethodOptions::deprecated() const {
  5432. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
  5433. return deprecated_;
  5434. }
  5435. inline void MethodOptions::set_deprecated(bool value) {
  5436. set_has_deprecated();
  5437. deprecated_ = value;
  5438. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
  5439. }
  5440. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  5441. inline int MethodOptions::uninterpreted_option_size() const {
  5442. return uninterpreted_option_.size();
  5443. }
  5444. inline void MethodOptions::clear_uninterpreted_option() {
  5445. uninterpreted_option_.Clear();
  5446. }
  5447. inline const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
  5448. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
  5449. return uninterpreted_option_.Get(index);
  5450. }
  5451. inline ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
  5452. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
  5453. return uninterpreted_option_.Mutable(index);
  5454. }
  5455. inline ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
  5456. // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
  5457. return uninterpreted_option_.Add();
  5458. }
  5459. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  5460. MethodOptions::uninterpreted_option() const {
  5461. // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
  5462. return uninterpreted_option_;
  5463. }
  5464. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  5465. MethodOptions::mutable_uninterpreted_option() {
  5466. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
  5467. return &uninterpreted_option_;
  5468. }
  5469. // -------------------------------------------------------------------
  5470. // UninterpretedOption_NamePart
  5471. // required string name_part = 1;
  5472. inline bool UninterpretedOption_NamePart::has_name_part() const {
  5473. return (_has_bits_[0] & 0x00000001u) != 0;
  5474. }
  5475. inline void UninterpretedOption_NamePart::set_has_name_part() {
  5476. _has_bits_[0] |= 0x00000001u;
  5477. }
  5478. inline void UninterpretedOption_NamePart::clear_has_name_part() {
  5479. _has_bits_[0] &= ~0x00000001u;
  5480. }
  5481. inline void UninterpretedOption_NamePart::clear_name_part() {
  5482. if (name_part_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5483. name_part_->clear();
  5484. }
  5485. clear_has_name_part();
  5486. }
  5487. inline const ::std::string& UninterpretedOption_NamePart::name_part() const {
  5488. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
  5489. return *name_part_;
  5490. }
  5491. inline void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
  5492. set_has_name_part();
  5493. if (name_part_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5494. name_part_ = new ::std::string;
  5495. }
  5496. name_part_->assign(value);
  5497. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
  5498. }
  5499. inline void UninterpretedOption_NamePart::set_name_part(const char* value) {
  5500. set_has_name_part();
  5501. if (name_part_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5502. name_part_ = new ::std::string;
  5503. }
  5504. name_part_->assign(value);
  5505. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.NamePart.name_part)
  5506. }
  5507. inline void UninterpretedOption_NamePart::set_name_part(const char* value, size_t size) {
  5508. set_has_name_part();
  5509. if (name_part_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5510. name_part_ = new ::std::string;
  5511. }
  5512. name_part_->assign(reinterpret_cast<const char*>(value), size);
  5513. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.NamePart.name_part)
  5514. }
  5515. inline ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
  5516. set_has_name_part();
  5517. if (name_part_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5518. name_part_ = new ::std::string;
  5519. }
  5520. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
  5521. return name_part_;
  5522. }
  5523. inline ::std::string* UninterpretedOption_NamePart::release_name_part() {
  5524. clear_has_name_part();
  5525. if (name_part_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5526. return NULL;
  5527. } else {
  5528. ::std::string* temp = name_part_;
  5529. name_part_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5530. return temp;
  5531. }
  5532. }
  5533. inline void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_part) {
  5534. if (name_part_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5535. delete name_part_;
  5536. }
  5537. if (name_part) {
  5538. set_has_name_part();
  5539. name_part_ = name_part;
  5540. } else {
  5541. clear_has_name_part();
  5542. name_part_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5543. }
  5544. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  5545. }
  5546. // required bool is_extension = 2;
  5547. inline bool UninterpretedOption_NamePart::has_is_extension() const {
  5548. return (_has_bits_[0] & 0x00000002u) != 0;
  5549. }
  5550. inline void UninterpretedOption_NamePart::set_has_is_extension() {
  5551. _has_bits_[0] |= 0x00000002u;
  5552. }
  5553. inline void UninterpretedOption_NamePart::clear_has_is_extension() {
  5554. _has_bits_[0] &= ~0x00000002u;
  5555. }
  5556. inline void UninterpretedOption_NamePart::clear_is_extension() {
  5557. is_extension_ = false;
  5558. clear_has_is_extension();
  5559. }
  5560. inline bool UninterpretedOption_NamePart::is_extension() const {
  5561. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
  5562. return is_extension_;
  5563. }
  5564. inline void UninterpretedOption_NamePart::set_is_extension(bool value) {
  5565. set_has_is_extension();
  5566. is_extension_ = value;
  5567. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
  5568. }
  5569. // -------------------------------------------------------------------
  5570. // UninterpretedOption
  5571. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  5572. inline int UninterpretedOption::name_size() const {
  5573. return name_.size();
  5574. }
  5575. inline void UninterpretedOption::clear_name() {
  5576. name_.Clear();
  5577. }
  5578. inline const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
  5579. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
  5580. return name_.Get(index);
  5581. }
  5582. inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
  5583. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
  5584. return name_.Mutable(index);
  5585. }
  5586. inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
  5587. // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
  5588. return name_.Add();
  5589. }
  5590. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
  5591. UninterpretedOption::name() const {
  5592. // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
  5593. return name_;
  5594. }
  5595. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
  5596. UninterpretedOption::mutable_name() {
  5597. // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
  5598. return &name_;
  5599. }
  5600. // optional string identifier_value = 3;
  5601. inline bool UninterpretedOption::has_identifier_value() const {
  5602. return (_has_bits_[0] & 0x00000002u) != 0;
  5603. }
  5604. inline void UninterpretedOption::set_has_identifier_value() {
  5605. _has_bits_[0] |= 0x00000002u;
  5606. }
  5607. inline void UninterpretedOption::clear_has_identifier_value() {
  5608. _has_bits_[0] &= ~0x00000002u;
  5609. }
  5610. inline void UninterpretedOption::clear_identifier_value() {
  5611. if (identifier_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5612. identifier_value_->clear();
  5613. }
  5614. clear_has_identifier_value();
  5615. }
  5616. inline const ::std::string& UninterpretedOption::identifier_value() const {
  5617. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
  5618. return *identifier_value_;
  5619. }
  5620. inline void UninterpretedOption::set_identifier_value(const ::std::string& value) {
  5621. set_has_identifier_value();
  5622. if (identifier_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5623. identifier_value_ = new ::std::string;
  5624. }
  5625. identifier_value_->assign(value);
  5626. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
  5627. }
  5628. inline void UninterpretedOption::set_identifier_value(const char* value) {
  5629. set_has_identifier_value();
  5630. if (identifier_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5631. identifier_value_ = new ::std::string;
  5632. }
  5633. identifier_value_->assign(value);
  5634. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.identifier_value)
  5635. }
  5636. inline void UninterpretedOption::set_identifier_value(const char* value, size_t size) {
  5637. set_has_identifier_value();
  5638. if (identifier_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5639. identifier_value_ = new ::std::string;
  5640. }
  5641. identifier_value_->assign(reinterpret_cast<const char*>(value), size);
  5642. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.identifier_value)
  5643. }
  5644. inline ::std::string* UninterpretedOption::mutable_identifier_value() {
  5645. set_has_identifier_value();
  5646. if (identifier_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5647. identifier_value_ = new ::std::string;
  5648. }
  5649. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
  5650. return identifier_value_;
  5651. }
  5652. inline ::std::string* UninterpretedOption::release_identifier_value() {
  5653. clear_has_identifier_value();
  5654. if (identifier_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5655. return NULL;
  5656. } else {
  5657. ::std::string* temp = identifier_value_;
  5658. identifier_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5659. return temp;
  5660. }
  5661. }
  5662. inline void UninterpretedOption::set_allocated_identifier_value(::std::string* identifier_value) {
  5663. if (identifier_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5664. delete identifier_value_;
  5665. }
  5666. if (identifier_value) {
  5667. set_has_identifier_value();
  5668. identifier_value_ = identifier_value;
  5669. } else {
  5670. clear_has_identifier_value();
  5671. identifier_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5672. }
  5673. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  5674. }
  5675. // optional uint64 positive_int_value = 4;
  5676. inline bool UninterpretedOption::has_positive_int_value() const {
  5677. return (_has_bits_[0] & 0x00000004u) != 0;
  5678. }
  5679. inline void UninterpretedOption::set_has_positive_int_value() {
  5680. _has_bits_[0] |= 0x00000004u;
  5681. }
  5682. inline void UninterpretedOption::clear_has_positive_int_value() {
  5683. _has_bits_[0] &= ~0x00000004u;
  5684. }
  5685. inline void UninterpretedOption::clear_positive_int_value() {
  5686. positive_int_value_ = GOOGLE_ULONGLONG(0);
  5687. clear_has_positive_int_value();
  5688. }
  5689. inline ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
  5690. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
  5691. return positive_int_value_;
  5692. }
  5693. inline void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) {
  5694. set_has_positive_int_value();
  5695. positive_int_value_ = value;
  5696. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
  5697. }
  5698. // optional int64 negative_int_value = 5;
  5699. inline bool UninterpretedOption::has_negative_int_value() const {
  5700. return (_has_bits_[0] & 0x00000008u) != 0;
  5701. }
  5702. inline void UninterpretedOption::set_has_negative_int_value() {
  5703. _has_bits_[0] |= 0x00000008u;
  5704. }
  5705. inline void UninterpretedOption::clear_has_negative_int_value() {
  5706. _has_bits_[0] &= ~0x00000008u;
  5707. }
  5708. inline void UninterpretedOption::clear_negative_int_value() {
  5709. negative_int_value_ = GOOGLE_LONGLONG(0);
  5710. clear_has_negative_int_value();
  5711. }
  5712. inline ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
  5713. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
  5714. return negative_int_value_;
  5715. }
  5716. inline void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) {
  5717. set_has_negative_int_value();
  5718. negative_int_value_ = value;
  5719. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
  5720. }
  5721. // optional double double_value = 6;
  5722. inline bool UninterpretedOption::has_double_value() const {
  5723. return (_has_bits_[0] & 0x00000010u) != 0;
  5724. }
  5725. inline void UninterpretedOption::set_has_double_value() {
  5726. _has_bits_[0] |= 0x00000010u;
  5727. }
  5728. inline void UninterpretedOption::clear_has_double_value() {
  5729. _has_bits_[0] &= ~0x00000010u;
  5730. }
  5731. inline void UninterpretedOption::clear_double_value() {
  5732. double_value_ = 0;
  5733. clear_has_double_value();
  5734. }
  5735. inline double UninterpretedOption::double_value() const {
  5736. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
  5737. return double_value_;
  5738. }
  5739. inline void UninterpretedOption::set_double_value(double value) {
  5740. set_has_double_value();
  5741. double_value_ = value;
  5742. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
  5743. }
  5744. // optional bytes string_value = 7;
  5745. inline bool UninterpretedOption::has_string_value() const {
  5746. return (_has_bits_[0] & 0x00000020u) != 0;
  5747. }
  5748. inline void UninterpretedOption::set_has_string_value() {
  5749. _has_bits_[0] |= 0x00000020u;
  5750. }
  5751. inline void UninterpretedOption::clear_has_string_value() {
  5752. _has_bits_[0] &= ~0x00000020u;
  5753. }
  5754. inline void UninterpretedOption::clear_string_value() {
  5755. if (string_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5756. string_value_->clear();
  5757. }
  5758. clear_has_string_value();
  5759. }
  5760. inline const ::std::string& UninterpretedOption::string_value() const {
  5761. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
  5762. return *string_value_;
  5763. }
  5764. inline void UninterpretedOption::set_string_value(const ::std::string& value) {
  5765. set_has_string_value();
  5766. if (string_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5767. string_value_ = new ::std::string;
  5768. }
  5769. string_value_->assign(value);
  5770. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
  5771. }
  5772. inline void UninterpretedOption::set_string_value(const char* value) {
  5773. set_has_string_value();
  5774. if (string_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5775. string_value_ = new ::std::string;
  5776. }
  5777. string_value_->assign(value);
  5778. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.string_value)
  5779. }
  5780. inline void UninterpretedOption::set_string_value(const void* value, size_t size) {
  5781. set_has_string_value();
  5782. if (string_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5783. string_value_ = new ::std::string;
  5784. }
  5785. string_value_->assign(reinterpret_cast<const char*>(value), size);
  5786. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.string_value)
  5787. }
  5788. inline ::std::string* UninterpretedOption::mutable_string_value() {
  5789. set_has_string_value();
  5790. if (string_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5791. string_value_ = new ::std::string;
  5792. }
  5793. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
  5794. return string_value_;
  5795. }
  5796. inline ::std::string* UninterpretedOption::release_string_value() {
  5797. clear_has_string_value();
  5798. if (string_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5799. return NULL;
  5800. } else {
  5801. ::std::string* temp = string_value_;
  5802. string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5803. return temp;
  5804. }
  5805. }
  5806. inline void UninterpretedOption::set_allocated_string_value(::std::string* string_value) {
  5807. if (string_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5808. delete string_value_;
  5809. }
  5810. if (string_value) {
  5811. set_has_string_value();
  5812. string_value_ = string_value;
  5813. } else {
  5814. clear_has_string_value();
  5815. string_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5816. }
  5817. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
  5818. }
  5819. // optional string aggregate_value = 8;
  5820. inline bool UninterpretedOption::has_aggregate_value() const {
  5821. return (_has_bits_[0] & 0x00000040u) != 0;
  5822. }
  5823. inline void UninterpretedOption::set_has_aggregate_value() {
  5824. _has_bits_[0] |= 0x00000040u;
  5825. }
  5826. inline void UninterpretedOption::clear_has_aggregate_value() {
  5827. _has_bits_[0] &= ~0x00000040u;
  5828. }
  5829. inline void UninterpretedOption::clear_aggregate_value() {
  5830. if (aggregate_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5831. aggregate_value_->clear();
  5832. }
  5833. clear_has_aggregate_value();
  5834. }
  5835. inline const ::std::string& UninterpretedOption::aggregate_value() const {
  5836. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
  5837. return *aggregate_value_;
  5838. }
  5839. inline void UninterpretedOption::set_aggregate_value(const ::std::string& value) {
  5840. set_has_aggregate_value();
  5841. if (aggregate_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5842. aggregate_value_ = new ::std::string;
  5843. }
  5844. aggregate_value_->assign(value);
  5845. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
  5846. }
  5847. inline void UninterpretedOption::set_aggregate_value(const char* value) {
  5848. set_has_aggregate_value();
  5849. if (aggregate_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5850. aggregate_value_ = new ::std::string;
  5851. }
  5852. aggregate_value_->assign(value);
  5853. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.aggregate_value)
  5854. }
  5855. inline void UninterpretedOption::set_aggregate_value(const char* value, size_t size) {
  5856. set_has_aggregate_value();
  5857. if (aggregate_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5858. aggregate_value_ = new ::std::string;
  5859. }
  5860. aggregate_value_->assign(reinterpret_cast<const char*>(value), size);
  5861. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.aggregate_value)
  5862. }
  5863. inline ::std::string* UninterpretedOption::mutable_aggregate_value() {
  5864. set_has_aggregate_value();
  5865. if (aggregate_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5866. aggregate_value_ = new ::std::string;
  5867. }
  5868. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
  5869. return aggregate_value_;
  5870. }
  5871. inline ::std::string* UninterpretedOption::release_aggregate_value() {
  5872. clear_has_aggregate_value();
  5873. if (aggregate_value_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5874. return NULL;
  5875. } else {
  5876. ::std::string* temp = aggregate_value_;
  5877. aggregate_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5878. return temp;
  5879. }
  5880. }
  5881. inline void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate_value) {
  5882. if (aggregate_value_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5883. delete aggregate_value_;
  5884. }
  5885. if (aggregate_value) {
  5886. set_has_aggregate_value();
  5887. aggregate_value_ = aggregate_value;
  5888. } else {
  5889. clear_has_aggregate_value();
  5890. aggregate_value_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  5891. }
  5892. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  5893. }
  5894. // -------------------------------------------------------------------
  5895. // SourceCodeInfo_Location
  5896. // repeated int32 path = 1 [packed = true];
  5897. inline int SourceCodeInfo_Location::path_size() const {
  5898. return path_.size();
  5899. }
  5900. inline void SourceCodeInfo_Location::clear_path() {
  5901. path_.Clear();
  5902. }
  5903. inline ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const {
  5904. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
  5905. return path_.Get(index);
  5906. }
  5907. inline void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) {
  5908. path_.Set(index, value);
  5909. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
  5910. }
  5911. inline void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) {
  5912. path_.Add(value);
  5913. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
  5914. }
  5915. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  5916. SourceCodeInfo_Location::path() const {
  5917. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
  5918. return path_;
  5919. }
  5920. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  5921. SourceCodeInfo_Location::mutable_path() {
  5922. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
  5923. return &path_;
  5924. }
  5925. // repeated int32 span = 2 [packed = true];
  5926. inline int SourceCodeInfo_Location::span_size() const {
  5927. return span_.size();
  5928. }
  5929. inline void SourceCodeInfo_Location::clear_span() {
  5930. span_.Clear();
  5931. }
  5932. inline ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const {
  5933. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
  5934. return span_.Get(index);
  5935. }
  5936. inline void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) {
  5937. span_.Set(index, value);
  5938. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
  5939. }
  5940. inline void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) {
  5941. span_.Add(value);
  5942. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
  5943. }
  5944. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  5945. SourceCodeInfo_Location::span() const {
  5946. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
  5947. return span_;
  5948. }
  5949. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  5950. SourceCodeInfo_Location::mutable_span() {
  5951. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
  5952. return &span_;
  5953. }
  5954. // optional string leading_comments = 3;
  5955. inline bool SourceCodeInfo_Location::has_leading_comments() const {
  5956. return (_has_bits_[0] & 0x00000004u) != 0;
  5957. }
  5958. inline void SourceCodeInfo_Location::set_has_leading_comments() {
  5959. _has_bits_[0] |= 0x00000004u;
  5960. }
  5961. inline void SourceCodeInfo_Location::clear_has_leading_comments() {
  5962. _has_bits_[0] &= ~0x00000004u;
  5963. }
  5964. inline void SourceCodeInfo_Location::clear_leading_comments() {
  5965. if (leading_comments_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5966. leading_comments_->clear();
  5967. }
  5968. clear_has_leading_comments();
  5969. }
  5970. inline const ::std::string& SourceCodeInfo_Location::leading_comments() const {
  5971. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
  5972. return *leading_comments_;
  5973. }
  5974. inline void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) {
  5975. set_has_leading_comments();
  5976. if (leading_comments_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5977. leading_comments_ = new ::std::string;
  5978. }
  5979. leading_comments_->assign(value);
  5980. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
  5981. }
  5982. inline void SourceCodeInfo_Location::set_leading_comments(const char* value) {
  5983. set_has_leading_comments();
  5984. if (leading_comments_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5985. leading_comments_ = new ::std::string;
  5986. }
  5987. leading_comments_->assign(value);
  5988. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_comments)
  5989. }
  5990. inline void SourceCodeInfo_Location::set_leading_comments(const char* value, size_t size) {
  5991. set_has_leading_comments();
  5992. if (leading_comments_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  5993. leading_comments_ = new ::std::string;
  5994. }
  5995. leading_comments_->assign(reinterpret_cast<const char*>(value), size);
  5996. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_comments)
  5997. }
  5998. inline ::std::string* SourceCodeInfo_Location::mutable_leading_comments() {
  5999. set_has_leading_comments();
  6000. if (leading_comments_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  6001. leading_comments_ = new ::std::string;
  6002. }
  6003. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
  6004. return leading_comments_;
  6005. }
  6006. inline ::std::string* SourceCodeInfo_Location::release_leading_comments() {
  6007. clear_has_leading_comments();
  6008. if (leading_comments_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  6009. return NULL;
  6010. } else {
  6011. ::std::string* temp = leading_comments_;
  6012. leading_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6013. return temp;
  6014. }
  6015. }
  6016. inline void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* leading_comments) {
  6017. if (leading_comments_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  6018. delete leading_comments_;
  6019. }
  6020. if (leading_comments) {
  6021. set_has_leading_comments();
  6022. leading_comments_ = leading_comments;
  6023. } else {
  6024. clear_has_leading_comments();
  6025. leading_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6026. }
  6027. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  6028. }
  6029. // optional string trailing_comments = 4;
  6030. inline bool SourceCodeInfo_Location::has_trailing_comments() const {
  6031. return (_has_bits_[0] & 0x00000008u) != 0;
  6032. }
  6033. inline void SourceCodeInfo_Location::set_has_trailing_comments() {
  6034. _has_bits_[0] |= 0x00000008u;
  6035. }
  6036. inline void SourceCodeInfo_Location::clear_has_trailing_comments() {
  6037. _has_bits_[0] &= ~0x00000008u;
  6038. }
  6039. inline void SourceCodeInfo_Location::clear_trailing_comments() {
  6040. if (trailing_comments_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  6041. trailing_comments_->clear();
  6042. }
  6043. clear_has_trailing_comments();
  6044. }
  6045. inline const ::std::string& SourceCodeInfo_Location::trailing_comments() const {
  6046. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  6047. return *trailing_comments_;
  6048. }
  6049. inline void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) {
  6050. set_has_trailing_comments();
  6051. if (trailing_comments_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  6052. trailing_comments_ = new ::std::string;
  6053. }
  6054. trailing_comments_->assign(value);
  6055. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  6056. }
  6057. inline void SourceCodeInfo_Location::set_trailing_comments(const char* value) {
  6058. set_has_trailing_comments();
  6059. if (trailing_comments_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  6060. trailing_comments_ = new ::std::string;
  6061. }
  6062. trailing_comments_->assign(value);
  6063. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  6064. }
  6065. inline void SourceCodeInfo_Location::set_trailing_comments(const char* value, size_t size) {
  6066. set_has_trailing_comments();
  6067. if (trailing_comments_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  6068. trailing_comments_ = new ::std::string;
  6069. }
  6070. trailing_comments_->assign(reinterpret_cast<const char*>(value), size);
  6071. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  6072. }
  6073. inline ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
  6074. set_has_trailing_comments();
  6075. if (trailing_comments_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  6076. trailing_comments_ = new ::std::string;
  6077. }
  6078. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  6079. return trailing_comments_;
  6080. }
  6081. inline ::std::string* SourceCodeInfo_Location::release_trailing_comments() {
  6082. clear_has_trailing_comments();
  6083. if (trailing_comments_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  6084. return NULL;
  6085. } else {
  6086. ::std::string* temp = trailing_comments_;
  6087. trailing_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6088. return temp;
  6089. }
  6090. }
  6091. inline void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* trailing_comments) {
  6092. if (trailing_comments_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
  6093. delete trailing_comments_;
  6094. }
  6095. if (trailing_comments) {
  6096. set_has_trailing_comments();
  6097. trailing_comments_ = trailing_comments;
  6098. } else {
  6099. clear_has_trailing_comments();
  6100. trailing_comments_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  6101. }
  6102. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  6103. }
  6104. // -------------------------------------------------------------------
  6105. // SourceCodeInfo
  6106. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  6107. inline int SourceCodeInfo::location_size() const {
  6108. return location_.size();
  6109. }
  6110. inline void SourceCodeInfo::clear_location() {
  6111. location_.Clear();
  6112. }
  6113. inline const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
  6114. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
  6115. return location_.Get(index);
  6116. }
  6117. inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
  6118. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
  6119. return location_.Mutable(index);
  6120. }
  6121. inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
  6122. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
  6123. return location_.Add();
  6124. }
  6125. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
  6126. SourceCodeInfo::location() const {
  6127. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
  6128. return location_;
  6129. }
  6130. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
  6131. SourceCodeInfo::mutable_location() {
  6132. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
  6133. return &location_;
  6134. }
  6135. // @@protoc_insertion_point(namespace_scope)
  6136. } // namespace protobuf
  6137. } // namespace google
  6138. #ifndef SWIG
  6139. namespace google {
  6140. namespace protobuf {
  6141. template <> struct is_proto_enum< ::google::protobuf::FieldDescriptorProto_Type> : ::google::protobuf::internal::true_type {};
  6142. template <>
  6143. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Type>() {
  6144. return ::google::protobuf::FieldDescriptorProto_Type_descriptor();
  6145. }
  6146. template <> struct is_proto_enum< ::google::protobuf::FieldDescriptorProto_Label> : ::google::protobuf::internal::true_type {};
  6147. template <>
  6148. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Label>() {
  6149. return ::google::protobuf::FieldDescriptorProto_Label_descriptor();
  6150. }
  6151. template <> struct is_proto_enum< ::google::protobuf::FileOptions_OptimizeMode> : ::google::protobuf::internal::true_type {};
  6152. template <>
  6153. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FileOptions_OptimizeMode>() {
  6154. return ::google::protobuf::FileOptions_OptimizeMode_descriptor();
  6155. }
  6156. template <> struct is_proto_enum< ::google::protobuf::FieldOptions_CType> : ::google::protobuf::internal::true_type {};
  6157. template <>
  6158. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldOptions_CType>() {
  6159. return ::google::protobuf::FieldOptions_CType_descriptor();
  6160. }
  6161. } // namespace google
  6162. } // namespace protobuf
  6163. #endif // SWIG
  6164. // @@protoc_insertion_point(global_scope)
  6165. #endif // PROTOBUF_google_2fprotobuf_2fdescriptor_2eproto__INCLUDED