descriptor.pb.h 294 KB

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