descriptor.pb.h 485 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/descriptor.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/generated_enum_reflection.h>
  28. #include <google/protobuf/unknown_field_set.h>
  29. // @@protoc_insertion_point(includes)
  30. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fdescriptor_2eproto LIBPROTOBUF_EXPORT
  31. namespace protobuf_google_2fprotobuf_2fdescriptor_2eproto {
  32. // Internal implementation detail -- do not use these members.
  33. struct LIBPROTOBUF_EXPORT TableStruct {
  34. static const ::google::protobuf::internal::ParseTableField entries[];
  35. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  36. static const ::google::protobuf::internal::ParseTable schema[27];
  37. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  38. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  39. static const ::google::protobuf::uint32 offsets[];
  40. };
  41. void LIBPROTOBUF_EXPORT AddDescriptors();
  42. } // namespace protobuf_google_2fprotobuf_2fdescriptor_2eproto
  43. namespace google {
  44. namespace protobuf {
  45. class DescriptorProto;
  46. class DescriptorProtoDefaultTypeInternal;
  47. LIBPROTOBUF_EXPORT extern DescriptorProtoDefaultTypeInternal _DescriptorProto_default_instance_;
  48. class DescriptorProto_ExtensionRange;
  49. class DescriptorProto_ExtensionRangeDefaultTypeInternal;
  50. LIBPROTOBUF_EXPORT extern DescriptorProto_ExtensionRangeDefaultTypeInternal _DescriptorProto_ExtensionRange_default_instance_;
  51. class DescriptorProto_ReservedRange;
  52. class DescriptorProto_ReservedRangeDefaultTypeInternal;
  53. LIBPROTOBUF_EXPORT extern DescriptorProto_ReservedRangeDefaultTypeInternal _DescriptorProto_ReservedRange_default_instance_;
  54. class EnumDescriptorProto;
  55. class EnumDescriptorProtoDefaultTypeInternal;
  56. LIBPROTOBUF_EXPORT extern EnumDescriptorProtoDefaultTypeInternal _EnumDescriptorProto_default_instance_;
  57. class EnumDescriptorProto_EnumReservedRange;
  58. class EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal;
  59. LIBPROTOBUF_EXPORT extern EnumDescriptorProto_EnumReservedRangeDefaultTypeInternal _EnumDescriptorProto_EnumReservedRange_default_instance_;
  60. class EnumOptions;
  61. class EnumOptionsDefaultTypeInternal;
  62. LIBPROTOBUF_EXPORT extern EnumOptionsDefaultTypeInternal _EnumOptions_default_instance_;
  63. class EnumValueDescriptorProto;
  64. class EnumValueDescriptorProtoDefaultTypeInternal;
  65. LIBPROTOBUF_EXPORT extern EnumValueDescriptorProtoDefaultTypeInternal _EnumValueDescriptorProto_default_instance_;
  66. class EnumValueOptions;
  67. class EnumValueOptionsDefaultTypeInternal;
  68. LIBPROTOBUF_EXPORT extern EnumValueOptionsDefaultTypeInternal _EnumValueOptions_default_instance_;
  69. class ExtensionRangeOptions;
  70. class ExtensionRangeOptionsDefaultTypeInternal;
  71. LIBPROTOBUF_EXPORT extern ExtensionRangeOptionsDefaultTypeInternal _ExtensionRangeOptions_default_instance_;
  72. class FieldDescriptorProto;
  73. class FieldDescriptorProtoDefaultTypeInternal;
  74. LIBPROTOBUF_EXPORT extern FieldDescriptorProtoDefaultTypeInternal _FieldDescriptorProto_default_instance_;
  75. class FieldOptions;
  76. class FieldOptionsDefaultTypeInternal;
  77. LIBPROTOBUF_EXPORT extern FieldOptionsDefaultTypeInternal _FieldOptions_default_instance_;
  78. class FileDescriptorProto;
  79. class FileDescriptorProtoDefaultTypeInternal;
  80. LIBPROTOBUF_EXPORT extern FileDescriptorProtoDefaultTypeInternal _FileDescriptorProto_default_instance_;
  81. class FileDescriptorSet;
  82. class FileDescriptorSetDefaultTypeInternal;
  83. LIBPROTOBUF_EXPORT extern FileDescriptorSetDefaultTypeInternal _FileDescriptorSet_default_instance_;
  84. class FileOptions;
  85. class FileOptionsDefaultTypeInternal;
  86. LIBPROTOBUF_EXPORT extern FileOptionsDefaultTypeInternal _FileOptions_default_instance_;
  87. class GeneratedCodeInfo;
  88. class GeneratedCodeInfoDefaultTypeInternal;
  89. LIBPROTOBUF_EXPORT extern GeneratedCodeInfoDefaultTypeInternal _GeneratedCodeInfo_default_instance_;
  90. class GeneratedCodeInfo_Annotation;
  91. class GeneratedCodeInfo_AnnotationDefaultTypeInternal;
  92. LIBPROTOBUF_EXPORT extern GeneratedCodeInfo_AnnotationDefaultTypeInternal _GeneratedCodeInfo_Annotation_default_instance_;
  93. class MessageOptions;
  94. class MessageOptionsDefaultTypeInternal;
  95. LIBPROTOBUF_EXPORT extern MessageOptionsDefaultTypeInternal _MessageOptions_default_instance_;
  96. class MethodDescriptorProto;
  97. class MethodDescriptorProtoDefaultTypeInternal;
  98. LIBPROTOBUF_EXPORT extern MethodDescriptorProtoDefaultTypeInternal _MethodDescriptorProto_default_instance_;
  99. class MethodOptions;
  100. class MethodOptionsDefaultTypeInternal;
  101. LIBPROTOBUF_EXPORT extern MethodOptionsDefaultTypeInternal _MethodOptions_default_instance_;
  102. class OneofDescriptorProto;
  103. class OneofDescriptorProtoDefaultTypeInternal;
  104. LIBPROTOBUF_EXPORT extern OneofDescriptorProtoDefaultTypeInternal _OneofDescriptorProto_default_instance_;
  105. class OneofOptions;
  106. class OneofOptionsDefaultTypeInternal;
  107. LIBPROTOBUF_EXPORT extern OneofOptionsDefaultTypeInternal _OneofOptions_default_instance_;
  108. class ServiceDescriptorProto;
  109. class ServiceDescriptorProtoDefaultTypeInternal;
  110. LIBPROTOBUF_EXPORT extern ServiceDescriptorProtoDefaultTypeInternal _ServiceDescriptorProto_default_instance_;
  111. class ServiceOptions;
  112. class ServiceOptionsDefaultTypeInternal;
  113. LIBPROTOBUF_EXPORT extern ServiceOptionsDefaultTypeInternal _ServiceOptions_default_instance_;
  114. class SourceCodeInfo;
  115. class SourceCodeInfoDefaultTypeInternal;
  116. LIBPROTOBUF_EXPORT extern SourceCodeInfoDefaultTypeInternal _SourceCodeInfo_default_instance_;
  117. class SourceCodeInfo_Location;
  118. class SourceCodeInfo_LocationDefaultTypeInternal;
  119. LIBPROTOBUF_EXPORT extern SourceCodeInfo_LocationDefaultTypeInternal _SourceCodeInfo_Location_default_instance_;
  120. class UninterpretedOption;
  121. class UninterpretedOptionDefaultTypeInternal;
  122. LIBPROTOBUF_EXPORT extern UninterpretedOptionDefaultTypeInternal _UninterpretedOption_default_instance_;
  123. class UninterpretedOption_NamePart;
  124. class UninterpretedOption_NamePartDefaultTypeInternal;
  125. LIBPROTOBUF_EXPORT extern UninterpretedOption_NamePartDefaultTypeInternal _UninterpretedOption_NamePart_default_instance_;
  126. } // namespace protobuf
  127. } // namespace google
  128. namespace google {
  129. namespace protobuf {
  130. template<> LIBPROTOBUF_EXPORT ::google::protobuf::DescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::DescriptorProto>(Arena*);
  131. template<> LIBPROTOBUF_EXPORT ::google::protobuf::DescriptorProto_ExtensionRange* Arena::CreateMaybeMessage<::google::protobuf::DescriptorProto_ExtensionRange>(Arena*);
  132. template<> LIBPROTOBUF_EXPORT ::google::protobuf::DescriptorProto_ReservedRange* Arena::CreateMaybeMessage<::google::protobuf::DescriptorProto_ReservedRange>(Arena*);
  133. template<> LIBPROTOBUF_EXPORT ::google::protobuf::EnumDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::EnumDescriptorProto>(Arena*);
  134. template<> LIBPROTOBUF_EXPORT ::google::protobuf::EnumDescriptorProto_EnumReservedRange* Arena::CreateMaybeMessage<::google::protobuf::EnumDescriptorProto_EnumReservedRange>(Arena*);
  135. template<> LIBPROTOBUF_EXPORT ::google::protobuf::EnumOptions* Arena::CreateMaybeMessage<::google::protobuf::EnumOptions>(Arena*);
  136. template<> LIBPROTOBUF_EXPORT ::google::protobuf::EnumValueDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::EnumValueDescriptorProto>(Arena*);
  137. template<> LIBPROTOBUF_EXPORT ::google::protobuf::EnumValueOptions* Arena::CreateMaybeMessage<::google::protobuf::EnumValueOptions>(Arena*);
  138. template<> LIBPROTOBUF_EXPORT ::google::protobuf::ExtensionRangeOptions* Arena::CreateMaybeMessage<::google::protobuf::ExtensionRangeOptions>(Arena*);
  139. template<> LIBPROTOBUF_EXPORT ::google::protobuf::FieldDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::FieldDescriptorProto>(Arena*);
  140. template<> LIBPROTOBUF_EXPORT ::google::protobuf::FieldOptions* Arena::CreateMaybeMessage<::google::protobuf::FieldOptions>(Arena*);
  141. template<> LIBPROTOBUF_EXPORT ::google::protobuf::FileDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::FileDescriptorProto>(Arena*);
  142. template<> LIBPROTOBUF_EXPORT ::google::protobuf::FileDescriptorSet* Arena::CreateMaybeMessage<::google::protobuf::FileDescriptorSet>(Arena*);
  143. template<> LIBPROTOBUF_EXPORT ::google::protobuf::FileOptions* Arena::CreateMaybeMessage<::google::protobuf::FileOptions>(Arena*);
  144. template<> LIBPROTOBUF_EXPORT ::google::protobuf::GeneratedCodeInfo* Arena::CreateMaybeMessage<::google::protobuf::GeneratedCodeInfo>(Arena*);
  145. template<> LIBPROTOBUF_EXPORT ::google::protobuf::GeneratedCodeInfo_Annotation* Arena::CreateMaybeMessage<::google::protobuf::GeneratedCodeInfo_Annotation>(Arena*);
  146. template<> LIBPROTOBUF_EXPORT ::google::protobuf::MessageOptions* Arena::CreateMaybeMessage<::google::protobuf::MessageOptions>(Arena*);
  147. template<> LIBPROTOBUF_EXPORT ::google::protobuf::MethodDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::MethodDescriptorProto>(Arena*);
  148. template<> LIBPROTOBUF_EXPORT ::google::protobuf::MethodOptions* Arena::CreateMaybeMessage<::google::protobuf::MethodOptions>(Arena*);
  149. template<> LIBPROTOBUF_EXPORT ::google::protobuf::OneofDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::OneofDescriptorProto>(Arena*);
  150. template<> LIBPROTOBUF_EXPORT ::google::protobuf::OneofOptions* Arena::CreateMaybeMessage<::google::protobuf::OneofOptions>(Arena*);
  151. template<> LIBPROTOBUF_EXPORT ::google::protobuf::ServiceDescriptorProto* Arena::CreateMaybeMessage<::google::protobuf::ServiceDescriptorProto>(Arena*);
  152. template<> LIBPROTOBUF_EXPORT ::google::protobuf::ServiceOptions* Arena::CreateMaybeMessage<::google::protobuf::ServiceOptions>(Arena*);
  153. template<> LIBPROTOBUF_EXPORT ::google::protobuf::SourceCodeInfo* Arena::CreateMaybeMessage<::google::protobuf::SourceCodeInfo>(Arena*);
  154. template<> LIBPROTOBUF_EXPORT ::google::protobuf::SourceCodeInfo_Location* Arena::CreateMaybeMessage<::google::protobuf::SourceCodeInfo_Location>(Arena*);
  155. template<> LIBPROTOBUF_EXPORT ::google::protobuf::UninterpretedOption* Arena::CreateMaybeMessage<::google::protobuf::UninterpretedOption>(Arena*);
  156. template<> LIBPROTOBUF_EXPORT ::google::protobuf::UninterpretedOption_NamePart* Arena::CreateMaybeMessage<::google::protobuf::UninterpretedOption_NamePart>(Arena*);
  157. } // namespace protobuf
  158. } // namespace google
  159. namespace google {
  160. namespace protobuf {
  161. enum FieldDescriptorProto_Type {
  162. FieldDescriptorProto_Type_TYPE_DOUBLE = 1,
  163. FieldDescriptorProto_Type_TYPE_FLOAT = 2,
  164. FieldDescriptorProto_Type_TYPE_INT64 = 3,
  165. FieldDescriptorProto_Type_TYPE_UINT64 = 4,
  166. FieldDescriptorProto_Type_TYPE_INT32 = 5,
  167. FieldDescriptorProto_Type_TYPE_FIXED64 = 6,
  168. FieldDescriptorProto_Type_TYPE_FIXED32 = 7,
  169. FieldDescriptorProto_Type_TYPE_BOOL = 8,
  170. FieldDescriptorProto_Type_TYPE_STRING = 9,
  171. FieldDescriptorProto_Type_TYPE_GROUP = 10,
  172. FieldDescriptorProto_Type_TYPE_MESSAGE = 11,
  173. FieldDescriptorProto_Type_TYPE_BYTES = 12,
  174. FieldDescriptorProto_Type_TYPE_UINT32 = 13,
  175. FieldDescriptorProto_Type_TYPE_ENUM = 14,
  176. FieldDescriptorProto_Type_TYPE_SFIXED32 = 15,
  177. FieldDescriptorProto_Type_TYPE_SFIXED64 = 16,
  178. FieldDescriptorProto_Type_TYPE_SINT32 = 17,
  179. FieldDescriptorProto_Type_TYPE_SINT64 = 18
  180. };
  181. LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Type_IsValid(int value);
  182. const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MIN = FieldDescriptorProto_Type_TYPE_DOUBLE;
  183. const FieldDescriptorProto_Type FieldDescriptorProto_Type_Type_MAX = FieldDescriptorProto_Type_TYPE_SINT64;
  184. const int FieldDescriptorProto_Type_Type_ARRAYSIZE = FieldDescriptorProto_Type_Type_MAX + 1;
  185. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Type_descriptor();
  186. inline const ::std::string& FieldDescriptorProto_Type_Name(FieldDescriptorProto_Type value) {
  187. return ::google::protobuf::internal::NameOfEnum(
  188. FieldDescriptorProto_Type_descriptor(), value);
  189. }
  190. inline bool FieldDescriptorProto_Type_Parse(
  191. const ::std::string& name, FieldDescriptorProto_Type* value) {
  192. return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Type>(
  193. FieldDescriptorProto_Type_descriptor(), name, value);
  194. }
  195. enum FieldDescriptorProto_Label {
  196. FieldDescriptorProto_Label_LABEL_OPTIONAL = 1,
  197. FieldDescriptorProto_Label_LABEL_REQUIRED = 2,
  198. FieldDescriptorProto_Label_LABEL_REPEATED = 3
  199. };
  200. LIBPROTOBUF_EXPORT bool FieldDescriptorProto_Label_IsValid(int value);
  201. const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MIN = FieldDescriptorProto_Label_LABEL_OPTIONAL;
  202. const FieldDescriptorProto_Label FieldDescriptorProto_Label_Label_MAX = FieldDescriptorProto_Label_LABEL_REPEATED;
  203. const int FieldDescriptorProto_Label_Label_ARRAYSIZE = FieldDescriptorProto_Label_Label_MAX + 1;
  204. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldDescriptorProto_Label_descriptor();
  205. inline const ::std::string& FieldDescriptorProto_Label_Name(FieldDescriptorProto_Label value) {
  206. return ::google::protobuf::internal::NameOfEnum(
  207. FieldDescriptorProto_Label_descriptor(), value);
  208. }
  209. inline bool FieldDescriptorProto_Label_Parse(
  210. const ::std::string& name, FieldDescriptorProto_Label* value) {
  211. return ::google::protobuf::internal::ParseNamedEnum<FieldDescriptorProto_Label>(
  212. FieldDescriptorProto_Label_descriptor(), name, value);
  213. }
  214. enum FileOptions_OptimizeMode {
  215. FileOptions_OptimizeMode_SPEED = 1,
  216. FileOptions_OptimizeMode_CODE_SIZE = 2,
  217. FileOptions_OptimizeMode_LITE_RUNTIME = 3
  218. };
  219. LIBPROTOBUF_EXPORT bool FileOptions_OptimizeMode_IsValid(int value);
  220. const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MIN = FileOptions_OptimizeMode_SPEED;
  221. const FileOptions_OptimizeMode FileOptions_OptimizeMode_OptimizeMode_MAX = FileOptions_OptimizeMode_LITE_RUNTIME;
  222. const int FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE = FileOptions_OptimizeMode_OptimizeMode_MAX + 1;
  223. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FileOptions_OptimizeMode_descriptor();
  224. inline const ::std::string& FileOptions_OptimizeMode_Name(FileOptions_OptimizeMode value) {
  225. return ::google::protobuf::internal::NameOfEnum(
  226. FileOptions_OptimizeMode_descriptor(), value);
  227. }
  228. inline bool FileOptions_OptimizeMode_Parse(
  229. const ::std::string& name, FileOptions_OptimizeMode* value) {
  230. return ::google::protobuf::internal::ParseNamedEnum<FileOptions_OptimizeMode>(
  231. FileOptions_OptimizeMode_descriptor(), name, value);
  232. }
  233. enum FieldOptions_CType {
  234. FieldOptions_CType_STRING = 0,
  235. FieldOptions_CType_CORD = 1,
  236. FieldOptions_CType_STRING_PIECE = 2
  237. };
  238. LIBPROTOBUF_EXPORT bool FieldOptions_CType_IsValid(int value);
  239. const FieldOptions_CType FieldOptions_CType_CType_MIN = FieldOptions_CType_STRING;
  240. const FieldOptions_CType FieldOptions_CType_CType_MAX = FieldOptions_CType_STRING_PIECE;
  241. const int FieldOptions_CType_CType_ARRAYSIZE = FieldOptions_CType_CType_MAX + 1;
  242. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_CType_descriptor();
  243. inline const ::std::string& FieldOptions_CType_Name(FieldOptions_CType value) {
  244. return ::google::protobuf::internal::NameOfEnum(
  245. FieldOptions_CType_descriptor(), value);
  246. }
  247. inline bool FieldOptions_CType_Parse(
  248. const ::std::string& name, FieldOptions_CType* value) {
  249. return ::google::protobuf::internal::ParseNamedEnum<FieldOptions_CType>(
  250. FieldOptions_CType_descriptor(), name, value);
  251. }
  252. enum FieldOptions_JSType {
  253. FieldOptions_JSType_JS_NORMAL = 0,
  254. FieldOptions_JSType_JS_STRING = 1,
  255. FieldOptions_JSType_JS_NUMBER = 2
  256. };
  257. LIBPROTOBUF_EXPORT bool FieldOptions_JSType_IsValid(int value);
  258. const FieldOptions_JSType FieldOptions_JSType_JSType_MIN = FieldOptions_JSType_JS_NORMAL;
  259. const FieldOptions_JSType FieldOptions_JSType_JSType_MAX = FieldOptions_JSType_JS_NUMBER;
  260. const int FieldOptions_JSType_JSType_ARRAYSIZE = FieldOptions_JSType_JSType_MAX + 1;
  261. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* FieldOptions_JSType_descriptor();
  262. inline const ::std::string& FieldOptions_JSType_Name(FieldOptions_JSType value) {
  263. return ::google::protobuf::internal::NameOfEnum(
  264. FieldOptions_JSType_descriptor(), value);
  265. }
  266. inline bool FieldOptions_JSType_Parse(
  267. const ::std::string& name, FieldOptions_JSType* value) {
  268. return ::google::protobuf::internal::ParseNamedEnum<FieldOptions_JSType>(
  269. FieldOptions_JSType_descriptor(), name, value);
  270. }
  271. enum MethodOptions_IdempotencyLevel {
  272. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN = 0,
  273. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS = 1,
  274. MethodOptions_IdempotencyLevel_IDEMPOTENT = 2
  275. };
  276. LIBPROTOBUF_EXPORT bool MethodOptions_IdempotencyLevel_IsValid(int value);
  277. const MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN = MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  278. const MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX = MethodOptions_IdempotencyLevel_IDEMPOTENT;
  279. const int MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE = MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX + 1;
  280. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* MethodOptions_IdempotencyLevel_descriptor();
  281. inline const ::std::string& MethodOptions_IdempotencyLevel_Name(MethodOptions_IdempotencyLevel value) {
  282. return ::google::protobuf::internal::NameOfEnum(
  283. MethodOptions_IdempotencyLevel_descriptor(), value);
  284. }
  285. inline bool MethodOptions_IdempotencyLevel_Parse(
  286. const ::std::string& name, MethodOptions_IdempotencyLevel* value) {
  287. return ::google::protobuf::internal::ParseNamedEnum<MethodOptions_IdempotencyLevel>(
  288. MethodOptions_IdempotencyLevel_descriptor(), name, value);
  289. }
  290. // ===================================================================
  291. class LIBPROTOBUF_EXPORT FileDescriptorSet : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorSet) */ {
  292. public:
  293. FileDescriptorSet();
  294. virtual ~FileDescriptorSet();
  295. FileDescriptorSet(const FileDescriptorSet& from);
  296. inline FileDescriptorSet& operator=(const FileDescriptorSet& from) {
  297. CopyFrom(from);
  298. return *this;
  299. }
  300. #if LANG_CXX11
  301. FileDescriptorSet(FileDescriptorSet&& from) noexcept
  302. : FileDescriptorSet() {
  303. *this = ::std::move(from);
  304. }
  305. inline FileDescriptorSet& operator=(FileDescriptorSet&& from) noexcept {
  306. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  307. if (this != &from) InternalSwap(&from);
  308. } else {
  309. CopyFrom(from);
  310. }
  311. return *this;
  312. }
  313. #endif
  314. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  315. return _internal_metadata_.unknown_fields();
  316. }
  317. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  318. return _internal_metadata_.mutable_unknown_fields();
  319. }
  320. inline ::google::protobuf::Arena* GetArena() const final {
  321. return GetArenaNoVirtual();
  322. }
  323. inline void* GetMaybeArenaPointer() const final {
  324. return MaybeArenaPtr();
  325. }
  326. static const ::google::protobuf::Descriptor* descriptor();
  327. static const FileDescriptorSet& default_instance();
  328. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  329. static inline const FileDescriptorSet* internal_default_instance() {
  330. return reinterpret_cast<const FileDescriptorSet*>(
  331. &_FileDescriptorSet_default_instance_);
  332. }
  333. static constexpr int kIndexInFileMessages =
  334. 0;
  335. void UnsafeArenaSwap(FileDescriptorSet* other);
  336. void Swap(FileDescriptorSet* other);
  337. friend void swap(FileDescriptorSet& a, FileDescriptorSet& b) {
  338. a.Swap(&b);
  339. }
  340. // implements Message ----------------------------------------------
  341. inline FileDescriptorSet* New() const final {
  342. return CreateMaybeMessage<FileDescriptorSet>(NULL);
  343. }
  344. FileDescriptorSet* New(::google::protobuf::Arena* arena) const final {
  345. return CreateMaybeMessage<FileDescriptorSet>(arena);
  346. }
  347. void CopyFrom(const ::google::protobuf::Message& from) final;
  348. void MergeFrom(const ::google::protobuf::Message& from) final;
  349. void CopyFrom(const FileDescriptorSet& from);
  350. void MergeFrom(const FileDescriptorSet& from);
  351. void Clear() final;
  352. bool IsInitialized() const final;
  353. size_t ByteSizeLong() const final;
  354. bool MergePartialFromCodedStream(
  355. ::google::protobuf::io::CodedInputStream* input) final;
  356. void SerializeWithCachedSizes(
  357. ::google::protobuf::io::CodedOutputStream* output) const final;
  358. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  359. bool deterministic, ::google::protobuf::uint8* target) const final;
  360. int GetCachedSize() const final { return _cached_size_.Get(); }
  361. private:
  362. void SharedCtor();
  363. void SharedDtor();
  364. void SetCachedSize(int size) const final;
  365. void InternalSwap(FileDescriptorSet* other);
  366. protected:
  367. explicit FileDescriptorSet(::google::protobuf::Arena* arena);
  368. private:
  369. static void ArenaDtor(void* object);
  370. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  371. private:
  372. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  373. return _internal_metadata_.arena();
  374. }
  375. inline void* MaybeArenaPtr() const {
  376. return _internal_metadata_.raw_arena_ptr();
  377. }
  378. public:
  379. ::google::protobuf::Metadata GetMetadata() const final;
  380. // nested types ----------------------------------------------------
  381. // accessors -------------------------------------------------------
  382. // repeated .google.protobuf.FileDescriptorProto file = 1;
  383. int file_size() const;
  384. void clear_file();
  385. static const int kFileFieldNumber = 1;
  386. ::google::protobuf::FileDescriptorProto* mutable_file(int index);
  387. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  388. mutable_file();
  389. const ::google::protobuf::FileDescriptorProto& file(int index) const;
  390. ::google::protobuf::FileDescriptorProto* add_file();
  391. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  392. file() const;
  393. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorSet)
  394. private:
  395. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  396. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  397. typedef void InternalArenaConstructable_;
  398. typedef void DestructorSkippable_;
  399. ::google::protobuf::internal::HasBits<1> _has_bits_;
  400. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  401. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto > file_;
  402. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  403. };
  404. // -------------------------------------------------------------------
  405. class LIBPROTOBUF_EXPORT FileDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileDescriptorProto) */ {
  406. public:
  407. FileDescriptorProto();
  408. virtual ~FileDescriptorProto();
  409. FileDescriptorProto(const FileDescriptorProto& from);
  410. inline FileDescriptorProto& operator=(const FileDescriptorProto& from) {
  411. CopyFrom(from);
  412. return *this;
  413. }
  414. #if LANG_CXX11
  415. FileDescriptorProto(FileDescriptorProto&& from) noexcept
  416. : FileDescriptorProto() {
  417. *this = ::std::move(from);
  418. }
  419. inline FileDescriptorProto& operator=(FileDescriptorProto&& from) noexcept {
  420. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  421. if (this != &from) InternalSwap(&from);
  422. } else {
  423. CopyFrom(from);
  424. }
  425. return *this;
  426. }
  427. #endif
  428. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  429. return _internal_metadata_.unknown_fields();
  430. }
  431. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  432. return _internal_metadata_.mutable_unknown_fields();
  433. }
  434. inline ::google::protobuf::Arena* GetArena() const final {
  435. return GetArenaNoVirtual();
  436. }
  437. inline void* GetMaybeArenaPointer() const final {
  438. return MaybeArenaPtr();
  439. }
  440. static const ::google::protobuf::Descriptor* descriptor();
  441. static const FileDescriptorProto& default_instance();
  442. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  443. static inline const FileDescriptorProto* internal_default_instance() {
  444. return reinterpret_cast<const FileDescriptorProto*>(
  445. &_FileDescriptorProto_default_instance_);
  446. }
  447. static constexpr int kIndexInFileMessages =
  448. 1;
  449. void UnsafeArenaSwap(FileDescriptorProto* other);
  450. void Swap(FileDescriptorProto* other);
  451. friend void swap(FileDescriptorProto& a, FileDescriptorProto& b) {
  452. a.Swap(&b);
  453. }
  454. // implements Message ----------------------------------------------
  455. inline FileDescriptorProto* New() const final {
  456. return CreateMaybeMessage<FileDescriptorProto>(NULL);
  457. }
  458. FileDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  459. return CreateMaybeMessage<FileDescriptorProto>(arena);
  460. }
  461. void CopyFrom(const ::google::protobuf::Message& from) final;
  462. void MergeFrom(const ::google::protobuf::Message& from) final;
  463. void CopyFrom(const FileDescriptorProto& from);
  464. void MergeFrom(const FileDescriptorProto& from);
  465. void Clear() final;
  466. bool IsInitialized() const final;
  467. size_t ByteSizeLong() const final;
  468. bool MergePartialFromCodedStream(
  469. ::google::protobuf::io::CodedInputStream* input) final;
  470. void SerializeWithCachedSizes(
  471. ::google::protobuf::io::CodedOutputStream* output) const final;
  472. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  473. bool deterministic, ::google::protobuf::uint8* target) const final;
  474. int GetCachedSize() const final { return _cached_size_.Get(); }
  475. private:
  476. void SharedCtor();
  477. void SharedDtor();
  478. void SetCachedSize(int size) const final;
  479. void InternalSwap(FileDescriptorProto* other);
  480. protected:
  481. explicit FileDescriptorProto(::google::protobuf::Arena* arena);
  482. private:
  483. static void ArenaDtor(void* object);
  484. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  485. private:
  486. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  487. return _internal_metadata_.arena();
  488. }
  489. inline void* MaybeArenaPtr() const {
  490. return _internal_metadata_.raw_arena_ptr();
  491. }
  492. public:
  493. ::google::protobuf::Metadata GetMetadata() const final;
  494. // nested types ----------------------------------------------------
  495. // accessors -------------------------------------------------------
  496. // repeated string dependency = 3;
  497. int dependency_size() const;
  498. void clear_dependency();
  499. static const int kDependencyFieldNumber = 3;
  500. const ::std::string& dependency(int index) const;
  501. ::std::string* mutable_dependency(int index);
  502. void set_dependency(int index, const ::std::string& value);
  503. #if LANG_CXX11
  504. void set_dependency(int index, ::std::string&& value);
  505. #endif
  506. void set_dependency(int index, const char* value);
  507. void set_dependency(int index, const char* value, size_t size);
  508. ::std::string* add_dependency();
  509. void add_dependency(const ::std::string& value);
  510. #if LANG_CXX11
  511. void add_dependency(::std::string&& value);
  512. #endif
  513. void add_dependency(const char* value);
  514. void add_dependency(const char* value, size_t size);
  515. const ::google::protobuf::RepeatedPtrField< ::std::string>& dependency() const;
  516. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_dependency();
  517. // repeated .google.protobuf.DescriptorProto message_type = 4;
  518. int message_type_size() const;
  519. void clear_message_type();
  520. static const int kMessageTypeFieldNumber = 4;
  521. ::google::protobuf::DescriptorProto* mutable_message_type(int index);
  522. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  523. mutable_message_type();
  524. const ::google::protobuf::DescriptorProto& message_type(int index) const;
  525. ::google::protobuf::DescriptorProto* add_message_type();
  526. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  527. message_type() const;
  528. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  529. int enum_type_size() const;
  530. void clear_enum_type();
  531. static const int kEnumTypeFieldNumber = 5;
  532. ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
  533. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  534. mutable_enum_type();
  535. const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
  536. ::google::protobuf::EnumDescriptorProto* add_enum_type();
  537. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  538. enum_type() const;
  539. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  540. int service_size() const;
  541. void clear_service();
  542. static const int kServiceFieldNumber = 6;
  543. ::google::protobuf::ServiceDescriptorProto* mutable_service(int index);
  544. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
  545. mutable_service();
  546. const ::google::protobuf::ServiceDescriptorProto& service(int index) const;
  547. ::google::protobuf::ServiceDescriptorProto* add_service();
  548. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
  549. service() const;
  550. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  551. int extension_size() const;
  552. void clear_extension();
  553. static const int kExtensionFieldNumber = 7;
  554. ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
  555. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  556. mutable_extension();
  557. const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
  558. ::google::protobuf::FieldDescriptorProto* add_extension();
  559. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  560. extension() const;
  561. // repeated int32 public_dependency = 10;
  562. int public_dependency_size() const;
  563. void clear_public_dependency();
  564. static const int kPublicDependencyFieldNumber = 10;
  565. ::google::protobuf::int32 public_dependency(int index) const;
  566. void set_public_dependency(int index, ::google::protobuf::int32 value);
  567. void add_public_dependency(::google::protobuf::int32 value);
  568. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  569. public_dependency() const;
  570. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  571. mutable_public_dependency();
  572. // repeated int32 weak_dependency = 11;
  573. int weak_dependency_size() const;
  574. void clear_weak_dependency();
  575. static const int kWeakDependencyFieldNumber = 11;
  576. ::google::protobuf::int32 weak_dependency(int index) const;
  577. void set_weak_dependency(int index, ::google::protobuf::int32 value);
  578. void add_weak_dependency(::google::protobuf::int32 value);
  579. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  580. weak_dependency() const;
  581. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  582. mutable_weak_dependency();
  583. // optional string name = 1;
  584. bool has_name() const;
  585. void clear_name();
  586. static const int kNameFieldNumber = 1;
  587. const ::std::string& name() const;
  588. void set_name(const ::std::string& value);
  589. #if LANG_CXX11
  590. void set_name(::std::string&& value);
  591. #endif
  592. void set_name(const char* value);
  593. void set_name(const char* value, size_t size);
  594. ::std::string* mutable_name();
  595. ::std::string* release_name();
  596. void set_allocated_name(::std::string* name);
  597. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  598. " string fields are deprecated and will be removed in a"
  599. " future release.")
  600. ::std::string* unsafe_arena_release_name();
  601. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  602. " string fields are deprecated and will be removed in a"
  603. " future release.")
  604. void unsafe_arena_set_allocated_name(
  605. ::std::string* name);
  606. // optional string package = 2;
  607. bool has_package() const;
  608. void clear_package();
  609. static const int kPackageFieldNumber = 2;
  610. const ::std::string& package() const;
  611. void set_package(const ::std::string& value);
  612. #if LANG_CXX11
  613. void set_package(::std::string&& value);
  614. #endif
  615. void set_package(const char* value);
  616. void set_package(const char* value, size_t size);
  617. ::std::string* mutable_package();
  618. ::std::string* release_package();
  619. void set_allocated_package(::std::string* package);
  620. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  621. " string fields are deprecated and will be removed in a"
  622. " future release.")
  623. ::std::string* unsafe_arena_release_package();
  624. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  625. " string fields are deprecated and will be removed in a"
  626. " future release.")
  627. void unsafe_arena_set_allocated_package(
  628. ::std::string* package);
  629. // optional string syntax = 12;
  630. bool has_syntax() const;
  631. void clear_syntax();
  632. static const int kSyntaxFieldNumber = 12;
  633. const ::std::string& syntax() const;
  634. void set_syntax(const ::std::string& value);
  635. #if LANG_CXX11
  636. void set_syntax(::std::string&& value);
  637. #endif
  638. void set_syntax(const char* value);
  639. void set_syntax(const char* value, size_t size);
  640. ::std::string* mutable_syntax();
  641. ::std::string* release_syntax();
  642. void set_allocated_syntax(::std::string* syntax);
  643. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  644. " string fields are deprecated and will be removed in a"
  645. " future release.")
  646. ::std::string* unsafe_arena_release_syntax();
  647. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  648. " string fields are deprecated and will be removed in a"
  649. " future release.")
  650. void unsafe_arena_set_allocated_syntax(
  651. ::std::string* syntax);
  652. // optional .google.protobuf.FileOptions options = 8;
  653. bool has_options() const;
  654. void clear_options();
  655. static const int kOptionsFieldNumber = 8;
  656. private:
  657. const ::google::protobuf::FileOptions& _internal_options() const;
  658. public:
  659. const ::google::protobuf::FileOptions& options() const;
  660. ::google::protobuf::FileOptions* release_options();
  661. ::google::protobuf::FileOptions* mutable_options();
  662. void set_allocated_options(::google::protobuf::FileOptions* options);
  663. void unsafe_arena_set_allocated_options(
  664. ::google::protobuf::FileOptions* options);
  665. ::google::protobuf::FileOptions* unsafe_arena_release_options();
  666. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  667. bool has_source_code_info() const;
  668. void clear_source_code_info();
  669. static const int kSourceCodeInfoFieldNumber = 9;
  670. private:
  671. const ::google::protobuf::SourceCodeInfo& _internal_source_code_info() const;
  672. public:
  673. const ::google::protobuf::SourceCodeInfo& source_code_info() const;
  674. ::google::protobuf::SourceCodeInfo* release_source_code_info();
  675. ::google::protobuf::SourceCodeInfo* mutable_source_code_info();
  676. void set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info);
  677. void unsafe_arena_set_allocated_source_code_info(
  678. ::google::protobuf::SourceCodeInfo* source_code_info);
  679. ::google::protobuf::SourceCodeInfo* unsafe_arena_release_source_code_info();
  680. // @@protoc_insertion_point(class_scope:google.protobuf.FileDescriptorProto)
  681. private:
  682. void set_has_name();
  683. void clear_has_name();
  684. void set_has_package();
  685. void clear_has_package();
  686. void set_has_options();
  687. void clear_has_options();
  688. void set_has_source_code_info();
  689. void clear_has_source_code_info();
  690. void set_has_syntax();
  691. void clear_has_syntax();
  692. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  693. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  694. typedef void InternalArenaConstructable_;
  695. typedef void DestructorSkippable_;
  696. ::google::protobuf::internal::HasBits<1> _has_bits_;
  697. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  698. ::google::protobuf::RepeatedPtrField< ::std::string> dependency_;
  699. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > message_type_;
  700. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
  701. ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto > service_;
  702. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
  703. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > public_dependency_;
  704. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > weak_dependency_;
  705. ::google::protobuf::internal::ArenaStringPtr name_;
  706. ::google::protobuf::internal::ArenaStringPtr package_;
  707. ::google::protobuf::internal::ArenaStringPtr syntax_;
  708. ::google::protobuf::FileOptions* options_;
  709. ::google::protobuf::SourceCodeInfo* source_code_info_;
  710. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  711. };
  712. // -------------------------------------------------------------------
  713. class LIBPROTOBUF_EXPORT DescriptorProto_ExtensionRange : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ExtensionRange) */ {
  714. public:
  715. DescriptorProto_ExtensionRange();
  716. virtual ~DescriptorProto_ExtensionRange();
  717. DescriptorProto_ExtensionRange(const DescriptorProto_ExtensionRange& from);
  718. inline DescriptorProto_ExtensionRange& operator=(const DescriptorProto_ExtensionRange& from) {
  719. CopyFrom(from);
  720. return *this;
  721. }
  722. #if LANG_CXX11
  723. DescriptorProto_ExtensionRange(DescriptorProto_ExtensionRange&& from) noexcept
  724. : DescriptorProto_ExtensionRange() {
  725. *this = ::std::move(from);
  726. }
  727. inline DescriptorProto_ExtensionRange& operator=(DescriptorProto_ExtensionRange&& from) noexcept {
  728. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  729. if (this != &from) InternalSwap(&from);
  730. } else {
  731. CopyFrom(from);
  732. }
  733. return *this;
  734. }
  735. #endif
  736. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  737. return _internal_metadata_.unknown_fields();
  738. }
  739. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  740. return _internal_metadata_.mutable_unknown_fields();
  741. }
  742. inline ::google::protobuf::Arena* GetArena() const final {
  743. return GetArenaNoVirtual();
  744. }
  745. inline void* GetMaybeArenaPointer() const final {
  746. return MaybeArenaPtr();
  747. }
  748. static const ::google::protobuf::Descriptor* descriptor();
  749. static const DescriptorProto_ExtensionRange& default_instance();
  750. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  751. static inline const DescriptorProto_ExtensionRange* internal_default_instance() {
  752. return reinterpret_cast<const DescriptorProto_ExtensionRange*>(
  753. &_DescriptorProto_ExtensionRange_default_instance_);
  754. }
  755. static constexpr int kIndexInFileMessages =
  756. 2;
  757. void UnsafeArenaSwap(DescriptorProto_ExtensionRange* other);
  758. void Swap(DescriptorProto_ExtensionRange* other);
  759. friend void swap(DescriptorProto_ExtensionRange& a, DescriptorProto_ExtensionRange& b) {
  760. a.Swap(&b);
  761. }
  762. // implements Message ----------------------------------------------
  763. inline DescriptorProto_ExtensionRange* New() const final {
  764. return CreateMaybeMessage<DescriptorProto_ExtensionRange>(NULL);
  765. }
  766. DescriptorProto_ExtensionRange* New(::google::protobuf::Arena* arena) const final {
  767. return CreateMaybeMessage<DescriptorProto_ExtensionRange>(arena);
  768. }
  769. void CopyFrom(const ::google::protobuf::Message& from) final;
  770. void MergeFrom(const ::google::protobuf::Message& from) final;
  771. void CopyFrom(const DescriptorProto_ExtensionRange& from);
  772. void MergeFrom(const DescriptorProto_ExtensionRange& from);
  773. void Clear() final;
  774. bool IsInitialized() const final;
  775. size_t ByteSizeLong() const final;
  776. bool MergePartialFromCodedStream(
  777. ::google::protobuf::io::CodedInputStream* input) final;
  778. void SerializeWithCachedSizes(
  779. ::google::protobuf::io::CodedOutputStream* output) const final;
  780. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  781. bool deterministic, ::google::protobuf::uint8* target) const final;
  782. int GetCachedSize() const final { return _cached_size_.Get(); }
  783. private:
  784. void SharedCtor();
  785. void SharedDtor();
  786. void SetCachedSize(int size) const final;
  787. void InternalSwap(DescriptorProto_ExtensionRange* other);
  788. protected:
  789. explicit DescriptorProto_ExtensionRange(::google::protobuf::Arena* arena);
  790. private:
  791. static void ArenaDtor(void* object);
  792. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  793. private:
  794. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  795. return _internal_metadata_.arena();
  796. }
  797. inline void* MaybeArenaPtr() const {
  798. return _internal_metadata_.raw_arena_ptr();
  799. }
  800. public:
  801. ::google::protobuf::Metadata GetMetadata() const final;
  802. // nested types ----------------------------------------------------
  803. // accessors -------------------------------------------------------
  804. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  805. bool has_options() const;
  806. void clear_options();
  807. static const int kOptionsFieldNumber = 3;
  808. private:
  809. const ::google::protobuf::ExtensionRangeOptions& _internal_options() const;
  810. public:
  811. const ::google::protobuf::ExtensionRangeOptions& options() const;
  812. ::google::protobuf::ExtensionRangeOptions* release_options();
  813. ::google::protobuf::ExtensionRangeOptions* mutable_options();
  814. void set_allocated_options(::google::protobuf::ExtensionRangeOptions* options);
  815. void unsafe_arena_set_allocated_options(
  816. ::google::protobuf::ExtensionRangeOptions* options);
  817. ::google::protobuf::ExtensionRangeOptions* unsafe_arena_release_options();
  818. // optional int32 start = 1;
  819. bool has_start() const;
  820. void clear_start();
  821. static const int kStartFieldNumber = 1;
  822. ::google::protobuf::int32 start() const;
  823. void set_start(::google::protobuf::int32 value);
  824. // optional int32 end = 2;
  825. bool has_end() const;
  826. void clear_end();
  827. static const int kEndFieldNumber = 2;
  828. ::google::protobuf::int32 end() const;
  829. void set_end(::google::protobuf::int32 value);
  830. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ExtensionRange)
  831. private:
  832. void set_has_start();
  833. void clear_has_start();
  834. void set_has_end();
  835. void clear_has_end();
  836. void set_has_options();
  837. void clear_has_options();
  838. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  839. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  840. typedef void InternalArenaConstructable_;
  841. typedef void DestructorSkippable_;
  842. ::google::protobuf::internal::HasBits<1> _has_bits_;
  843. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  844. ::google::protobuf::ExtensionRangeOptions* options_;
  845. ::google::protobuf::int32 start_;
  846. ::google::protobuf::int32 end_;
  847. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  848. };
  849. // -------------------------------------------------------------------
  850. class LIBPROTOBUF_EXPORT DescriptorProto_ReservedRange : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto.ReservedRange) */ {
  851. public:
  852. DescriptorProto_ReservedRange();
  853. virtual ~DescriptorProto_ReservedRange();
  854. DescriptorProto_ReservedRange(const DescriptorProto_ReservedRange& from);
  855. inline DescriptorProto_ReservedRange& operator=(const DescriptorProto_ReservedRange& from) {
  856. CopyFrom(from);
  857. return *this;
  858. }
  859. #if LANG_CXX11
  860. DescriptorProto_ReservedRange(DescriptorProto_ReservedRange&& from) noexcept
  861. : DescriptorProto_ReservedRange() {
  862. *this = ::std::move(from);
  863. }
  864. inline DescriptorProto_ReservedRange& operator=(DescriptorProto_ReservedRange&& from) noexcept {
  865. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  866. if (this != &from) InternalSwap(&from);
  867. } else {
  868. CopyFrom(from);
  869. }
  870. return *this;
  871. }
  872. #endif
  873. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  874. return _internal_metadata_.unknown_fields();
  875. }
  876. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  877. return _internal_metadata_.mutable_unknown_fields();
  878. }
  879. inline ::google::protobuf::Arena* GetArena() const final {
  880. return GetArenaNoVirtual();
  881. }
  882. inline void* GetMaybeArenaPointer() const final {
  883. return MaybeArenaPtr();
  884. }
  885. static const ::google::protobuf::Descriptor* descriptor();
  886. static const DescriptorProto_ReservedRange& default_instance();
  887. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  888. static inline const DescriptorProto_ReservedRange* internal_default_instance() {
  889. return reinterpret_cast<const DescriptorProto_ReservedRange*>(
  890. &_DescriptorProto_ReservedRange_default_instance_);
  891. }
  892. static constexpr int kIndexInFileMessages =
  893. 3;
  894. void UnsafeArenaSwap(DescriptorProto_ReservedRange* other);
  895. void Swap(DescriptorProto_ReservedRange* other);
  896. friend void swap(DescriptorProto_ReservedRange& a, DescriptorProto_ReservedRange& b) {
  897. a.Swap(&b);
  898. }
  899. // implements Message ----------------------------------------------
  900. inline DescriptorProto_ReservedRange* New() const final {
  901. return CreateMaybeMessage<DescriptorProto_ReservedRange>(NULL);
  902. }
  903. DescriptorProto_ReservedRange* New(::google::protobuf::Arena* arena) const final {
  904. return CreateMaybeMessage<DescriptorProto_ReservedRange>(arena);
  905. }
  906. void CopyFrom(const ::google::protobuf::Message& from) final;
  907. void MergeFrom(const ::google::protobuf::Message& from) final;
  908. void CopyFrom(const DescriptorProto_ReservedRange& from);
  909. void MergeFrom(const DescriptorProto_ReservedRange& from);
  910. void Clear() final;
  911. bool IsInitialized() const final;
  912. size_t ByteSizeLong() const final;
  913. bool MergePartialFromCodedStream(
  914. ::google::protobuf::io::CodedInputStream* input) final;
  915. void SerializeWithCachedSizes(
  916. ::google::protobuf::io::CodedOutputStream* output) const final;
  917. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  918. bool deterministic, ::google::protobuf::uint8* target) const final;
  919. int GetCachedSize() const final { return _cached_size_.Get(); }
  920. private:
  921. void SharedCtor();
  922. void SharedDtor();
  923. void SetCachedSize(int size) const final;
  924. void InternalSwap(DescriptorProto_ReservedRange* other);
  925. protected:
  926. explicit DescriptorProto_ReservedRange(::google::protobuf::Arena* arena);
  927. private:
  928. static void ArenaDtor(void* object);
  929. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  930. private:
  931. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  932. return _internal_metadata_.arena();
  933. }
  934. inline void* MaybeArenaPtr() const {
  935. return _internal_metadata_.raw_arena_ptr();
  936. }
  937. public:
  938. ::google::protobuf::Metadata GetMetadata() const final;
  939. // nested types ----------------------------------------------------
  940. // accessors -------------------------------------------------------
  941. // optional int32 start = 1;
  942. bool has_start() const;
  943. void clear_start();
  944. static const int kStartFieldNumber = 1;
  945. ::google::protobuf::int32 start() const;
  946. void set_start(::google::protobuf::int32 value);
  947. // optional int32 end = 2;
  948. bool has_end() const;
  949. void clear_end();
  950. static const int kEndFieldNumber = 2;
  951. ::google::protobuf::int32 end() const;
  952. void set_end(::google::protobuf::int32 value);
  953. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto.ReservedRange)
  954. private:
  955. void set_has_start();
  956. void clear_has_start();
  957. void set_has_end();
  958. void clear_has_end();
  959. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  960. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  961. typedef void InternalArenaConstructable_;
  962. typedef void DestructorSkippable_;
  963. ::google::protobuf::internal::HasBits<1> _has_bits_;
  964. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  965. ::google::protobuf::int32 start_;
  966. ::google::protobuf::int32 end_;
  967. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  968. };
  969. // -------------------------------------------------------------------
  970. class LIBPROTOBUF_EXPORT DescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.DescriptorProto) */ {
  971. public:
  972. DescriptorProto();
  973. virtual ~DescriptorProto();
  974. DescriptorProto(const DescriptorProto& from);
  975. inline DescriptorProto& operator=(const DescriptorProto& from) {
  976. CopyFrom(from);
  977. return *this;
  978. }
  979. #if LANG_CXX11
  980. DescriptorProto(DescriptorProto&& from) noexcept
  981. : DescriptorProto() {
  982. *this = ::std::move(from);
  983. }
  984. inline DescriptorProto& operator=(DescriptorProto&& from) noexcept {
  985. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  986. if (this != &from) InternalSwap(&from);
  987. } else {
  988. CopyFrom(from);
  989. }
  990. return *this;
  991. }
  992. #endif
  993. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  994. return _internal_metadata_.unknown_fields();
  995. }
  996. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  997. return _internal_metadata_.mutable_unknown_fields();
  998. }
  999. inline ::google::protobuf::Arena* GetArena() const final {
  1000. return GetArenaNoVirtual();
  1001. }
  1002. inline void* GetMaybeArenaPointer() const final {
  1003. return MaybeArenaPtr();
  1004. }
  1005. static const ::google::protobuf::Descriptor* descriptor();
  1006. static const DescriptorProto& default_instance();
  1007. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1008. static inline const DescriptorProto* internal_default_instance() {
  1009. return reinterpret_cast<const DescriptorProto*>(
  1010. &_DescriptorProto_default_instance_);
  1011. }
  1012. static constexpr int kIndexInFileMessages =
  1013. 4;
  1014. void UnsafeArenaSwap(DescriptorProto* other);
  1015. void Swap(DescriptorProto* other);
  1016. friend void swap(DescriptorProto& a, DescriptorProto& b) {
  1017. a.Swap(&b);
  1018. }
  1019. // implements Message ----------------------------------------------
  1020. inline DescriptorProto* New() const final {
  1021. return CreateMaybeMessage<DescriptorProto>(NULL);
  1022. }
  1023. DescriptorProto* New(::google::protobuf::Arena* arena) const final {
  1024. return CreateMaybeMessage<DescriptorProto>(arena);
  1025. }
  1026. void CopyFrom(const ::google::protobuf::Message& from) final;
  1027. void MergeFrom(const ::google::protobuf::Message& from) final;
  1028. void CopyFrom(const DescriptorProto& from);
  1029. void MergeFrom(const DescriptorProto& from);
  1030. void Clear() final;
  1031. bool IsInitialized() const final;
  1032. size_t ByteSizeLong() const final;
  1033. bool MergePartialFromCodedStream(
  1034. ::google::protobuf::io::CodedInputStream* input) final;
  1035. void SerializeWithCachedSizes(
  1036. ::google::protobuf::io::CodedOutputStream* output) const final;
  1037. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1038. bool deterministic, ::google::protobuf::uint8* target) const final;
  1039. int GetCachedSize() const final { return _cached_size_.Get(); }
  1040. private:
  1041. void SharedCtor();
  1042. void SharedDtor();
  1043. void SetCachedSize(int size) const final;
  1044. void InternalSwap(DescriptorProto* other);
  1045. protected:
  1046. explicit DescriptorProto(::google::protobuf::Arena* arena);
  1047. private:
  1048. static void ArenaDtor(void* object);
  1049. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1050. private:
  1051. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1052. return _internal_metadata_.arena();
  1053. }
  1054. inline void* MaybeArenaPtr() const {
  1055. return _internal_metadata_.raw_arena_ptr();
  1056. }
  1057. public:
  1058. ::google::protobuf::Metadata GetMetadata() const final;
  1059. // nested types ----------------------------------------------------
  1060. typedef DescriptorProto_ExtensionRange ExtensionRange;
  1061. typedef DescriptorProto_ReservedRange ReservedRange;
  1062. // accessors -------------------------------------------------------
  1063. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  1064. int field_size() const;
  1065. void clear_field();
  1066. static const int kFieldFieldNumber = 2;
  1067. ::google::protobuf::FieldDescriptorProto* mutable_field(int index);
  1068. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  1069. mutable_field();
  1070. const ::google::protobuf::FieldDescriptorProto& field(int index) const;
  1071. ::google::protobuf::FieldDescriptorProto* add_field();
  1072. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  1073. field() const;
  1074. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  1075. int nested_type_size() const;
  1076. void clear_nested_type();
  1077. static const int kNestedTypeFieldNumber = 3;
  1078. ::google::protobuf::DescriptorProto* mutable_nested_type(int index);
  1079. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  1080. mutable_nested_type();
  1081. const ::google::protobuf::DescriptorProto& nested_type(int index) const;
  1082. ::google::protobuf::DescriptorProto* add_nested_type();
  1083. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  1084. nested_type() const;
  1085. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  1086. int enum_type_size() const;
  1087. void clear_enum_type();
  1088. static const int kEnumTypeFieldNumber = 4;
  1089. ::google::protobuf::EnumDescriptorProto* mutable_enum_type(int index);
  1090. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  1091. mutable_enum_type();
  1092. const ::google::protobuf::EnumDescriptorProto& enum_type(int index) const;
  1093. ::google::protobuf::EnumDescriptorProto* add_enum_type();
  1094. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  1095. enum_type() const;
  1096. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  1097. int extension_range_size() const;
  1098. void clear_extension_range();
  1099. static const int kExtensionRangeFieldNumber = 5;
  1100. ::google::protobuf::DescriptorProto_ExtensionRange* mutable_extension_range(int index);
  1101. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
  1102. mutable_extension_range();
  1103. const ::google::protobuf::DescriptorProto_ExtensionRange& extension_range(int index) const;
  1104. ::google::protobuf::DescriptorProto_ExtensionRange* add_extension_range();
  1105. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
  1106. extension_range() const;
  1107. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  1108. int extension_size() const;
  1109. void clear_extension();
  1110. static const int kExtensionFieldNumber = 6;
  1111. ::google::protobuf::FieldDescriptorProto* mutable_extension(int index);
  1112. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  1113. mutable_extension();
  1114. const ::google::protobuf::FieldDescriptorProto& extension(int index) const;
  1115. ::google::protobuf::FieldDescriptorProto* add_extension();
  1116. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  1117. extension() const;
  1118. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  1119. int oneof_decl_size() const;
  1120. void clear_oneof_decl();
  1121. static const int kOneofDeclFieldNumber = 8;
  1122. ::google::protobuf::OneofDescriptorProto* mutable_oneof_decl(int index);
  1123. ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
  1124. mutable_oneof_decl();
  1125. const ::google::protobuf::OneofDescriptorProto& oneof_decl(int index) const;
  1126. ::google::protobuf::OneofDescriptorProto* add_oneof_decl();
  1127. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
  1128. oneof_decl() const;
  1129. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  1130. int reserved_range_size() const;
  1131. void clear_reserved_range();
  1132. static const int kReservedRangeFieldNumber = 9;
  1133. ::google::protobuf::DescriptorProto_ReservedRange* mutable_reserved_range(int index);
  1134. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >*
  1135. mutable_reserved_range();
  1136. const ::google::protobuf::DescriptorProto_ReservedRange& reserved_range(int index) const;
  1137. ::google::protobuf::DescriptorProto_ReservedRange* add_reserved_range();
  1138. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >&
  1139. reserved_range() const;
  1140. // repeated string reserved_name = 10;
  1141. int reserved_name_size() const;
  1142. void clear_reserved_name();
  1143. static const int kReservedNameFieldNumber = 10;
  1144. const ::std::string& reserved_name(int index) const;
  1145. ::std::string* mutable_reserved_name(int index);
  1146. void set_reserved_name(int index, const ::std::string& value);
  1147. #if LANG_CXX11
  1148. void set_reserved_name(int index, ::std::string&& value);
  1149. #endif
  1150. void set_reserved_name(int index, const char* value);
  1151. void set_reserved_name(int index, const char* value, size_t size);
  1152. ::std::string* add_reserved_name();
  1153. void add_reserved_name(const ::std::string& value);
  1154. #if LANG_CXX11
  1155. void add_reserved_name(::std::string&& value);
  1156. #endif
  1157. void add_reserved_name(const char* value);
  1158. void add_reserved_name(const char* value, size_t size);
  1159. const ::google::protobuf::RepeatedPtrField< ::std::string>& reserved_name() const;
  1160. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_reserved_name();
  1161. // optional string name = 1;
  1162. bool has_name() const;
  1163. void clear_name();
  1164. static const int kNameFieldNumber = 1;
  1165. const ::std::string& name() const;
  1166. void set_name(const ::std::string& value);
  1167. #if LANG_CXX11
  1168. void set_name(::std::string&& value);
  1169. #endif
  1170. void set_name(const char* value);
  1171. void set_name(const char* value, size_t size);
  1172. ::std::string* mutable_name();
  1173. ::std::string* release_name();
  1174. void set_allocated_name(::std::string* name);
  1175. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1176. " string fields are deprecated and will be removed in a"
  1177. " future release.")
  1178. ::std::string* unsafe_arena_release_name();
  1179. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1180. " string fields are deprecated and will be removed in a"
  1181. " future release.")
  1182. void unsafe_arena_set_allocated_name(
  1183. ::std::string* name);
  1184. // optional .google.protobuf.MessageOptions options = 7;
  1185. bool has_options() const;
  1186. void clear_options();
  1187. static const int kOptionsFieldNumber = 7;
  1188. private:
  1189. const ::google::protobuf::MessageOptions& _internal_options() const;
  1190. public:
  1191. const ::google::protobuf::MessageOptions& options() const;
  1192. ::google::protobuf::MessageOptions* release_options();
  1193. ::google::protobuf::MessageOptions* mutable_options();
  1194. void set_allocated_options(::google::protobuf::MessageOptions* options);
  1195. void unsafe_arena_set_allocated_options(
  1196. ::google::protobuf::MessageOptions* options);
  1197. ::google::protobuf::MessageOptions* unsafe_arena_release_options();
  1198. // @@protoc_insertion_point(class_scope:google.protobuf.DescriptorProto)
  1199. private:
  1200. void set_has_name();
  1201. void clear_has_name();
  1202. void set_has_options();
  1203. void clear_has_options();
  1204. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1205. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1206. typedef void InternalArenaConstructable_;
  1207. typedef void DestructorSkippable_;
  1208. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1209. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1210. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > field_;
  1211. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto > nested_type_;
  1212. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto > enum_type_;
  1213. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange > extension_range_;
  1214. ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto > extension_;
  1215. ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto > oneof_decl_;
  1216. ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange > reserved_range_;
  1217. ::google::protobuf::RepeatedPtrField< ::std::string> reserved_name_;
  1218. ::google::protobuf::internal::ArenaStringPtr name_;
  1219. ::google::protobuf::MessageOptions* options_;
  1220. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  1221. };
  1222. // -------------------------------------------------------------------
  1223. class LIBPROTOBUF_EXPORT ExtensionRangeOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ExtensionRangeOptions) */ {
  1224. public:
  1225. ExtensionRangeOptions();
  1226. virtual ~ExtensionRangeOptions();
  1227. ExtensionRangeOptions(const ExtensionRangeOptions& from);
  1228. inline ExtensionRangeOptions& operator=(const ExtensionRangeOptions& from) {
  1229. CopyFrom(from);
  1230. return *this;
  1231. }
  1232. #if LANG_CXX11
  1233. ExtensionRangeOptions(ExtensionRangeOptions&& from) noexcept
  1234. : ExtensionRangeOptions() {
  1235. *this = ::std::move(from);
  1236. }
  1237. inline ExtensionRangeOptions& operator=(ExtensionRangeOptions&& from) noexcept {
  1238. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1239. if (this != &from) InternalSwap(&from);
  1240. } else {
  1241. CopyFrom(from);
  1242. }
  1243. return *this;
  1244. }
  1245. #endif
  1246. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1247. return _internal_metadata_.unknown_fields();
  1248. }
  1249. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1250. return _internal_metadata_.mutable_unknown_fields();
  1251. }
  1252. inline ::google::protobuf::Arena* GetArena() const final {
  1253. return GetArenaNoVirtual();
  1254. }
  1255. inline void* GetMaybeArenaPointer() const final {
  1256. return MaybeArenaPtr();
  1257. }
  1258. static const ::google::protobuf::Descriptor* descriptor();
  1259. static const ExtensionRangeOptions& default_instance();
  1260. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1261. static inline const ExtensionRangeOptions* internal_default_instance() {
  1262. return reinterpret_cast<const ExtensionRangeOptions*>(
  1263. &_ExtensionRangeOptions_default_instance_);
  1264. }
  1265. static constexpr int kIndexInFileMessages =
  1266. 5;
  1267. void UnsafeArenaSwap(ExtensionRangeOptions* other);
  1268. void Swap(ExtensionRangeOptions* other);
  1269. friend void swap(ExtensionRangeOptions& a, ExtensionRangeOptions& b) {
  1270. a.Swap(&b);
  1271. }
  1272. // implements Message ----------------------------------------------
  1273. inline ExtensionRangeOptions* New() const final {
  1274. return CreateMaybeMessage<ExtensionRangeOptions>(NULL);
  1275. }
  1276. ExtensionRangeOptions* New(::google::protobuf::Arena* arena) const final {
  1277. return CreateMaybeMessage<ExtensionRangeOptions>(arena);
  1278. }
  1279. void CopyFrom(const ::google::protobuf::Message& from) final;
  1280. void MergeFrom(const ::google::protobuf::Message& from) final;
  1281. void CopyFrom(const ExtensionRangeOptions& from);
  1282. void MergeFrom(const ExtensionRangeOptions& from);
  1283. void Clear() final;
  1284. bool IsInitialized() const final;
  1285. size_t ByteSizeLong() const final;
  1286. bool MergePartialFromCodedStream(
  1287. ::google::protobuf::io::CodedInputStream* input) final;
  1288. void SerializeWithCachedSizes(
  1289. ::google::protobuf::io::CodedOutputStream* output) const final;
  1290. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1291. bool deterministic, ::google::protobuf::uint8* target) const final;
  1292. int GetCachedSize() const final { return _cached_size_.Get(); }
  1293. private:
  1294. void SharedCtor();
  1295. void SharedDtor();
  1296. void SetCachedSize(int size) const final;
  1297. void InternalSwap(ExtensionRangeOptions* other);
  1298. protected:
  1299. explicit ExtensionRangeOptions(::google::protobuf::Arena* arena);
  1300. private:
  1301. static void ArenaDtor(void* object);
  1302. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1303. private:
  1304. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1305. return _internal_metadata_.arena();
  1306. }
  1307. inline void* MaybeArenaPtr() const {
  1308. return _internal_metadata_.raw_arena_ptr();
  1309. }
  1310. public:
  1311. ::google::protobuf::Metadata GetMetadata() const final;
  1312. // nested types ----------------------------------------------------
  1313. // accessors -------------------------------------------------------
  1314. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  1315. int uninterpreted_option_size() const;
  1316. void clear_uninterpreted_option();
  1317. static const int kUninterpretedOptionFieldNumber = 999;
  1318. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  1319. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  1320. mutable_uninterpreted_option();
  1321. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  1322. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  1323. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  1324. uninterpreted_option() const;
  1325. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ExtensionRangeOptions)
  1326. // @@protoc_insertion_point(class_scope:google.protobuf.ExtensionRangeOptions)
  1327. private:
  1328. ::google::protobuf::internal::ExtensionSet _extensions_;
  1329. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1330. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1331. typedef void InternalArenaConstructable_;
  1332. typedef void DestructorSkippable_;
  1333. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1334. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1335. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  1336. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  1337. };
  1338. // -------------------------------------------------------------------
  1339. class LIBPROTOBUF_EXPORT FieldDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldDescriptorProto) */ {
  1340. public:
  1341. FieldDescriptorProto();
  1342. virtual ~FieldDescriptorProto();
  1343. FieldDescriptorProto(const FieldDescriptorProto& from);
  1344. inline FieldDescriptorProto& operator=(const FieldDescriptorProto& from) {
  1345. CopyFrom(from);
  1346. return *this;
  1347. }
  1348. #if LANG_CXX11
  1349. FieldDescriptorProto(FieldDescriptorProto&& from) noexcept
  1350. : FieldDescriptorProto() {
  1351. *this = ::std::move(from);
  1352. }
  1353. inline FieldDescriptorProto& operator=(FieldDescriptorProto&& from) noexcept {
  1354. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1355. if (this != &from) InternalSwap(&from);
  1356. } else {
  1357. CopyFrom(from);
  1358. }
  1359. return *this;
  1360. }
  1361. #endif
  1362. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1363. return _internal_metadata_.unknown_fields();
  1364. }
  1365. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1366. return _internal_metadata_.mutable_unknown_fields();
  1367. }
  1368. inline ::google::protobuf::Arena* GetArena() const final {
  1369. return GetArenaNoVirtual();
  1370. }
  1371. inline void* GetMaybeArenaPointer() const final {
  1372. return MaybeArenaPtr();
  1373. }
  1374. static const ::google::protobuf::Descriptor* descriptor();
  1375. static const FieldDescriptorProto& default_instance();
  1376. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1377. static inline const FieldDescriptorProto* internal_default_instance() {
  1378. return reinterpret_cast<const FieldDescriptorProto*>(
  1379. &_FieldDescriptorProto_default_instance_);
  1380. }
  1381. static constexpr int kIndexInFileMessages =
  1382. 6;
  1383. void UnsafeArenaSwap(FieldDescriptorProto* other);
  1384. void Swap(FieldDescriptorProto* other);
  1385. friend void swap(FieldDescriptorProto& a, FieldDescriptorProto& b) {
  1386. a.Swap(&b);
  1387. }
  1388. // implements Message ----------------------------------------------
  1389. inline FieldDescriptorProto* New() const final {
  1390. return CreateMaybeMessage<FieldDescriptorProto>(NULL);
  1391. }
  1392. FieldDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  1393. return CreateMaybeMessage<FieldDescriptorProto>(arena);
  1394. }
  1395. void CopyFrom(const ::google::protobuf::Message& from) final;
  1396. void MergeFrom(const ::google::protobuf::Message& from) final;
  1397. void CopyFrom(const FieldDescriptorProto& from);
  1398. void MergeFrom(const FieldDescriptorProto& from);
  1399. void Clear() final;
  1400. bool IsInitialized() const final;
  1401. size_t ByteSizeLong() const final;
  1402. bool MergePartialFromCodedStream(
  1403. ::google::protobuf::io::CodedInputStream* input) final;
  1404. void SerializeWithCachedSizes(
  1405. ::google::protobuf::io::CodedOutputStream* output) const final;
  1406. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1407. bool deterministic, ::google::protobuf::uint8* target) const final;
  1408. int GetCachedSize() const final { return _cached_size_.Get(); }
  1409. private:
  1410. void SharedCtor();
  1411. void SharedDtor();
  1412. void SetCachedSize(int size) const final;
  1413. void InternalSwap(FieldDescriptorProto* other);
  1414. protected:
  1415. explicit FieldDescriptorProto(::google::protobuf::Arena* arena);
  1416. private:
  1417. static void ArenaDtor(void* object);
  1418. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1419. private:
  1420. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1421. return _internal_metadata_.arena();
  1422. }
  1423. inline void* MaybeArenaPtr() const {
  1424. return _internal_metadata_.raw_arena_ptr();
  1425. }
  1426. public:
  1427. ::google::protobuf::Metadata GetMetadata() const final;
  1428. // nested types ----------------------------------------------------
  1429. typedef FieldDescriptorProto_Type Type;
  1430. static const Type TYPE_DOUBLE =
  1431. FieldDescriptorProto_Type_TYPE_DOUBLE;
  1432. static const Type TYPE_FLOAT =
  1433. FieldDescriptorProto_Type_TYPE_FLOAT;
  1434. static const Type TYPE_INT64 =
  1435. FieldDescriptorProto_Type_TYPE_INT64;
  1436. static const Type TYPE_UINT64 =
  1437. FieldDescriptorProto_Type_TYPE_UINT64;
  1438. static const Type TYPE_INT32 =
  1439. FieldDescriptorProto_Type_TYPE_INT32;
  1440. static const Type TYPE_FIXED64 =
  1441. FieldDescriptorProto_Type_TYPE_FIXED64;
  1442. static const Type TYPE_FIXED32 =
  1443. FieldDescriptorProto_Type_TYPE_FIXED32;
  1444. static const Type TYPE_BOOL =
  1445. FieldDescriptorProto_Type_TYPE_BOOL;
  1446. static const Type TYPE_STRING =
  1447. FieldDescriptorProto_Type_TYPE_STRING;
  1448. static const Type TYPE_GROUP =
  1449. FieldDescriptorProto_Type_TYPE_GROUP;
  1450. static const Type TYPE_MESSAGE =
  1451. FieldDescriptorProto_Type_TYPE_MESSAGE;
  1452. static const Type TYPE_BYTES =
  1453. FieldDescriptorProto_Type_TYPE_BYTES;
  1454. static const Type TYPE_UINT32 =
  1455. FieldDescriptorProto_Type_TYPE_UINT32;
  1456. static const Type TYPE_ENUM =
  1457. FieldDescriptorProto_Type_TYPE_ENUM;
  1458. static const Type TYPE_SFIXED32 =
  1459. FieldDescriptorProto_Type_TYPE_SFIXED32;
  1460. static const Type TYPE_SFIXED64 =
  1461. FieldDescriptorProto_Type_TYPE_SFIXED64;
  1462. static const Type TYPE_SINT32 =
  1463. FieldDescriptorProto_Type_TYPE_SINT32;
  1464. static const Type TYPE_SINT64 =
  1465. FieldDescriptorProto_Type_TYPE_SINT64;
  1466. static inline bool Type_IsValid(int value) {
  1467. return FieldDescriptorProto_Type_IsValid(value);
  1468. }
  1469. static const Type Type_MIN =
  1470. FieldDescriptorProto_Type_Type_MIN;
  1471. static const Type Type_MAX =
  1472. FieldDescriptorProto_Type_Type_MAX;
  1473. static const int Type_ARRAYSIZE =
  1474. FieldDescriptorProto_Type_Type_ARRAYSIZE;
  1475. static inline const ::google::protobuf::EnumDescriptor*
  1476. Type_descriptor() {
  1477. return FieldDescriptorProto_Type_descriptor();
  1478. }
  1479. static inline const ::std::string& Type_Name(Type value) {
  1480. return FieldDescriptorProto_Type_Name(value);
  1481. }
  1482. static inline bool Type_Parse(const ::std::string& name,
  1483. Type* value) {
  1484. return FieldDescriptorProto_Type_Parse(name, value);
  1485. }
  1486. typedef FieldDescriptorProto_Label Label;
  1487. static const Label LABEL_OPTIONAL =
  1488. FieldDescriptorProto_Label_LABEL_OPTIONAL;
  1489. static const Label LABEL_REQUIRED =
  1490. FieldDescriptorProto_Label_LABEL_REQUIRED;
  1491. static const Label LABEL_REPEATED =
  1492. FieldDescriptorProto_Label_LABEL_REPEATED;
  1493. static inline bool Label_IsValid(int value) {
  1494. return FieldDescriptorProto_Label_IsValid(value);
  1495. }
  1496. static const Label Label_MIN =
  1497. FieldDescriptorProto_Label_Label_MIN;
  1498. static const Label Label_MAX =
  1499. FieldDescriptorProto_Label_Label_MAX;
  1500. static const int Label_ARRAYSIZE =
  1501. FieldDescriptorProto_Label_Label_ARRAYSIZE;
  1502. static inline const ::google::protobuf::EnumDescriptor*
  1503. Label_descriptor() {
  1504. return FieldDescriptorProto_Label_descriptor();
  1505. }
  1506. static inline const ::std::string& Label_Name(Label value) {
  1507. return FieldDescriptorProto_Label_Name(value);
  1508. }
  1509. static inline bool Label_Parse(const ::std::string& name,
  1510. Label* value) {
  1511. return FieldDescriptorProto_Label_Parse(name, value);
  1512. }
  1513. // accessors -------------------------------------------------------
  1514. // optional string name = 1;
  1515. bool has_name() const;
  1516. void clear_name();
  1517. static const int kNameFieldNumber = 1;
  1518. const ::std::string& name() const;
  1519. void set_name(const ::std::string& value);
  1520. #if LANG_CXX11
  1521. void set_name(::std::string&& value);
  1522. #endif
  1523. void set_name(const char* value);
  1524. void set_name(const char* value, size_t size);
  1525. ::std::string* mutable_name();
  1526. ::std::string* release_name();
  1527. void set_allocated_name(::std::string* name);
  1528. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1529. " string fields are deprecated and will be removed in a"
  1530. " future release.")
  1531. ::std::string* unsafe_arena_release_name();
  1532. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1533. " string fields are deprecated and will be removed in a"
  1534. " future release.")
  1535. void unsafe_arena_set_allocated_name(
  1536. ::std::string* name);
  1537. // optional string extendee = 2;
  1538. bool has_extendee() const;
  1539. void clear_extendee();
  1540. static const int kExtendeeFieldNumber = 2;
  1541. const ::std::string& extendee() const;
  1542. void set_extendee(const ::std::string& value);
  1543. #if LANG_CXX11
  1544. void set_extendee(::std::string&& value);
  1545. #endif
  1546. void set_extendee(const char* value);
  1547. void set_extendee(const char* value, size_t size);
  1548. ::std::string* mutable_extendee();
  1549. ::std::string* release_extendee();
  1550. void set_allocated_extendee(::std::string* extendee);
  1551. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1552. " string fields are deprecated and will be removed in a"
  1553. " future release.")
  1554. ::std::string* unsafe_arena_release_extendee();
  1555. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1556. " string fields are deprecated and will be removed in a"
  1557. " future release.")
  1558. void unsafe_arena_set_allocated_extendee(
  1559. ::std::string* extendee);
  1560. // optional string type_name = 6;
  1561. bool has_type_name() const;
  1562. void clear_type_name();
  1563. static const int kTypeNameFieldNumber = 6;
  1564. const ::std::string& type_name() const;
  1565. void set_type_name(const ::std::string& value);
  1566. #if LANG_CXX11
  1567. void set_type_name(::std::string&& value);
  1568. #endif
  1569. void set_type_name(const char* value);
  1570. void set_type_name(const char* value, size_t size);
  1571. ::std::string* mutable_type_name();
  1572. ::std::string* release_type_name();
  1573. void set_allocated_type_name(::std::string* type_name);
  1574. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1575. " string fields are deprecated and will be removed in a"
  1576. " future release.")
  1577. ::std::string* unsafe_arena_release_type_name();
  1578. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1579. " string fields are deprecated and will be removed in a"
  1580. " future release.")
  1581. void unsafe_arena_set_allocated_type_name(
  1582. ::std::string* type_name);
  1583. // optional string default_value = 7;
  1584. bool has_default_value() const;
  1585. void clear_default_value();
  1586. static const int kDefaultValueFieldNumber = 7;
  1587. const ::std::string& default_value() const;
  1588. void set_default_value(const ::std::string& value);
  1589. #if LANG_CXX11
  1590. void set_default_value(::std::string&& value);
  1591. #endif
  1592. void set_default_value(const char* value);
  1593. void set_default_value(const char* value, size_t size);
  1594. ::std::string* mutable_default_value();
  1595. ::std::string* release_default_value();
  1596. void set_allocated_default_value(::std::string* default_value);
  1597. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1598. " string fields are deprecated and will be removed in a"
  1599. " future release.")
  1600. ::std::string* unsafe_arena_release_default_value();
  1601. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1602. " string fields are deprecated and will be removed in a"
  1603. " future release.")
  1604. void unsafe_arena_set_allocated_default_value(
  1605. ::std::string* default_value);
  1606. // optional string json_name = 10;
  1607. bool has_json_name() const;
  1608. void clear_json_name();
  1609. static const int kJsonNameFieldNumber = 10;
  1610. const ::std::string& json_name() const;
  1611. void set_json_name(const ::std::string& value);
  1612. #if LANG_CXX11
  1613. void set_json_name(::std::string&& value);
  1614. #endif
  1615. void set_json_name(const char* value);
  1616. void set_json_name(const char* value, size_t size);
  1617. ::std::string* mutable_json_name();
  1618. ::std::string* release_json_name();
  1619. void set_allocated_json_name(::std::string* json_name);
  1620. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1621. " string fields are deprecated and will be removed in a"
  1622. " future release.")
  1623. ::std::string* unsafe_arena_release_json_name();
  1624. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1625. " string fields are deprecated and will be removed in a"
  1626. " future release.")
  1627. void unsafe_arena_set_allocated_json_name(
  1628. ::std::string* json_name);
  1629. // optional .google.protobuf.FieldOptions options = 8;
  1630. bool has_options() const;
  1631. void clear_options();
  1632. static const int kOptionsFieldNumber = 8;
  1633. private:
  1634. const ::google::protobuf::FieldOptions& _internal_options() const;
  1635. public:
  1636. const ::google::protobuf::FieldOptions& options() const;
  1637. ::google::protobuf::FieldOptions* release_options();
  1638. ::google::protobuf::FieldOptions* mutable_options();
  1639. void set_allocated_options(::google::protobuf::FieldOptions* options);
  1640. void unsafe_arena_set_allocated_options(
  1641. ::google::protobuf::FieldOptions* options);
  1642. ::google::protobuf::FieldOptions* unsafe_arena_release_options();
  1643. // optional int32 number = 3;
  1644. bool has_number() const;
  1645. void clear_number();
  1646. static const int kNumberFieldNumber = 3;
  1647. ::google::protobuf::int32 number() const;
  1648. void set_number(::google::protobuf::int32 value);
  1649. // optional int32 oneof_index = 9;
  1650. bool has_oneof_index() const;
  1651. void clear_oneof_index();
  1652. static const int kOneofIndexFieldNumber = 9;
  1653. ::google::protobuf::int32 oneof_index() const;
  1654. void set_oneof_index(::google::protobuf::int32 value);
  1655. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  1656. bool has_label() const;
  1657. void clear_label();
  1658. static const int kLabelFieldNumber = 4;
  1659. ::google::protobuf::FieldDescriptorProto_Label label() const;
  1660. void set_label(::google::protobuf::FieldDescriptorProto_Label value);
  1661. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  1662. bool has_type() const;
  1663. void clear_type();
  1664. static const int kTypeFieldNumber = 5;
  1665. ::google::protobuf::FieldDescriptorProto_Type type() const;
  1666. void set_type(::google::protobuf::FieldDescriptorProto_Type value);
  1667. // @@protoc_insertion_point(class_scope:google.protobuf.FieldDescriptorProto)
  1668. private:
  1669. void set_has_name();
  1670. void clear_has_name();
  1671. void set_has_number();
  1672. void clear_has_number();
  1673. void set_has_label();
  1674. void clear_has_label();
  1675. void set_has_type();
  1676. void clear_has_type();
  1677. void set_has_type_name();
  1678. void clear_has_type_name();
  1679. void set_has_extendee();
  1680. void clear_has_extendee();
  1681. void set_has_default_value();
  1682. void clear_has_default_value();
  1683. void set_has_oneof_index();
  1684. void clear_has_oneof_index();
  1685. void set_has_json_name();
  1686. void clear_has_json_name();
  1687. void set_has_options();
  1688. void clear_has_options();
  1689. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1690. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1691. typedef void InternalArenaConstructable_;
  1692. typedef void DestructorSkippable_;
  1693. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1694. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1695. ::google::protobuf::internal::ArenaStringPtr name_;
  1696. ::google::protobuf::internal::ArenaStringPtr extendee_;
  1697. ::google::protobuf::internal::ArenaStringPtr type_name_;
  1698. ::google::protobuf::internal::ArenaStringPtr default_value_;
  1699. ::google::protobuf::internal::ArenaStringPtr json_name_;
  1700. ::google::protobuf::FieldOptions* options_;
  1701. ::google::protobuf::int32 number_;
  1702. ::google::protobuf::int32 oneof_index_;
  1703. int label_;
  1704. int type_;
  1705. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  1706. };
  1707. // -------------------------------------------------------------------
  1708. class LIBPROTOBUF_EXPORT OneofDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofDescriptorProto) */ {
  1709. public:
  1710. OneofDescriptorProto();
  1711. virtual ~OneofDescriptorProto();
  1712. OneofDescriptorProto(const OneofDescriptorProto& from);
  1713. inline OneofDescriptorProto& operator=(const OneofDescriptorProto& from) {
  1714. CopyFrom(from);
  1715. return *this;
  1716. }
  1717. #if LANG_CXX11
  1718. OneofDescriptorProto(OneofDescriptorProto&& from) noexcept
  1719. : OneofDescriptorProto() {
  1720. *this = ::std::move(from);
  1721. }
  1722. inline OneofDescriptorProto& operator=(OneofDescriptorProto&& from) noexcept {
  1723. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1724. if (this != &from) InternalSwap(&from);
  1725. } else {
  1726. CopyFrom(from);
  1727. }
  1728. return *this;
  1729. }
  1730. #endif
  1731. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1732. return _internal_metadata_.unknown_fields();
  1733. }
  1734. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1735. return _internal_metadata_.mutable_unknown_fields();
  1736. }
  1737. inline ::google::protobuf::Arena* GetArena() const final {
  1738. return GetArenaNoVirtual();
  1739. }
  1740. inline void* GetMaybeArenaPointer() const final {
  1741. return MaybeArenaPtr();
  1742. }
  1743. static const ::google::protobuf::Descriptor* descriptor();
  1744. static const OneofDescriptorProto& default_instance();
  1745. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1746. static inline const OneofDescriptorProto* internal_default_instance() {
  1747. return reinterpret_cast<const OneofDescriptorProto*>(
  1748. &_OneofDescriptorProto_default_instance_);
  1749. }
  1750. static constexpr int kIndexInFileMessages =
  1751. 7;
  1752. void UnsafeArenaSwap(OneofDescriptorProto* other);
  1753. void Swap(OneofDescriptorProto* other);
  1754. friend void swap(OneofDescriptorProto& a, OneofDescriptorProto& b) {
  1755. a.Swap(&b);
  1756. }
  1757. // implements Message ----------------------------------------------
  1758. inline OneofDescriptorProto* New() const final {
  1759. return CreateMaybeMessage<OneofDescriptorProto>(NULL);
  1760. }
  1761. OneofDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  1762. return CreateMaybeMessage<OneofDescriptorProto>(arena);
  1763. }
  1764. void CopyFrom(const ::google::protobuf::Message& from) final;
  1765. void MergeFrom(const ::google::protobuf::Message& from) final;
  1766. void CopyFrom(const OneofDescriptorProto& from);
  1767. void MergeFrom(const OneofDescriptorProto& from);
  1768. void Clear() final;
  1769. bool IsInitialized() const final;
  1770. size_t ByteSizeLong() const final;
  1771. bool MergePartialFromCodedStream(
  1772. ::google::protobuf::io::CodedInputStream* input) final;
  1773. void SerializeWithCachedSizes(
  1774. ::google::protobuf::io::CodedOutputStream* output) const final;
  1775. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1776. bool deterministic, ::google::protobuf::uint8* target) const final;
  1777. int GetCachedSize() const final { return _cached_size_.Get(); }
  1778. private:
  1779. void SharedCtor();
  1780. void SharedDtor();
  1781. void SetCachedSize(int size) const final;
  1782. void InternalSwap(OneofDescriptorProto* other);
  1783. protected:
  1784. explicit OneofDescriptorProto(::google::protobuf::Arena* arena);
  1785. private:
  1786. static void ArenaDtor(void* object);
  1787. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1788. private:
  1789. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1790. return _internal_metadata_.arena();
  1791. }
  1792. inline void* MaybeArenaPtr() const {
  1793. return _internal_metadata_.raw_arena_ptr();
  1794. }
  1795. public:
  1796. ::google::protobuf::Metadata GetMetadata() const final;
  1797. // nested types ----------------------------------------------------
  1798. // accessors -------------------------------------------------------
  1799. // optional string name = 1;
  1800. bool has_name() const;
  1801. void clear_name();
  1802. static const int kNameFieldNumber = 1;
  1803. const ::std::string& name() const;
  1804. void set_name(const ::std::string& value);
  1805. #if LANG_CXX11
  1806. void set_name(::std::string&& value);
  1807. #endif
  1808. void set_name(const char* value);
  1809. void set_name(const char* value, size_t size);
  1810. ::std::string* mutable_name();
  1811. ::std::string* release_name();
  1812. void set_allocated_name(::std::string* name);
  1813. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1814. " string fields are deprecated and will be removed in a"
  1815. " future release.")
  1816. ::std::string* unsafe_arena_release_name();
  1817. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  1818. " string fields are deprecated and will be removed in a"
  1819. " future release.")
  1820. void unsafe_arena_set_allocated_name(
  1821. ::std::string* name);
  1822. // optional .google.protobuf.OneofOptions options = 2;
  1823. bool has_options() const;
  1824. void clear_options();
  1825. static const int kOptionsFieldNumber = 2;
  1826. private:
  1827. const ::google::protobuf::OneofOptions& _internal_options() const;
  1828. public:
  1829. const ::google::protobuf::OneofOptions& options() const;
  1830. ::google::protobuf::OneofOptions* release_options();
  1831. ::google::protobuf::OneofOptions* mutable_options();
  1832. void set_allocated_options(::google::protobuf::OneofOptions* options);
  1833. void unsafe_arena_set_allocated_options(
  1834. ::google::protobuf::OneofOptions* options);
  1835. ::google::protobuf::OneofOptions* unsafe_arena_release_options();
  1836. // @@protoc_insertion_point(class_scope:google.protobuf.OneofDescriptorProto)
  1837. private:
  1838. void set_has_name();
  1839. void clear_has_name();
  1840. void set_has_options();
  1841. void clear_has_options();
  1842. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1843. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1844. typedef void InternalArenaConstructable_;
  1845. typedef void DestructorSkippable_;
  1846. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1847. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1848. ::google::protobuf::internal::ArenaStringPtr name_;
  1849. ::google::protobuf::OneofOptions* options_;
  1850. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  1851. };
  1852. // -------------------------------------------------------------------
  1853. class LIBPROTOBUF_EXPORT EnumDescriptorProto_EnumReservedRange : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto.EnumReservedRange) */ {
  1854. public:
  1855. EnumDescriptorProto_EnumReservedRange();
  1856. virtual ~EnumDescriptorProto_EnumReservedRange();
  1857. EnumDescriptorProto_EnumReservedRange(const EnumDescriptorProto_EnumReservedRange& from);
  1858. inline EnumDescriptorProto_EnumReservedRange& operator=(const EnumDescriptorProto_EnumReservedRange& from) {
  1859. CopyFrom(from);
  1860. return *this;
  1861. }
  1862. #if LANG_CXX11
  1863. EnumDescriptorProto_EnumReservedRange(EnumDescriptorProto_EnumReservedRange&& from) noexcept
  1864. : EnumDescriptorProto_EnumReservedRange() {
  1865. *this = ::std::move(from);
  1866. }
  1867. inline EnumDescriptorProto_EnumReservedRange& operator=(EnumDescriptorProto_EnumReservedRange&& from) noexcept {
  1868. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1869. if (this != &from) InternalSwap(&from);
  1870. } else {
  1871. CopyFrom(from);
  1872. }
  1873. return *this;
  1874. }
  1875. #endif
  1876. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1877. return _internal_metadata_.unknown_fields();
  1878. }
  1879. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  1880. return _internal_metadata_.mutable_unknown_fields();
  1881. }
  1882. inline ::google::protobuf::Arena* GetArena() const final {
  1883. return GetArenaNoVirtual();
  1884. }
  1885. inline void* GetMaybeArenaPointer() const final {
  1886. return MaybeArenaPtr();
  1887. }
  1888. static const ::google::protobuf::Descriptor* descriptor();
  1889. static const EnumDescriptorProto_EnumReservedRange& default_instance();
  1890. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  1891. static inline const EnumDescriptorProto_EnumReservedRange* internal_default_instance() {
  1892. return reinterpret_cast<const EnumDescriptorProto_EnumReservedRange*>(
  1893. &_EnumDescriptorProto_EnumReservedRange_default_instance_);
  1894. }
  1895. static constexpr int kIndexInFileMessages =
  1896. 8;
  1897. void UnsafeArenaSwap(EnumDescriptorProto_EnumReservedRange* other);
  1898. void Swap(EnumDescriptorProto_EnumReservedRange* other);
  1899. friend void swap(EnumDescriptorProto_EnumReservedRange& a, EnumDescriptorProto_EnumReservedRange& b) {
  1900. a.Swap(&b);
  1901. }
  1902. // implements Message ----------------------------------------------
  1903. inline EnumDescriptorProto_EnumReservedRange* New() const final {
  1904. return CreateMaybeMessage<EnumDescriptorProto_EnumReservedRange>(NULL);
  1905. }
  1906. EnumDescriptorProto_EnumReservedRange* New(::google::protobuf::Arena* arena) const final {
  1907. return CreateMaybeMessage<EnumDescriptorProto_EnumReservedRange>(arena);
  1908. }
  1909. void CopyFrom(const ::google::protobuf::Message& from) final;
  1910. void MergeFrom(const ::google::protobuf::Message& from) final;
  1911. void CopyFrom(const EnumDescriptorProto_EnumReservedRange& from);
  1912. void MergeFrom(const EnumDescriptorProto_EnumReservedRange& from);
  1913. void Clear() final;
  1914. bool IsInitialized() const final;
  1915. size_t ByteSizeLong() const final;
  1916. bool MergePartialFromCodedStream(
  1917. ::google::protobuf::io::CodedInputStream* input) final;
  1918. void SerializeWithCachedSizes(
  1919. ::google::protobuf::io::CodedOutputStream* output) const final;
  1920. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  1921. bool deterministic, ::google::protobuf::uint8* target) const final;
  1922. int GetCachedSize() const final { return _cached_size_.Get(); }
  1923. private:
  1924. void SharedCtor();
  1925. void SharedDtor();
  1926. void SetCachedSize(int size) const final;
  1927. void InternalSwap(EnumDescriptorProto_EnumReservedRange* other);
  1928. protected:
  1929. explicit EnumDescriptorProto_EnumReservedRange(::google::protobuf::Arena* arena);
  1930. private:
  1931. static void ArenaDtor(void* object);
  1932. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  1933. private:
  1934. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  1935. return _internal_metadata_.arena();
  1936. }
  1937. inline void* MaybeArenaPtr() const {
  1938. return _internal_metadata_.raw_arena_ptr();
  1939. }
  1940. public:
  1941. ::google::protobuf::Metadata GetMetadata() const final;
  1942. // nested types ----------------------------------------------------
  1943. // accessors -------------------------------------------------------
  1944. // optional int32 start = 1;
  1945. bool has_start() const;
  1946. void clear_start();
  1947. static const int kStartFieldNumber = 1;
  1948. ::google::protobuf::int32 start() const;
  1949. void set_start(::google::protobuf::int32 value);
  1950. // optional int32 end = 2;
  1951. bool has_end() const;
  1952. void clear_end();
  1953. static const int kEndFieldNumber = 2;
  1954. ::google::protobuf::int32 end() const;
  1955. void set_end(::google::protobuf::int32 value);
  1956. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto.EnumReservedRange)
  1957. private:
  1958. void set_has_start();
  1959. void clear_has_start();
  1960. void set_has_end();
  1961. void clear_has_end();
  1962. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  1963. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  1964. typedef void InternalArenaConstructable_;
  1965. typedef void DestructorSkippable_;
  1966. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1967. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1968. ::google::protobuf::int32 start_;
  1969. ::google::protobuf::int32 end_;
  1970. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  1971. };
  1972. // -------------------------------------------------------------------
  1973. class LIBPROTOBUF_EXPORT EnumDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumDescriptorProto) */ {
  1974. public:
  1975. EnumDescriptorProto();
  1976. virtual ~EnumDescriptorProto();
  1977. EnumDescriptorProto(const EnumDescriptorProto& from);
  1978. inline EnumDescriptorProto& operator=(const EnumDescriptorProto& from) {
  1979. CopyFrom(from);
  1980. return *this;
  1981. }
  1982. #if LANG_CXX11
  1983. EnumDescriptorProto(EnumDescriptorProto&& from) noexcept
  1984. : EnumDescriptorProto() {
  1985. *this = ::std::move(from);
  1986. }
  1987. inline EnumDescriptorProto& operator=(EnumDescriptorProto&& from) noexcept {
  1988. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  1989. if (this != &from) InternalSwap(&from);
  1990. } else {
  1991. CopyFrom(from);
  1992. }
  1993. return *this;
  1994. }
  1995. #endif
  1996. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  1997. return _internal_metadata_.unknown_fields();
  1998. }
  1999. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2000. return _internal_metadata_.mutable_unknown_fields();
  2001. }
  2002. inline ::google::protobuf::Arena* GetArena() const final {
  2003. return GetArenaNoVirtual();
  2004. }
  2005. inline void* GetMaybeArenaPointer() const final {
  2006. return MaybeArenaPtr();
  2007. }
  2008. static const ::google::protobuf::Descriptor* descriptor();
  2009. static const EnumDescriptorProto& default_instance();
  2010. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2011. static inline const EnumDescriptorProto* internal_default_instance() {
  2012. return reinterpret_cast<const EnumDescriptorProto*>(
  2013. &_EnumDescriptorProto_default_instance_);
  2014. }
  2015. static constexpr int kIndexInFileMessages =
  2016. 9;
  2017. void UnsafeArenaSwap(EnumDescriptorProto* other);
  2018. void Swap(EnumDescriptorProto* other);
  2019. friend void swap(EnumDescriptorProto& a, EnumDescriptorProto& b) {
  2020. a.Swap(&b);
  2021. }
  2022. // implements Message ----------------------------------------------
  2023. inline EnumDescriptorProto* New() const final {
  2024. return CreateMaybeMessage<EnumDescriptorProto>(NULL);
  2025. }
  2026. EnumDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  2027. return CreateMaybeMessage<EnumDescriptorProto>(arena);
  2028. }
  2029. void CopyFrom(const ::google::protobuf::Message& from) final;
  2030. void MergeFrom(const ::google::protobuf::Message& from) final;
  2031. void CopyFrom(const EnumDescriptorProto& from);
  2032. void MergeFrom(const EnumDescriptorProto& from);
  2033. void Clear() final;
  2034. bool IsInitialized() const final;
  2035. size_t ByteSizeLong() const final;
  2036. bool MergePartialFromCodedStream(
  2037. ::google::protobuf::io::CodedInputStream* input) final;
  2038. void SerializeWithCachedSizes(
  2039. ::google::protobuf::io::CodedOutputStream* output) const final;
  2040. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2041. bool deterministic, ::google::protobuf::uint8* target) const final;
  2042. int GetCachedSize() const final { return _cached_size_.Get(); }
  2043. private:
  2044. void SharedCtor();
  2045. void SharedDtor();
  2046. void SetCachedSize(int size) const final;
  2047. void InternalSwap(EnumDescriptorProto* other);
  2048. protected:
  2049. explicit EnumDescriptorProto(::google::protobuf::Arena* arena);
  2050. private:
  2051. static void ArenaDtor(void* object);
  2052. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2053. private:
  2054. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2055. return _internal_metadata_.arena();
  2056. }
  2057. inline void* MaybeArenaPtr() const {
  2058. return _internal_metadata_.raw_arena_ptr();
  2059. }
  2060. public:
  2061. ::google::protobuf::Metadata GetMetadata() const final;
  2062. // nested types ----------------------------------------------------
  2063. typedef EnumDescriptorProto_EnumReservedRange EnumReservedRange;
  2064. // accessors -------------------------------------------------------
  2065. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  2066. int value_size() const;
  2067. void clear_value();
  2068. static const int kValueFieldNumber = 2;
  2069. ::google::protobuf::EnumValueDescriptorProto* mutable_value(int index);
  2070. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
  2071. mutable_value();
  2072. const ::google::protobuf::EnumValueDescriptorProto& value(int index) const;
  2073. ::google::protobuf::EnumValueDescriptorProto* add_value();
  2074. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
  2075. value() const;
  2076. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  2077. int reserved_range_size() const;
  2078. void clear_reserved_range();
  2079. static const int kReservedRangeFieldNumber = 4;
  2080. ::google::protobuf::EnumDescriptorProto_EnumReservedRange* mutable_reserved_range(int index);
  2081. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto_EnumReservedRange >*
  2082. mutable_reserved_range();
  2083. const ::google::protobuf::EnumDescriptorProto_EnumReservedRange& reserved_range(int index) const;
  2084. ::google::protobuf::EnumDescriptorProto_EnumReservedRange* add_reserved_range();
  2085. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto_EnumReservedRange >&
  2086. reserved_range() const;
  2087. // repeated string reserved_name = 5;
  2088. int reserved_name_size() const;
  2089. void clear_reserved_name();
  2090. static const int kReservedNameFieldNumber = 5;
  2091. const ::std::string& reserved_name(int index) const;
  2092. ::std::string* mutable_reserved_name(int index);
  2093. void set_reserved_name(int index, const ::std::string& value);
  2094. #if LANG_CXX11
  2095. void set_reserved_name(int index, ::std::string&& value);
  2096. #endif
  2097. void set_reserved_name(int index, const char* value);
  2098. void set_reserved_name(int index, const char* value, size_t size);
  2099. ::std::string* add_reserved_name();
  2100. void add_reserved_name(const ::std::string& value);
  2101. #if LANG_CXX11
  2102. void add_reserved_name(::std::string&& value);
  2103. #endif
  2104. void add_reserved_name(const char* value);
  2105. void add_reserved_name(const char* value, size_t size);
  2106. const ::google::protobuf::RepeatedPtrField< ::std::string>& reserved_name() const;
  2107. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_reserved_name();
  2108. // optional string name = 1;
  2109. bool has_name() const;
  2110. void clear_name();
  2111. static const int kNameFieldNumber = 1;
  2112. const ::std::string& name() const;
  2113. void set_name(const ::std::string& value);
  2114. #if LANG_CXX11
  2115. void set_name(::std::string&& value);
  2116. #endif
  2117. void set_name(const char* value);
  2118. void set_name(const char* value, size_t size);
  2119. ::std::string* mutable_name();
  2120. ::std::string* release_name();
  2121. void set_allocated_name(::std::string* name);
  2122. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2123. " string fields are deprecated and will be removed in a"
  2124. " future release.")
  2125. ::std::string* unsafe_arena_release_name();
  2126. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2127. " string fields are deprecated and will be removed in a"
  2128. " future release.")
  2129. void unsafe_arena_set_allocated_name(
  2130. ::std::string* name);
  2131. // optional .google.protobuf.EnumOptions options = 3;
  2132. bool has_options() const;
  2133. void clear_options();
  2134. static const int kOptionsFieldNumber = 3;
  2135. private:
  2136. const ::google::protobuf::EnumOptions& _internal_options() const;
  2137. public:
  2138. const ::google::protobuf::EnumOptions& options() const;
  2139. ::google::protobuf::EnumOptions* release_options();
  2140. ::google::protobuf::EnumOptions* mutable_options();
  2141. void set_allocated_options(::google::protobuf::EnumOptions* options);
  2142. void unsafe_arena_set_allocated_options(
  2143. ::google::protobuf::EnumOptions* options);
  2144. ::google::protobuf::EnumOptions* unsafe_arena_release_options();
  2145. // @@protoc_insertion_point(class_scope:google.protobuf.EnumDescriptorProto)
  2146. private:
  2147. void set_has_name();
  2148. void clear_has_name();
  2149. void set_has_options();
  2150. void clear_has_options();
  2151. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2152. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2153. typedef void InternalArenaConstructable_;
  2154. typedef void DestructorSkippable_;
  2155. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2156. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2157. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto > value_;
  2158. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto_EnumReservedRange > reserved_range_;
  2159. ::google::protobuf::RepeatedPtrField< ::std::string> reserved_name_;
  2160. ::google::protobuf::internal::ArenaStringPtr name_;
  2161. ::google::protobuf::EnumOptions* options_;
  2162. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  2163. };
  2164. // -------------------------------------------------------------------
  2165. class LIBPROTOBUF_EXPORT EnumValueDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueDescriptorProto) */ {
  2166. public:
  2167. EnumValueDescriptorProto();
  2168. virtual ~EnumValueDescriptorProto();
  2169. EnumValueDescriptorProto(const EnumValueDescriptorProto& from);
  2170. inline EnumValueDescriptorProto& operator=(const EnumValueDescriptorProto& from) {
  2171. CopyFrom(from);
  2172. return *this;
  2173. }
  2174. #if LANG_CXX11
  2175. EnumValueDescriptorProto(EnumValueDescriptorProto&& from) noexcept
  2176. : EnumValueDescriptorProto() {
  2177. *this = ::std::move(from);
  2178. }
  2179. inline EnumValueDescriptorProto& operator=(EnumValueDescriptorProto&& from) noexcept {
  2180. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2181. if (this != &from) InternalSwap(&from);
  2182. } else {
  2183. CopyFrom(from);
  2184. }
  2185. return *this;
  2186. }
  2187. #endif
  2188. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2189. return _internal_metadata_.unknown_fields();
  2190. }
  2191. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2192. return _internal_metadata_.mutable_unknown_fields();
  2193. }
  2194. inline ::google::protobuf::Arena* GetArena() const final {
  2195. return GetArenaNoVirtual();
  2196. }
  2197. inline void* GetMaybeArenaPointer() const final {
  2198. return MaybeArenaPtr();
  2199. }
  2200. static const ::google::protobuf::Descriptor* descriptor();
  2201. static const EnumValueDescriptorProto& default_instance();
  2202. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2203. static inline const EnumValueDescriptorProto* internal_default_instance() {
  2204. return reinterpret_cast<const EnumValueDescriptorProto*>(
  2205. &_EnumValueDescriptorProto_default_instance_);
  2206. }
  2207. static constexpr int kIndexInFileMessages =
  2208. 10;
  2209. void UnsafeArenaSwap(EnumValueDescriptorProto* other);
  2210. void Swap(EnumValueDescriptorProto* other);
  2211. friend void swap(EnumValueDescriptorProto& a, EnumValueDescriptorProto& b) {
  2212. a.Swap(&b);
  2213. }
  2214. // implements Message ----------------------------------------------
  2215. inline EnumValueDescriptorProto* New() const final {
  2216. return CreateMaybeMessage<EnumValueDescriptorProto>(NULL);
  2217. }
  2218. EnumValueDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  2219. return CreateMaybeMessage<EnumValueDescriptorProto>(arena);
  2220. }
  2221. void CopyFrom(const ::google::protobuf::Message& from) final;
  2222. void MergeFrom(const ::google::protobuf::Message& from) final;
  2223. void CopyFrom(const EnumValueDescriptorProto& from);
  2224. void MergeFrom(const EnumValueDescriptorProto& from);
  2225. void Clear() final;
  2226. bool IsInitialized() const final;
  2227. size_t ByteSizeLong() const final;
  2228. bool MergePartialFromCodedStream(
  2229. ::google::protobuf::io::CodedInputStream* input) final;
  2230. void SerializeWithCachedSizes(
  2231. ::google::protobuf::io::CodedOutputStream* output) const final;
  2232. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2233. bool deterministic, ::google::protobuf::uint8* target) const final;
  2234. int GetCachedSize() const final { return _cached_size_.Get(); }
  2235. private:
  2236. void SharedCtor();
  2237. void SharedDtor();
  2238. void SetCachedSize(int size) const final;
  2239. void InternalSwap(EnumValueDescriptorProto* other);
  2240. protected:
  2241. explicit EnumValueDescriptorProto(::google::protobuf::Arena* arena);
  2242. private:
  2243. static void ArenaDtor(void* object);
  2244. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2245. private:
  2246. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2247. return _internal_metadata_.arena();
  2248. }
  2249. inline void* MaybeArenaPtr() const {
  2250. return _internal_metadata_.raw_arena_ptr();
  2251. }
  2252. public:
  2253. ::google::protobuf::Metadata GetMetadata() const final;
  2254. // nested types ----------------------------------------------------
  2255. // accessors -------------------------------------------------------
  2256. // optional string name = 1;
  2257. bool has_name() const;
  2258. void clear_name();
  2259. static const int kNameFieldNumber = 1;
  2260. const ::std::string& name() const;
  2261. void set_name(const ::std::string& value);
  2262. #if LANG_CXX11
  2263. void set_name(::std::string&& value);
  2264. #endif
  2265. void set_name(const char* value);
  2266. void set_name(const char* value, size_t size);
  2267. ::std::string* mutable_name();
  2268. ::std::string* release_name();
  2269. void set_allocated_name(::std::string* name);
  2270. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2271. " string fields are deprecated and will be removed in a"
  2272. " future release.")
  2273. ::std::string* unsafe_arena_release_name();
  2274. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2275. " string fields are deprecated and will be removed in a"
  2276. " future release.")
  2277. void unsafe_arena_set_allocated_name(
  2278. ::std::string* name);
  2279. // optional .google.protobuf.EnumValueOptions options = 3;
  2280. bool has_options() const;
  2281. void clear_options();
  2282. static const int kOptionsFieldNumber = 3;
  2283. private:
  2284. const ::google::protobuf::EnumValueOptions& _internal_options() const;
  2285. public:
  2286. const ::google::protobuf::EnumValueOptions& options() const;
  2287. ::google::protobuf::EnumValueOptions* release_options();
  2288. ::google::protobuf::EnumValueOptions* mutable_options();
  2289. void set_allocated_options(::google::protobuf::EnumValueOptions* options);
  2290. void unsafe_arena_set_allocated_options(
  2291. ::google::protobuf::EnumValueOptions* options);
  2292. ::google::protobuf::EnumValueOptions* unsafe_arena_release_options();
  2293. // optional int32 number = 2;
  2294. bool has_number() const;
  2295. void clear_number();
  2296. static const int kNumberFieldNumber = 2;
  2297. ::google::protobuf::int32 number() const;
  2298. void set_number(::google::protobuf::int32 value);
  2299. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueDescriptorProto)
  2300. private:
  2301. void set_has_name();
  2302. void clear_has_name();
  2303. void set_has_number();
  2304. void clear_has_number();
  2305. void set_has_options();
  2306. void clear_has_options();
  2307. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2308. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2309. typedef void InternalArenaConstructable_;
  2310. typedef void DestructorSkippable_;
  2311. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2312. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2313. ::google::protobuf::internal::ArenaStringPtr name_;
  2314. ::google::protobuf::EnumValueOptions* options_;
  2315. ::google::protobuf::int32 number_;
  2316. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  2317. };
  2318. // -------------------------------------------------------------------
  2319. class LIBPROTOBUF_EXPORT ServiceDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceDescriptorProto) */ {
  2320. public:
  2321. ServiceDescriptorProto();
  2322. virtual ~ServiceDescriptorProto();
  2323. ServiceDescriptorProto(const ServiceDescriptorProto& from);
  2324. inline ServiceDescriptorProto& operator=(const ServiceDescriptorProto& from) {
  2325. CopyFrom(from);
  2326. return *this;
  2327. }
  2328. #if LANG_CXX11
  2329. ServiceDescriptorProto(ServiceDescriptorProto&& from) noexcept
  2330. : ServiceDescriptorProto() {
  2331. *this = ::std::move(from);
  2332. }
  2333. inline ServiceDescriptorProto& operator=(ServiceDescriptorProto&& from) noexcept {
  2334. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2335. if (this != &from) InternalSwap(&from);
  2336. } else {
  2337. CopyFrom(from);
  2338. }
  2339. return *this;
  2340. }
  2341. #endif
  2342. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2343. return _internal_metadata_.unknown_fields();
  2344. }
  2345. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2346. return _internal_metadata_.mutable_unknown_fields();
  2347. }
  2348. inline ::google::protobuf::Arena* GetArena() const final {
  2349. return GetArenaNoVirtual();
  2350. }
  2351. inline void* GetMaybeArenaPointer() const final {
  2352. return MaybeArenaPtr();
  2353. }
  2354. static const ::google::protobuf::Descriptor* descriptor();
  2355. static const ServiceDescriptorProto& default_instance();
  2356. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2357. static inline const ServiceDescriptorProto* internal_default_instance() {
  2358. return reinterpret_cast<const ServiceDescriptorProto*>(
  2359. &_ServiceDescriptorProto_default_instance_);
  2360. }
  2361. static constexpr int kIndexInFileMessages =
  2362. 11;
  2363. void UnsafeArenaSwap(ServiceDescriptorProto* other);
  2364. void Swap(ServiceDescriptorProto* other);
  2365. friend void swap(ServiceDescriptorProto& a, ServiceDescriptorProto& b) {
  2366. a.Swap(&b);
  2367. }
  2368. // implements Message ----------------------------------------------
  2369. inline ServiceDescriptorProto* New() const final {
  2370. return CreateMaybeMessage<ServiceDescriptorProto>(NULL);
  2371. }
  2372. ServiceDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  2373. return CreateMaybeMessage<ServiceDescriptorProto>(arena);
  2374. }
  2375. void CopyFrom(const ::google::protobuf::Message& from) final;
  2376. void MergeFrom(const ::google::protobuf::Message& from) final;
  2377. void CopyFrom(const ServiceDescriptorProto& from);
  2378. void MergeFrom(const ServiceDescriptorProto& from);
  2379. void Clear() final;
  2380. bool IsInitialized() const final;
  2381. size_t ByteSizeLong() const final;
  2382. bool MergePartialFromCodedStream(
  2383. ::google::protobuf::io::CodedInputStream* input) final;
  2384. void SerializeWithCachedSizes(
  2385. ::google::protobuf::io::CodedOutputStream* output) const final;
  2386. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2387. bool deterministic, ::google::protobuf::uint8* target) const final;
  2388. int GetCachedSize() const final { return _cached_size_.Get(); }
  2389. private:
  2390. void SharedCtor();
  2391. void SharedDtor();
  2392. void SetCachedSize(int size) const final;
  2393. void InternalSwap(ServiceDescriptorProto* other);
  2394. protected:
  2395. explicit ServiceDescriptorProto(::google::protobuf::Arena* arena);
  2396. private:
  2397. static void ArenaDtor(void* object);
  2398. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2399. private:
  2400. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2401. return _internal_metadata_.arena();
  2402. }
  2403. inline void* MaybeArenaPtr() const {
  2404. return _internal_metadata_.raw_arena_ptr();
  2405. }
  2406. public:
  2407. ::google::protobuf::Metadata GetMetadata() const final;
  2408. // nested types ----------------------------------------------------
  2409. // accessors -------------------------------------------------------
  2410. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  2411. int method_size() const;
  2412. void clear_method();
  2413. static const int kMethodFieldNumber = 2;
  2414. ::google::protobuf::MethodDescriptorProto* mutable_method(int index);
  2415. ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
  2416. mutable_method();
  2417. const ::google::protobuf::MethodDescriptorProto& method(int index) const;
  2418. ::google::protobuf::MethodDescriptorProto* add_method();
  2419. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
  2420. method() const;
  2421. // optional string name = 1;
  2422. bool has_name() const;
  2423. void clear_name();
  2424. static const int kNameFieldNumber = 1;
  2425. const ::std::string& name() const;
  2426. void set_name(const ::std::string& value);
  2427. #if LANG_CXX11
  2428. void set_name(::std::string&& value);
  2429. #endif
  2430. void set_name(const char* value);
  2431. void set_name(const char* value, size_t size);
  2432. ::std::string* mutable_name();
  2433. ::std::string* release_name();
  2434. void set_allocated_name(::std::string* name);
  2435. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2436. " string fields are deprecated and will be removed in a"
  2437. " future release.")
  2438. ::std::string* unsafe_arena_release_name();
  2439. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2440. " string fields are deprecated and will be removed in a"
  2441. " future release.")
  2442. void unsafe_arena_set_allocated_name(
  2443. ::std::string* name);
  2444. // optional .google.protobuf.ServiceOptions options = 3;
  2445. bool has_options() const;
  2446. void clear_options();
  2447. static const int kOptionsFieldNumber = 3;
  2448. private:
  2449. const ::google::protobuf::ServiceOptions& _internal_options() const;
  2450. public:
  2451. const ::google::protobuf::ServiceOptions& options() const;
  2452. ::google::protobuf::ServiceOptions* release_options();
  2453. ::google::protobuf::ServiceOptions* mutable_options();
  2454. void set_allocated_options(::google::protobuf::ServiceOptions* options);
  2455. void unsafe_arena_set_allocated_options(
  2456. ::google::protobuf::ServiceOptions* options);
  2457. ::google::protobuf::ServiceOptions* unsafe_arena_release_options();
  2458. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceDescriptorProto)
  2459. private:
  2460. void set_has_name();
  2461. void clear_has_name();
  2462. void set_has_options();
  2463. void clear_has_options();
  2464. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2465. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2466. typedef void InternalArenaConstructable_;
  2467. typedef void DestructorSkippable_;
  2468. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2469. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2470. ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto > method_;
  2471. ::google::protobuf::internal::ArenaStringPtr name_;
  2472. ::google::protobuf::ServiceOptions* options_;
  2473. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  2474. };
  2475. // -------------------------------------------------------------------
  2476. class LIBPROTOBUF_EXPORT MethodDescriptorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodDescriptorProto) */ {
  2477. public:
  2478. MethodDescriptorProto();
  2479. virtual ~MethodDescriptorProto();
  2480. MethodDescriptorProto(const MethodDescriptorProto& from);
  2481. inline MethodDescriptorProto& operator=(const MethodDescriptorProto& from) {
  2482. CopyFrom(from);
  2483. return *this;
  2484. }
  2485. #if LANG_CXX11
  2486. MethodDescriptorProto(MethodDescriptorProto&& from) noexcept
  2487. : MethodDescriptorProto() {
  2488. *this = ::std::move(from);
  2489. }
  2490. inline MethodDescriptorProto& operator=(MethodDescriptorProto&& from) noexcept {
  2491. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2492. if (this != &from) InternalSwap(&from);
  2493. } else {
  2494. CopyFrom(from);
  2495. }
  2496. return *this;
  2497. }
  2498. #endif
  2499. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2500. return _internal_metadata_.unknown_fields();
  2501. }
  2502. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2503. return _internal_metadata_.mutable_unknown_fields();
  2504. }
  2505. inline ::google::protobuf::Arena* GetArena() const final {
  2506. return GetArenaNoVirtual();
  2507. }
  2508. inline void* GetMaybeArenaPointer() const final {
  2509. return MaybeArenaPtr();
  2510. }
  2511. static const ::google::protobuf::Descriptor* descriptor();
  2512. static const MethodDescriptorProto& default_instance();
  2513. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2514. static inline const MethodDescriptorProto* internal_default_instance() {
  2515. return reinterpret_cast<const MethodDescriptorProto*>(
  2516. &_MethodDescriptorProto_default_instance_);
  2517. }
  2518. static constexpr int kIndexInFileMessages =
  2519. 12;
  2520. void UnsafeArenaSwap(MethodDescriptorProto* other);
  2521. void Swap(MethodDescriptorProto* other);
  2522. friend void swap(MethodDescriptorProto& a, MethodDescriptorProto& b) {
  2523. a.Swap(&b);
  2524. }
  2525. // implements Message ----------------------------------------------
  2526. inline MethodDescriptorProto* New() const final {
  2527. return CreateMaybeMessage<MethodDescriptorProto>(NULL);
  2528. }
  2529. MethodDescriptorProto* New(::google::protobuf::Arena* arena) const final {
  2530. return CreateMaybeMessage<MethodDescriptorProto>(arena);
  2531. }
  2532. void CopyFrom(const ::google::protobuf::Message& from) final;
  2533. void MergeFrom(const ::google::protobuf::Message& from) final;
  2534. void CopyFrom(const MethodDescriptorProto& from);
  2535. void MergeFrom(const MethodDescriptorProto& from);
  2536. void Clear() final;
  2537. bool IsInitialized() const final;
  2538. size_t ByteSizeLong() const final;
  2539. bool MergePartialFromCodedStream(
  2540. ::google::protobuf::io::CodedInputStream* input) final;
  2541. void SerializeWithCachedSizes(
  2542. ::google::protobuf::io::CodedOutputStream* output) const final;
  2543. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2544. bool deterministic, ::google::protobuf::uint8* target) const final;
  2545. int GetCachedSize() const final { return _cached_size_.Get(); }
  2546. private:
  2547. void SharedCtor();
  2548. void SharedDtor();
  2549. void SetCachedSize(int size) const final;
  2550. void InternalSwap(MethodDescriptorProto* other);
  2551. protected:
  2552. explicit MethodDescriptorProto(::google::protobuf::Arena* arena);
  2553. private:
  2554. static void ArenaDtor(void* object);
  2555. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2556. private:
  2557. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2558. return _internal_metadata_.arena();
  2559. }
  2560. inline void* MaybeArenaPtr() const {
  2561. return _internal_metadata_.raw_arena_ptr();
  2562. }
  2563. public:
  2564. ::google::protobuf::Metadata GetMetadata() const final;
  2565. // nested types ----------------------------------------------------
  2566. // accessors -------------------------------------------------------
  2567. // optional string name = 1;
  2568. bool has_name() const;
  2569. void clear_name();
  2570. static const int kNameFieldNumber = 1;
  2571. const ::std::string& name() const;
  2572. void set_name(const ::std::string& value);
  2573. #if LANG_CXX11
  2574. void set_name(::std::string&& value);
  2575. #endif
  2576. void set_name(const char* value);
  2577. void set_name(const char* value, size_t size);
  2578. ::std::string* mutable_name();
  2579. ::std::string* release_name();
  2580. void set_allocated_name(::std::string* name);
  2581. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2582. " string fields are deprecated and will be removed in a"
  2583. " future release.")
  2584. ::std::string* unsafe_arena_release_name();
  2585. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2586. " string fields are deprecated and will be removed in a"
  2587. " future release.")
  2588. void unsafe_arena_set_allocated_name(
  2589. ::std::string* name);
  2590. // optional string input_type = 2;
  2591. bool has_input_type() const;
  2592. void clear_input_type();
  2593. static const int kInputTypeFieldNumber = 2;
  2594. const ::std::string& input_type() const;
  2595. void set_input_type(const ::std::string& value);
  2596. #if LANG_CXX11
  2597. void set_input_type(::std::string&& value);
  2598. #endif
  2599. void set_input_type(const char* value);
  2600. void set_input_type(const char* value, size_t size);
  2601. ::std::string* mutable_input_type();
  2602. ::std::string* release_input_type();
  2603. void set_allocated_input_type(::std::string* input_type);
  2604. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2605. " string fields are deprecated and will be removed in a"
  2606. " future release.")
  2607. ::std::string* unsafe_arena_release_input_type();
  2608. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2609. " string fields are deprecated and will be removed in a"
  2610. " future release.")
  2611. void unsafe_arena_set_allocated_input_type(
  2612. ::std::string* input_type);
  2613. // optional string output_type = 3;
  2614. bool has_output_type() const;
  2615. void clear_output_type();
  2616. static const int kOutputTypeFieldNumber = 3;
  2617. const ::std::string& output_type() const;
  2618. void set_output_type(const ::std::string& value);
  2619. #if LANG_CXX11
  2620. void set_output_type(::std::string&& value);
  2621. #endif
  2622. void set_output_type(const char* value);
  2623. void set_output_type(const char* value, size_t size);
  2624. ::std::string* mutable_output_type();
  2625. ::std::string* release_output_type();
  2626. void set_allocated_output_type(::std::string* output_type);
  2627. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2628. " string fields are deprecated and will be removed in a"
  2629. " future release.")
  2630. ::std::string* unsafe_arena_release_output_type();
  2631. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2632. " string fields are deprecated and will be removed in a"
  2633. " future release.")
  2634. void unsafe_arena_set_allocated_output_type(
  2635. ::std::string* output_type);
  2636. // optional .google.protobuf.MethodOptions options = 4;
  2637. bool has_options() const;
  2638. void clear_options();
  2639. static const int kOptionsFieldNumber = 4;
  2640. private:
  2641. const ::google::protobuf::MethodOptions& _internal_options() const;
  2642. public:
  2643. const ::google::protobuf::MethodOptions& options() const;
  2644. ::google::protobuf::MethodOptions* release_options();
  2645. ::google::protobuf::MethodOptions* mutable_options();
  2646. void set_allocated_options(::google::protobuf::MethodOptions* options);
  2647. void unsafe_arena_set_allocated_options(
  2648. ::google::protobuf::MethodOptions* options);
  2649. ::google::protobuf::MethodOptions* unsafe_arena_release_options();
  2650. // optional bool client_streaming = 5 [default = false];
  2651. bool has_client_streaming() const;
  2652. void clear_client_streaming();
  2653. static const int kClientStreamingFieldNumber = 5;
  2654. bool client_streaming() const;
  2655. void set_client_streaming(bool value);
  2656. // optional bool server_streaming = 6 [default = false];
  2657. bool has_server_streaming() const;
  2658. void clear_server_streaming();
  2659. static const int kServerStreamingFieldNumber = 6;
  2660. bool server_streaming() const;
  2661. void set_server_streaming(bool value);
  2662. // @@protoc_insertion_point(class_scope:google.protobuf.MethodDescriptorProto)
  2663. private:
  2664. void set_has_name();
  2665. void clear_has_name();
  2666. void set_has_input_type();
  2667. void clear_has_input_type();
  2668. void set_has_output_type();
  2669. void clear_has_output_type();
  2670. void set_has_options();
  2671. void clear_has_options();
  2672. void set_has_client_streaming();
  2673. void clear_has_client_streaming();
  2674. void set_has_server_streaming();
  2675. void clear_has_server_streaming();
  2676. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  2677. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  2678. typedef void InternalArenaConstructable_;
  2679. typedef void DestructorSkippable_;
  2680. ::google::protobuf::internal::HasBits<1> _has_bits_;
  2681. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  2682. ::google::protobuf::internal::ArenaStringPtr name_;
  2683. ::google::protobuf::internal::ArenaStringPtr input_type_;
  2684. ::google::protobuf::internal::ArenaStringPtr output_type_;
  2685. ::google::protobuf::MethodOptions* options_;
  2686. bool client_streaming_;
  2687. bool server_streaming_;
  2688. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  2689. };
  2690. // -------------------------------------------------------------------
  2691. class LIBPROTOBUF_EXPORT FileOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FileOptions) */ {
  2692. public:
  2693. FileOptions();
  2694. virtual ~FileOptions();
  2695. FileOptions(const FileOptions& from);
  2696. inline FileOptions& operator=(const FileOptions& from) {
  2697. CopyFrom(from);
  2698. return *this;
  2699. }
  2700. #if LANG_CXX11
  2701. FileOptions(FileOptions&& from) noexcept
  2702. : FileOptions() {
  2703. *this = ::std::move(from);
  2704. }
  2705. inline FileOptions& operator=(FileOptions&& from) noexcept {
  2706. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  2707. if (this != &from) InternalSwap(&from);
  2708. } else {
  2709. CopyFrom(from);
  2710. }
  2711. return *this;
  2712. }
  2713. #endif
  2714. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  2715. return _internal_metadata_.unknown_fields();
  2716. }
  2717. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  2718. return _internal_metadata_.mutable_unknown_fields();
  2719. }
  2720. inline ::google::protobuf::Arena* GetArena() const final {
  2721. return GetArenaNoVirtual();
  2722. }
  2723. inline void* GetMaybeArenaPointer() const final {
  2724. return MaybeArenaPtr();
  2725. }
  2726. static const ::google::protobuf::Descriptor* descriptor();
  2727. static const FileOptions& default_instance();
  2728. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  2729. static inline const FileOptions* internal_default_instance() {
  2730. return reinterpret_cast<const FileOptions*>(
  2731. &_FileOptions_default_instance_);
  2732. }
  2733. static constexpr int kIndexInFileMessages =
  2734. 13;
  2735. void UnsafeArenaSwap(FileOptions* other);
  2736. void Swap(FileOptions* other);
  2737. friend void swap(FileOptions& a, FileOptions& b) {
  2738. a.Swap(&b);
  2739. }
  2740. // implements Message ----------------------------------------------
  2741. inline FileOptions* New() const final {
  2742. return CreateMaybeMessage<FileOptions>(NULL);
  2743. }
  2744. FileOptions* New(::google::protobuf::Arena* arena) const final {
  2745. return CreateMaybeMessage<FileOptions>(arena);
  2746. }
  2747. void CopyFrom(const ::google::protobuf::Message& from) final;
  2748. void MergeFrom(const ::google::protobuf::Message& from) final;
  2749. void CopyFrom(const FileOptions& from);
  2750. void MergeFrom(const FileOptions& from);
  2751. void Clear() final;
  2752. bool IsInitialized() const final;
  2753. size_t ByteSizeLong() const final;
  2754. bool MergePartialFromCodedStream(
  2755. ::google::protobuf::io::CodedInputStream* input) final;
  2756. void SerializeWithCachedSizes(
  2757. ::google::protobuf::io::CodedOutputStream* output) const final;
  2758. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  2759. bool deterministic, ::google::protobuf::uint8* target) const final;
  2760. int GetCachedSize() const final { return _cached_size_.Get(); }
  2761. private:
  2762. void SharedCtor();
  2763. void SharedDtor();
  2764. void SetCachedSize(int size) const final;
  2765. void InternalSwap(FileOptions* other);
  2766. protected:
  2767. explicit FileOptions(::google::protobuf::Arena* arena);
  2768. private:
  2769. static void ArenaDtor(void* object);
  2770. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  2771. private:
  2772. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  2773. return _internal_metadata_.arena();
  2774. }
  2775. inline void* MaybeArenaPtr() const {
  2776. return _internal_metadata_.raw_arena_ptr();
  2777. }
  2778. public:
  2779. ::google::protobuf::Metadata GetMetadata() const final;
  2780. // nested types ----------------------------------------------------
  2781. typedef FileOptions_OptimizeMode OptimizeMode;
  2782. static const OptimizeMode SPEED =
  2783. FileOptions_OptimizeMode_SPEED;
  2784. static const OptimizeMode CODE_SIZE =
  2785. FileOptions_OptimizeMode_CODE_SIZE;
  2786. static const OptimizeMode LITE_RUNTIME =
  2787. FileOptions_OptimizeMode_LITE_RUNTIME;
  2788. static inline bool OptimizeMode_IsValid(int value) {
  2789. return FileOptions_OptimizeMode_IsValid(value);
  2790. }
  2791. static const OptimizeMode OptimizeMode_MIN =
  2792. FileOptions_OptimizeMode_OptimizeMode_MIN;
  2793. static const OptimizeMode OptimizeMode_MAX =
  2794. FileOptions_OptimizeMode_OptimizeMode_MAX;
  2795. static const int OptimizeMode_ARRAYSIZE =
  2796. FileOptions_OptimizeMode_OptimizeMode_ARRAYSIZE;
  2797. static inline const ::google::protobuf::EnumDescriptor*
  2798. OptimizeMode_descriptor() {
  2799. return FileOptions_OptimizeMode_descriptor();
  2800. }
  2801. static inline const ::std::string& OptimizeMode_Name(OptimizeMode value) {
  2802. return FileOptions_OptimizeMode_Name(value);
  2803. }
  2804. static inline bool OptimizeMode_Parse(const ::std::string& name,
  2805. OptimizeMode* value) {
  2806. return FileOptions_OptimizeMode_Parse(name, value);
  2807. }
  2808. // accessors -------------------------------------------------------
  2809. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  2810. int uninterpreted_option_size() const;
  2811. void clear_uninterpreted_option();
  2812. static const int kUninterpretedOptionFieldNumber = 999;
  2813. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  2814. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  2815. mutable_uninterpreted_option();
  2816. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  2817. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  2818. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  2819. uninterpreted_option() const;
  2820. // optional string java_package = 1;
  2821. bool has_java_package() const;
  2822. void clear_java_package();
  2823. static const int kJavaPackageFieldNumber = 1;
  2824. const ::std::string& java_package() const;
  2825. void set_java_package(const ::std::string& value);
  2826. #if LANG_CXX11
  2827. void set_java_package(::std::string&& value);
  2828. #endif
  2829. void set_java_package(const char* value);
  2830. void set_java_package(const char* value, size_t size);
  2831. ::std::string* mutable_java_package();
  2832. ::std::string* release_java_package();
  2833. void set_allocated_java_package(::std::string* java_package);
  2834. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2835. " string fields are deprecated and will be removed in a"
  2836. " future release.")
  2837. ::std::string* unsafe_arena_release_java_package();
  2838. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2839. " string fields are deprecated and will be removed in a"
  2840. " future release.")
  2841. void unsafe_arena_set_allocated_java_package(
  2842. ::std::string* java_package);
  2843. // optional string java_outer_classname = 8;
  2844. bool has_java_outer_classname() const;
  2845. void clear_java_outer_classname();
  2846. static const int kJavaOuterClassnameFieldNumber = 8;
  2847. const ::std::string& java_outer_classname() const;
  2848. void set_java_outer_classname(const ::std::string& value);
  2849. #if LANG_CXX11
  2850. void set_java_outer_classname(::std::string&& value);
  2851. #endif
  2852. void set_java_outer_classname(const char* value);
  2853. void set_java_outer_classname(const char* value, size_t size);
  2854. ::std::string* mutable_java_outer_classname();
  2855. ::std::string* release_java_outer_classname();
  2856. void set_allocated_java_outer_classname(::std::string* java_outer_classname);
  2857. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2858. " string fields are deprecated and will be removed in a"
  2859. " future release.")
  2860. ::std::string* unsafe_arena_release_java_outer_classname();
  2861. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2862. " string fields are deprecated and will be removed in a"
  2863. " future release.")
  2864. void unsafe_arena_set_allocated_java_outer_classname(
  2865. ::std::string* java_outer_classname);
  2866. // optional string go_package = 11;
  2867. bool has_go_package() const;
  2868. void clear_go_package();
  2869. static const int kGoPackageFieldNumber = 11;
  2870. const ::std::string& go_package() const;
  2871. void set_go_package(const ::std::string& value);
  2872. #if LANG_CXX11
  2873. void set_go_package(::std::string&& value);
  2874. #endif
  2875. void set_go_package(const char* value);
  2876. void set_go_package(const char* value, size_t size);
  2877. ::std::string* mutable_go_package();
  2878. ::std::string* release_go_package();
  2879. void set_allocated_go_package(::std::string* go_package);
  2880. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2881. " string fields are deprecated and will be removed in a"
  2882. " future release.")
  2883. ::std::string* unsafe_arena_release_go_package();
  2884. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2885. " string fields are deprecated and will be removed in a"
  2886. " future release.")
  2887. void unsafe_arena_set_allocated_go_package(
  2888. ::std::string* go_package);
  2889. // optional string objc_class_prefix = 36;
  2890. bool has_objc_class_prefix() const;
  2891. void clear_objc_class_prefix();
  2892. static const int kObjcClassPrefixFieldNumber = 36;
  2893. const ::std::string& objc_class_prefix() const;
  2894. void set_objc_class_prefix(const ::std::string& value);
  2895. #if LANG_CXX11
  2896. void set_objc_class_prefix(::std::string&& value);
  2897. #endif
  2898. void set_objc_class_prefix(const char* value);
  2899. void set_objc_class_prefix(const char* value, size_t size);
  2900. ::std::string* mutable_objc_class_prefix();
  2901. ::std::string* release_objc_class_prefix();
  2902. void set_allocated_objc_class_prefix(::std::string* objc_class_prefix);
  2903. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2904. " string fields are deprecated and will be removed in a"
  2905. " future release.")
  2906. ::std::string* unsafe_arena_release_objc_class_prefix();
  2907. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2908. " string fields are deprecated and will be removed in a"
  2909. " future release.")
  2910. void unsafe_arena_set_allocated_objc_class_prefix(
  2911. ::std::string* objc_class_prefix);
  2912. // optional string csharp_namespace = 37;
  2913. bool has_csharp_namespace() const;
  2914. void clear_csharp_namespace();
  2915. static const int kCsharpNamespaceFieldNumber = 37;
  2916. const ::std::string& csharp_namespace() const;
  2917. void set_csharp_namespace(const ::std::string& value);
  2918. #if LANG_CXX11
  2919. void set_csharp_namespace(::std::string&& value);
  2920. #endif
  2921. void set_csharp_namespace(const char* value);
  2922. void set_csharp_namespace(const char* value, size_t size);
  2923. ::std::string* mutable_csharp_namespace();
  2924. ::std::string* release_csharp_namespace();
  2925. void set_allocated_csharp_namespace(::std::string* csharp_namespace);
  2926. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2927. " string fields are deprecated and will be removed in a"
  2928. " future release.")
  2929. ::std::string* unsafe_arena_release_csharp_namespace();
  2930. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2931. " string fields are deprecated and will be removed in a"
  2932. " future release.")
  2933. void unsafe_arena_set_allocated_csharp_namespace(
  2934. ::std::string* csharp_namespace);
  2935. // optional string swift_prefix = 39;
  2936. bool has_swift_prefix() const;
  2937. void clear_swift_prefix();
  2938. static const int kSwiftPrefixFieldNumber = 39;
  2939. const ::std::string& swift_prefix() const;
  2940. void set_swift_prefix(const ::std::string& value);
  2941. #if LANG_CXX11
  2942. void set_swift_prefix(::std::string&& value);
  2943. #endif
  2944. void set_swift_prefix(const char* value);
  2945. void set_swift_prefix(const char* value, size_t size);
  2946. ::std::string* mutable_swift_prefix();
  2947. ::std::string* release_swift_prefix();
  2948. void set_allocated_swift_prefix(::std::string* swift_prefix);
  2949. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2950. " string fields are deprecated and will be removed in a"
  2951. " future release.")
  2952. ::std::string* unsafe_arena_release_swift_prefix();
  2953. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2954. " string fields are deprecated and will be removed in a"
  2955. " future release.")
  2956. void unsafe_arena_set_allocated_swift_prefix(
  2957. ::std::string* swift_prefix);
  2958. // optional string php_class_prefix = 40;
  2959. bool has_php_class_prefix() const;
  2960. void clear_php_class_prefix();
  2961. static const int kPhpClassPrefixFieldNumber = 40;
  2962. const ::std::string& php_class_prefix() const;
  2963. void set_php_class_prefix(const ::std::string& value);
  2964. #if LANG_CXX11
  2965. void set_php_class_prefix(::std::string&& value);
  2966. #endif
  2967. void set_php_class_prefix(const char* value);
  2968. void set_php_class_prefix(const char* value, size_t size);
  2969. ::std::string* mutable_php_class_prefix();
  2970. ::std::string* release_php_class_prefix();
  2971. void set_allocated_php_class_prefix(::std::string* php_class_prefix);
  2972. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2973. " string fields are deprecated and will be removed in a"
  2974. " future release.")
  2975. ::std::string* unsafe_arena_release_php_class_prefix();
  2976. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2977. " string fields are deprecated and will be removed in a"
  2978. " future release.")
  2979. void unsafe_arena_set_allocated_php_class_prefix(
  2980. ::std::string* php_class_prefix);
  2981. // optional string php_namespace = 41;
  2982. bool has_php_namespace() const;
  2983. void clear_php_namespace();
  2984. static const int kPhpNamespaceFieldNumber = 41;
  2985. const ::std::string& php_namespace() const;
  2986. void set_php_namespace(const ::std::string& value);
  2987. #if LANG_CXX11
  2988. void set_php_namespace(::std::string&& value);
  2989. #endif
  2990. void set_php_namespace(const char* value);
  2991. void set_php_namespace(const char* value, size_t size);
  2992. ::std::string* mutable_php_namespace();
  2993. ::std::string* release_php_namespace();
  2994. void set_allocated_php_namespace(::std::string* php_namespace);
  2995. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  2996. " string fields are deprecated and will be removed in a"
  2997. " future release.")
  2998. ::std::string* unsafe_arena_release_php_namespace();
  2999. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3000. " string fields are deprecated and will be removed in a"
  3001. " future release.")
  3002. void unsafe_arena_set_allocated_php_namespace(
  3003. ::std::string* php_namespace);
  3004. // optional string php_metadata_namespace = 44;
  3005. bool has_php_metadata_namespace() const;
  3006. void clear_php_metadata_namespace();
  3007. static const int kPhpMetadataNamespaceFieldNumber = 44;
  3008. const ::std::string& php_metadata_namespace() const;
  3009. void set_php_metadata_namespace(const ::std::string& value);
  3010. #if LANG_CXX11
  3011. void set_php_metadata_namespace(::std::string&& value);
  3012. #endif
  3013. void set_php_metadata_namespace(const char* value);
  3014. void set_php_metadata_namespace(const char* value, size_t size);
  3015. ::std::string* mutable_php_metadata_namespace();
  3016. ::std::string* release_php_metadata_namespace();
  3017. void set_allocated_php_metadata_namespace(::std::string* php_metadata_namespace);
  3018. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3019. " string fields are deprecated and will be removed in a"
  3020. " future release.")
  3021. ::std::string* unsafe_arena_release_php_metadata_namespace();
  3022. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3023. " string fields are deprecated and will be removed in a"
  3024. " future release.")
  3025. void unsafe_arena_set_allocated_php_metadata_namespace(
  3026. ::std::string* php_metadata_namespace);
  3027. // optional string ruby_package = 45;
  3028. bool has_ruby_package() const;
  3029. void clear_ruby_package();
  3030. static const int kRubyPackageFieldNumber = 45;
  3031. const ::std::string& ruby_package() const;
  3032. void set_ruby_package(const ::std::string& value);
  3033. #if LANG_CXX11
  3034. void set_ruby_package(::std::string&& value);
  3035. #endif
  3036. void set_ruby_package(const char* value);
  3037. void set_ruby_package(const char* value, size_t size);
  3038. ::std::string* mutable_ruby_package();
  3039. ::std::string* release_ruby_package();
  3040. void set_allocated_ruby_package(::std::string* ruby_package);
  3041. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3042. " string fields are deprecated and will be removed in a"
  3043. " future release.")
  3044. ::std::string* unsafe_arena_release_ruby_package();
  3045. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  3046. " string fields are deprecated and will be removed in a"
  3047. " future release.")
  3048. void unsafe_arena_set_allocated_ruby_package(
  3049. ::std::string* ruby_package);
  3050. // optional bool java_multiple_files = 10 [default = false];
  3051. bool has_java_multiple_files() const;
  3052. void clear_java_multiple_files();
  3053. static const int kJavaMultipleFilesFieldNumber = 10;
  3054. bool java_multiple_files() const;
  3055. void set_java_multiple_files(bool value);
  3056. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  3057. GOOGLE_PROTOBUF_DEPRECATED_ATTR bool has_java_generate_equals_and_hash() const;
  3058. GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_java_generate_equals_and_hash();
  3059. GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kJavaGenerateEqualsAndHashFieldNumber = 20;
  3060. GOOGLE_PROTOBUF_DEPRECATED_ATTR bool java_generate_equals_and_hash() const;
  3061. GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_java_generate_equals_and_hash(bool value);
  3062. // optional bool java_string_check_utf8 = 27 [default = false];
  3063. bool has_java_string_check_utf8() const;
  3064. void clear_java_string_check_utf8();
  3065. static const int kJavaStringCheckUtf8FieldNumber = 27;
  3066. bool java_string_check_utf8() const;
  3067. void set_java_string_check_utf8(bool value);
  3068. // optional bool cc_generic_services = 16 [default = false];
  3069. bool has_cc_generic_services() const;
  3070. void clear_cc_generic_services();
  3071. static const int kCcGenericServicesFieldNumber = 16;
  3072. bool cc_generic_services() const;
  3073. void set_cc_generic_services(bool value);
  3074. // optional bool java_generic_services = 17 [default = false];
  3075. bool has_java_generic_services() const;
  3076. void clear_java_generic_services();
  3077. static const int kJavaGenericServicesFieldNumber = 17;
  3078. bool java_generic_services() const;
  3079. void set_java_generic_services(bool value);
  3080. // optional bool py_generic_services = 18 [default = false];
  3081. bool has_py_generic_services() const;
  3082. void clear_py_generic_services();
  3083. static const int kPyGenericServicesFieldNumber = 18;
  3084. bool py_generic_services() const;
  3085. void set_py_generic_services(bool value);
  3086. // optional bool php_generic_services = 42 [default = false];
  3087. bool has_php_generic_services() const;
  3088. void clear_php_generic_services();
  3089. static const int kPhpGenericServicesFieldNumber = 42;
  3090. bool php_generic_services() const;
  3091. void set_php_generic_services(bool value);
  3092. // optional bool deprecated = 23 [default = false];
  3093. bool has_deprecated() const;
  3094. void clear_deprecated();
  3095. static const int kDeprecatedFieldNumber = 23;
  3096. bool deprecated() const;
  3097. void set_deprecated(bool value);
  3098. // optional bool cc_enable_arenas = 31 [default = false];
  3099. bool has_cc_enable_arenas() const;
  3100. void clear_cc_enable_arenas();
  3101. static const int kCcEnableArenasFieldNumber = 31;
  3102. bool cc_enable_arenas() const;
  3103. void set_cc_enable_arenas(bool value);
  3104. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  3105. bool has_optimize_for() const;
  3106. void clear_optimize_for();
  3107. static const int kOptimizeForFieldNumber = 9;
  3108. ::google::protobuf::FileOptions_OptimizeMode optimize_for() const;
  3109. void set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value);
  3110. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FileOptions)
  3111. // @@protoc_insertion_point(class_scope:google.protobuf.FileOptions)
  3112. private:
  3113. void set_has_java_package();
  3114. void clear_has_java_package();
  3115. void set_has_java_outer_classname();
  3116. void clear_has_java_outer_classname();
  3117. void set_has_java_multiple_files();
  3118. void clear_has_java_multiple_files();
  3119. void set_has_java_generate_equals_and_hash();
  3120. void clear_has_java_generate_equals_and_hash();
  3121. void set_has_java_string_check_utf8();
  3122. void clear_has_java_string_check_utf8();
  3123. void set_has_optimize_for();
  3124. void clear_has_optimize_for();
  3125. void set_has_go_package();
  3126. void clear_has_go_package();
  3127. void set_has_cc_generic_services();
  3128. void clear_has_cc_generic_services();
  3129. void set_has_java_generic_services();
  3130. void clear_has_java_generic_services();
  3131. void set_has_py_generic_services();
  3132. void clear_has_py_generic_services();
  3133. void set_has_php_generic_services();
  3134. void clear_has_php_generic_services();
  3135. void set_has_deprecated();
  3136. void clear_has_deprecated();
  3137. void set_has_cc_enable_arenas();
  3138. void clear_has_cc_enable_arenas();
  3139. void set_has_objc_class_prefix();
  3140. void clear_has_objc_class_prefix();
  3141. void set_has_csharp_namespace();
  3142. void clear_has_csharp_namespace();
  3143. void set_has_swift_prefix();
  3144. void clear_has_swift_prefix();
  3145. void set_has_php_class_prefix();
  3146. void clear_has_php_class_prefix();
  3147. void set_has_php_namespace();
  3148. void clear_has_php_namespace();
  3149. void set_has_php_metadata_namespace();
  3150. void clear_has_php_metadata_namespace();
  3151. void set_has_ruby_package();
  3152. void clear_has_ruby_package();
  3153. ::google::protobuf::internal::ExtensionSet _extensions_;
  3154. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3155. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3156. typedef void InternalArenaConstructable_;
  3157. typedef void DestructorSkippable_;
  3158. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3159. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3160. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3161. ::google::protobuf::internal::ArenaStringPtr java_package_;
  3162. ::google::protobuf::internal::ArenaStringPtr java_outer_classname_;
  3163. ::google::protobuf::internal::ArenaStringPtr go_package_;
  3164. ::google::protobuf::internal::ArenaStringPtr objc_class_prefix_;
  3165. ::google::protobuf::internal::ArenaStringPtr csharp_namespace_;
  3166. ::google::protobuf::internal::ArenaStringPtr swift_prefix_;
  3167. ::google::protobuf::internal::ArenaStringPtr php_class_prefix_;
  3168. ::google::protobuf::internal::ArenaStringPtr php_namespace_;
  3169. ::google::protobuf::internal::ArenaStringPtr php_metadata_namespace_;
  3170. ::google::protobuf::internal::ArenaStringPtr ruby_package_;
  3171. bool java_multiple_files_;
  3172. bool java_generate_equals_and_hash_;
  3173. bool java_string_check_utf8_;
  3174. bool cc_generic_services_;
  3175. bool java_generic_services_;
  3176. bool py_generic_services_;
  3177. bool php_generic_services_;
  3178. bool deprecated_;
  3179. bool cc_enable_arenas_;
  3180. int optimize_for_;
  3181. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3182. };
  3183. // -------------------------------------------------------------------
  3184. class LIBPROTOBUF_EXPORT MessageOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MessageOptions) */ {
  3185. public:
  3186. MessageOptions();
  3187. virtual ~MessageOptions();
  3188. MessageOptions(const MessageOptions& from);
  3189. inline MessageOptions& operator=(const MessageOptions& from) {
  3190. CopyFrom(from);
  3191. return *this;
  3192. }
  3193. #if LANG_CXX11
  3194. MessageOptions(MessageOptions&& from) noexcept
  3195. : MessageOptions() {
  3196. *this = ::std::move(from);
  3197. }
  3198. inline MessageOptions& operator=(MessageOptions&& from) noexcept {
  3199. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3200. if (this != &from) InternalSwap(&from);
  3201. } else {
  3202. CopyFrom(from);
  3203. }
  3204. return *this;
  3205. }
  3206. #endif
  3207. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3208. return _internal_metadata_.unknown_fields();
  3209. }
  3210. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3211. return _internal_metadata_.mutable_unknown_fields();
  3212. }
  3213. inline ::google::protobuf::Arena* GetArena() const final {
  3214. return GetArenaNoVirtual();
  3215. }
  3216. inline void* GetMaybeArenaPointer() const final {
  3217. return MaybeArenaPtr();
  3218. }
  3219. static const ::google::protobuf::Descriptor* descriptor();
  3220. static const MessageOptions& default_instance();
  3221. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3222. static inline const MessageOptions* internal_default_instance() {
  3223. return reinterpret_cast<const MessageOptions*>(
  3224. &_MessageOptions_default_instance_);
  3225. }
  3226. static constexpr int kIndexInFileMessages =
  3227. 14;
  3228. void UnsafeArenaSwap(MessageOptions* other);
  3229. void Swap(MessageOptions* other);
  3230. friend void swap(MessageOptions& a, MessageOptions& b) {
  3231. a.Swap(&b);
  3232. }
  3233. // implements Message ----------------------------------------------
  3234. inline MessageOptions* New() const final {
  3235. return CreateMaybeMessage<MessageOptions>(NULL);
  3236. }
  3237. MessageOptions* New(::google::protobuf::Arena* arena) const final {
  3238. return CreateMaybeMessage<MessageOptions>(arena);
  3239. }
  3240. void CopyFrom(const ::google::protobuf::Message& from) final;
  3241. void MergeFrom(const ::google::protobuf::Message& from) final;
  3242. void CopyFrom(const MessageOptions& from);
  3243. void MergeFrom(const MessageOptions& from);
  3244. void Clear() final;
  3245. bool IsInitialized() const final;
  3246. size_t ByteSizeLong() const final;
  3247. bool MergePartialFromCodedStream(
  3248. ::google::protobuf::io::CodedInputStream* input) final;
  3249. void SerializeWithCachedSizes(
  3250. ::google::protobuf::io::CodedOutputStream* output) const final;
  3251. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3252. bool deterministic, ::google::protobuf::uint8* target) const final;
  3253. int GetCachedSize() const final { return _cached_size_.Get(); }
  3254. private:
  3255. void SharedCtor();
  3256. void SharedDtor();
  3257. void SetCachedSize(int size) const final;
  3258. void InternalSwap(MessageOptions* other);
  3259. protected:
  3260. explicit MessageOptions(::google::protobuf::Arena* arena);
  3261. private:
  3262. static void ArenaDtor(void* object);
  3263. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3264. private:
  3265. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3266. return _internal_metadata_.arena();
  3267. }
  3268. inline void* MaybeArenaPtr() const {
  3269. return _internal_metadata_.raw_arena_ptr();
  3270. }
  3271. public:
  3272. ::google::protobuf::Metadata GetMetadata() const final;
  3273. // nested types ----------------------------------------------------
  3274. // accessors -------------------------------------------------------
  3275. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3276. int uninterpreted_option_size() const;
  3277. void clear_uninterpreted_option();
  3278. static const int kUninterpretedOptionFieldNumber = 999;
  3279. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  3280. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3281. mutable_uninterpreted_option();
  3282. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  3283. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  3284. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3285. uninterpreted_option() const;
  3286. // optional bool message_set_wire_format = 1 [default = false];
  3287. bool has_message_set_wire_format() const;
  3288. void clear_message_set_wire_format();
  3289. static const int kMessageSetWireFormatFieldNumber = 1;
  3290. bool message_set_wire_format() const;
  3291. void set_message_set_wire_format(bool value);
  3292. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  3293. bool has_no_standard_descriptor_accessor() const;
  3294. void clear_no_standard_descriptor_accessor();
  3295. static const int kNoStandardDescriptorAccessorFieldNumber = 2;
  3296. bool no_standard_descriptor_accessor() const;
  3297. void set_no_standard_descriptor_accessor(bool value);
  3298. // optional bool deprecated = 3 [default = false];
  3299. bool has_deprecated() const;
  3300. void clear_deprecated();
  3301. static const int kDeprecatedFieldNumber = 3;
  3302. bool deprecated() const;
  3303. void set_deprecated(bool value);
  3304. // optional bool map_entry = 7;
  3305. bool has_map_entry() const;
  3306. void clear_map_entry();
  3307. static const int kMapEntryFieldNumber = 7;
  3308. bool map_entry() const;
  3309. void set_map_entry(bool value);
  3310. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MessageOptions)
  3311. // @@protoc_insertion_point(class_scope:google.protobuf.MessageOptions)
  3312. private:
  3313. void set_has_message_set_wire_format();
  3314. void clear_has_message_set_wire_format();
  3315. void set_has_no_standard_descriptor_accessor();
  3316. void clear_has_no_standard_descriptor_accessor();
  3317. void set_has_deprecated();
  3318. void clear_has_deprecated();
  3319. void set_has_map_entry();
  3320. void clear_has_map_entry();
  3321. ::google::protobuf::internal::ExtensionSet _extensions_;
  3322. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3323. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3324. typedef void InternalArenaConstructable_;
  3325. typedef void DestructorSkippable_;
  3326. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3327. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3328. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3329. bool message_set_wire_format_;
  3330. bool no_standard_descriptor_accessor_;
  3331. bool deprecated_;
  3332. bool map_entry_;
  3333. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3334. };
  3335. // -------------------------------------------------------------------
  3336. class LIBPROTOBUF_EXPORT FieldOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.FieldOptions) */ {
  3337. public:
  3338. FieldOptions();
  3339. virtual ~FieldOptions();
  3340. FieldOptions(const FieldOptions& from);
  3341. inline FieldOptions& operator=(const FieldOptions& from) {
  3342. CopyFrom(from);
  3343. return *this;
  3344. }
  3345. #if LANG_CXX11
  3346. FieldOptions(FieldOptions&& from) noexcept
  3347. : FieldOptions() {
  3348. *this = ::std::move(from);
  3349. }
  3350. inline FieldOptions& operator=(FieldOptions&& from) noexcept {
  3351. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3352. if (this != &from) InternalSwap(&from);
  3353. } else {
  3354. CopyFrom(from);
  3355. }
  3356. return *this;
  3357. }
  3358. #endif
  3359. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3360. return _internal_metadata_.unknown_fields();
  3361. }
  3362. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3363. return _internal_metadata_.mutable_unknown_fields();
  3364. }
  3365. inline ::google::protobuf::Arena* GetArena() const final {
  3366. return GetArenaNoVirtual();
  3367. }
  3368. inline void* GetMaybeArenaPointer() const final {
  3369. return MaybeArenaPtr();
  3370. }
  3371. static const ::google::protobuf::Descriptor* descriptor();
  3372. static const FieldOptions& default_instance();
  3373. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3374. static inline const FieldOptions* internal_default_instance() {
  3375. return reinterpret_cast<const FieldOptions*>(
  3376. &_FieldOptions_default_instance_);
  3377. }
  3378. static constexpr int kIndexInFileMessages =
  3379. 15;
  3380. void UnsafeArenaSwap(FieldOptions* other);
  3381. void Swap(FieldOptions* other);
  3382. friend void swap(FieldOptions& a, FieldOptions& b) {
  3383. a.Swap(&b);
  3384. }
  3385. // implements Message ----------------------------------------------
  3386. inline FieldOptions* New() const final {
  3387. return CreateMaybeMessage<FieldOptions>(NULL);
  3388. }
  3389. FieldOptions* New(::google::protobuf::Arena* arena) const final {
  3390. return CreateMaybeMessage<FieldOptions>(arena);
  3391. }
  3392. void CopyFrom(const ::google::protobuf::Message& from) final;
  3393. void MergeFrom(const ::google::protobuf::Message& from) final;
  3394. void CopyFrom(const FieldOptions& from);
  3395. void MergeFrom(const FieldOptions& from);
  3396. void Clear() final;
  3397. bool IsInitialized() const final;
  3398. size_t ByteSizeLong() const final;
  3399. bool MergePartialFromCodedStream(
  3400. ::google::protobuf::io::CodedInputStream* input) final;
  3401. void SerializeWithCachedSizes(
  3402. ::google::protobuf::io::CodedOutputStream* output) const final;
  3403. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3404. bool deterministic, ::google::protobuf::uint8* target) const final;
  3405. int GetCachedSize() const final { return _cached_size_.Get(); }
  3406. private:
  3407. void SharedCtor();
  3408. void SharedDtor();
  3409. void SetCachedSize(int size) const final;
  3410. void InternalSwap(FieldOptions* other);
  3411. protected:
  3412. explicit FieldOptions(::google::protobuf::Arena* arena);
  3413. private:
  3414. static void ArenaDtor(void* object);
  3415. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3416. private:
  3417. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3418. return _internal_metadata_.arena();
  3419. }
  3420. inline void* MaybeArenaPtr() const {
  3421. return _internal_metadata_.raw_arena_ptr();
  3422. }
  3423. public:
  3424. ::google::protobuf::Metadata GetMetadata() const final;
  3425. // nested types ----------------------------------------------------
  3426. typedef FieldOptions_CType CType;
  3427. static const CType STRING =
  3428. FieldOptions_CType_STRING;
  3429. static const CType CORD =
  3430. FieldOptions_CType_CORD;
  3431. static const CType STRING_PIECE =
  3432. FieldOptions_CType_STRING_PIECE;
  3433. static inline bool CType_IsValid(int value) {
  3434. return FieldOptions_CType_IsValid(value);
  3435. }
  3436. static const CType CType_MIN =
  3437. FieldOptions_CType_CType_MIN;
  3438. static const CType CType_MAX =
  3439. FieldOptions_CType_CType_MAX;
  3440. static const int CType_ARRAYSIZE =
  3441. FieldOptions_CType_CType_ARRAYSIZE;
  3442. static inline const ::google::protobuf::EnumDescriptor*
  3443. CType_descriptor() {
  3444. return FieldOptions_CType_descriptor();
  3445. }
  3446. static inline const ::std::string& CType_Name(CType value) {
  3447. return FieldOptions_CType_Name(value);
  3448. }
  3449. static inline bool CType_Parse(const ::std::string& name,
  3450. CType* value) {
  3451. return FieldOptions_CType_Parse(name, value);
  3452. }
  3453. typedef FieldOptions_JSType JSType;
  3454. static const JSType JS_NORMAL =
  3455. FieldOptions_JSType_JS_NORMAL;
  3456. static const JSType JS_STRING =
  3457. FieldOptions_JSType_JS_STRING;
  3458. static const JSType JS_NUMBER =
  3459. FieldOptions_JSType_JS_NUMBER;
  3460. static inline bool JSType_IsValid(int value) {
  3461. return FieldOptions_JSType_IsValid(value);
  3462. }
  3463. static const JSType JSType_MIN =
  3464. FieldOptions_JSType_JSType_MIN;
  3465. static const JSType JSType_MAX =
  3466. FieldOptions_JSType_JSType_MAX;
  3467. static const int JSType_ARRAYSIZE =
  3468. FieldOptions_JSType_JSType_ARRAYSIZE;
  3469. static inline const ::google::protobuf::EnumDescriptor*
  3470. JSType_descriptor() {
  3471. return FieldOptions_JSType_descriptor();
  3472. }
  3473. static inline const ::std::string& JSType_Name(JSType value) {
  3474. return FieldOptions_JSType_Name(value);
  3475. }
  3476. static inline bool JSType_Parse(const ::std::string& name,
  3477. JSType* value) {
  3478. return FieldOptions_JSType_Parse(name, value);
  3479. }
  3480. // accessors -------------------------------------------------------
  3481. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3482. int uninterpreted_option_size() const;
  3483. void clear_uninterpreted_option();
  3484. static const int kUninterpretedOptionFieldNumber = 999;
  3485. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  3486. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3487. mutable_uninterpreted_option();
  3488. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  3489. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  3490. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3491. uninterpreted_option() const;
  3492. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  3493. bool has_ctype() const;
  3494. void clear_ctype();
  3495. static const int kCtypeFieldNumber = 1;
  3496. ::google::protobuf::FieldOptions_CType ctype() const;
  3497. void set_ctype(::google::protobuf::FieldOptions_CType value);
  3498. // optional bool packed = 2;
  3499. bool has_packed() const;
  3500. void clear_packed();
  3501. static const int kPackedFieldNumber = 2;
  3502. bool packed() const;
  3503. void set_packed(bool value);
  3504. // optional bool lazy = 5 [default = false];
  3505. bool has_lazy() const;
  3506. void clear_lazy();
  3507. static const int kLazyFieldNumber = 5;
  3508. bool lazy() const;
  3509. void set_lazy(bool value);
  3510. // optional bool deprecated = 3 [default = false];
  3511. bool has_deprecated() const;
  3512. void clear_deprecated();
  3513. static const int kDeprecatedFieldNumber = 3;
  3514. bool deprecated() const;
  3515. void set_deprecated(bool value);
  3516. // optional bool weak = 10 [default = false];
  3517. bool has_weak() const;
  3518. void clear_weak();
  3519. static const int kWeakFieldNumber = 10;
  3520. bool weak() const;
  3521. void set_weak(bool value);
  3522. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  3523. bool has_jstype() const;
  3524. void clear_jstype();
  3525. static const int kJstypeFieldNumber = 6;
  3526. ::google::protobuf::FieldOptions_JSType jstype() const;
  3527. void set_jstype(::google::protobuf::FieldOptions_JSType value);
  3528. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(FieldOptions)
  3529. // @@protoc_insertion_point(class_scope:google.protobuf.FieldOptions)
  3530. private:
  3531. void set_has_ctype();
  3532. void clear_has_ctype();
  3533. void set_has_packed();
  3534. void clear_has_packed();
  3535. void set_has_jstype();
  3536. void clear_has_jstype();
  3537. void set_has_lazy();
  3538. void clear_has_lazy();
  3539. void set_has_deprecated();
  3540. void clear_has_deprecated();
  3541. void set_has_weak();
  3542. void clear_has_weak();
  3543. ::google::protobuf::internal::ExtensionSet _extensions_;
  3544. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3545. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3546. typedef void InternalArenaConstructable_;
  3547. typedef void DestructorSkippable_;
  3548. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3549. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3550. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3551. int ctype_;
  3552. bool packed_;
  3553. bool lazy_;
  3554. bool deprecated_;
  3555. bool weak_;
  3556. int jstype_;
  3557. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3558. };
  3559. // -------------------------------------------------------------------
  3560. class LIBPROTOBUF_EXPORT OneofOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.OneofOptions) */ {
  3561. public:
  3562. OneofOptions();
  3563. virtual ~OneofOptions();
  3564. OneofOptions(const OneofOptions& from);
  3565. inline OneofOptions& operator=(const OneofOptions& from) {
  3566. CopyFrom(from);
  3567. return *this;
  3568. }
  3569. #if LANG_CXX11
  3570. OneofOptions(OneofOptions&& from) noexcept
  3571. : OneofOptions() {
  3572. *this = ::std::move(from);
  3573. }
  3574. inline OneofOptions& operator=(OneofOptions&& from) noexcept {
  3575. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3576. if (this != &from) InternalSwap(&from);
  3577. } else {
  3578. CopyFrom(from);
  3579. }
  3580. return *this;
  3581. }
  3582. #endif
  3583. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3584. return _internal_metadata_.unknown_fields();
  3585. }
  3586. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3587. return _internal_metadata_.mutable_unknown_fields();
  3588. }
  3589. inline ::google::protobuf::Arena* GetArena() const final {
  3590. return GetArenaNoVirtual();
  3591. }
  3592. inline void* GetMaybeArenaPointer() const final {
  3593. return MaybeArenaPtr();
  3594. }
  3595. static const ::google::protobuf::Descriptor* descriptor();
  3596. static const OneofOptions& default_instance();
  3597. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3598. static inline const OneofOptions* internal_default_instance() {
  3599. return reinterpret_cast<const OneofOptions*>(
  3600. &_OneofOptions_default_instance_);
  3601. }
  3602. static constexpr int kIndexInFileMessages =
  3603. 16;
  3604. void UnsafeArenaSwap(OneofOptions* other);
  3605. void Swap(OneofOptions* other);
  3606. friend void swap(OneofOptions& a, OneofOptions& b) {
  3607. a.Swap(&b);
  3608. }
  3609. // implements Message ----------------------------------------------
  3610. inline OneofOptions* New() const final {
  3611. return CreateMaybeMessage<OneofOptions>(NULL);
  3612. }
  3613. OneofOptions* New(::google::protobuf::Arena* arena) const final {
  3614. return CreateMaybeMessage<OneofOptions>(arena);
  3615. }
  3616. void CopyFrom(const ::google::protobuf::Message& from) final;
  3617. void MergeFrom(const ::google::protobuf::Message& from) final;
  3618. void CopyFrom(const OneofOptions& from);
  3619. void MergeFrom(const OneofOptions& from);
  3620. void Clear() final;
  3621. bool IsInitialized() const final;
  3622. size_t ByteSizeLong() const final;
  3623. bool MergePartialFromCodedStream(
  3624. ::google::protobuf::io::CodedInputStream* input) final;
  3625. void SerializeWithCachedSizes(
  3626. ::google::protobuf::io::CodedOutputStream* output) const final;
  3627. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3628. bool deterministic, ::google::protobuf::uint8* target) const final;
  3629. int GetCachedSize() const final { return _cached_size_.Get(); }
  3630. private:
  3631. void SharedCtor();
  3632. void SharedDtor();
  3633. void SetCachedSize(int size) const final;
  3634. void InternalSwap(OneofOptions* other);
  3635. protected:
  3636. explicit OneofOptions(::google::protobuf::Arena* arena);
  3637. private:
  3638. static void ArenaDtor(void* object);
  3639. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3640. private:
  3641. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3642. return _internal_metadata_.arena();
  3643. }
  3644. inline void* MaybeArenaPtr() const {
  3645. return _internal_metadata_.raw_arena_ptr();
  3646. }
  3647. public:
  3648. ::google::protobuf::Metadata GetMetadata() const final;
  3649. // nested types ----------------------------------------------------
  3650. // accessors -------------------------------------------------------
  3651. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3652. int uninterpreted_option_size() const;
  3653. void clear_uninterpreted_option();
  3654. static const int kUninterpretedOptionFieldNumber = 999;
  3655. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  3656. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3657. mutable_uninterpreted_option();
  3658. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  3659. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  3660. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3661. uninterpreted_option() const;
  3662. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(OneofOptions)
  3663. // @@protoc_insertion_point(class_scope:google.protobuf.OneofOptions)
  3664. private:
  3665. ::google::protobuf::internal::ExtensionSet _extensions_;
  3666. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3667. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3668. typedef void InternalArenaConstructable_;
  3669. typedef void DestructorSkippable_;
  3670. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3671. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3672. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3673. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3674. };
  3675. // -------------------------------------------------------------------
  3676. class LIBPROTOBUF_EXPORT EnumOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumOptions) */ {
  3677. public:
  3678. EnumOptions();
  3679. virtual ~EnumOptions();
  3680. EnumOptions(const EnumOptions& from);
  3681. inline EnumOptions& operator=(const EnumOptions& from) {
  3682. CopyFrom(from);
  3683. return *this;
  3684. }
  3685. #if LANG_CXX11
  3686. EnumOptions(EnumOptions&& from) noexcept
  3687. : EnumOptions() {
  3688. *this = ::std::move(from);
  3689. }
  3690. inline EnumOptions& operator=(EnumOptions&& from) noexcept {
  3691. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3692. if (this != &from) InternalSwap(&from);
  3693. } else {
  3694. CopyFrom(from);
  3695. }
  3696. return *this;
  3697. }
  3698. #endif
  3699. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3700. return _internal_metadata_.unknown_fields();
  3701. }
  3702. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3703. return _internal_metadata_.mutable_unknown_fields();
  3704. }
  3705. inline ::google::protobuf::Arena* GetArena() const final {
  3706. return GetArenaNoVirtual();
  3707. }
  3708. inline void* GetMaybeArenaPointer() const final {
  3709. return MaybeArenaPtr();
  3710. }
  3711. static const ::google::protobuf::Descriptor* descriptor();
  3712. static const EnumOptions& default_instance();
  3713. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3714. static inline const EnumOptions* internal_default_instance() {
  3715. return reinterpret_cast<const EnumOptions*>(
  3716. &_EnumOptions_default_instance_);
  3717. }
  3718. static constexpr int kIndexInFileMessages =
  3719. 17;
  3720. void UnsafeArenaSwap(EnumOptions* other);
  3721. void Swap(EnumOptions* other);
  3722. friend void swap(EnumOptions& a, EnumOptions& b) {
  3723. a.Swap(&b);
  3724. }
  3725. // implements Message ----------------------------------------------
  3726. inline EnumOptions* New() const final {
  3727. return CreateMaybeMessage<EnumOptions>(NULL);
  3728. }
  3729. EnumOptions* New(::google::protobuf::Arena* arena) const final {
  3730. return CreateMaybeMessage<EnumOptions>(arena);
  3731. }
  3732. void CopyFrom(const ::google::protobuf::Message& from) final;
  3733. void MergeFrom(const ::google::protobuf::Message& from) final;
  3734. void CopyFrom(const EnumOptions& from);
  3735. void MergeFrom(const EnumOptions& from);
  3736. void Clear() final;
  3737. bool IsInitialized() const final;
  3738. size_t ByteSizeLong() const final;
  3739. bool MergePartialFromCodedStream(
  3740. ::google::protobuf::io::CodedInputStream* input) final;
  3741. void SerializeWithCachedSizes(
  3742. ::google::protobuf::io::CodedOutputStream* output) const final;
  3743. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3744. bool deterministic, ::google::protobuf::uint8* target) const final;
  3745. int GetCachedSize() const final { return _cached_size_.Get(); }
  3746. private:
  3747. void SharedCtor();
  3748. void SharedDtor();
  3749. void SetCachedSize(int size) const final;
  3750. void InternalSwap(EnumOptions* other);
  3751. protected:
  3752. explicit EnumOptions(::google::protobuf::Arena* arena);
  3753. private:
  3754. static void ArenaDtor(void* object);
  3755. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3756. private:
  3757. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3758. return _internal_metadata_.arena();
  3759. }
  3760. inline void* MaybeArenaPtr() const {
  3761. return _internal_metadata_.raw_arena_ptr();
  3762. }
  3763. public:
  3764. ::google::protobuf::Metadata GetMetadata() const final;
  3765. // nested types ----------------------------------------------------
  3766. // accessors -------------------------------------------------------
  3767. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3768. int uninterpreted_option_size() const;
  3769. void clear_uninterpreted_option();
  3770. static const int kUninterpretedOptionFieldNumber = 999;
  3771. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  3772. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3773. mutable_uninterpreted_option();
  3774. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  3775. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  3776. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3777. uninterpreted_option() const;
  3778. // optional bool allow_alias = 2;
  3779. bool has_allow_alias() const;
  3780. void clear_allow_alias();
  3781. static const int kAllowAliasFieldNumber = 2;
  3782. bool allow_alias() const;
  3783. void set_allow_alias(bool value);
  3784. // optional bool deprecated = 3 [default = false];
  3785. bool has_deprecated() const;
  3786. void clear_deprecated();
  3787. static const int kDeprecatedFieldNumber = 3;
  3788. bool deprecated() const;
  3789. void set_deprecated(bool value);
  3790. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumOptions)
  3791. // @@protoc_insertion_point(class_scope:google.protobuf.EnumOptions)
  3792. private:
  3793. void set_has_allow_alias();
  3794. void clear_has_allow_alias();
  3795. void set_has_deprecated();
  3796. void clear_has_deprecated();
  3797. ::google::protobuf::internal::ExtensionSet _extensions_;
  3798. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3799. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3800. typedef void InternalArenaConstructable_;
  3801. typedef void DestructorSkippable_;
  3802. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3803. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3804. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3805. bool allow_alias_;
  3806. bool deprecated_;
  3807. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3808. };
  3809. // -------------------------------------------------------------------
  3810. class LIBPROTOBUF_EXPORT EnumValueOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValueOptions) */ {
  3811. public:
  3812. EnumValueOptions();
  3813. virtual ~EnumValueOptions();
  3814. EnumValueOptions(const EnumValueOptions& from);
  3815. inline EnumValueOptions& operator=(const EnumValueOptions& from) {
  3816. CopyFrom(from);
  3817. return *this;
  3818. }
  3819. #if LANG_CXX11
  3820. EnumValueOptions(EnumValueOptions&& from) noexcept
  3821. : EnumValueOptions() {
  3822. *this = ::std::move(from);
  3823. }
  3824. inline EnumValueOptions& operator=(EnumValueOptions&& from) noexcept {
  3825. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3826. if (this != &from) InternalSwap(&from);
  3827. } else {
  3828. CopyFrom(from);
  3829. }
  3830. return *this;
  3831. }
  3832. #endif
  3833. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3834. return _internal_metadata_.unknown_fields();
  3835. }
  3836. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3837. return _internal_metadata_.mutable_unknown_fields();
  3838. }
  3839. inline ::google::protobuf::Arena* GetArena() const final {
  3840. return GetArenaNoVirtual();
  3841. }
  3842. inline void* GetMaybeArenaPointer() const final {
  3843. return MaybeArenaPtr();
  3844. }
  3845. static const ::google::protobuf::Descriptor* descriptor();
  3846. static const EnumValueOptions& default_instance();
  3847. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3848. static inline const EnumValueOptions* internal_default_instance() {
  3849. return reinterpret_cast<const EnumValueOptions*>(
  3850. &_EnumValueOptions_default_instance_);
  3851. }
  3852. static constexpr int kIndexInFileMessages =
  3853. 18;
  3854. void UnsafeArenaSwap(EnumValueOptions* other);
  3855. void Swap(EnumValueOptions* other);
  3856. friend void swap(EnumValueOptions& a, EnumValueOptions& b) {
  3857. a.Swap(&b);
  3858. }
  3859. // implements Message ----------------------------------------------
  3860. inline EnumValueOptions* New() const final {
  3861. return CreateMaybeMessage<EnumValueOptions>(NULL);
  3862. }
  3863. EnumValueOptions* New(::google::protobuf::Arena* arena) const final {
  3864. return CreateMaybeMessage<EnumValueOptions>(arena);
  3865. }
  3866. void CopyFrom(const ::google::protobuf::Message& from) final;
  3867. void MergeFrom(const ::google::protobuf::Message& from) final;
  3868. void CopyFrom(const EnumValueOptions& from);
  3869. void MergeFrom(const EnumValueOptions& from);
  3870. void Clear() final;
  3871. bool IsInitialized() const final;
  3872. size_t ByteSizeLong() const final;
  3873. bool MergePartialFromCodedStream(
  3874. ::google::protobuf::io::CodedInputStream* input) final;
  3875. void SerializeWithCachedSizes(
  3876. ::google::protobuf::io::CodedOutputStream* output) const final;
  3877. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  3878. bool deterministic, ::google::protobuf::uint8* target) const final;
  3879. int GetCachedSize() const final { return _cached_size_.Get(); }
  3880. private:
  3881. void SharedCtor();
  3882. void SharedDtor();
  3883. void SetCachedSize(int size) const final;
  3884. void InternalSwap(EnumValueOptions* other);
  3885. protected:
  3886. explicit EnumValueOptions(::google::protobuf::Arena* arena);
  3887. private:
  3888. static void ArenaDtor(void* object);
  3889. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  3890. private:
  3891. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  3892. return _internal_metadata_.arena();
  3893. }
  3894. inline void* MaybeArenaPtr() const {
  3895. return _internal_metadata_.raw_arena_ptr();
  3896. }
  3897. public:
  3898. ::google::protobuf::Metadata GetMetadata() const final;
  3899. // nested types ----------------------------------------------------
  3900. // accessors -------------------------------------------------------
  3901. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  3902. int uninterpreted_option_size() const;
  3903. void clear_uninterpreted_option();
  3904. static const int kUninterpretedOptionFieldNumber = 999;
  3905. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  3906. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  3907. mutable_uninterpreted_option();
  3908. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  3909. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  3910. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  3911. uninterpreted_option() const;
  3912. // optional bool deprecated = 1 [default = false];
  3913. bool has_deprecated() const;
  3914. void clear_deprecated();
  3915. static const int kDeprecatedFieldNumber = 1;
  3916. bool deprecated() const;
  3917. void set_deprecated(bool value);
  3918. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(EnumValueOptions)
  3919. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValueOptions)
  3920. private:
  3921. void set_has_deprecated();
  3922. void clear_has_deprecated();
  3923. ::google::protobuf::internal::ExtensionSet _extensions_;
  3924. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  3925. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  3926. typedef void InternalArenaConstructable_;
  3927. typedef void DestructorSkippable_;
  3928. ::google::protobuf::internal::HasBits<1> _has_bits_;
  3929. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  3930. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  3931. bool deprecated_;
  3932. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  3933. };
  3934. // -------------------------------------------------------------------
  3935. class LIBPROTOBUF_EXPORT ServiceOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ServiceOptions) */ {
  3936. public:
  3937. ServiceOptions();
  3938. virtual ~ServiceOptions();
  3939. ServiceOptions(const ServiceOptions& from);
  3940. inline ServiceOptions& operator=(const ServiceOptions& from) {
  3941. CopyFrom(from);
  3942. return *this;
  3943. }
  3944. #if LANG_CXX11
  3945. ServiceOptions(ServiceOptions&& from) noexcept
  3946. : ServiceOptions() {
  3947. *this = ::std::move(from);
  3948. }
  3949. inline ServiceOptions& operator=(ServiceOptions&& from) noexcept {
  3950. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  3951. if (this != &from) InternalSwap(&from);
  3952. } else {
  3953. CopyFrom(from);
  3954. }
  3955. return *this;
  3956. }
  3957. #endif
  3958. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  3959. return _internal_metadata_.unknown_fields();
  3960. }
  3961. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  3962. return _internal_metadata_.mutable_unknown_fields();
  3963. }
  3964. inline ::google::protobuf::Arena* GetArena() const final {
  3965. return GetArenaNoVirtual();
  3966. }
  3967. inline void* GetMaybeArenaPointer() const final {
  3968. return MaybeArenaPtr();
  3969. }
  3970. static const ::google::protobuf::Descriptor* descriptor();
  3971. static const ServiceOptions& default_instance();
  3972. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  3973. static inline const ServiceOptions* internal_default_instance() {
  3974. return reinterpret_cast<const ServiceOptions*>(
  3975. &_ServiceOptions_default_instance_);
  3976. }
  3977. static constexpr int kIndexInFileMessages =
  3978. 19;
  3979. void UnsafeArenaSwap(ServiceOptions* other);
  3980. void Swap(ServiceOptions* other);
  3981. friend void swap(ServiceOptions& a, ServiceOptions& b) {
  3982. a.Swap(&b);
  3983. }
  3984. // implements Message ----------------------------------------------
  3985. inline ServiceOptions* New() const final {
  3986. return CreateMaybeMessage<ServiceOptions>(NULL);
  3987. }
  3988. ServiceOptions* New(::google::protobuf::Arena* arena) const final {
  3989. return CreateMaybeMessage<ServiceOptions>(arena);
  3990. }
  3991. void CopyFrom(const ::google::protobuf::Message& from) final;
  3992. void MergeFrom(const ::google::protobuf::Message& from) final;
  3993. void CopyFrom(const ServiceOptions& from);
  3994. void MergeFrom(const ServiceOptions& from);
  3995. void Clear() final;
  3996. bool IsInitialized() const final;
  3997. size_t ByteSizeLong() const final;
  3998. bool MergePartialFromCodedStream(
  3999. ::google::protobuf::io::CodedInputStream* input) final;
  4000. void SerializeWithCachedSizes(
  4001. ::google::protobuf::io::CodedOutputStream* output) const final;
  4002. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4003. bool deterministic, ::google::protobuf::uint8* target) const final;
  4004. int GetCachedSize() const final { return _cached_size_.Get(); }
  4005. private:
  4006. void SharedCtor();
  4007. void SharedDtor();
  4008. void SetCachedSize(int size) const final;
  4009. void InternalSwap(ServiceOptions* other);
  4010. protected:
  4011. explicit ServiceOptions(::google::protobuf::Arena* arena);
  4012. private:
  4013. static void ArenaDtor(void* object);
  4014. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4015. private:
  4016. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4017. return _internal_metadata_.arena();
  4018. }
  4019. inline void* MaybeArenaPtr() const {
  4020. return _internal_metadata_.raw_arena_ptr();
  4021. }
  4022. public:
  4023. ::google::protobuf::Metadata GetMetadata() const final;
  4024. // nested types ----------------------------------------------------
  4025. // accessors -------------------------------------------------------
  4026. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4027. int uninterpreted_option_size() const;
  4028. void clear_uninterpreted_option();
  4029. static const int kUninterpretedOptionFieldNumber = 999;
  4030. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  4031. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  4032. mutable_uninterpreted_option();
  4033. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  4034. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  4035. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  4036. uninterpreted_option() const;
  4037. // optional bool deprecated = 33 [default = false];
  4038. bool has_deprecated() const;
  4039. void clear_deprecated();
  4040. static const int kDeprecatedFieldNumber = 33;
  4041. bool deprecated() const;
  4042. void set_deprecated(bool value);
  4043. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ServiceOptions)
  4044. // @@protoc_insertion_point(class_scope:google.protobuf.ServiceOptions)
  4045. private:
  4046. void set_has_deprecated();
  4047. void clear_has_deprecated();
  4048. ::google::protobuf::internal::ExtensionSet _extensions_;
  4049. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4050. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4051. typedef void InternalArenaConstructable_;
  4052. typedef void DestructorSkippable_;
  4053. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4054. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4055. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  4056. bool deprecated_;
  4057. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4058. };
  4059. // -------------------------------------------------------------------
  4060. class LIBPROTOBUF_EXPORT MethodOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.MethodOptions) */ {
  4061. public:
  4062. MethodOptions();
  4063. virtual ~MethodOptions();
  4064. MethodOptions(const MethodOptions& from);
  4065. inline MethodOptions& operator=(const MethodOptions& from) {
  4066. CopyFrom(from);
  4067. return *this;
  4068. }
  4069. #if LANG_CXX11
  4070. MethodOptions(MethodOptions&& from) noexcept
  4071. : MethodOptions() {
  4072. *this = ::std::move(from);
  4073. }
  4074. inline MethodOptions& operator=(MethodOptions&& from) noexcept {
  4075. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4076. if (this != &from) InternalSwap(&from);
  4077. } else {
  4078. CopyFrom(from);
  4079. }
  4080. return *this;
  4081. }
  4082. #endif
  4083. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4084. return _internal_metadata_.unknown_fields();
  4085. }
  4086. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4087. return _internal_metadata_.mutable_unknown_fields();
  4088. }
  4089. inline ::google::protobuf::Arena* GetArena() const final {
  4090. return GetArenaNoVirtual();
  4091. }
  4092. inline void* GetMaybeArenaPointer() const final {
  4093. return MaybeArenaPtr();
  4094. }
  4095. static const ::google::protobuf::Descriptor* descriptor();
  4096. static const MethodOptions& default_instance();
  4097. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4098. static inline const MethodOptions* internal_default_instance() {
  4099. return reinterpret_cast<const MethodOptions*>(
  4100. &_MethodOptions_default_instance_);
  4101. }
  4102. static constexpr int kIndexInFileMessages =
  4103. 20;
  4104. void UnsafeArenaSwap(MethodOptions* other);
  4105. void Swap(MethodOptions* other);
  4106. friend void swap(MethodOptions& a, MethodOptions& b) {
  4107. a.Swap(&b);
  4108. }
  4109. // implements Message ----------------------------------------------
  4110. inline MethodOptions* New() const final {
  4111. return CreateMaybeMessage<MethodOptions>(NULL);
  4112. }
  4113. MethodOptions* New(::google::protobuf::Arena* arena) const final {
  4114. return CreateMaybeMessage<MethodOptions>(arena);
  4115. }
  4116. void CopyFrom(const ::google::protobuf::Message& from) final;
  4117. void MergeFrom(const ::google::protobuf::Message& from) final;
  4118. void CopyFrom(const MethodOptions& from);
  4119. void MergeFrom(const MethodOptions& from);
  4120. void Clear() final;
  4121. bool IsInitialized() const final;
  4122. size_t ByteSizeLong() const final;
  4123. bool MergePartialFromCodedStream(
  4124. ::google::protobuf::io::CodedInputStream* input) final;
  4125. void SerializeWithCachedSizes(
  4126. ::google::protobuf::io::CodedOutputStream* output) const final;
  4127. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4128. bool deterministic, ::google::protobuf::uint8* target) const final;
  4129. int GetCachedSize() const final { return _cached_size_.Get(); }
  4130. private:
  4131. void SharedCtor();
  4132. void SharedDtor();
  4133. void SetCachedSize(int size) const final;
  4134. void InternalSwap(MethodOptions* other);
  4135. protected:
  4136. explicit MethodOptions(::google::protobuf::Arena* arena);
  4137. private:
  4138. static void ArenaDtor(void* object);
  4139. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4140. private:
  4141. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4142. return _internal_metadata_.arena();
  4143. }
  4144. inline void* MaybeArenaPtr() const {
  4145. return _internal_metadata_.raw_arena_ptr();
  4146. }
  4147. public:
  4148. ::google::protobuf::Metadata GetMetadata() const final;
  4149. // nested types ----------------------------------------------------
  4150. typedef MethodOptions_IdempotencyLevel IdempotencyLevel;
  4151. static const IdempotencyLevel IDEMPOTENCY_UNKNOWN =
  4152. MethodOptions_IdempotencyLevel_IDEMPOTENCY_UNKNOWN;
  4153. static const IdempotencyLevel NO_SIDE_EFFECTS =
  4154. MethodOptions_IdempotencyLevel_NO_SIDE_EFFECTS;
  4155. static const IdempotencyLevel IDEMPOTENT =
  4156. MethodOptions_IdempotencyLevel_IDEMPOTENT;
  4157. static inline bool IdempotencyLevel_IsValid(int value) {
  4158. return MethodOptions_IdempotencyLevel_IsValid(value);
  4159. }
  4160. static const IdempotencyLevel IdempotencyLevel_MIN =
  4161. MethodOptions_IdempotencyLevel_IdempotencyLevel_MIN;
  4162. static const IdempotencyLevel IdempotencyLevel_MAX =
  4163. MethodOptions_IdempotencyLevel_IdempotencyLevel_MAX;
  4164. static const int IdempotencyLevel_ARRAYSIZE =
  4165. MethodOptions_IdempotencyLevel_IdempotencyLevel_ARRAYSIZE;
  4166. static inline const ::google::protobuf::EnumDescriptor*
  4167. IdempotencyLevel_descriptor() {
  4168. return MethodOptions_IdempotencyLevel_descriptor();
  4169. }
  4170. static inline const ::std::string& IdempotencyLevel_Name(IdempotencyLevel value) {
  4171. return MethodOptions_IdempotencyLevel_Name(value);
  4172. }
  4173. static inline bool IdempotencyLevel_Parse(const ::std::string& name,
  4174. IdempotencyLevel* value) {
  4175. return MethodOptions_IdempotencyLevel_Parse(name, value);
  4176. }
  4177. // accessors -------------------------------------------------------
  4178. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  4179. int uninterpreted_option_size() const;
  4180. void clear_uninterpreted_option();
  4181. static const int kUninterpretedOptionFieldNumber = 999;
  4182. ::google::protobuf::UninterpretedOption* mutable_uninterpreted_option(int index);
  4183. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  4184. mutable_uninterpreted_option();
  4185. const ::google::protobuf::UninterpretedOption& uninterpreted_option(int index) const;
  4186. ::google::protobuf::UninterpretedOption* add_uninterpreted_option();
  4187. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  4188. uninterpreted_option() const;
  4189. // optional bool deprecated = 33 [default = false];
  4190. bool has_deprecated() const;
  4191. void clear_deprecated();
  4192. static const int kDeprecatedFieldNumber = 33;
  4193. bool deprecated() const;
  4194. void set_deprecated(bool value);
  4195. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  4196. bool has_idempotency_level() const;
  4197. void clear_idempotency_level();
  4198. static const int kIdempotencyLevelFieldNumber = 34;
  4199. ::google::protobuf::MethodOptions_IdempotencyLevel idempotency_level() const;
  4200. void set_idempotency_level(::google::protobuf::MethodOptions_IdempotencyLevel value);
  4201. GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(MethodOptions)
  4202. // @@protoc_insertion_point(class_scope:google.protobuf.MethodOptions)
  4203. private:
  4204. void set_has_deprecated();
  4205. void clear_has_deprecated();
  4206. void set_has_idempotency_level();
  4207. void clear_has_idempotency_level();
  4208. ::google::protobuf::internal::ExtensionSet _extensions_;
  4209. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4210. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4211. typedef void InternalArenaConstructable_;
  4212. typedef void DestructorSkippable_;
  4213. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4214. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4215. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption > uninterpreted_option_;
  4216. bool deprecated_;
  4217. int idempotency_level_;
  4218. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4219. };
  4220. // -------------------------------------------------------------------
  4221. class LIBPROTOBUF_EXPORT UninterpretedOption_NamePart : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption.NamePart) */ {
  4222. public:
  4223. UninterpretedOption_NamePart();
  4224. virtual ~UninterpretedOption_NamePart();
  4225. UninterpretedOption_NamePart(const UninterpretedOption_NamePart& from);
  4226. inline UninterpretedOption_NamePart& operator=(const UninterpretedOption_NamePart& from) {
  4227. CopyFrom(from);
  4228. return *this;
  4229. }
  4230. #if LANG_CXX11
  4231. UninterpretedOption_NamePart(UninterpretedOption_NamePart&& from) noexcept
  4232. : UninterpretedOption_NamePart() {
  4233. *this = ::std::move(from);
  4234. }
  4235. inline UninterpretedOption_NamePart& operator=(UninterpretedOption_NamePart&& from) noexcept {
  4236. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4237. if (this != &from) InternalSwap(&from);
  4238. } else {
  4239. CopyFrom(from);
  4240. }
  4241. return *this;
  4242. }
  4243. #endif
  4244. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4245. return _internal_metadata_.unknown_fields();
  4246. }
  4247. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4248. return _internal_metadata_.mutable_unknown_fields();
  4249. }
  4250. inline ::google::protobuf::Arena* GetArena() const final {
  4251. return GetArenaNoVirtual();
  4252. }
  4253. inline void* GetMaybeArenaPointer() const final {
  4254. return MaybeArenaPtr();
  4255. }
  4256. static const ::google::protobuf::Descriptor* descriptor();
  4257. static const UninterpretedOption_NamePart& default_instance();
  4258. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4259. static inline const UninterpretedOption_NamePart* internal_default_instance() {
  4260. return reinterpret_cast<const UninterpretedOption_NamePart*>(
  4261. &_UninterpretedOption_NamePart_default_instance_);
  4262. }
  4263. static constexpr int kIndexInFileMessages =
  4264. 21;
  4265. void UnsafeArenaSwap(UninterpretedOption_NamePart* other);
  4266. void Swap(UninterpretedOption_NamePart* other);
  4267. friend void swap(UninterpretedOption_NamePart& a, UninterpretedOption_NamePart& b) {
  4268. a.Swap(&b);
  4269. }
  4270. // implements Message ----------------------------------------------
  4271. inline UninterpretedOption_NamePart* New() const final {
  4272. return CreateMaybeMessage<UninterpretedOption_NamePart>(NULL);
  4273. }
  4274. UninterpretedOption_NamePart* New(::google::protobuf::Arena* arena) const final {
  4275. return CreateMaybeMessage<UninterpretedOption_NamePart>(arena);
  4276. }
  4277. void CopyFrom(const ::google::protobuf::Message& from) final;
  4278. void MergeFrom(const ::google::protobuf::Message& from) final;
  4279. void CopyFrom(const UninterpretedOption_NamePart& from);
  4280. void MergeFrom(const UninterpretedOption_NamePart& from);
  4281. void Clear() final;
  4282. bool IsInitialized() const final;
  4283. size_t ByteSizeLong() const final;
  4284. bool MergePartialFromCodedStream(
  4285. ::google::protobuf::io::CodedInputStream* input) final;
  4286. void SerializeWithCachedSizes(
  4287. ::google::protobuf::io::CodedOutputStream* output) const final;
  4288. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4289. bool deterministic, ::google::protobuf::uint8* target) const final;
  4290. int GetCachedSize() const final { return _cached_size_.Get(); }
  4291. private:
  4292. void SharedCtor();
  4293. void SharedDtor();
  4294. void SetCachedSize(int size) const final;
  4295. void InternalSwap(UninterpretedOption_NamePart* other);
  4296. protected:
  4297. explicit UninterpretedOption_NamePart(::google::protobuf::Arena* arena);
  4298. private:
  4299. static void ArenaDtor(void* object);
  4300. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4301. private:
  4302. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4303. return _internal_metadata_.arena();
  4304. }
  4305. inline void* MaybeArenaPtr() const {
  4306. return _internal_metadata_.raw_arena_ptr();
  4307. }
  4308. public:
  4309. ::google::protobuf::Metadata GetMetadata() const final;
  4310. // nested types ----------------------------------------------------
  4311. // accessors -------------------------------------------------------
  4312. // required string name_part = 1;
  4313. bool has_name_part() const;
  4314. void clear_name_part();
  4315. static const int kNamePartFieldNumber = 1;
  4316. const ::std::string& name_part() const;
  4317. void set_name_part(const ::std::string& value);
  4318. #if LANG_CXX11
  4319. void set_name_part(::std::string&& value);
  4320. #endif
  4321. void set_name_part(const char* value);
  4322. void set_name_part(const char* value, size_t size);
  4323. ::std::string* mutable_name_part();
  4324. ::std::string* release_name_part();
  4325. void set_allocated_name_part(::std::string* name_part);
  4326. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4327. " string fields are deprecated and will be removed in a"
  4328. " future release.")
  4329. ::std::string* unsafe_arena_release_name_part();
  4330. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4331. " string fields are deprecated and will be removed in a"
  4332. " future release.")
  4333. void unsafe_arena_set_allocated_name_part(
  4334. ::std::string* name_part);
  4335. // required bool is_extension = 2;
  4336. bool has_is_extension() const;
  4337. void clear_is_extension();
  4338. static const int kIsExtensionFieldNumber = 2;
  4339. bool is_extension() const;
  4340. void set_is_extension(bool value);
  4341. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption.NamePart)
  4342. private:
  4343. void set_has_name_part();
  4344. void clear_has_name_part();
  4345. void set_has_is_extension();
  4346. void clear_has_is_extension();
  4347. // helper for ByteSizeLong()
  4348. size_t RequiredFieldsByteSizeFallback() const;
  4349. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4350. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4351. typedef void InternalArenaConstructable_;
  4352. typedef void DestructorSkippable_;
  4353. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4354. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4355. ::google::protobuf::internal::ArenaStringPtr name_part_;
  4356. bool is_extension_;
  4357. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4358. };
  4359. // -------------------------------------------------------------------
  4360. class LIBPROTOBUF_EXPORT UninterpretedOption : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.UninterpretedOption) */ {
  4361. public:
  4362. UninterpretedOption();
  4363. virtual ~UninterpretedOption();
  4364. UninterpretedOption(const UninterpretedOption& from);
  4365. inline UninterpretedOption& operator=(const UninterpretedOption& from) {
  4366. CopyFrom(from);
  4367. return *this;
  4368. }
  4369. #if LANG_CXX11
  4370. UninterpretedOption(UninterpretedOption&& from) noexcept
  4371. : UninterpretedOption() {
  4372. *this = ::std::move(from);
  4373. }
  4374. inline UninterpretedOption& operator=(UninterpretedOption&& from) noexcept {
  4375. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4376. if (this != &from) InternalSwap(&from);
  4377. } else {
  4378. CopyFrom(from);
  4379. }
  4380. return *this;
  4381. }
  4382. #endif
  4383. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4384. return _internal_metadata_.unknown_fields();
  4385. }
  4386. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4387. return _internal_metadata_.mutable_unknown_fields();
  4388. }
  4389. inline ::google::protobuf::Arena* GetArena() const final {
  4390. return GetArenaNoVirtual();
  4391. }
  4392. inline void* GetMaybeArenaPointer() const final {
  4393. return MaybeArenaPtr();
  4394. }
  4395. static const ::google::protobuf::Descriptor* descriptor();
  4396. static const UninterpretedOption& default_instance();
  4397. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4398. static inline const UninterpretedOption* internal_default_instance() {
  4399. return reinterpret_cast<const UninterpretedOption*>(
  4400. &_UninterpretedOption_default_instance_);
  4401. }
  4402. static constexpr int kIndexInFileMessages =
  4403. 22;
  4404. void UnsafeArenaSwap(UninterpretedOption* other);
  4405. void Swap(UninterpretedOption* other);
  4406. friend void swap(UninterpretedOption& a, UninterpretedOption& b) {
  4407. a.Swap(&b);
  4408. }
  4409. // implements Message ----------------------------------------------
  4410. inline UninterpretedOption* New() const final {
  4411. return CreateMaybeMessage<UninterpretedOption>(NULL);
  4412. }
  4413. UninterpretedOption* New(::google::protobuf::Arena* arena) const final {
  4414. return CreateMaybeMessage<UninterpretedOption>(arena);
  4415. }
  4416. void CopyFrom(const ::google::protobuf::Message& from) final;
  4417. void MergeFrom(const ::google::protobuf::Message& from) final;
  4418. void CopyFrom(const UninterpretedOption& from);
  4419. void MergeFrom(const UninterpretedOption& from);
  4420. void Clear() final;
  4421. bool IsInitialized() const final;
  4422. size_t ByteSizeLong() const final;
  4423. bool MergePartialFromCodedStream(
  4424. ::google::protobuf::io::CodedInputStream* input) final;
  4425. void SerializeWithCachedSizes(
  4426. ::google::protobuf::io::CodedOutputStream* output) const final;
  4427. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4428. bool deterministic, ::google::protobuf::uint8* target) const final;
  4429. int GetCachedSize() const final { return _cached_size_.Get(); }
  4430. private:
  4431. void SharedCtor();
  4432. void SharedDtor();
  4433. void SetCachedSize(int size) const final;
  4434. void InternalSwap(UninterpretedOption* other);
  4435. protected:
  4436. explicit UninterpretedOption(::google::protobuf::Arena* arena);
  4437. private:
  4438. static void ArenaDtor(void* object);
  4439. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4440. private:
  4441. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4442. return _internal_metadata_.arena();
  4443. }
  4444. inline void* MaybeArenaPtr() const {
  4445. return _internal_metadata_.raw_arena_ptr();
  4446. }
  4447. public:
  4448. ::google::protobuf::Metadata GetMetadata() const final;
  4449. // nested types ----------------------------------------------------
  4450. typedef UninterpretedOption_NamePart NamePart;
  4451. // accessors -------------------------------------------------------
  4452. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  4453. int name_size() const;
  4454. void clear_name();
  4455. static const int kNameFieldNumber = 2;
  4456. ::google::protobuf::UninterpretedOption_NamePart* mutable_name(int index);
  4457. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
  4458. mutable_name();
  4459. const ::google::protobuf::UninterpretedOption_NamePart& name(int index) const;
  4460. ::google::protobuf::UninterpretedOption_NamePart* add_name();
  4461. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
  4462. name() const;
  4463. // optional string identifier_value = 3;
  4464. bool has_identifier_value() const;
  4465. void clear_identifier_value();
  4466. static const int kIdentifierValueFieldNumber = 3;
  4467. const ::std::string& identifier_value() const;
  4468. void set_identifier_value(const ::std::string& value);
  4469. #if LANG_CXX11
  4470. void set_identifier_value(::std::string&& value);
  4471. #endif
  4472. void set_identifier_value(const char* value);
  4473. void set_identifier_value(const char* value, size_t size);
  4474. ::std::string* mutable_identifier_value();
  4475. ::std::string* release_identifier_value();
  4476. void set_allocated_identifier_value(::std::string* identifier_value);
  4477. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4478. " string fields are deprecated and will be removed in a"
  4479. " future release.")
  4480. ::std::string* unsafe_arena_release_identifier_value();
  4481. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4482. " string fields are deprecated and will be removed in a"
  4483. " future release.")
  4484. void unsafe_arena_set_allocated_identifier_value(
  4485. ::std::string* identifier_value);
  4486. // optional bytes string_value = 7;
  4487. bool has_string_value() const;
  4488. void clear_string_value();
  4489. static const int kStringValueFieldNumber = 7;
  4490. const ::std::string& string_value() const;
  4491. void set_string_value(const ::std::string& value);
  4492. #if LANG_CXX11
  4493. void set_string_value(::std::string&& value);
  4494. #endif
  4495. void set_string_value(const char* value);
  4496. void set_string_value(const void* value, size_t size);
  4497. ::std::string* mutable_string_value();
  4498. ::std::string* release_string_value();
  4499. void set_allocated_string_value(::std::string* string_value);
  4500. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4501. " string fields are deprecated and will be removed in a"
  4502. " future release.")
  4503. ::std::string* unsafe_arena_release_string_value();
  4504. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4505. " string fields are deprecated and will be removed in a"
  4506. " future release.")
  4507. void unsafe_arena_set_allocated_string_value(
  4508. ::std::string* string_value);
  4509. // optional string aggregate_value = 8;
  4510. bool has_aggregate_value() const;
  4511. void clear_aggregate_value();
  4512. static const int kAggregateValueFieldNumber = 8;
  4513. const ::std::string& aggregate_value() const;
  4514. void set_aggregate_value(const ::std::string& value);
  4515. #if LANG_CXX11
  4516. void set_aggregate_value(::std::string&& value);
  4517. #endif
  4518. void set_aggregate_value(const char* value);
  4519. void set_aggregate_value(const char* value, size_t size);
  4520. ::std::string* mutable_aggregate_value();
  4521. ::std::string* release_aggregate_value();
  4522. void set_allocated_aggregate_value(::std::string* aggregate_value);
  4523. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4524. " string fields are deprecated and will be removed in a"
  4525. " future release.")
  4526. ::std::string* unsafe_arena_release_aggregate_value();
  4527. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4528. " string fields are deprecated and will be removed in a"
  4529. " future release.")
  4530. void unsafe_arena_set_allocated_aggregate_value(
  4531. ::std::string* aggregate_value);
  4532. // optional uint64 positive_int_value = 4;
  4533. bool has_positive_int_value() const;
  4534. void clear_positive_int_value();
  4535. static const int kPositiveIntValueFieldNumber = 4;
  4536. ::google::protobuf::uint64 positive_int_value() const;
  4537. void set_positive_int_value(::google::protobuf::uint64 value);
  4538. // optional int64 negative_int_value = 5;
  4539. bool has_negative_int_value() const;
  4540. void clear_negative_int_value();
  4541. static const int kNegativeIntValueFieldNumber = 5;
  4542. ::google::protobuf::int64 negative_int_value() const;
  4543. void set_negative_int_value(::google::protobuf::int64 value);
  4544. // optional double double_value = 6;
  4545. bool has_double_value() const;
  4546. void clear_double_value();
  4547. static const int kDoubleValueFieldNumber = 6;
  4548. double double_value() const;
  4549. void set_double_value(double value);
  4550. // @@protoc_insertion_point(class_scope:google.protobuf.UninterpretedOption)
  4551. private:
  4552. void set_has_identifier_value();
  4553. void clear_has_identifier_value();
  4554. void set_has_positive_int_value();
  4555. void clear_has_positive_int_value();
  4556. void set_has_negative_int_value();
  4557. void clear_has_negative_int_value();
  4558. void set_has_double_value();
  4559. void clear_has_double_value();
  4560. void set_has_string_value();
  4561. void clear_has_string_value();
  4562. void set_has_aggregate_value();
  4563. void clear_has_aggregate_value();
  4564. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4565. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4566. typedef void InternalArenaConstructable_;
  4567. typedef void DestructorSkippable_;
  4568. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4569. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4570. ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart > name_;
  4571. ::google::protobuf::internal::ArenaStringPtr identifier_value_;
  4572. ::google::protobuf::internal::ArenaStringPtr string_value_;
  4573. ::google::protobuf::internal::ArenaStringPtr aggregate_value_;
  4574. ::google::protobuf::uint64 positive_int_value_;
  4575. ::google::protobuf::int64 negative_int_value_;
  4576. double double_value_;
  4577. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4578. };
  4579. // -------------------------------------------------------------------
  4580. class LIBPROTOBUF_EXPORT SourceCodeInfo_Location : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo.Location) */ {
  4581. public:
  4582. SourceCodeInfo_Location();
  4583. virtual ~SourceCodeInfo_Location();
  4584. SourceCodeInfo_Location(const SourceCodeInfo_Location& from);
  4585. inline SourceCodeInfo_Location& operator=(const SourceCodeInfo_Location& from) {
  4586. CopyFrom(from);
  4587. return *this;
  4588. }
  4589. #if LANG_CXX11
  4590. SourceCodeInfo_Location(SourceCodeInfo_Location&& from) noexcept
  4591. : SourceCodeInfo_Location() {
  4592. *this = ::std::move(from);
  4593. }
  4594. inline SourceCodeInfo_Location& operator=(SourceCodeInfo_Location&& from) noexcept {
  4595. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4596. if (this != &from) InternalSwap(&from);
  4597. } else {
  4598. CopyFrom(from);
  4599. }
  4600. return *this;
  4601. }
  4602. #endif
  4603. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4604. return _internal_metadata_.unknown_fields();
  4605. }
  4606. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4607. return _internal_metadata_.mutable_unknown_fields();
  4608. }
  4609. inline ::google::protobuf::Arena* GetArena() const final {
  4610. return GetArenaNoVirtual();
  4611. }
  4612. inline void* GetMaybeArenaPointer() const final {
  4613. return MaybeArenaPtr();
  4614. }
  4615. static const ::google::protobuf::Descriptor* descriptor();
  4616. static const SourceCodeInfo_Location& default_instance();
  4617. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4618. static inline const SourceCodeInfo_Location* internal_default_instance() {
  4619. return reinterpret_cast<const SourceCodeInfo_Location*>(
  4620. &_SourceCodeInfo_Location_default_instance_);
  4621. }
  4622. static constexpr int kIndexInFileMessages =
  4623. 23;
  4624. void UnsafeArenaSwap(SourceCodeInfo_Location* other);
  4625. void Swap(SourceCodeInfo_Location* other);
  4626. friend void swap(SourceCodeInfo_Location& a, SourceCodeInfo_Location& b) {
  4627. a.Swap(&b);
  4628. }
  4629. // implements Message ----------------------------------------------
  4630. inline SourceCodeInfo_Location* New() const final {
  4631. return CreateMaybeMessage<SourceCodeInfo_Location>(NULL);
  4632. }
  4633. SourceCodeInfo_Location* New(::google::protobuf::Arena* arena) const final {
  4634. return CreateMaybeMessage<SourceCodeInfo_Location>(arena);
  4635. }
  4636. void CopyFrom(const ::google::protobuf::Message& from) final;
  4637. void MergeFrom(const ::google::protobuf::Message& from) final;
  4638. void CopyFrom(const SourceCodeInfo_Location& from);
  4639. void MergeFrom(const SourceCodeInfo_Location& from);
  4640. void Clear() final;
  4641. bool IsInitialized() const final;
  4642. size_t ByteSizeLong() const final;
  4643. bool MergePartialFromCodedStream(
  4644. ::google::protobuf::io::CodedInputStream* input) final;
  4645. void SerializeWithCachedSizes(
  4646. ::google::protobuf::io::CodedOutputStream* output) const final;
  4647. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4648. bool deterministic, ::google::protobuf::uint8* target) const final;
  4649. int GetCachedSize() const final { return _cached_size_.Get(); }
  4650. private:
  4651. void SharedCtor();
  4652. void SharedDtor();
  4653. void SetCachedSize(int size) const final;
  4654. void InternalSwap(SourceCodeInfo_Location* other);
  4655. protected:
  4656. explicit SourceCodeInfo_Location(::google::protobuf::Arena* arena);
  4657. private:
  4658. static void ArenaDtor(void* object);
  4659. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4660. private:
  4661. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4662. return _internal_metadata_.arena();
  4663. }
  4664. inline void* MaybeArenaPtr() const {
  4665. return _internal_metadata_.raw_arena_ptr();
  4666. }
  4667. public:
  4668. ::google::protobuf::Metadata GetMetadata() const final;
  4669. // nested types ----------------------------------------------------
  4670. // accessors -------------------------------------------------------
  4671. // repeated int32 path = 1 [packed = true];
  4672. int path_size() const;
  4673. void clear_path();
  4674. static const int kPathFieldNumber = 1;
  4675. ::google::protobuf::int32 path(int index) const;
  4676. void set_path(int index, ::google::protobuf::int32 value);
  4677. void add_path(::google::protobuf::int32 value);
  4678. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4679. path() const;
  4680. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4681. mutable_path();
  4682. // repeated int32 span = 2 [packed = true];
  4683. int span_size() const;
  4684. void clear_span();
  4685. static const int kSpanFieldNumber = 2;
  4686. ::google::protobuf::int32 span(int index) const;
  4687. void set_span(int index, ::google::protobuf::int32 value);
  4688. void add_span(::google::protobuf::int32 value);
  4689. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4690. span() const;
  4691. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4692. mutable_span();
  4693. // repeated string leading_detached_comments = 6;
  4694. int leading_detached_comments_size() const;
  4695. void clear_leading_detached_comments();
  4696. static const int kLeadingDetachedCommentsFieldNumber = 6;
  4697. const ::std::string& leading_detached_comments(int index) const;
  4698. ::std::string* mutable_leading_detached_comments(int index);
  4699. void set_leading_detached_comments(int index, const ::std::string& value);
  4700. #if LANG_CXX11
  4701. void set_leading_detached_comments(int index, ::std::string&& value);
  4702. #endif
  4703. void set_leading_detached_comments(int index, const char* value);
  4704. void set_leading_detached_comments(int index, const char* value, size_t size);
  4705. ::std::string* add_leading_detached_comments();
  4706. void add_leading_detached_comments(const ::std::string& value);
  4707. #if LANG_CXX11
  4708. void add_leading_detached_comments(::std::string&& value);
  4709. #endif
  4710. void add_leading_detached_comments(const char* value);
  4711. void add_leading_detached_comments(const char* value, size_t size);
  4712. const ::google::protobuf::RepeatedPtrField< ::std::string>& leading_detached_comments() const;
  4713. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_leading_detached_comments();
  4714. // optional string leading_comments = 3;
  4715. bool has_leading_comments() const;
  4716. void clear_leading_comments();
  4717. static const int kLeadingCommentsFieldNumber = 3;
  4718. const ::std::string& leading_comments() const;
  4719. void set_leading_comments(const ::std::string& value);
  4720. #if LANG_CXX11
  4721. void set_leading_comments(::std::string&& value);
  4722. #endif
  4723. void set_leading_comments(const char* value);
  4724. void set_leading_comments(const char* value, size_t size);
  4725. ::std::string* mutable_leading_comments();
  4726. ::std::string* release_leading_comments();
  4727. void set_allocated_leading_comments(::std::string* leading_comments);
  4728. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4729. " string fields are deprecated and will be removed in a"
  4730. " future release.")
  4731. ::std::string* unsafe_arena_release_leading_comments();
  4732. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4733. " string fields are deprecated and will be removed in a"
  4734. " future release.")
  4735. void unsafe_arena_set_allocated_leading_comments(
  4736. ::std::string* leading_comments);
  4737. // optional string trailing_comments = 4;
  4738. bool has_trailing_comments() const;
  4739. void clear_trailing_comments();
  4740. static const int kTrailingCommentsFieldNumber = 4;
  4741. const ::std::string& trailing_comments() const;
  4742. void set_trailing_comments(const ::std::string& value);
  4743. #if LANG_CXX11
  4744. void set_trailing_comments(::std::string&& value);
  4745. #endif
  4746. void set_trailing_comments(const char* value);
  4747. void set_trailing_comments(const char* value, size_t size);
  4748. ::std::string* mutable_trailing_comments();
  4749. ::std::string* release_trailing_comments();
  4750. void set_allocated_trailing_comments(::std::string* trailing_comments);
  4751. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4752. " string fields are deprecated and will be removed in a"
  4753. " future release.")
  4754. ::std::string* unsafe_arena_release_trailing_comments();
  4755. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  4756. " string fields are deprecated and will be removed in a"
  4757. " future release.")
  4758. void unsafe_arena_set_allocated_trailing_comments(
  4759. ::std::string* trailing_comments);
  4760. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo.Location)
  4761. private:
  4762. void set_has_leading_comments();
  4763. void clear_has_leading_comments();
  4764. void set_has_trailing_comments();
  4765. void clear_has_trailing_comments();
  4766. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4767. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4768. typedef void InternalArenaConstructable_;
  4769. typedef void DestructorSkippable_;
  4770. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4771. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4772. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > path_;
  4773. mutable int _path_cached_byte_size_;
  4774. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > span_;
  4775. mutable int _span_cached_byte_size_;
  4776. ::google::protobuf::RepeatedPtrField< ::std::string> leading_detached_comments_;
  4777. ::google::protobuf::internal::ArenaStringPtr leading_comments_;
  4778. ::google::protobuf::internal::ArenaStringPtr trailing_comments_;
  4779. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4780. };
  4781. // -------------------------------------------------------------------
  4782. class LIBPROTOBUF_EXPORT SourceCodeInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.SourceCodeInfo) */ {
  4783. public:
  4784. SourceCodeInfo();
  4785. virtual ~SourceCodeInfo();
  4786. SourceCodeInfo(const SourceCodeInfo& from);
  4787. inline SourceCodeInfo& operator=(const SourceCodeInfo& from) {
  4788. CopyFrom(from);
  4789. return *this;
  4790. }
  4791. #if LANG_CXX11
  4792. SourceCodeInfo(SourceCodeInfo&& from) noexcept
  4793. : SourceCodeInfo() {
  4794. *this = ::std::move(from);
  4795. }
  4796. inline SourceCodeInfo& operator=(SourceCodeInfo&& from) noexcept {
  4797. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4798. if (this != &from) InternalSwap(&from);
  4799. } else {
  4800. CopyFrom(from);
  4801. }
  4802. return *this;
  4803. }
  4804. #endif
  4805. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4806. return _internal_metadata_.unknown_fields();
  4807. }
  4808. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4809. return _internal_metadata_.mutable_unknown_fields();
  4810. }
  4811. inline ::google::protobuf::Arena* GetArena() const final {
  4812. return GetArenaNoVirtual();
  4813. }
  4814. inline void* GetMaybeArenaPointer() const final {
  4815. return MaybeArenaPtr();
  4816. }
  4817. static const ::google::protobuf::Descriptor* descriptor();
  4818. static const SourceCodeInfo& default_instance();
  4819. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4820. static inline const SourceCodeInfo* internal_default_instance() {
  4821. return reinterpret_cast<const SourceCodeInfo*>(
  4822. &_SourceCodeInfo_default_instance_);
  4823. }
  4824. static constexpr int kIndexInFileMessages =
  4825. 24;
  4826. void UnsafeArenaSwap(SourceCodeInfo* other);
  4827. void Swap(SourceCodeInfo* other);
  4828. friend void swap(SourceCodeInfo& a, SourceCodeInfo& b) {
  4829. a.Swap(&b);
  4830. }
  4831. // implements Message ----------------------------------------------
  4832. inline SourceCodeInfo* New() const final {
  4833. return CreateMaybeMessage<SourceCodeInfo>(NULL);
  4834. }
  4835. SourceCodeInfo* New(::google::protobuf::Arena* arena) const final {
  4836. return CreateMaybeMessage<SourceCodeInfo>(arena);
  4837. }
  4838. void CopyFrom(const ::google::protobuf::Message& from) final;
  4839. void MergeFrom(const ::google::protobuf::Message& from) final;
  4840. void CopyFrom(const SourceCodeInfo& from);
  4841. void MergeFrom(const SourceCodeInfo& from);
  4842. void Clear() final;
  4843. bool IsInitialized() const final;
  4844. size_t ByteSizeLong() const final;
  4845. bool MergePartialFromCodedStream(
  4846. ::google::protobuf::io::CodedInputStream* input) final;
  4847. void SerializeWithCachedSizes(
  4848. ::google::protobuf::io::CodedOutputStream* output) const final;
  4849. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4850. bool deterministic, ::google::protobuf::uint8* target) const final;
  4851. int GetCachedSize() const final { return _cached_size_.Get(); }
  4852. private:
  4853. void SharedCtor();
  4854. void SharedDtor();
  4855. void SetCachedSize(int size) const final;
  4856. void InternalSwap(SourceCodeInfo* other);
  4857. protected:
  4858. explicit SourceCodeInfo(::google::protobuf::Arena* arena);
  4859. private:
  4860. static void ArenaDtor(void* object);
  4861. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4862. private:
  4863. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4864. return _internal_metadata_.arena();
  4865. }
  4866. inline void* MaybeArenaPtr() const {
  4867. return _internal_metadata_.raw_arena_ptr();
  4868. }
  4869. public:
  4870. ::google::protobuf::Metadata GetMetadata() const final;
  4871. // nested types ----------------------------------------------------
  4872. typedef SourceCodeInfo_Location Location;
  4873. // accessors -------------------------------------------------------
  4874. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  4875. int location_size() const;
  4876. void clear_location();
  4877. static const int kLocationFieldNumber = 1;
  4878. ::google::protobuf::SourceCodeInfo_Location* mutable_location(int index);
  4879. ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
  4880. mutable_location();
  4881. const ::google::protobuf::SourceCodeInfo_Location& location(int index) const;
  4882. ::google::protobuf::SourceCodeInfo_Location* add_location();
  4883. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
  4884. location() const;
  4885. // @@protoc_insertion_point(class_scope:google.protobuf.SourceCodeInfo)
  4886. private:
  4887. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  4888. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  4889. typedef void InternalArenaConstructable_;
  4890. typedef void DestructorSkippable_;
  4891. ::google::protobuf::internal::HasBits<1> _has_bits_;
  4892. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  4893. ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location > location_;
  4894. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  4895. };
  4896. // -------------------------------------------------------------------
  4897. class LIBPROTOBUF_EXPORT GeneratedCodeInfo_Annotation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo.Annotation) */ {
  4898. public:
  4899. GeneratedCodeInfo_Annotation();
  4900. virtual ~GeneratedCodeInfo_Annotation();
  4901. GeneratedCodeInfo_Annotation(const GeneratedCodeInfo_Annotation& from);
  4902. inline GeneratedCodeInfo_Annotation& operator=(const GeneratedCodeInfo_Annotation& from) {
  4903. CopyFrom(from);
  4904. return *this;
  4905. }
  4906. #if LANG_CXX11
  4907. GeneratedCodeInfo_Annotation(GeneratedCodeInfo_Annotation&& from) noexcept
  4908. : GeneratedCodeInfo_Annotation() {
  4909. *this = ::std::move(from);
  4910. }
  4911. inline GeneratedCodeInfo_Annotation& operator=(GeneratedCodeInfo_Annotation&& from) noexcept {
  4912. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  4913. if (this != &from) InternalSwap(&from);
  4914. } else {
  4915. CopyFrom(from);
  4916. }
  4917. return *this;
  4918. }
  4919. #endif
  4920. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  4921. return _internal_metadata_.unknown_fields();
  4922. }
  4923. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  4924. return _internal_metadata_.mutable_unknown_fields();
  4925. }
  4926. inline ::google::protobuf::Arena* GetArena() const final {
  4927. return GetArenaNoVirtual();
  4928. }
  4929. inline void* GetMaybeArenaPointer() const final {
  4930. return MaybeArenaPtr();
  4931. }
  4932. static const ::google::protobuf::Descriptor* descriptor();
  4933. static const GeneratedCodeInfo_Annotation& default_instance();
  4934. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  4935. static inline const GeneratedCodeInfo_Annotation* internal_default_instance() {
  4936. return reinterpret_cast<const GeneratedCodeInfo_Annotation*>(
  4937. &_GeneratedCodeInfo_Annotation_default_instance_);
  4938. }
  4939. static constexpr int kIndexInFileMessages =
  4940. 25;
  4941. void UnsafeArenaSwap(GeneratedCodeInfo_Annotation* other);
  4942. void Swap(GeneratedCodeInfo_Annotation* other);
  4943. friend void swap(GeneratedCodeInfo_Annotation& a, GeneratedCodeInfo_Annotation& b) {
  4944. a.Swap(&b);
  4945. }
  4946. // implements Message ----------------------------------------------
  4947. inline GeneratedCodeInfo_Annotation* New() const final {
  4948. return CreateMaybeMessage<GeneratedCodeInfo_Annotation>(NULL);
  4949. }
  4950. GeneratedCodeInfo_Annotation* New(::google::protobuf::Arena* arena) const final {
  4951. return CreateMaybeMessage<GeneratedCodeInfo_Annotation>(arena);
  4952. }
  4953. void CopyFrom(const ::google::protobuf::Message& from) final;
  4954. void MergeFrom(const ::google::protobuf::Message& from) final;
  4955. void CopyFrom(const GeneratedCodeInfo_Annotation& from);
  4956. void MergeFrom(const GeneratedCodeInfo_Annotation& from);
  4957. void Clear() final;
  4958. bool IsInitialized() const final;
  4959. size_t ByteSizeLong() const final;
  4960. bool MergePartialFromCodedStream(
  4961. ::google::protobuf::io::CodedInputStream* input) final;
  4962. void SerializeWithCachedSizes(
  4963. ::google::protobuf::io::CodedOutputStream* output) const final;
  4964. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  4965. bool deterministic, ::google::protobuf::uint8* target) const final;
  4966. int GetCachedSize() const final { return _cached_size_.Get(); }
  4967. private:
  4968. void SharedCtor();
  4969. void SharedDtor();
  4970. void SetCachedSize(int size) const final;
  4971. void InternalSwap(GeneratedCodeInfo_Annotation* other);
  4972. protected:
  4973. explicit GeneratedCodeInfo_Annotation(::google::protobuf::Arena* arena);
  4974. private:
  4975. static void ArenaDtor(void* object);
  4976. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  4977. private:
  4978. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  4979. return _internal_metadata_.arena();
  4980. }
  4981. inline void* MaybeArenaPtr() const {
  4982. return _internal_metadata_.raw_arena_ptr();
  4983. }
  4984. public:
  4985. ::google::protobuf::Metadata GetMetadata() const final;
  4986. // nested types ----------------------------------------------------
  4987. // accessors -------------------------------------------------------
  4988. // repeated int32 path = 1 [packed = true];
  4989. int path_size() const;
  4990. void clear_path();
  4991. static const int kPathFieldNumber = 1;
  4992. ::google::protobuf::int32 path(int index) const;
  4993. void set_path(int index, ::google::protobuf::int32 value);
  4994. void add_path(::google::protobuf::int32 value);
  4995. const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  4996. path() const;
  4997. ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  4998. mutable_path();
  4999. // optional string source_file = 2;
  5000. bool has_source_file() const;
  5001. void clear_source_file();
  5002. static const int kSourceFileFieldNumber = 2;
  5003. const ::std::string& source_file() const;
  5004. void set_source_file(const ::std::string& value);
  5005. #if LANG_CXX11
  5006. void set_source_file(::std::string&& value);
  5007. #endif
  5008. void set_source_file(const char* value);
  5009. void set_source_file(const char* value, size_t size);
  5010. ::std::string* mutable_source_file();
  5011. ::std::string* release_source_file();
  5012. void set_allocated_source_file(::std::string* source_file);
  5013. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5014. " string fields are deprecated and will be removed in a"
  5015. " future release.")
  5016. ::std::string* unsafe_arena_release_source_file();
  5017. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  5018. " string fields are deprecated and will be removed in a"
  5019. " future release.")
  5020. void unsafe_arena_set_allocated_source_file(
  5021. ::std::string* source_file);
  5022. // optional int32 begin = 3;
  5023. bool has_begin() const;
  5024. void clear_begin();
  5025. static const int kBeginFieldNumber = 3;
  5026. ::google::protobuf::int32 begin() const;
  5027. void set_begin(::google::protobuf::int32 value);
  5028. // optional int32 end = 4;
  5029. bool has_end() const;
  5030. void clear_end();
  5031. static const int kEndFieldNumber = 4;
  5032. ::google::protobuf::int32 end() const;
  5033. void set_end(::google::protobuf::int32 value);
  5034. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo.Annotation)
  5035. private:
  5036. void set_has_source_file();
  5037. void clear_has_source_file();
  5038. void set_has_begin();
  5039. void clear_has_begin();
  5040. void set_has_end();
  5041. void clear_has_end();
  5042. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5043. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5044. typedef void InternalArenaConstructable_;
  5045. typedef void DestructorSkippable_;
  5046. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5047. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5048. ::google::protobuf::RepeatedField< ::google::protobuf::int32 > path_;
  5049. mutable int _path_cached_byte_size_;
  5050. ::google::protobuf::internal::ArenaStringPtr source_file_;
  5051. ::google::protobuf::int32 begin_;
  5052. ::google::protobuf::int32 end_;
  5053. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  5054. };
  5055. // -------------------------------------------------------------------
  5056. class LIBPROTOBUF_EXPORT GeneratedCodeInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.GeneratedCodeInfo) */ {
  5057. public:
  5058. GeneratedCodeInfo();
  5059. virtual ~GeneratedCodeInfo();
  5060. GeneratedCodeInfo(const GeneratedCodeInfo& from);
  5061. inline GeneratedCodeInfo& operator=(const GeneratedCodeInfo& from) {
  5062. CopyFrom(from);
  5063. return *this;
  5064. }
  5065. #if LANG_CXX11
  5066. GeneratedCodeInfo(GeneratedCodeInfo&& from) noexcept
  5067. : GeneratedCodeInfo() {
  5068. *this = ::std::move(from);
  5069. }
  5070. inline GeneratedCodeInfo& operator=(GeneratedCodeInfo&& from) noexcept {
  5071. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  5072. if (this != &from) InternalSwap(&from);
  5073. } else {
  5074. CopyFrom(from);
  5075. }
  5076. return *this;
  5077. }
  5078. #endif
  5079. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
  5080. return _internal_metadata_.unknown_fields();
  5081. }
  5082. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
  5083. return _internal_metadata_.mutable_unknown_fields();
  5084. }
  5085. inline ::google::protobuf::Arena* GetArena() const final {
  5086. return GetArenaNoVirtual();
  5087. }
  5088. inline void* GetMaybeArenaPointer() const final {
  5089. return MaybeArenaPtr();
  5090. }
  5091. static const ::google::protobuf::Descriptor* descriptor();
  5092. static const GeneratedCodeInfo& default_instance();
  5093. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  5094. static inline const GeneratedCodeInfo* internal_default_instance() {
  5095. return reinterpret_cast<const GeneratedCodeInfo*>(
  5096. &_GeneratedCodeInfo_default_instance_);
  5097. }
  5098. static constexpr int kIndexInFileMessages =
  5099. 26;
  5100. void UnsafeArenaSwap(GeneratedCodeInfo* other);
  5101. void Swap(GeneratedCodeInfo* other);
  5102. friend void swap(GeneratedCodeInfo& a, GeneratedCodeInfo& b) {
  5103. a.Swap(&b);
  5104. }
  5105. // implements Message ----------------------------------------------
  5106. inline GeneratedCodeInfo* New() const final {
  5107. return CreateMaybeMessage<GeneratedCodeInfo>(NULL);
  5108. }
  5109. GeneratedCodeInfo* New(::google::protobuf::Arena* arena) const final {
  5110. return CreateMaybeMessage<GeneratedCodeInfo>(arena);
  5111. }
  5112. void CopyFrom(const ::google::protobuf::Message& from) final;
  5113. void MergeFrom(const ::google::protobuf::Message& from) final;
  5114. void CopyFrom(const GeneratedCodeInfo& from);
  5115. void MergeFrom(const GeneratedCodeInfo& from);
  5116. void Clear() final;
  5117. bool IsInitialized() const final;
  5118. size_t ByteSizeLong() const final;
  5119. bool MergePartialFromCodedStream(
  5120. ::google::protobuf::io::CodedInputStream* input) final;
  5121. void SerializeWithCachedSizes(
  5122. ::google::protobuf::io::CodedOutputStream* output) const final;
  5123. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  5124. bool deterministic, ::google::protobuf::uint8* target) const final;
  5125. int GetCachedSize() const final { return _cached_size_.Get(); }
  5126. private:
  5127. void SharedCtor();
  5128. void SharedDtor();
  5129. void SetCachedSize(int size) const final;
  5130. void InternalSwap(GeneratedCodeInfo* other);
  5131. protected:
  5132. explicit GeneratedCodeInfo(::google::protobuf::Arena* arena);
  5133. private:
  5134. static void ArenaDtor(void* object);
  5135. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  5136. private:
  5137. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  5138. return _internal_metadata_.arena();
  5139. }
  5140. inline void* MaybeArenaPtr() const {
  5141. return _internal_metadata_.raw_arena_ptr();
  5142. }
  5143. public:
  5144. ::google::protobuf::Metadata GetMetadata() const final;
  5145. // nested types ----------------------------------------------------
  5146. typedef GeneratedCodeInfo_Annotation Annotation;
  5147. // accessors -------------------------------------------------------
  5148. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  5149. int annotation_size() const;
  5150. void clear_annotation();
  5151. static const int kAnnotationFieldNumber = 1;
  5152. ::google::protobuf::GeneratedCodeInfo_Annotation* mutable_annotation(int index);
  5153. ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >*
  5154. mutable_annotation();
  5155. const ::google::protobuf::GeneratedCodeInfo_Annotation& annotation(int index) const;
  5156. ::google::protobuf::GeneratedCodeInfo_Annotation* add_annotation();
  5157. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >&
  5158. annotation() const;
  5159. // @@protoc_insertion_point(class_scope:google.protobuf.GeneratedCodeInfo)
  5160. private:
  5161. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  5162. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  5163. typedef void InternalArenaConstructable_;
  5164. typedef void DestructorSkippable_;
  5165. ::google::protobuf::internal::HasBits<1> _has_bits_;
  5166. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  5167. ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation > annotation_;
  5168. friend struct ::protobuf_google_2fprotobuf_2fdescriptor_2eproto::TableStruct;
  5169. };
  5170. // ===================================================================
  5171. // ===================================================================
  5172. #ifdef __GNUC__
  5173. #pragma GCC diagnostic push
  5174. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  5175. #endif // __GNUC__
  5176. // FileDescriptorSet
  5177. // repeated .google.protobuf.FileDescriptorProto file = 1;
  5178. inline int FileDescriptorSet::file_size() const {
  5179. return file_.size();
  5180. }
  5181. inline void FileDescriptorSet::clear_file() {
  5182. file_.Clear();
  5183. }
  5184. inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::mutable_file(int index) {
  5185. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorSet.file)
  5186. return file_.Mutable(index);
  5187. }
  5188. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >*
  5189. FileDescriptorSet::mutable_file() {
  5190. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorSet.file)
  5191. return &file_;
  5192. }
  5193. inline const ::google::protobuf::FileDescriptorProto& FileDescriptorSet::file(int index) const {
  5194. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorSet.file)
  5195. return file_.Get(index);
  5196. }
  5197. inline ::google::protobuf::FileDescriptorProto* FileDescriptorSet::add_file() {
  5198. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorSet.file)
  5199. return file_.Add();
  5200. }
  5201. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FileDescriptorProto >&
  5202. FileDescriptorSet::file() const {
  5203. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorSet.file)
  5204. return file_;
  5205. }
  5206. // -------------------------------------------------------------------
  5207. // FileDescriptorProto
  5208. // optional string name = 1;
  5209. inline bool FileDescriptorProto::has_name() const {
  5210. return (_has_bits_[0] & 0x00000001u) != 0;
  5211. }
  5212. inline void FileDescriptorProto::set_has_name() {
  5213. _has_bits_[0] |= 0x00000001u;
  5214. }
  5215. inline void FileDescriptorProto::clear_has_name() {
  5216. _has_bits_[0] &= ~0x00000001u;
  5217. }
  5218. inline void FileDescriptorProto::clear_name() {
  5219. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5220. clear_has_name();
  5221. }
  5222. inline const ::std::string& FileDescriptorProto::name() const {
  5223. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.name)
  5224. return name_.Get();
  5225. }
  5226. inline void FileDescriptorProto::set_name(const ::std::string& value) {
  5227. set_has_name();
  5228. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  5229. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.name)
  5230. }
  5231. #if LANG_CXX11
  5232. inline void FileDescriptorProto::set_name(::std::string&& value) {
  5233. set_has_name();
  5234. name_.Set(
  5235. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  5236. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.name)
  5237. }
  5238. #endif
  5239. inline void FileDescriptorProto::set_name(const char* value) {
  5240. GOOGLE_DCHECK(value != NULL);
  5241. set_has_name();
  5242. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  5243. GetArenaNoVirtual());
  5244. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.name)
  5245. }
  5246. inline void FileDescriptorProto::set_name(const char* value,
  5247. size_t size) {
  5248. set_has_name();
  5249. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5250. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  5251. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.name)
  5252. }
  5253. inline ::std::string* FileDescriptorProto::mutable_name() {
  5254. set_has_name();
  5255. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.name)
  5256. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5257. }
  5258. inline ::std::string* FileDescriptorProto::release_name() {
  5259. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.name)
  5260. if (!has_name()) {
  5261. return NULL;
  5262. }
  5263. clear_has_name();
  5264. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5265. }
  5266. inline void FileDescriptorProto::set_allocated_name(::std::string* name) {
  5267. if (name != NULL) {
  5268. set_has_name();
  5269. } else {
  5270. clear_has_name();
  5271. }
  5272. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  5273. GetArenaNoVirtual());
  5274. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.name)
  5275. }
  5276. inline ::std::string* FileDescriptorProto::unsafe_arena_release_name() {
  5277. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.name)
  5278. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5279. clear_has_name();
  5280. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5281. GetArenaNoVirtual());
  5282. }
  5283. inline void FileDescriptorProto::unsafe_arena_set_allocated_name(
  5284. ::std::string* name) {
  5285. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5286. if (name != NULL) {
  5287. set_has_name();
  5288. } else {
  5289. clear_has_name();
  5290. }
  5291. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5292. name, GetArenaNoVirtual());
  5293. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.name)
  5294. }
  5295. // optional string package = 2;
  5296. inline bool FileDescriptorProto::has_package() const {
  5297. return (_has_bits_[0] & 0x00000002u) != 0;
  5298. }
  5299. inline void FileDescriptorProto::set_has_package() {
  5300. _has_bits_[0] |= 0x00000002u;
  5301. }
  5302. inline void FileDescriptorProto::clear_has_package() {
  5303. _has_bits_[0] &= ~0x00000002u;
  5304. }
  5305. inline void FileDescriptorProto::clear_package() {
  5306. package_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5307. clear_has_package();
  5308. }
  5309. inline const ::std::string& FileDescriptorProto::package() const {
  5310. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.package)
  5311. return package_.Get();
  5312. }
  5313. inline void FileDescriptorProto::set_package(const ::std::string& value) {
  5314. set_has_package();
  5315. package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  5316. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.package)
  5317. }
  5318. #if LANG_CXX11
  5319. inline void FileDescriptorProto::set_package(::std::string&& value) {
  5320. set_has_package();
  5321. package_.Set(
  5322. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  5323. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.package)
  5324. }
  5325. #endif
  5326. inline void FileDescriptorProto::set_package(const char* value) {
  5327. GOOGLE_DCHECK(value != NULL);
  5328. set_has_package();
  5329. package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  5330. GetArenaNoVirtual());
  5331. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.package)
  5332. }
  5333. inline void FileDescriptorProto::set_package(const char* value,
  5334. size_t size) {
  5335. set_has_package();
  5336. package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5337. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  5338. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.package)
  5339. }
  5340. inline ::std::string* FileDescriptorProto::mutable_package() {
  5341. set_has_package();
  5342. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.package)
  5343. return package_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5344. }
  5345. inline ::std::string* FileDescriptorProto::release_package() {
  5346. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.package)
  5347. if (!has_package()) {
  5348. return NULL;
  5349. }
  5350. clear_has_package();
  5351. return package_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5352. }
  5353. inline void FileDescriptorProto::set_allocated_package(::std::string* package) {
  5354. if (package != NULL) {
  5355. set_has_package();
  5356. } else {
  5357. clear_has_package();
  5358. }
  5359. package_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), package,
  5360. GetArenaNoVirtual());
  5361. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.package)
  5362. }
  5363. inline ::std::string* FileDescriptorProto::unsafe_arena_release_package() {
  5364. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.package)
  5365. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5366. clear_has_package();
  5367. return package_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5368. GetArenaNoVirtual());
  5369. }
  5370. inline void FileDescriptorProto::unsafe_arena_set_allocated_package(
  5371. ::std::string* package) {
  5372. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5373. if (package != NULL) {
  5374. set_has_package();
  5375. } else {
  5376. clear_has_package();
  5377. }
  5378. package_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5379. package, GetArenaNoVirtual());
  5380. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.package)
  5381. }
  5382. // repeated string dependency = 3;
  5383. inline int FileDescriptorProto::dependency_size() const {
  5384. return dependency_.size();
  5385. }
  5386. inline void FileDescriptorProto::clear_dependency() {
  5387. dependency_.Clear();
  5388. }
  5389. inline const ::std::string& FileDescriptorProto::dependency(int index) const {
  5390. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.dependency)
  5391. return dependency_.Get(index);
  5392. }
  5393. inline ::std::string* FileDescriptorProto::mutable_dependency(int index) {
  5394. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.dependency)
  5395. return dependency_.Mutable(index);
  5396. }
  5397. inline void FileDescriptorProto::set_dependency(int index, const ::std::string& value) {
  5398. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  5399. dependency_.Mutable(index)->assign(value);
  5400. }
  5401. #if LANG_CXX11
  5402. inline void FileDescriptorProto::set_dependency(int index, ::std::string&& value) {
  5403. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.dependency)
  5404. dependency_.Mutable(index)->assign(std::move(value));
  5405. }
  5406. #endif
  5407. inline void FileDescriptorProto::set_dependency(int index, const char* value) {
  5408. GOOGLE_DCHECK(value != NULL);
  5409. dependency_.Mutable(index)->assign(value);
  5410. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.dependency)
  5411. }
  5412. inline void FileDescriptorProto::set_dependency(int index, const char* value, size_t size) {
  5413. dependency_.Mutable(index)->assign(
  5414. reinterpret_cast<const char*>(value), size);
  5415. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.dependency)
  5416. }
  5417. inline ::std::string* FileDescriptorProto::add_dependency() {
  5418. // @@protoc_insertion_point(field_add_mutable:google.protobuf.FileDescriptorProto.dependency)
  5419. return dependency_.Add();
  5420. }
  5421. inline void FileDescriptorProto::add_dependency(const ::std::string& value) {
  5422. dependency_.Add()->assign(value);
  5423. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  5424. }
  5425. #if LANG_CXX11
  5426. inline void FileDescriptorProto::add_dependency(::std::string&& value) {
  5427. dependency_.Add(std::move(value));
  5428. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.dependency)
  5429. }
  5430. #endif
  5431. inline void FileDescriptorProto::add_dependency(const char* value) {
  5432. GOOGLE_DCHECK(value != NULL);
  5433. dependency_.Add()->assign(value);
  5434. // @@protoc_insertion_point(field_add_char:google.protobuf.FileDescriptorProto.dependency)
  5435. }
  5436. inline void FileDescriptorProto::add_dependency(const char* value, size_t size) {
  5437. dependency_.Add()->assign(reinterpret_cast<const char*>(value), size);
  5438. // @@protoc_insertion_point(field_add_pointer:google.protobuf.FileDescriptorProto.dependency)
  5439. }
  5440. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  5441. FileDescriptorProto::dependency() const {
  5442. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.dependency)
  5443. return dependency_;
  5444. }
  5445. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  5446. FileDescriptorProto::mutable_dependency() {
  5447. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.dependency)
  5448. return &dependency_;
  5449. }
  5450. // repeated int32 public_dependency = 10;
  5451. inline int FileDescriptorProto::public_dependency_size() const {
  5452. return public_dependency_.size();
  5453. }
  5454. inline void FileDescriptorProto::clear_public_dependency() {
  5455. public_dependency_.Clear();
  5456. }
  5457. inline ::google::protobuf::int32 FileDescriptorProto::public_dependency(int index) const {
  5458. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.public_dependency)
  5459. return public_dependency_.Get(index);
  5460. }
  5461. inline void FileDescriptorProto::set_public_dependency(int index, ::google::protobuf::int32 value) {
  5462. public_dependency_.Set(index, value);
  5463. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.public_dependency)
  5464. }
  5465. inline void FileDescriptorProto::add_public_dependency(::google::protobuf::int32 value) {
  5466. public_dependency_.Add(value);
  5467. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.public_dependency)
  5468. }
  5469. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  5470. FileDescriptorProto::public_dependency() const {
  5471. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.public_dependency)
  5472. return public_dependency_;
  5473. }
  5474. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  5475. FileDescriptorProto::mutable_public_dependency() {
  5476. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.public_dependency)
  5477. return &public_dependency_;
  5478. }
  5479. // repeated int32 weak_dependency = 11;
  5480. inline int FileDescriptorProto::weak_dependency_size() const {
  5481. return weak_dependency_.size();
  5482. }
  5483. inline void FileDescriptorProto::clear_weak_dependency() {
  5484. weak_dependency_.Clear();
  5485. }
  5486. inline ::google::protobuf::int32 FileDescriptorProto::weak_dependency(int index) const {
  5487. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.weak_dependency)
  5488. return weak_dependency_.Get(index);
  5489. }
  5490. inline void FileDescriptorProto::set_weak_dependency(int index, ::google::protobuf::int32 value) {
  5491. weak_dependency_.Set(index, value);
  5492. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.weak_dependency)
  5493. }
  5494. inline void FileDescriptorProto::add_weak_dependency(::google::protobuf::int32 value) {
  5495. weak_dependency_.Add(value);
  5496. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.weak_dependency)
  5497. }
  5498. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  5499. FileDescriptorProto::weak_dependency() const {
  5500. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.weak_dependency)
  5501. return weak_dependency_;
  5502. }
  5503. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  5504. FileDescriptorProto::mutable_weak_dependency() {
  5505. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.weak_dependency)
  5506. return &weak_dependency_;
  5507. }
  5508. // repeated .google.protobuf.DescriptorProto message_type = 4;
  5509. inline int FileDescriptorProto::message_type_size() const {
  5510. return message_type_.size();
  5511. }
  5512. inline void FileDescriptorProto::clear_message_type() {
  5513. message_type_.Clear();
  5514. }
  5515. inline ::google::protobuf::DescriptorProto* FileDescriptorProto::mutable_message_type(int index) {
  5516. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.message_type)
  5517. return message_type_.Mutable(index);
  5518. }
  5519. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  5520. FileDescriptorProto::mutable_message_type() {
  5521. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.message_type)
  5522. return &message_type_;
  5523. }
  5524. inline const ::google::protobuf::DescriptorProto& FileDescriptorProto::message_type(int index) const {
  5525. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.message_type)
  5526. return message_type_.Get(index);
  5527. }
  5528. inline ::google::protobuf::DescriptorProto* FileDescriptorProto::add_message_type() {
  5529. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.message_type)
  5530. return message_type_.Add();
  5531. }
  5532. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  5533. FileDescriptorProto::message_type() const {
  5534. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.message_type)
  5535. return message_type_;
  5536. }
  5537. // repeated .google.protobuf.EnumDescriptorProto enum_type = 5;
  5538. inline int FileDescriptorProto::enum_type_size() const {
  5539. return enum_type_.size();
  5540. }
  5541. inline void FileDescriptorProto::clear_enum_type() {
  5542. enum_type_.Clear();
  5543. }
  5544. inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::mutable_enum_type(int index) {
  5545. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.enum_type)
  5546. return enum_type_.Mutable(index);
  5547. }
  5548. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  5549. FileDescriptorProto::mutable_enum_type() {
  5550. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.enum_type)
  5551. return &enum_type_;
  5552. }
  5553. inline const ::google::protobuf::EnumDescriptorProto& FileDescriptorProto::enum_type(int index) const {
  5554. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.enum_type)
  5555. return enum_type_.Get(index);
  5556. }
  5557. inline ::google::protobuf::EnumDescriptorProto* FileDescriptorProto::add_enum_type() {
  5558. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.enum_type)
  5559. return enum_type_.Add();
  5560. }
  5561. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  5562. FileDescriptorProto::enum_type() const {
  5563. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.enum_type)
  5564. return enum_type_;
  5565. }
  5566. // repeated .google.protobuf.ServiceDescriptorProto service = 6;
  5567. inline int FileDescriptorProto::service_size() const {
  5568. return service_.size();
  5569. }
  5570. inline void FileDescriptorProto::clear_service() {
  5571. service_.Clear();
  5572. }
  5573. inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::mutable_service(int index) {
  5574. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.service)
  5575. return service_.Mutable(index);
  5576. }
  5577. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >*
  5578. FileDescriptorProto::mutable_service() {
  5579. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.service)
  5580. return &service_;
  5581. }
  5582. inline const ::google::protobuf::ServiceDescriptorProto& FileDescriptorProto::service(int index) const {
  5583. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.service)
  5584. return service_.Get(index);
  5585. }
  5586. inline ::google::protobuf::ServiceDescriptorProto* FileDescriptorProto::add_service() {
  5587. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.service)
  5588. return service_.Add();
  5589. }
  5590. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::ServiceDescriptorProto >&
  5591. FileDescriptorProto::service() const {
  5592. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.service)
  5593. return service_;
  5594. }
  5595. // repeated .google.protobuf.FieldDescriptorProto extension = 7;
  5596. inline int FileDescriptorProto::extension_size() const {
  5597. return extension_.size();
  5598. }
  5599. inline void FileDescriptorProto::clear_extension() {
  5600. extension_.Clear();
  5601. }
  5602. inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::mutable_extension(int index) {
  5603. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.extension)
  5604. return extension_.Mutable(index);
  5605. }
  5606. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  5607. FileDescriptorProto::mutable_extension() {
  5608. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileDescriptorProto.extension)
  5609. return &extension_;
  5610. }
  5611. inline const ::google::protobuf::FieldDescriptorProto& FileDescriptorProto::extension(int index) const {
  5612. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.extension)
  5613. return extension_.Get(index);
  5614. }
  5615. inline ::google::protobuf::FieldDescriptorProto* FileDescriptorProto::add_extension() {
  5616. // @@protoc_insertion_point(field_add:google.protobuf.FileDescriptorProto.extension)
  5617. return extension_.Add();
  5618. }
  5619. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  5620. FileDescriptorProto::extension() const {
  5621. // @@protoc_insertion_point(field_list:google.protobuf.FileDescriptorProto.extension)
  5622. return extension_;
  5623. }
  5624. // optional .google.protobuf.FileOptions options = 8;
  5625. inline bool FileDescriptorProto::has_options() const {
  5626. return (_has_bits_[0] & 0x00000008u) != 0;
  5627. }
  5628. inline void FileDescriptorProto::set_has_options() {
  5629. _has_bits_[0] |= 0x00000008u;
  5630. }
  5631. inline void FileDescriptorProto::clear_has_options() {
  5632. _has_bits_[0] &= ~0x00000008u;
  5633. }
  5634. inline void FileDescriptorProto::clear_options() {
  5635. if (options_ != NULL) options_->Clear();
  5636. clear_has_options();
  5637. }
  5638. inline const ::google::protobuf::FileOptions& FileDescriptorProto::_internal_options() const {
  5639. return *options_;
  5640. }
  5641. inline const ::google::protobuf::FileOptions& FileDescriptorProto::options() const {
  5642. const ::google::protobuf::FileOptions* p = options_;
  5643. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.options)
  5644. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::FileOptions*>(
  5645. &::google::protobuf::_FileOptions_default_instance_);
  5646. }
  5647. inline ::google::protobuf::FileOptions* FileDescriptorProto::release_options() {
  5648. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.options)
  5649. clear_has_options();
  5650. ::google::protobuf::FileOptions* temp = options_;
  5651. if (GetArenaNoVirtual() != NULL) {
  5652. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  5653. }
  5654. options_ = NULL;
  5655. return temp;
  5656. }
  5657. inline ::google::protobuf::FileOptions* FileDescriptorProto::unsafe_arena_release_options() {
  5658. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.options)
  5659. clear_has_options();
  5660. ::google::protobuf::FileOptions* temp = options_;
  5661. options_ = NULL;
  5662. return temp;
  5663. }
  5664. inline ::google::protobuf::FileOptions* FileDescriptorProto::mutable_options() {
  5665. set_has_options();
  5666. if (options_ == NULL) {
  5667. auto* p = CreateMaybeMessage<::google::protobuf::FileOptions>(GetArenaNoVirtual());
  5668. options_ = p;
  5669. }
  5670. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.options)
  5671. return options_;
  5672. }
  5673. inline void FileDescriptorProto::set_allocated_options(::google::protobuf::FileOptions* options) {
  5674. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5675. if (message_arena == NULL) {
  5676. delete options_;
  5677. }
  5678. if (options) {
  5679. ::google::protobuf::Arena* submessage_arena =
  5680. ::google::protobuf::Arena::GetArena(options);
  5681. if (message_arena != submessage_arena) {
  5682. options = ::google::protobuf::internal::GetOwnedMessage(
  5683. message_arena, options, submessage_arena);
  5684. }
  5685. set_has_options();
  5686. } else {
  5687. clear_has_options();
  5688. }
  5689. options_ = options;
  5690. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.options)
  5691. }
  5692. // optional .google.protobuf.SourceCodeInfo source_code_info = 9;
  5693. inline bool FileDescriptorProto::has_source_code_info() const {
  5694. return (_has_bits_[0] & 0x00000010u) != 0;
  5695. }
  5696. inline void FileDescriptorProto::set_has_source_code_info() {
  5697. _has_bits_[0] |= 0x00000010u;
  5698. }
  5699. inline void FileDescriptorProto::clear_has_source_code_info() {
  5700. _has_bits_[0] &= ~0x00000010u;
  5701. }
  5702. inline void FileDescriptorProto::clear_source_code_info() {
  5703. if (source_code_info_ != NULL) source_code_info_->Clear();
  5704. clear_has_source_code_info();
  5705. }
  5706. inline const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::_internal_source_code_info() const {
  5707. return *source_code_info_;
  5708. }
  5709. inline const ::google::protobuf::SourceCodeInfo& FileDescriptorProto::source_code_info() const {
  5710. const ::google::protobuf::SourceCodeInfo* p = source_code_info_;
  5711. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.source_code_info)
  5712. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::SourceCodeInfo*>(
  5713. &::google::protobuf::_SourceCodeInfo_default_instance_);
  5714. }
  5715. inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::release_source_code_info() {
  5716. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.source_code_info)
  5717. clear_has_source_code_info();
  5718. ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
  5719. if (GetArenaNoVirtual() != NULL) {
  5720. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  5721. }
  5722. source_code_info_ = NULL;
  5723. return temp;
  5724. }
  5725. inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::unsafe_arena_release_source_code_info() {
  5726. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.source_code_info)
  5727. clear_has_source_code_info();
  5728. ::google::protobuf::SourceCodeInfo* temp = source_code_info_;
  5729. source_code_info_ = NULL;
  5730. return temp;
  5731. }
  5732. inline ::google::protobuf::SourceCodeInfo* FileDescriptorProto::mutable_source_code_info() {
  5733. set_has_source_code_info();
  5734. if (source_code_info_ == NULL) {
  5735. auto* p = CreateMaybeMessage<::google::protobuf::SourceCodeInfo>(GetArenaNoVirtual());
  5736. source_code_info_ = p;
  5737. }
  5738. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.source_code_info)
  5739. return source_code_info_;
  5740. }
  5741. inline void FileDescriptorProto::set_allocated_source_code_info(::google::protobuf::SourceCodeInfo* source_code_info) {
  5742. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5743. if (message_arena == NULL) {
  5744. delete source_code_info_;
  5745. }
  5746. if (source_code_info) {
  5747. ::google::protobuf::Arena* submessage_arena =
  5748. ::google::protobuf::Arena::GetArena(source_code_info);
  5749. if (message_arena != submessage_arena) {
  5750. source_code_info = ::google::protobuf::internal::GetOwnedMessage(
  5751. message_arena, source_code_info, submessage_arena);
  5752. }
  5753. set_has_source_code_info();
  5754. } else {
  5755. clear_has_source_code_info();
  5756. }
  5757. source_code_info_ = source_code_info;
  5758. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.source_code_info)
  5759. }
  5760. // optional string syntax = 12;
  5761. inline bool FileDescriptorProto::has_syntax() const {
  5762. return (_has_bits_[0] & 0x00000004u) != 0;
  5763. }
  5764. inline void FileDescriptorProto::set_has_syntax() {
  5765. _has_bits_[0] |= 0x00000004u;
  5766. }
  5767. inline void FileDescriptorProto::clear_has_syntax() {
  5768. _has_bits_[0] &= ~0x00000004u;
  5769. }
  5770. inline void FileDescriptorProto::clear_syntax() {
  5771. syntax_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5772. clear_has_syntax();
  5773. }
  5774. inline const ::std::string& FileDescriptorProto::syntax() const {
  5775. // @@protoc_insertion_point(field_get:google.protobuf.FileDescriptorProto.syntax)
  5776. return syntax_.Get();
  5777. }
  5778. inline void FileDescriptorProto::set_syntax(const ::std::string& value) {
  5779. set_has_syntax();
  5780. syntax_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  5781. // @@protoc_insertion_point(field_set:google.protobuf.FileDescriptorProto.syntax)
  5782. }
  5783. #if LANG_CXX11
  5784. inline void FileDescriptorProto::set_syntax(::std::string&& value) {
  5785. set_has_syntax();
  5786. syntax_.Set(
  5787. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  5788. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileDescriptorProto.syntax)
  5789. }
  5790. #endif
  5791. inline void FileDescriptorProto::set_syntax(const char* value) {
  5792. GOOGLE_DCHECK(value != NULL);
  5793. set_has_syntax();
  5794. syntax_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  5795. GetArenaNoVirtual());
  5796. // @@protoc_insertion_point(field_set_char:google.protobuf.FileDescriptorProto.syntax)
  5797. }
  5798. inline void FileDescriptorProto::set_syntax(const char* value,
  5799. size_t size) {
  5800. set_has_syntax();
  5801. syntax_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  5802. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  5803. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileDescriptorProto.syntax)
  5804. }
  5805. inline ::std::string* FileDescriptorProto::mutable_syntax() {
  5806. set_has_syntax();
  5807. // @@protoc_insertion_point(field_mutable:google.protobuf.FileDescriptorProto.syntax)
  5808. return syntax_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5809. }
  5810. inline ::std::string* FileDescriptorProto::release_syntax() {
  5811. // @@protoc_insertion_point(field_release:google.protobuf.FileDescriptorProto.syntax)
  5812. if (!has_syntax()) {
  5813. return NULL;
  5814. }
  5815. clear_has_syntax();
  5816. return syntax_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  5817. }
  5818. inline void FileDescriptorProto::set_allocated_syntax(::std::string* syntax) {
  5819. if (syntax != NULL) {
  5820. set_has_syntax();
  5821. } else {
  5822. clear_has_syntax();
  5823. }
  5824. syntax_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), syntax,
  5825. GetArenaNoVirtual());
  5826. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileDescriptorProto.syntax)
  5827. }
  5828. inline ::std::string* FileDescriptorProto::unsafe_arena_release_syntax() {
  5829. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileDescriptorProto.syntax)
  5830. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5831. clear_has_syntax();
  5832. return syntax_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5833. GetArenaNoVirtual());
  5834. }
  5835. inline void FileDescriptorProto::unsafe_arena_set_allocated_syntax(
  5836. ::std::string* syntax) {
  5837. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  5838. if (syntax != NULL) {
  5839. set_has_syntax();
  5840. } else {
  5841. clear_has_syntax();
  5842. }
  5843. syntax_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  5844. syntax, GetArenaNoVirtual());
  5845. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileDescriptorProto.syntax)
  5846. }
  5847. // -------------------------------------------------------------------
  5848. // DescriptorProto_ExtensionRange
  5849. // optional int32 start = 1;
  5850. inline bool DescriptorProto_ExtensionRange::has_start() const {
  5851. return (_has_bits_[0] & 0x00000002u) != 0;
  5852. }
  5853. inline void DescriptorProto_ExtensionRange::set_has_start() {
  5854. _has_bits_[0] |= 0x00000002u;
  5855. }
  5856. inline void DescriptorProto_ExtensionRange::clear_has_start() {
  5857. _has_bits_[0] &= ~0x00000002u;
  5858. }
  5859. inline void DescriptorProto_ExtensionRange::clear_start() {
  5860. start_ = 0;
  5861. clear_has_start();
  5862. }
  5863. inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::start() const {
  5864. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.start)
  5865. return start_;
  5866. }
  5867. inline void DescriptorProto_ExtensionRange::set_start(::google::protobuf::int32 value) {
  5868. set_has_start();
  5869. start_ = value;
  5870. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.start)
  5871. }
  5872. // optional int32 end = 2;
  5873. inline bool DescriptorProto_ExtensionRange::has_end() const {
  5874. return (_has_bits_[0] & 0x00000004u) != 0;
  5875. }
  5876. inline void DescriptorProto_ExtensionRange::set_has_end() {
  5877. _has_bits_[0] |= 0x00000004u;
  5878. }
  5879. inline void DescriptorProto_ExtensionRange::clear_has_end() {
  5880. _has_bits_[0] &= ~0x00000004u;
  5881. }
  5882. inline void DescriptorProto_ExtensionRange::clear_end() {
  5883. end_ = 0;
  5884. clear_has_end();
  5885. }
  5886. inline ::google::protobuf::int32 DescriptorProto_ExtensionRange::end() const {
  5887. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.end)
  5888. return end_;
  5889. }
  5890. inline void DescriptorProto_ExtensionRange::set_end(::google::protobuf::int32 value) {
  5891. set_has_end();
  5892. end_ = value;
  5893. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ExtensionRange.end)
  5894. }
  5895. // optional .google.protobuf.ExtensionRangeOptions options = 3;
  5896. inline bool DescriptorProto_ExtensionRange::has_options() const {
  5897. return (_has_bits_[0] & 0x00000001u) != 0;
  5898. }
  5899. inline void DescriptorProto_ExtensionRange::set_has_options() {
  5900. _has_bits_[0] |= 0x00000001u;
  5901. }
  5902. inline void DescriptorProto_ExtensionRange::clear_has_options() {
  5903. _has_bits_[0] &= ~0x00000001u;
  5904. }
  5905. inline void DescriptorProto_ExtensionRange::clear_options() {
  5906. if (options_ != NULL) options_->Clear();
  5907. clear_has_options();
  5908. }
  5909. inline const ::google::protobuf::ExtensionRangeOptions& DescriptorProto_ExtensionRange::_internal_options() const {
  5910. return *options_;
  5911. }
  5912. inline const ::google::protobuf::ExtensionRangeOptions& DescriptorProto_ExtensionRange::options() const {
  5913. const ::google::protobuf::ExtensionRangeOptions* p = options_;
  5914. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ExtensionRange.options)
  5915. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ExtensionRangeOptions*>(
  5916. &::google::protobuf::_ExtensionRangeOptions_default_instance_);
  5917. }
  5918. inline ::google::protobuf::ExtensionRangeOptions* DescriptorProto_ExtensionRange::release_options() {
  5919. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.ExtensionRange.options)
  5920. clear_has_options();
  5921. ::google::protobuf::ExtensionRangeOptions* temp = options_;
  5922. if (GetArenaNoVirtual() != NULL) {
  5923. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  5924. }
  5925. options_ = NULL;
  5926. return temp;
  5927. }
  5928. inline ::google::protobuf::ExtensionRangeOptions* DescriptorProto_ExtensionRange::unsafe_arena_release_options() {
  5929. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.DescriptorProto.ExtensionRange.options)
  5930. clear_has_options();
  5931. ::google::protobuf::ExtensionRangeOptions* temp = options_;
  5932. options_ = NULL;
  5933. return temp;
  5934. }
  5935. inline ::google::protobuf::ExtensionRangeOptions* DescriptorProto_ExtensionRange::mutable_options() {
  5936. set_has_options();
  5937. if (options_ == NULL) {
  5938. auto* p = CreateMaybeMessage<::google::protobuf::ExtensionRangeOptions>(GetArenaNoVirtual());
  5939. options_ = p;
  5940. }
  5941. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.ExtensionRange.options)
  5942. return options_;
  5943. }
  5944. inline void DescriptorProto_ExtensionRange::set_allocated_options(::google::protobuf::ExtensionRangeOptions* options) {
  5945. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  5946. if (message_arena == NULL) {
  5947. delete options_;
  5948. }
  5949. if (options) {
  5950. ::google::protobuf::Arena* submessage_arena =
  5951. ::google::protobuf::Arena::GetArena(options);
  5952. if (message_arena != submessage_arena) {
  5953. options = ::google::protobuf::internal::GetOwnedMessage(
  5954. message_arena, options, submessage_arena);
  5955. }
  5956. set_has_options();
  5957. } else {
  5958. clear_has_options();
  5959. }
  5960. options_ = options;
  5961. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.ExtensionRange.options)
  5962. }
  5963. // -------------------------------------------------------------------
  5964. // DescriptorProto_ReservedRange
  5965. // optional int32 start = 1;
  5966. inline bool DescriptorProto_ReservedRange::has_start() const {
  5967. return (_has_bits_[0] & 0x00000001u) != 0;
  5968. }
  5969. inline void DescriptorProto_ReservedRange::set_has_start() {
  5970. _has_bits_[0] |= 0x00000001u;
  5971. }
  5972. inline void DescriptorProto_ReservedRange::clear_has_start() {
  5973. _has_bits_[0] &= ~0x00000001u;
  5974. }
  5975. inline void DescriptorProto_ReservedRange::clear_start() {
  5976. start_ = 0;
  5977. clear_has_start();
  5978. }
  5979. inline ::google::protobuf::int32 DescriptorProto_ReservedRange::start() const {
  5980. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.start)
  5981. return start_;
  5982. }
  5983. inline void DescriptorProto_ReservedRange::set_start(::google::protobuf::int32 value) {
  5984. set_has_start();
  5985. start_ = value;
  5986. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.start)
  5987. }
  5988. // optional int32 end = 2;
  5989. inline bool DescriptorProto_ReservedRange::has_end() const {
  5990. return (_has_bits_[0] & 0x00000002u) != 0;
  5991. }
  5992. inline void DescriptorProto_ReservedRange::set_has_end() {
  5993. _has_bits_[0] |= 0x00000002u;
  5994. }
  5995. inline void DescriptorProto_ReservedRange::clear_has_end() {
  5996. _has_bits_[0] &= ~0x00000002u;
  5997. }
  5998. inline void DescriptorProto_ReservedRange::clear_end() {
  5999. end_ = 0;
  6000. clear_has_end();
  6001. }
  6002. inline ::google::protobuf::int32 DescriptorProto_ReservedRange::end() const {
  6003. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.ReservedRange.end)
  6004. return end_;
  6005. }
  6006. inline void DescriptorProto_ReservedRange::set_end(::google::protobuf::int32 value) {
  6007. set_has_end();
  6008. end_ = value;
  6009. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.ReservedRange.end)
  6010. }
  6011. // -------------------------------------------------------------------
  6012. // DescriptorProto
  6013. // optional string name = 1;
  6014. inline bool DescriptorProto::has_name() const {
  6015. return (_has_bits_[0] & 0x00000001u) != 0;
  6016. }
  6017. inline void DescriptorProto::set_has_name() {
  6018. _has_bits_[0] |= 0x00000001u;
  6019. }
  6020. inline void DescriptorProto::clear_has_name() {
  6021. _has_bits_[0] &= ~0x00000001u;
  6022. }
  6023. inline void DescriptorProto::clear_name() {
  6024. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6025. clear_has_name();
  6026. }
  6027. inline const ::std::string& DescriptorProto::name() const {
  6028. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.name)
  6029. return name_.Get();
  6030. }
  6031. inline void DescriptorProto::set_name(const ::std::string& value) {
  6032. set_has_name();
  6033. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6034. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.name)
  6035. }
  6036. #if LANG_CXX11
  6037. inline void DescriptorProto::set_name(::std::string&& value) {
  6038. set_has_name();
  6039. name_.Set(
  6040. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6041. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.DescriptorProto.name)
  6042. }
  6043. #endif
  6044. inline void DescriptorProto::set_name(const char* value) {
  6045. GOOGLE_DCHECK(value != NULL);
  6046. set_has_name();
  6047. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6048. GetArenaNoVirtual());
  6049. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.name)
  6050. }
  6051. inline void DescriptorProto::set_name(const char* value,
  6052. size_t size) {
  6053. set_has_name();
  6054. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6055. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6056. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.name)
  6057. }
  6058. inline ::std::string* DescriptorProto::mutable_name() {
  6059. set_has_name();
  6060. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.name)
  6061. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6062. }
  6063. inline ::std::string* DescriptorProto::release_name() {
  6064. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.name)
  6065. if (!has_name()) {
  6066. return NULL;
  6067. }
  6068. clear_has_name();
  6069. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6070. }
  6071. inline void DescriptorProto::set_allocated_name(::std::string* name) {
  6072. if (name != NULL) {
  6073. set_has_name();
  6074. } else {
  6075. clear_has_name();
  6076. }
  6077. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  6078. GetArenaNoVirtual());
  6079. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.name)
  6080. }
  6081. inline ::std::string* DescriptorProto::unsafe_arena_release_name() {
  6082. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.DescriptorProto.name)
  6083. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6084. clear_has_name();
  6085. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6086. GetArenaNoVirtual());
  6087. }
  6088. inline void DescriptorProto::unsafe_arena_set_allocated_name(
  6089. ::std::string* name) {
  6090. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6091. if (name != NULL) {
  6092. set_has_name();
  6093. } else {
  6094. clear_has_name();
  6095. }
  6096. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6097. name, GetArenaNoVirtual());
  6098. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.DescriptorProto.name)
  6099. }
  6100. // repeated .google.protobuf.FieldDescriptorProto field = 2;
  6101. inline int DescriptorProto::field_size() const {
  6102. return field_.size();
  6103. }
  6104. inline void DescriptorProto::clear_field() {
  6105. field_.Clear();
  6106. }
  6107. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_field(int index) {
  6108. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.field)
  6109. return field_.Mutable(index);
  6110. }
  6111. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  6112. DescriptorProto::mutable_field() {
  6113. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.field)
  6114. return &field_;
  6115. }
  6116. inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::field(int index) const {
  6117. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.field)
  6118. return field_.Get(index);
  6119. }
  6120. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_field() {
  6121. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.field)
  6122. return field_.Add();
  6123. }
  6124. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  6125. DescriptorProto::field() const {
  6126. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.field)
  6127. return field_;
  6128. }
  6129. // repeated .google.protobuf.FieldDescriptorProto extension = 6;
  6130. inline int DescriptorProto::extension_size() const {
  6131. return extension_.size();
  6132. }
  6133. inline void DescriptorProto::clear_extension() {
  6134. extension_.Clear();
  6135. }
  6136. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::mutable_extension(int index) {
  6137. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension)
  6138. return extension_.Mutable(index);
  6139. }
  6140. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >*
  6141. DescriptorProto::mutable_extension() {
  6142. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension)
  6143. return &extension_;
  6144. }
  6145. inline const ::google::protobuf::FieldDescriptorProto& DescriptorProto::extension(int index) const {
  6146. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension)
  6147. return extension_.Get(index);
  6148. }
  6149. inline ::google::protobuf::FieldDescriptorProto* DescriptorProto::add_extension() {
  6150. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension)
  6151. return extension_.Add();
  6152. }
  6153. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::FieldDescriptorProto >&
  6154. DescriptorProto::extension() const {
  6155. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension)
  6156. return extension_;
  6157. }
  6158. // repeated .google.protobuf.DescriptorProto nested_type = 3;
  6159. inline int DescriptorProto::nested_type_size() const {
  6160. return nested_type_.size();
  6161. }
  6162. inline void DescriptorProto::clear_nested_type() {
  6163. nested_type_.Clear();
  6164. }
  6165. inline ::google::protobuf::DescriptorProto* DescriptorProto::mutable_nested_type(int index) {
  6166. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.nested_type)
  6167. return nested_type_.Mutable(index);
  6168. }
  6169. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >*
  6170. DescriptorProto::mutable_nested_type() {
  6171. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.nested_type)
  6172. return &nested_type_;
  6173. }
  6174. inline const ::google::protobuf::DescriptorProto& DescriptorProto::nested_type(int index) const {
  6175. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.nested_type)
  6176. return nested_type_.Get(index);
  6177. }
  6178. inline ::google::protobuf::DescriptorProto* DescriptorProto::add_nested_type() {
  6179. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.nested_type)
  6180. return nested_type_.Add();
  6181. }
  6182. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto >&
  6183. DescriptorProto::nested_type() const {
  6184. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.nested_type)
  6185. return nested_type_;
  6186. }
  6187. // repeated .google.protobuf.EnumDescriptorProto enum_type = 4;
  6188. inline int DescriptorProto::enum_type_size() const {
  6189. return enum_type_.size();
  6190. }
  6191. inline void DescriptorProto::clear_enum_type() {
  6192. enum_type_.Clear();
  6193. }
  6194. inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::mutable_enum_type(int index) {
  6195. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.enum_type)
  6196. return enum_type_.Mutable(index);
  6197. }
  6198. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >*
  6199. DescriptorProto::mutable_enum_type() {
  6200. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.enum_type)
  6201. return &enum_type_;
  6202. }
  6203. inline const ::google::protobuf::EnumDescriptorProto& DescriptorProto::enum_type(int index) const {
  6204. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.enum_type)
  6205. return enum_type_.Get(index);
  6206. }
  6207. inline ::google::protobuf::EnumDescriptorProto* DescriptorProto::add_enum_type() {
  6208. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.enum_type)
  6209. return enum_type_.Add();
  6210. }
  6211. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto >&
  6212. DescriptorProto::enum_type() const {
  6213. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.enum_type)
  6214. return enum_type_;
  6215. }
  6216. // repeated .google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
  6217. inline int DescriptorProto::extension_range_size() const {
  6218. return extension_range_.size();
  6219. }
  6220. inline void DescriptorProto::clear_extension_range() {
  6221. extension_range_.Clear();
  6222. }
  6223. inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::mutable_extension_range(int index) {
  6224. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.extension_range)
  6225. return extension_range_.Mutable(index);
  6226. }
  6227. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >*
  6228. DescriptorProto::mutable_extension_range() {
  6229. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.extension_range)
  6230. return &extension_range_;
  6231. }
  6232. inline const ::google::protobuf::DescriptorProto_ExtensionRange& DescriptorProto::extension_range(int index) const {
  6233. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.extension_range)
  6234. return extension_range_.Get(index);
  6235. }
  6236. inline ::google::protobuf::DescriptorProto_ExtensionRange* DescriptorProto::add_extension_range() {
  6237. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.extension_range)
  6238. return extension_range_.Add();
  6239. }
  6240. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ExtensionRange >&
  6241. DescriptorProto::extension_range() const {
  6242. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.extension_range)
  6243. return extension_range_;
  6244. }
  6245. // repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;
  6246. inline int DescriptorProto::oneof_decl_size() const {
  6247. return oneof_decl_.size();
  6248. }
  6249. inline void DescriptorProto::clear_oneof_decl() {
  6250. oneof_decl_.Clear();
  6251. }
  6252. inline ::google::protobuf::OneofDescriptorProto* DescriptorProto::mutable_oneof_decl(int index) {
  6253. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.oneof_decl)
  6254. return oneof_decl_.Mutable(index);
  6255. }
  6256. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >*
  6257. DescriptorProto::mutable_oneof_decl() {
  6258. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.oneof_decl)
  6259. return &oneof_decl_;
  6260. }
  6261. inline const ::google::protobuf::OneofDescriptorProto& DescriptorProto::oneof_decl(int index) const {
  6262. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.oneof_decl)
  6263. return oneof_decl_.Get(index);
  6264. }
  6265. inline ::google::protobuf::OneofDescriptorProto* DescriptorProto::add_oneof_decl() {
  6266. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.oneof_decl)
  6267. return oneof_decl_.Add();
  6268. }
  6269. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::OneofDescriptorProto >&
  6270. DescriptorProto::oneof_decl() const {
  6271. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.oneof_decl)
  6272. return oneof_decl_;
  6273. }
  6274. // optional .google.protobuf.MessageOptions options = 7;
  6275. inline bool DescriptorProto::has_options() const {
  6276. return (_has_bits_[0] & 0x00000002u) != 0;
  6277. }
  6278. inline void DescriptorProto::set_has_options() {
  6279. _has_bits_[0] |= 0x00000002u;
  6280. }
  6281. inline void DescriptorProto::clear_has_options() {
  6282. _has_bits_[0] &= ~0x00000002u;
  6283. }
  6284. inline void DescriptorProto::clear_options() {
  6285. if (options_ != NULL) options_->Clear();
  6286. clear_has_options();
  6287. }
  6288. inline const ::google::protobuf::MessageOptions& DescriptorProto::_internal_options() const {
  6289. return *options_;
  6290. }
  6291. inline const ::google::protobuf::MessageOptions& DescriptorProto::options() const {
  6292. const ::google::protobuf::MessageOptions* p = options_;
  6293. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.options)
  6294. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::MessageOptions*>(
  6295. &::google::protobuf::_MessageOptions_default_instance_);
  6296. }
  6297. inline ::google::protobuf::MessageOptions* DescriptorProto::release_options() {
  6298. // @@protoc_insertion_point(field_release:google.protobuf.DescriptorProto.options)
  6299. clear_has_options();
  6300. ::google::protobuf::MessageOptions* temp = options_;
  6301. if (GetArenaNoVirtual() != NULL) {
  6302. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  6303. }
  6304. options_ = NULL;
  6305. return temp;
  6306. }
  6307. inline ::google::protobuf::MessageOptions* DescriptorProto::unsafe_arena_release_options() {
  6308. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.DescriptorProto.options)
  6309. clear_has_options();
  6310. ::google::protobuf::MessageOptions* temp = options_;
  6311. options_ = NULL;
  6312. return temp;
  6313. }
  6314. inline ::google::protobuf::MessageOptions* DescriptorProto::mutable_options() {
  6315. set_has_options();
  6316. if (options_ == NULL) {
  6317. auto* p = CreateMaybeMessage<::google::protobuf::MessageOptions>(GetArenaNoVirtual());
  6318. options_ = p;
  6319. }
  6320. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.options)
  6321. return options_;
  6322. }
  6323. inline void DescriptorProto::set_allocated_options(::google::protobuf::MessageOptions* options) {
  6324. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  6325. if (message_arena == NULL) {
  6326. delete options_;
  6327. }
  6328. if (options) {
  6329. ::google::protobuf::Arena* submessage_arena =
  6330. ::google::protobuf::Arena::GetArena(options);
  6331. if (message_arena != submessage_arena) {
  6332. options = ::google::protobuf::internal::GetOwnedMessage(
  6333. message_arena, options, submessage_arena);
  6334. }
  6335. set_has_options();
  6336. } else {
  6337. clear_has_options();
  6338. }
  6339. options_ = options;
  6340. // @@protoc_insertion_point(field_set_allocated:google.protobuf.DescriptorProto.options)
  6341. }
  6342. // repeated .google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
  6343. inline int DescriptorProto::reserved_range_size() const {
  6344. return reserved_range_.size();
  6345. }
  6346. inline void DescriptorProto::clear_reserved_range() {
  6347. reserved_range_.Clear();
  6348. }
  6349. inline ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::mutable_reserved_range(int index) {
  6350. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_range)
  6351. return reserved_range_.Mutable(index);
  6352. }
  6353. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >*
  6354. DescriptorProto::mutable_reserved_range() {
  6355. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_range)
  6356. return &reserved_range_;
  6357. }
  6358. inline const ::google::protobuf::DescriptorProto_ReservedRange& DescriptorProto::reserved_range(int index) const {
  6359. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_range)
  6360. return reserved_range_.Get(index);
  6361. }
  6362. inline ::google::protobuf::DescriptorProto_ReservedRange* DescriptorProto::add_reserved_range() {
  6363. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_range)
  6364. return reserved_range_.Add();
  6365. }
  6366. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::DescriptorProto_ReservedRange >&
  6367. DescriptorProto::reserved_range() const {
  6368. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_range)
  6369. return reserved_range_;
  6370. }
  6371. // repeated string reserved_name = 10;
  6372. inline int DescriptorProto::reserved_name_size() const {
  6373. return reserved_name_.size();
  6374. }
  6375. inline void DescriptorProto::clear_reserved_name() {
  6376. reserved_name_.Clear();
  6377. }
  6378. inline const ::std::string& DescriptorProto::reserved_name(int index) const {
  6379. // @@protoc_insertion_point(field_get:google.protobuf.DescriptorProto.reserved_name)
  6380. return reserved_name_.Get(index);
  6381. }
  6382. inline ::std::string* DescriptorProto::mutable_reserved_name(int index) {
  6383. // @@protoc_insertion_point(field_mutable:google.protobuf.DescriptorProto.reserved_name)
  6384. return reserved_name_.Mutable(index);
  6385. }
  6386. inline void DescriptorProto::set_reserved_name(int index, const ::std::string& value) {
  6387. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  6388. reserved_name_.Mutable(index)->assign(value);
  6389. }
  6390. #if LANG_CXX11
  6391. inline void DescriptorProto::set_reserved_name(int index, ::std::string&& value) {
  6392. // @@protoc_insertion_point(field_set:google.protobuf.DescriptorProto.reserved_name)
  6393. reserved_name_.Mutable(index)->assign(std::move(value));
  6394. }
  6395. #endif
  6396. inline void DescriptorProto::set_reserved_name(int index, const char* value) {
  6397. GOOGLE_DCHECK(value != NULL);
  6398. reserved_name_.Mutable(index)->assign(value);
  6399. // @@protoc_insertion_point(field_set_char:google.protobuf.DescriptorProto.reserved_name)
  6400. }
  6401. inline void DescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  6402. reserved_name_.Mutable(index)->assign(
  6403. reinterpret_cast<const char*>(value), size);
  6404. // @@protoc_insertion_point(field_set_pointer:google.protobuf.DescriptorProto.reserved_name)
  6405. }
  6406. inline ::std::string* DescriptorProto::add_reserved_name() {
  6407. // @@protoc_insertion_point(field_add_mutable:google.protobuf.DescriptorProto.reserved_name)
  6408. return reserved_name_.Add();
  6409. }
  6410. inline void DescriptorProto::add_reserved_name(const ::std::string& value) {
  6411. reserved_name_.Add()->assign(value);
  6412. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  6413. }
  6414. #if LANG_CXX11
  6415. inline void DescriptorProto::add_reserved_name(::std::string&& value) {
  6416. reserved_name_.Add(std::move(value));
  6417. // @@protoc_insertion_point(field_add:google.protobuf.DescriptorProto.reserved_name)
  6418. }
  6419. #endif
  6420. inline void DescriptorProto::add_reserved_name(const char* value) {
  6421. GOOGLE_DCHECK(value != NULL);
  6422. reserved_name_.Add()->assign(value);
  6423. // @@protoc_insertion_point(field_add_char:google.protobuf.DescriptorProto.reserved_name)
  6424. }
  6425. inline void DescriptorProto::add_reserved_name(const char* value, size_t size) {
  6426. reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  6427. // @@protoc_insertion_point(field_add_pointer:google.protobuf.DescriptorProto.reserved_name)
  6428. }
  6429. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  6430. DescriptorProto::reserved_name() const {
  6431. // @@protoc_insertion_point(field_list:google.protobuf.DescriptorProto.reserved_name)
  6432. return reserved_name_;
  6433. }
  6434. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  6435. DescriptorProto::mutable_reserved_name() {
  6436. // @@protoc_insertion_point(field_mutable_list:google.protobuf.DescriptorProto.reserved_name)
  6437. return &reserved_name_;
  6438. }
  6439. // -------------------------------------------------------------------
  6440. // ExtensionRangeOptions
  6441. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  6442. inline int ExtensionRangeOptions::uninterpreted_option_size() const {
  6443. return uninterpreted_option_.size();
  6444. }
  6445. inline void ExtensionRangeOptions::clear_uninterpreted_option() {
  6446. uninterpreted_option_.Clear();
  6447. }
  6448. inline ::google::protobuf::UninterpretedOption* ExtensionRangeOptions::mutable_uninterpreted_option(int index) {
  6449. // @@protoc_insertion_point(field_mutable:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  6450. return uninterpreted_option_.Mutable(index);
  6451. }
  6452. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  6453. ExtensionRangeOptions::mutable_uninterpreted_option() {
  6454. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  6455. return &uninterpreted_option_;
  6456. }
  6457. inline const ::google::protobuf::UninterpretedOption& ExtensionRangeOptions::uninterpreted_option(int index) const {
  6458. // @@protoc_insertion_point(field_get:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  6459. return uninterpreted_option_.Get(index);
  6460. }
  6461. inline ::google::protobuf::UninterpretedOption* ExtensionRangeOptions::add_uninterpreted_option() {
  6462. // @@protoc_insertion_point(field_add:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  6463. return uninterpreted_option_.Add();
  6464. }
  6465. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  6466. ExtensionRangeOptions::uninterpreted_option() const {
  6467. // @@protoc_insertion_point(field_list:google.protobuf.ExtensionRangeOptions.uninterpreted_option)
  6468. return uninterpreted_option_;
  6469. }
  6470. // -------------------------------------------------------------------
  6471. // FieldDescriptorProto
  6472. // optional string name = 1;
  6473. inline bool FieldDescriptorProto::has_name() const {
  6474. return (_has_bits_[0] & 0x00000001u) != 0;
  6475. }
  6476. inline void FieldDescriptorProto::set_has_name() {
  6477. _has_bits_[0] |= 0x00000001u;
  6478. }
  6479. inline void FieldDescriptorProto::clear_has_name() {
  6480. _has_bits_[0] &= ~0x00000001u;
  6481. }
  6482. inline void FieldDescriptorProto::clear_name() {
  6483. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6484. clear_has_name();
  6485. }
  6486. inline const ::std::string& FieldDescriptorProto::name() const {
  6487. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.name)
  6488. return name_.Get();
  6489. }
  6490. inline void FieldDescriptorProto::set_name(const ::std::string& value) {
  6491. set_has_name();
  6492. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6493. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.name)
  6494. }
  6495. #if LANG_CXX11
  6496. inline void FieldDescriptorProto::set_name(::std::string&& value) {
  6497. set_has_name();
  6498. name_.Set(
  6499. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6500. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.name)
  6501. }
  6502. #endif
  6503. inline void FieldDescriptorProto::set_name(const char* value) {
  6504. GOOGLE_DCHECK(value != NULL);
  6505. set_has_name();
  6506. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6507. GetArenaNoVirtual());
  6508. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.name)
  6509. }
  6510. inline void FieldDescriptorProto::set_name(const char* value,
  6511. size_t size) {
  6512. set_has_name();
  6513. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6514. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6515. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.name)
  6516. }
  6517. inline ::std::string* FieldDescriptorProto::mutable_name() {
  6518. set_has_name();
  6519. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.name)
  6520. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6521. }
  6522. inline ::std::string* FieldDescriptorProto::release_name() {
  6523. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.name)
  6524. if (!has_name()) {
  6525. return NULL;
  6526. }
  6527. clear_has_name();
  6528. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6529. }
  6530. inline void FieldDescriptorProto::set_allocated_name(::std::string* name) {
  6531. if (name != NULL) {
  6532. set_has_name();
  6533. } else {
  6534. clear_has_name();
  6535. }
  6536. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  6537. GetArenaNoVirtual());
  6538. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.name)
  6539. }
  6540. inline ::std::string* FieldDescriptorProto::unsafe_arena_release_name() {
  6541. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.name)
  6542. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6543. clear_has_name();
  6544. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6545. GetArenaNoVirtual());
  6546. }
  6547. inline void FieldDescriptorProto::unsafe_arena_set_allocated_name(
  6548. ::std::string* name) {
  6549. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6550. if (name != NULL) {
  6551. set_has_name();
  6552. } else {
  6553. clear_has_name();
  6554. }
  6555. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6556. name, GetArenaNoVirtual());
  6557. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.name)
  6558. }
  6559. // optional int32 number = 3;
  6560. inline bool FieldDescriptorProto::has_number() const {
  6561. return (_has_bits_[0] & 0x00000040u) != 0;
  6562. }
  6563. inline void FieldDescriptorProto::set_has_number() {
  6564. _has_bits_[0] |= 0x00000040u;
  6565. }
  6566. inline void FieldDescriptorProto::clear_has_number() {
  6567. _has_bits_[0] &= ~0x00000040u;
  6568. }
  6569. inline void FieldDescriptorProto::clear_number() {
  6570. number_ = 0;
  6571. clear_has_number();
  6572. }
  6573. inline ::google::protobuf::int32 FieldDescriptorProto::number() const {
  6574. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.number)
  6575. return number_;
  6576. }
  6577. inline void FieldDescriptorProto::set_number(::google::protobuf::int32 value) {
  6578. set_has_number();
  6579. number_ = value;
  6580. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.number)
  6581. }
  6582. // optional .google.protobuf.FieldDescriptorProto.Label label = 4;
  6583. inline bool FieldDescriptorProto::has_label() const {
  6584. return (_has_bits_[0] & 0x00000100u) != 0;
  6585. }
  6586. inline void FieldDescriptorProto::set_has_label() {
  6587. _has_bits_[0] |= 0x00000100u;
  6588. }
  6589. inline void FieldDescriptorProto::clear_has_label() {
  6590. _has_bits_[0] &= ~0x00000100u;
  6591. }
  6592. inline void FieldDescriptorProto::clear_label() {
  6593. label_ = 1;
  6594. clear_has_label();
  6595. }
  6596. inline ::google::protobuf::FieldDescriptorProto_Label FieldDescriptorProto::label() const {
  6597. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.label)
  6598. return static_cast< ::google::protobuf::FieldDescriptorProto_Label >(label_);
  6599. }
  6600. inline void FieldDescriptorProto::set_label(::google::protobuf::FieldDescriptorProto_Label value) {
  6601. assert(::google::protobuf::FieldDescriptorProto_Label_IsValid(value));
  6602. set_has_label();
  6603. label_ = value;
  6604. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.label)
  6605. }
  6606. // optional .google.protobuf.FieldDescriptorProto.Type type = 5;
  6607. inline bool FieldDescriptorProto::has_type() const {
  6608. return (_has_bits_[0] & 0x00000200u) != 0;
  6609. }
  6610. inline void FieldDescriptorProto::set_has_type() {
  6611. _has_bits_[0] |= 0x00000200u;
  6612. }
  6613. inline void FieldDescriptorProto::clear_has_type() {
  6614. _has_bits_[0] &= ~0x00000200u;
  6615. }
  6616. inline void FieldDescriptorProto::clear_type() {
  6617. type_ = 1;
  6618. clear_has_type();
  6619. }
  6620. inline ::google::protobuf::FieldDescriptorProto_Type FieldDescriptorProto::type() const {
  6621. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type)
  6622. return static_cast< ::google::protobuf::FieldDescriptorProto_Type >(type_);
  6623. }
  6624. inline void FieldDescriptorProto::set_type(::google::protobuf::FieldDescriptorProto_Type value) {
  6625. assert(::google::protobuf::FieldDescriptorProto_Type_IsValid(value));
  6626. set_has_type();
  6627. type_ = value;
  6628. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type)
  6629. }
  6630. // optional string type_name = 6;
  6631. inline bool FieldDescriptorProto::has_type_name() const {
  6632. return (_has_bits_[0] & 0x00000004u) != 0;
  6633. }
  6634. inline void FieldDescriptorProto::set_has_type_name() {
  6635. _has_bits_[0] |= 0x00000004u;
  6636. }
  6637. inline void FieldDescriptorProto::clear_has_type_name() {
  6638. _has_bits_[0] &= ~0x00000004u;
  6639. }
  6640. inline void FieldDescriptorProto::clear_type_name() {
  6641. type_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6642. clear_has_type_name();
  6643. }
  6644. inline const ::std::string& FieldDescriptorProto::type_name() const {
  6645. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.type_name)
  6646. return type_name_.Get();
  6647. }
  6648. inline void FieldDescriptorProto::set_type_name(const ::std::string& value) {
  6649. set_has_type_name();
  6650. type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6651. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.type_name)
  6652. }
  6653. #if LANG_CXX11
  6654. inline void FieldDescriptorProto::set_type_name(::std::string&& value) {
  6655. set_has_type_name();
  6656. type_name_.Set(
  6657. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6658. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.type_name)
  6659. }
  6660. #endif
  6661. inline void FieldDescriptorProto::set_type_name(const char* value) {
  6662. GOOGLE_DCHECK(value != NULL);
  6663. set_has_type_name();
  6664. type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6665. GetArenaNoVirtual());
  6666. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.type_name)
  6667. }
  6668. inline void FieldDescriptorProto::set_type_name(const char* value,
  6669. size_t size) {
  6670. set_has_type_name();
  6671. type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6672. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6673. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.type_name)
  6674. }
  6675. inline ::std::string* FieldDescriptorProto::mutable_type_name() {
  6676. set_has_type_name();
  6677. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.type_name)
  6678. return type_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6679. }
  6680. inline ::std::string* FieldDescriptorProto::release_type_name() {
  6681. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.type_name)
  6682. if (!has_type_name()) {
  6683. return NULL;
  6684. }
  6685. clear_has_type_name();
  6686. return type_name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6687. }
  6688. inline void FieldDescriptorProto::set_allocated_type_name(::std::string* type_name) {
  6689. if (type_name != NULL) {
  6690. set_has_type_name();
  6691. } else {
  6692. clear_has_type_name();
  6693. }
  6694. type_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_name,
  6695. GetArenaNoVirtual());
  6696. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  6697. }
  6698. inline ::std::string* FieldDescriptorProto::unsafe_arena_release_type_name() {
  6699. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.type_name)
  6700. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6701. clear_has_type_name();
  6702. return type_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6703. GetArenaNoVirtual());
  6704. }
  6705. inline void FieldDescriptorProto::unsafe_arena_set_allocated_type_name(
  6706. ::std::string* type_name) {
  6707. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6708. if (type_name != NULL) {
  6709. set_has_type_name();
  6710. } else {
  6711. clear_has_type_name();
  6712. }
  6713. type_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6714. type_name, GetArenaNoVirtual());
  6715. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.type_name)
  6716. }
  6717. // optional string extendee = 2;
  6718. inline bool FieldDescriptorProto::has_extendee() const {
  6719. return (_has_bits_[0] & 0x00000002u) != 0;
  6720. }
  6721. inline void FieldDescriptorProto::set_has_extendee() {
  6722. _has_bits_[0] |= 0x00000002u;
  6723. }
  6724. inline void FieldDescriptorProto::clear_has_extendee() {
  6725. _has_bits_[0] &= ~0x00000002u;
  6726. }
  6727. inline void FieldDescriptorProto::clear_extendee() {
  6728. extendee_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6729. clear_has_extendee();
  6730. }
  6731. inline const ::std::string& FieldDescriptorProto::extendee() const {
  6732. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.extendee)
  6733. return extendee_.Get();
  6734. }
  6735. inline void FieldDescriptorProto::set_extendee(const ::std::string& value) {
  6736. set_has_extendee();
  6737. extendee_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6738. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.extendee)
  6739. }
  6740. #if LANG_CXX11
  6741. inline void FieldDescriptorProto::set_extendee(::std::string&& value) {
  6742. set_has_extendee();
  6743. extendee_.Set(
  6744. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6745. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.extendee)
  6746. }
  6747. #endif
  6748. inline void FieldDescriptorProto::set_extendee(const char* value) {
  6749. GOOGLE_DCHECK(value != NULL);
  6750. set_has_extendee();
  6751. extendee_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6752. GetArenaNoVirtual());
  6753. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.extendee)
  6754. }
  6755. inline void FieldDescriptorProto::set_extendee(const char* value,
  6756. size_t size) {
  6757. set_has_extendee();
  6758. extendee_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6759. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6760. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.extendee)
  6761. }
  6762. inline ::std::string* FieldDescriptorProto::mutable_extendee() {
  6763. set_has_extendee();
  6764. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.extendee)
  6765. return extendee_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6766. }
  6767. inline ::std::string* FieldDescriptorProto::release_extendee() {
  6768. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.extendee)
  6769. if (!has_extendee()) {
  6770. return NULL;
  6771. }
  6772. clear_has_extendee();
  6773. return extendee_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6774. }
  6775. inline void FieldDescriptorProto::set_allocated_extendee(::std::string* extendee) {
  6776. if (extendee != NULL) {
  6777. set_has_extendee();
  6778. } else {
  6779. clear_has_extendee();
  6780. }
  6781. extendee_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), extendee,
  6782. GetArenaNoVirtual());
  6783. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  6784. }
  6785. inline ::std::string* FieldDescriptorProto::unsafe_arena_release_extendee() {
  6786. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.extendee)
  6787. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6788. clear_has_extendee();
  6789. return extendee_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6790. GetArenaNoVirtual());
  6791. }
  6792. inline void FieldDescriptorProto::unsafe_arena_set_allocated_extendee(
  6793. ::std::string* extendee) {
  6794. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6795. if (extendee != NULL) {
  6796. set_has_extendee();
  6797. } else {
  6798. clear_has_extendee();
  6799. }
  6800. extendee_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6801. extendee, GetArenaNoVirtual());
  6802. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.extendee)
  6803. }
  6804. // optional string default_value = 7;
  6805. inline bool FieldDescriptorProto::has_default_value() const {
  6806. return (_has_bits_[0] & 0x00000008u) != 0;
  6807. }
  6808. inline void FieldDescriptorProto::set_has_default_value() {
  6809. _has_bits_[0] |= 0x00000008u;
  6810. }
  6811. inline void FieldDescriptorProto::clear_has_default_value() {
  6812. _has_bits_[0] &= ~0x00000008u;
  6813. }
  6814. inline void FieldDescriptorProto::clear_default_value() {
  6815. default_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6816. clear_has_default_value();
  6817. }
  6818. inline const ::std::string& FieldDescriptorProto::default_value() const {
  6819. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.default_value)
  6820. return default_value_.Get();
  6821. }
  6822. inline void FieldDescriptorProto::set_default_value(const ::std::string& value) {
  6823. set_has_default_value();
  6824. default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6825. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.default_value)
  6826. }
  6827. #if LANG_CXX11
  6828. inline void FieldDescriptorProto::set_default_value(::std::string&& value) {
  6829. set_has_default_value();
  6830. default_value_.Set(
  6831. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6832. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.default_value)
  6833. }
  6834. #endif
  6835. inline void FieldDescriptorProto::set_default_value(const char* value) {
  6836. GOOGLE_DCHECK(value != NULL);
  6837. set_has_default_value();
  6838. default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6839. GetArenaNoVirtual());
  6840. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.default_value)
  6841. }
  6842. inline void FieldDescriptorProto::set_default_value(const char* value,
  6843. size_t size) {
  6844. set_has_default_value();
  6845. default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6846. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6847. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.default_value)
  6848. }
  6849. inline ::std::string* FieldDescriptorProto::mutable_default_value() {
  6850. set_has_default_value();
  6851. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.default_value)
  6852. return default_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6853. }
  6854. inline ::std::string* FieldDescriptorProto::release_default_value() {
  6855. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.default_value)
  6856. if (!has_default_value()) {
  6857. return NULL;
  6858. }
  6859. clear_has_default_value();
  6860. return default_value_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6861. }
  6862. inline void FieldDescriptorProto::set_allocated_default_value(::std::string* default_value) {
  6863. if (default_value != NULL) {
  6864. set_has_default_value();
  6865. } else {
  6866. clear_has_default_value();
  6867. }
  6868. default_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value,
  6869. GetArenaNoVirtual());
  6870. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  6871. }
  6872. inline ::std::string* FieldDescriptorProto::unsafe_arena_release_default_value() {
  6873. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.default_value)
  6874. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6875. clear_has_default_value();
  6876. return default_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6877. GetArenaNoVirtual());
  6878. }
  6879. inline void FieldDescriptorProto::unsafe_arena_set_allocated_default_value(
  6880. ::std::string* default_value) {
  6881. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6882. if (default_value != NULL) {
  6883. set_has_default_value();
  6884. } else {
  6885. clear_has_default_value();
  6886. }
  6887. default_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6888. default_value, GetArenaNoVirtual());
  6889. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.default_value)
  6890. }
  6891. // optional int32 oneof_index = 9;
  6892. inline bool FieldDescriptorProto::has_oneof_index() const {
  6893. return (_has_bits_[0] & 0x00000080u) != 0;
  6894. }
  6895. inline void FieldDescriptorProto::set_has_oneof_index() {
  6896. _has_bits_[0] |= 0x00000080u;
  6897. }
  6898. inline void FieldDescriptorProto::clear_has_oneof_index() {
  6899. _has_bits_[0] &= ~0x00000080u;
  6900. }
  6901. inline void FieldDescriptorProto::clear_oneof_index() {
  6902. oneof_index_ = 0;
  6903. clear_has_oneof_index();
  6904. }
  6905. inline ::google::protobuf::int32 FieldDescriptorProto::oneof_index() const {
  6906. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.oneof_index)
  6907. return oneof_index_;
  6908. }
  6909. inline void FieldDescriptorProto::set_oneof_index(::google::protobuf::int32 value) {
  6910. set_has_oneof_index();
  6911. oneof_index_ = value;
  6912. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.oneof_index)
  6913. }
  6914. // optional string json_name = 10;
  6915. inline bool FieldDescriptorProto::has_json_name() const {
  6916. return (_has_bits_[0] & 0x00000010u) != 0;
  6917. }
  6918. inline void FieldDescriptorProto::set_has_json_name() {
  6919. _has_bits_[0] |= 0x00000010u;
  6920. }
  6921. inline void FieldDescriptorProto::clear_has_json_name() {
  6922. _has_bits_[0] &= ~0x00000010u;
  6923. }
  6924. inline void FieldDescriptorProto::clear_json_name() {
  6925. json_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6926. clear_has_json_name();
  6927. }
  6928. inline const ::std::string& FieldDescriptorProto::json_name() const {
  6929. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.json_name)
  6930. return json_name_.Get();
  6931. }
  6932. inline void FieldDescriptorProto::set_json_name(const ::std::string& value) {
  6933. set_has_json_name();
  6934. json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  6935. // @@protoc_insertion_point(field_set:google.protobuf.FieldDescriptorProto.json_name)
  6936. }
  6937. #if LANG_CXX11
  6938. inline void FieldDescriptorProto::set_json_name(::std::string&& value) {
  6939. set_has_json_name();
  6940. json_name_.Set(
  6941. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  6942. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FieldDescriptorProto.json_name)
  6943. }
  6944. #endif
  6945. inline void FieldDescriptorProto::set_json_name(const char* value) {
  6946. GOOGLE_DCHECK(value != NULL);
  6947. set_has_json_name();
  6948. json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  6949. GetArenaNoVirtual());
  6950. // @@protoc_insertion_point(field_set_char:google.protobuf.FieldDescriptorProto.json_name)
  6951. }
  6952. inline void FieldDescriptorProto::set_json_name(const char* value,
  6953. size_t size) {
  6954. set_has_json_name();
  6955. json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  6956. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  6957. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FieldDescriptorProto.json_name)
  6958. }
  6959. inline ::std::string* FieldDescriptorProto::mutable_json_name() {
  6960. set_has_json_name();
  6961. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.json_name)
  6962. return json_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6963. }
  6964. inline ::std::string* FieldDescriptorProto::release_json_name() {
  6965. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.json_name)
  6966. if (!has_json_name()) {
  6967. return NULL;
  6968. }
  6969. clear_has_json_name();
  6970. return json_name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  6971. }
  6972. inline void FieldDescriptorProto::set_allocated_json_name(::std::string* json_name) {
  6973. if (json_name != NULL) {
  6974. set_has_json_name();
  6975. } else {
  6976. clear_has_json_name();
  6977. }
  6978. json_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name,
  6979. GetArenaNoVirtual());
  6980. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
  6981. }
  6982. inline ::std::string* FieldDescriptorProto::unsafe_arena_release_json_name() {
  6983. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.json_name)
  6984. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6985. clear_has_json_name();
  6986. return json_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6987. GetArenaNoVirtual());
  6988. }
  6989. inline void FieldDescriptorProto::unsafe_arena_set_allocated_json_name(
  6990. ::std::string* json_name) {
  6991. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  6992. if (json_name != NULL) {
  6993. set_has_json_name();
  6994. } else {
  6995. clear_has_json_name();
  6996. }
  6997. json_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  6998. json_name, GetArenaNoVirtual());
  6999. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FieldDescriptorProto.json_name)
  7000. }
  7001. // optional .google.protobuf.FieldOptions options = 8;
  7002. inline bool FieldDescriptorProto::has_options() const {
  7003. return (_has_bits_[0] & 0x00000020u) != 0;
  7004. }
  7005. inline void FieldDescriptorProto::set_has_options() {
  7006. _has_bits_[0] |= 0x00000020u;
  7007. }
  7008. inline void FieldDescriptorProto::clear_has_options() {
  7009. _has_bits_[0] &= ~0x00000020u;
  7010. }
  7011. inline void FieldDescriptorProto::clear_options() {
  7012. if (options_ != NULL) options_->Clear();
  7013. clear_has_options();
  7014. }
  7015. inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::_internal_options() const {
  7016. return *options_;
  7017. }
  7018. inline const ::google::protobuf::FieldOptions& FieldDescriptorProto::options() const {
  7019. const ::google::protobuf::FieldOptions* p = options_;
  7020. // @@protoc_insertion_point(field_get:google.protobuf.FieldDescriptorProto.options)
  7021. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::FieldOptions*>(
  7022. &::google::protobuf::_FieldOptions_default_instance_);
  7023. }
  7024. inline ::google::protobuf::FieldOptions* FieldDescriptorProto::release_options() {
  7025. // @@protoc_insertion_point(field_release:google.protobuf.FieldDescriptorProto.options)
  7026. clear_has_options();
  7027. ::google::protobuf::FieldOptions* temp = options_;
  7028. if (GetArenaNoVirtual() != NULL) {
  7029. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  7030. }
  7031. options_ = NULL;
  7032. return temp;
  7033. }
  7034. inline ::google::protobuf::FieldOptions* FieldDescriptorProto::unsafe_arena_release_options() {
  7035. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FieldDescriptorProto.options)
  7036. clear_has_options();
  7037. ::google::protobuf::FieldOptions* temp = options_;
  7038. options_ = NULL;
  7039. return temp;
  7040. }
  7041. inline ::google::protobuf::FieldOptions* FieldDescriptorProto::mutable_options() {
  7042. set_has_options();
  7043. if (options_ == NULL) {
  7044. auto* p = CreateMaybeMessage<::google::protobuf::FieldOptions>(GetArenaNoVirtual());
  7045. options_ = p;
  7046. }
  7047. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldDescriptorProto.options)
  7048. return options_;
  7049. }
  7050. inline void FieldDescriptorProto::set_allocated_options(::google::protobuf::FieldOptions* options) {
  7051. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  7052. if (message_arena == NULL) {
  7053. delete options_;
  7054. }
  7055. if (options) {
  7056. ::google::protobuf::Arena* submessage_arena =
  7057. ::google::protobuf::Arena::GetArena(options);
  7058. if (message_arena != submessage_arena) {
  7059. options = ::google::protobuf::internal::GetOwnedMessage(
  7060. message_arena, options, submessage_arena);
  7061. }
  7062. set_has_options();
  7063. } else {
  7064. clear_has_options();
  7065. }
  7066. options_ = options;
  7067. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FieldDescriptorProto.options)
  7068. }
  7069. // -------------------------------------------------------------------
  7070. // OneofDescriptorProto
  7071. // optional string name = 1;
  7072. inline bool OneofDescriptorProto::has_name() const {
  7073. return (_has_bits_[0] & 0x00000001u) != 0;
  7074. }
  7075. inline void OneofDescriptorProto::set_has_name() {
  7076. _has_bits_[0] |= 0x00000001u;
  7077. }
  7078. inline void OneofDescriptorProto::clear_has_name() {
  7079. _has_bits_[0] &= ~0x00000001u;
  7080. }
  7081. inline void OneofDescriptorProto::clear_name() {
  7082. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7083. clear_has_name();
  7084. }
  7085. inline const ::std::string& OneofDescriptorProto::name() const {
  7086. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.name)
  7087. return name_.Get();
  7088. }
  7089. inline void OneofDescriptorProto::set_name(const ::std::string& value) {
  7090. set_has_name();
  7091. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7092. // @@protoc_insertion_point(field_set:google.protobuf.OneofDescriptorProto.name)
  7093. }
  7094. #if LANG_CXX11
  7095. inline void OneofDescriptorProto::set_name(::std::string&& value) {
  7096. set_has_name();
  7097. name_.Set(
  7098. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7099. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.OneofDescriptorProto.name)
  7100. }
  7101. #endif
  7102. inline void OneofDescriptorProto::set_name(const char* value) {
  7103. GOOGLE_DCHECK(value != NULL);
  7104. set_has_name();
  7105. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7106. GetArenaNoVirtual());
  7107. // @@protoc_insertion_point(field_set_char:google.protobuf.OneofDescriptorProto.name)
  7108. }
  7109. inline void OneofDescriptorProto::set_name(const char* value,
  7110. size_t size) {
  7111. set_has_name();
  7112. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7113. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7114. // @@protoc_insertion_point(field_set_pointer:google.protobuf.OneofDescriptorProto.name)
  7115. }
  7116. inline ::std::string* OneofDescriptorProto::mutable_name() {
  7117. set_has_name();
  7118. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.name)
  7119. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7120. }
  7121. inline ::std::string* OneofDescriptorProto::release_name() {
  7122. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.name)
  7123. if (!has_name()) {
  7124. return NULL;
  7125. }
  7126. clear_has_name();
  7127. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7128. }
  7129. inline void OneofDescriptorProto::set_allocated_name(::std::string* name) {
  7130. if (name != NULL) {
  7131. set_has_name();
  7132. } else {
  7133. clear_has_name();
  7134. }
  7135. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  7136. GetArenaNoVirtual());
  7137. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.name)
  7138. }
  7139. inline ::std::string* OneofDescriptorProto::unsafe_arena_release_name() {
  7140. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.OneofDescriptorProto.name)
  7141. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7142. clear_has_name();
  7143. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7144. GetArenaNoVirtual());
  7145. }
  7146. inline void OneofDescriptorProto::unsafe_arena_set_allocated_name(
  7147. ::std::string* name) {
  7148. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7149. if (name != NULL) {
  7150. set_has_name();
  7151. } else {
  7152. clear_has_name();
  7153. }
  7154. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7155. name, GetArenaNoVirtual());
  7156. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.OneofDescriptorProto.name)
  7157. }
  7158. // optional .google.protobuf.OneofOptions options = 2;
  7159. inline bool OneofDescriptorProto::has_options() const {
  7160. return (_has_bits_[0] & 0x00000002u) != 0;
  7161. }
  7162. inline void OneofDescriptorProto::set_has_options() {
  7163. _has_bits_[0] |= 0x00000002u;
  7164. }
  7165. inline void OneofDescriptorProto::clear_has_options() {
  7166. _has_bits_[0] &= ~0x00000002u;
  7167. }
  7168. inline void OneofDescriptorProto::clear_options() {
  7169. if (options_ != NULL) options_->Clear();
  7170. clear_has_options();
  7171. }
  7172. inline const ::google::protobuf::OneofOptions& OneofDescriptorProto::_internal_options() const {
  7173. return *options_;
  7174. }
  7175. inline const ::google::protobuf::OneofOptions& OneofDescriptorProto::options() const {
  7176. const ::google::protobuf::OneofOptions* p = options_;
  7177. // @@protoc_insertion_point(field_get:google.protobuf.OneofDescriptorProto.options)
  7178. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::OneofOptions*>(
  7179. &::google::protobuf::_OneofOptions_default_instance_);
  7180. }
  7181. inline ::google::protobuf::OneofOptions* OneofDescriptorProto::release_options() {
  7182. // @@protoc_insertion_point(field_release:google.protobuf.OneofDescriptorProto.options)
  7183. clear_has_options();
  7184. ::google::protobuf::OneofOptions* temp = options_;
  7185. if (GetArenaNoVirtual() != NULL) {
  7186. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  7187. }
  7188. options_ = NULL;
  7189. return temp;
  7190. }
  7191. inline ::google::protobuf::OneofOptions* OneofDescriptorProto::unsafe_arena_release_options() {
  7192. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.OneofDescriptorProto.options)
  7193. clear_has_options();
  7194. ::google::protobuf::OneofOptions* temp = options_;
  7195. options_ = NULL;
  7196. return temp;
  7197. }
  7198. inline ::google::protobuf::OneofOptions* OneofDescriptorProto::mutable_options() {
  7199. set_has_options();
  7200. if (options_ == NULL) {
  7201. auto* p = CreateMaybeMessage<::google::protobuf::OneofOptions>(GetArenaNoVirtual());
  7202. options_ = p;
  7203. }
  7204. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofDescriptorProto.options)
  7205. return options_;
  7206. }
  7207. inline void OneofDescriptorProto::set_allocated_options(::google::protobuf::OneofOptions* options) {
  7208. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  7209. if (message_arena == NULL) {
  7210. delete options_;
  7211. }
  7212. if (options) {
  7213. ::google::protobuf::Arena* submessage_arena =
  7214. ::google::protobuf::Arena::GetArena(options);
  7215. if (message_arena != submessage_arena) {
  7216. options = ::google::protobuf::internal::GetOwnedMessage(
  7217. message_arena, options, submessage_arena);
  7218. }
  7219. set_has_options();
  7220. } else {
  7221. clear_has_options();
  7222. }
  7223. options_ = options;
  7224. // @@protoc_insertion_point(field_set_allocated:google.protobuf.OneofDescriptorProto.options)
  7225. }
  7226. // -------------------------------------------------------------------
  7227. // EnumDescriptorProto_EnumReservedRange
  7228. // optional int32 start = 1;
  7229. inline bool EnumDescriptorProto_EnumReservedRange::has_start() const {
  7230. return (_has_bits_[0] & 0x00000001u) != 0;
  7231. }
  7232. inline void EnumDescriptorProto_EnumReservedRange::set_has_start() {
  7233. _has_bits_[0] |= 0x00000001u;
  7234. }
  7235. inline void EnumDescriptorProto_EnumReservedRange::clear_has_start() {
  7236. _has_bits_[0] &= ~0x00000001u;
  7237. }
  7238. inline void EnumDescriptorProto_EnumReservedRange::clear_start() {
  7239. start_ = 0;
  7240. clear_has_start();
  7241. }
  7242. inline ::google::protobuf::int32 EnumDescriptorProto_EnumReservedRange::start() const {
  7243. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  7244. return start_;
  7245. }
  7246. inline void EnumDescriptorProto_EnumReservedRange::set_start(::google::protobuf::int32 value) {
  7247. set_has_start();
  7248. start_ = value;
  7249. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.start)
  7250. }
  7251. // optional int32 end = 2;
  7252. inline bool EnumDescriptorProto_EnumReservedRange::has_end() const {
  7253. return (_has_bits_[0] & 0x00000002u) != 0;
  7254. }
  7255. inline void EnumDescriptorProto_EnumReservedRange::set_has_end() {
  7256. _has_bits_[0] |= 0x00000002u;
  7257. }
  7258. inline void EnumDescriptorProto_EnumReservedRange::clear_has_end() {
  7259. _has_bits_[0] &= ~0x00000002u;
  7260. }
  7261. inline void EnumDescriptorProto_EnumReservedRange::clear_end() {
  7262. end_ = 0;
  7263. clear_has_end();
  7264. }
  7265. inline ::google::protobuf::int32 EnumDescriptorProto_EnumReservedRange::end() const {
  7266. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  7267. return end_;
  7268. }
  7269. inline void EnumDescriptorProto_EnumReservedRange::set_end(::google::protobuf::int32 value) {
  7270. set_has_end();
  7271. end_ = value;
  7272. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.EnumReservedRange.end)
  7273. }
  7274. // -------------------------------------------------------------------
  7275. // EnumDescriptorProto
  7276. // optional string name = 1;
  7277. inline bool EnumDescriptorProto::has_name() const {
  7278. return (_has_bits_[0] & 0x00000001u) != 0;
  7279. }
  7280. inline void EnumDescriptorProto::set_has_name() {
  7281. _has_bits_[0] |= 0x00000001u;
  7282. }
  7283. inline void EnumDescriptorProto::clear_has_name() {
  7284. _has_bits_[0] &= ~0x00000001u;
  7285. }
  7286. inline void EnumDescriptorProto::clear_name() {
  7287. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7288. clear_has_name();
  7289. }
  7290. inline const ::std::string& EnumDescriptorProto::name() const {
  7291. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.name)
  7292. return name_.Get();
  7293. }
  7294. inline void EnumDescriptorProto::set_name(const ::std::string& value) {
  7295. set_has_name();
  7296. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7297. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.name)
  7298. }
  7299. #if LANG_CXX11
  7300. inline void EnumDescriptorProto::set_name(::std::string&& value) {
  7301. set_has_name();
  7302. name_.Set(
  7303. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7304. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumDescriptorProto.name)
  7305. }
  7306. #endif
  7307. inline void EnumDescriptorProto::set_name(const char* value) {
  7308. GOOGLE_DCHECK(value != NULL);
  7309. set_has_name();
  7310. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7311. GetArenaNoVirtual());
  7312. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.name)
  7313. }
  7314. inline void EnumDescriptorProto::set_name(const char* value,
  7315. size_t size) {
  7316. set_has_name();
  7317. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7318. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7319. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.name)
  7320. }
  7321. inline ::std::string* EnumDescriptorProto::mutable_name() {
  7322. set_has_name();
  7323. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.name)
  7324. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7325. }
  7326. inline ::std::string* EnumDescriptorProto::release_name() {
  7327. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.name)
  7328. if (!has_name()) {
  7329. return NULL;
  7330. }
  7331. clear_has_name();
  7332. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7333. }
  7334. inline void EnumDescriptorProto::set_allocated_name(::std::string* name) {
  7335. if (name != NULL) {
  7336. set_has_name();
  7337. } else {
  7338. clear_has_name();
  7339. }
  7340. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  7341. GetArenaNoVirtual());
  7342. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.name)
  7343. }
  7344. inline ::std::string* EnumDescriptorProto::unsafe_arena_release_name() {
  7345. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumDescriptorProto.name)
  7346. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7347. clear_has_name();
  7348. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7349. GetArenaNoVirtual());
  7350. }
  7351. inline void EnumDescriptorProto::unsafe_arena_set_allocated_name(
  7352. ::std::string* name) {
  7353. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7354. if (name != NULL) {
  7355. set_has_name();
  7356. } else {
  7357. clear_has_name();
  7358. }
  7359. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7360. name, GetArenaNoVirtual());
  7361. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumDescriptorProto.name)
  7362. }
  7363. // repeated .google.protobuf.EnumValueDescriptorProto value = 2;
  7364. inline int EnumDescriptorProto::value_size() const {
  7365. return value_.size();
  7366. }
  7367. inline void EnumDescriptorProto::clear_value() {
  7368. value_.Clear();
  7369. }
  7370. inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::mutable_value(int index) {
  7371. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.value)
  7372. return value_.Mutable(index);
  7373. }
  7374. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >*
  7375. EnumDescriptorProto::mutable_value() {
  7376. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.value)
  7377. return &value_;
  7378. }
  7379. inline const ::google::protobuf::EnumValueDescriptorProto& EnumDescriptorProto::value(int index) const {
  7380. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.value)
  7381. return value_.Get(index);
  7382. }
  7383. inline ::google::protobuf::EnumValueDescriptorProto* EnumDescriptorProto::add_value() {
  7384. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.value)
  7385. return value_.Add();
  7386. }
  7387. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValueDescriptorProto >&
  7388. EnumDescriptorProto::value() const {
  7389. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.value)
  7390. return value_;
  7391. }
  7392. // optional .google.protobuf.EnumOptions options = 3;
  7393. inline bool EnumDescriptorProto::has_options() const {
  7394. return (_has_bits_[0] & 0x00000002u) != 0;
  7395. }
  7396. inline void EnumDescriptorProto::set_has_options() {
  7397. _has_bits_[0] |= 0x00000002u;
  7398. }
  7399. inline void EnumDescriptorProto::clear_has_options() {
  7400. _has_bits_[0] &= ~0x00000002u;
  7401. }
  7402. inline void EnumDescriptorProto::clear_options() {
  7403. if (options_ != NULL) options_->Clear();
  7404. clear_has_options();
  7405. }
  7406. inline const ::google::protobuf::EnumOptions& EnumDescriptorProto::_internal_options() const {
  7407. return *options_;
  7408. }
  7409. inline const ::google::protobuf::EnumOptions& EnumDescriptorProto::options() const {
  7410. const ::google::protobuf::EnumOptions* p = options_;
  7411. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.options)
  7412. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::EnumOptions*>(
  7413. &::google::protobuf::_EnumOptions_default_instance_);
  7414. }
  7415. inline ::google::protobuf::EnumOptions* EnumDescriptorProto::release_options() {
  7416. // @@protoc_insertion_point(field_release:google.protobuf.EnumDescriptorProto.options)
  7417. clear_has_options();
  7418. ::google::protobuf::EnumOptions* temp = options_;
  7419. if (GetArenaNoVirtual() != NULL) {
  7420. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  7421. }
  7422. options_ = NULL;
  7423. return temp;
  7424. }
  7425. inline ::google::protobuf::EnumOptions* EnumDescriptorProto::unsafe_arena_release_options() {
  7426. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumDescriptorProto.options)
  7427. clear_has_options();
  7428. ::google::protobuf::EnumOptions* temp = options_;
  7429. options_ = NULL;
  7430. return temp;
  7431. }
  7432. inline ::google::protobuf::EnumOptions* EnumDescriptorProto::mutable_options() {
  7433. set_has_options();
  7434. if (options_ == NULL) {
  7435. auto* p = CreateMaybeMessage<::google::protobuf::EnumOptions>(GetArenaNoVirtual());
  7436. options_ = p;
  7437. }
  7438. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.options)
  7439. return options_;
  7440. }
  7441. inline void EnumDescriptorProto::set_allocated_options(::google::protobuf::EnumOptions* options) {
  7442. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  7443. if (message_arena == NULL) {
  7444. delete options_;
  7445. }
  7446. if (options) {
  7447. ::google::protobuf::Arena* submessage_arena =
  7448. ::google::protobuf::Arena::GetArena(options);
  7449. if (message_arena != submessage_arena) {
  7450. options = ::google::protobuf::internal::GetOwnedMessage(
  7451. message_arena, options, submessage_arena);
  7452. }
  7453. set_has_options();
  7454. } else {
  7455. clear_has_options();
  7456. }
  7457. options_ = options;
  7458. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumDescriptorProto.options)
  7459. }
  7460. // repeated .google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
  7461. inline int EnumDescriptorProto::reserved_range_size() const {
  7462. return reserved_range_.size();
  7463. }
  7464. inline void EnumDescriptorProto::clear_reserved_range() {
  7465. reserved_range_.Clear();
  7466. }
  7467. inline ::google::protobuf::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::mutable_reserved_range(int index) {
  7468. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_range)
  7469. return reserved_range_.Mutable(index);
  7470. }
  7471. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto_EnumReservedRange >*
  7472. EnumDescriptorProto::mutable_reserved_range() {
  7473. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_range)
  7474. return &reserved_range_;
  7475. }
  7476. inline const ::google::protobuf::EnumDescriptorProto_EnumReservedRange& EnumDescriptorProto::reserved_range(int index) const {
  7477. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_range)
  7478. return reserved_range_.Get(index);
  7479. }
  7480. inline ::google::protobuf::EnumDescriptorProto_EnumReservedRange* EnumDescriptorProto::add_reserved_range() {
  7481. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_range)
  7482. return reserved_range_.Add();
  7483. }
  7484. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumDescriptorProto_EnumReservedRange >&
  7485. EnumDescriptorProto::reserved_range() const {
  7486. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_range)
  7487. return reserved_range_;
  7488. }
  7489. // repeated string reserved_name = 5;
  7490. inline int EnumDescriptorProto::reserved_name_size() const {
  7491. return reserved_name_.size();
  7492. }
  7493. inline void EnumDescriptorProto::clear_reserved_name() {
  7494. reserved_name_.Clear();
  7495. }
  7496. inline const ::std::string& EnumDescriptorProto::reserved_name(int index) const {
  7497. // @@protoc_insertion_point(field_get:google.protobuf.EnumDescriptorProto.reserved_name)
  7498. return reserved_name_.Get(index);
  7499. }
  7500. inline ::std::string* EnumDescriptorProto::mutable_reserved_name(int index) {
  7501. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  7502. return reserved_name_.Mutable(index);
  7503. }
  7504. inline void EnumDescriptorProto::set_reserved_name(int index, const ::std::string& value) {
  7505. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  7506. reserved_name_.Mutable(index)->assign(value);
  7507. }
  7508. #if LANG_CXX11
  7509. inline void EnumDescriptorProto::set_reserved_name(int index, ::std::string&& value) {
  7510. // @@protoc_insertion_point(field_set:google.protobuf.EnumDescriptorProto.reserved_name)
  7511. reserved_name_.Mutable(index)->assign(std::move(value));
  7512. }
  7513. #endif
  7514. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value) {
  7515. GOOGLE_DCHECK(value != NULL);
  7516. reserved_name_.Mutable(index)->assign(value);
  7517. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumDescriptorProto.reserved_name)
  7518. }
  7519. inline void EnumDescriptorProto::set_reserved_name(int index, const char* value, size_t size) {
  7520. reserved_name_.Mutable(index)->assign(
  7521. reinterpret_cast<const char*>(value), size);
  7522. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  7523. }
  7524. inline ::std::string* EnumDescriptorProto::add_reserved_name() {
  7525. // @@protoc_insertion_point(field_add_mutable:google.protobuf.EnumDescriptorProto.reserved_name)
  7526. return reserved_name_.Add();
  7527. }
  7528. inline void EnumDescriptorProto::add_reserved_name(const ::std::string& value) {
  7529. reserved_name_.Add()->assign(value);
  7530. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  7531. }
  7532. #if LANG_CXX11
  7533. inline void EnumDescriptorProto::add_reserved_name(::std::string&& value) {
  7534. reserved_name_.Add(std::move(value));
  7535. // @@protoc_insertion_point(field_add:google.protobuf.EnumDescriptorProto.reserved_name)
  7536. }
  7537. #endif
  7538. inline void EnumDescriptorProto::add_reserved_name(const char* value) {
  7539. GOOGLE_DCHECK(value != NULL);
  7540. reserved_name_.Add()->assign(value);
  7541. // @@protoc_insertion_point(field_add_char:google.protobuf.EnumDescriptorProto.reserved_name)
  7542. }
  7543. inline void EnumDescriptorProto::add_reserved_name(const char* value, size_t size) {
  7544. reserved_name_.Add()->assign(reinterpret_cast<const char*>(value), size);
  7545. // @@protoc_insertion_point(field_add_pointer:google.protobuf.EnumDescriptorProto.reserved_name)
  7546. }
  7547. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  7548. EnumDescriptorProto::reserved_name() const {
  7549. // @@protoc_insertion_point(field_list:google.protobuf.EnumDescriptorProto.reserved_name)
  7550. return reserved_name_;
  7551. }
  7552. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  7553. EnumDescriptorProto::mutable_reserved_name() {
  7554. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumDescriptorProto.reserved_name)
  7555. return &reserved_name_;
  7556. }
  7557. // -------------------------------------------------------------------
  7558. // EnumValueDescriptorProto
  7559. // optional string name = 1;
  7560. inline bool EnumValueDescriptorProto::has_name() const {
  7561. return (_has_bits_[0] & 0x00000001u) != 0;
  7562. }
  7563. inline void EnumValueDescriptorProto::set_has_name() {
  7564. _has_bits_[0] |= 0x00000001u;
  7565. }
  7566. inline void EnumValueDescriptorProto::clear_has_name() {
  7567. _has_bits_[0] &= ~0x00000001u;
  7568. }
  7569. inline void EnumValueDescriptorProto::clear_name() {
  7570. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7571. clear_has_name();
  7572. }
  7573. inline const ::std::string& EnumValueDescriptorProto::name() const {
  7574. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.name)
  7575. return name_.Get();
  7576. }
  7577. inline void EnumValueDescriptorProto::set_name(const ::std::string& value) {
  7578. set_has_name();
  7579. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7580. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.name)
  7581. }
  7582. #if LANG_CXX11
  7583. inline void EnumValueDescriptorProto::set_name(::std::string&& value) {
  7584. set_has_name();
  7585. name_.Set(
  7586. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7587. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumValueDescriptorProto.name)
  7588. }
  7589. #endif
  7590. inline void EnumValueDescriptorProto::set_name(const char* value) {
  7591. GOOGLE_DCHECK(value != NULL);
  7592. set_has_name();
  7593. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7594. GetArenaNoVirtual());
  7595. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValueDescriptorProto.name)
  7596. }
  7597. inline void EnumValueDescriptorProto::set_name(const char* value,
  7598. size_t size) {
  7599. set_has_name();
  7600. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7601. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7602. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValueDescriptorProto.name)
  7603. }
  7604. inline ::std::string* EnumValueDescriptorProto::mutable_name() {
  7605. set_has_name();
  7606. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.name)
  7607. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7608. }
  7609. inline ::std::string* EnumValueDescriptorProto::release_name() {
  7610. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.name)
  7611. if (!has_name()) {
  7612. return NULL;
  7613. }
  7614. clear_has_name();
  7615. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7616. }
  7617. inline void EnumValueDescriptorProto::set_allocated_name(::std::string* name) {
  7618. if (name != NULL) {
  7619. set_has_name();
  7620. } else {
  7621. clear_has_name();
  7622. }
  7623. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  7624. GetArenaNoVirtual());
  7625. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  7626. }
  7627. inline ::std::string* EnumValueDescriptorProto::unsafe_arena_release_name() {
  7628. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumValueDescriptorProto.name)
  7629. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7630. clear_has_name();
  7631. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7632. GetArenaNoVirtual());
  7633. }
  7634. inline void EnumValueDescriptorProto::unsafe_arena_set_allocated_name(
  7635. ::std::string* name) {
  7636. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7637. if (name != NULL) {
  7638. set_has_name();
  7639. } else {
  7640. clear_has_name();
  7641. }
  7642. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7643. name, GetArenaNoVirtual());
  7644. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumValueDescriptorProto.name)
  7645. }
  7646. // optional int32 number = 2;
  7647. inline bool EnumValueDescriptorProto::has_number() const {
  7648. return (_has_bits_[0] & 0x00000004u) != 0;
  7649. }
  7650. inline void EnumValueDescriptorProto::set_has_number() {
  7651. _has_bits_[0] |= 0x00000004u;
  7652. }
  7653. inline void EnumValueDescriptorProto::clear_has_number() {
  7654. _has_bits_[0] &= ~0x00000004u;
  7655. }
  7656. inline void EnumValueDescriptorProto::clear_number() {
  7657. number_ = 0;
  7658. clear_has_number();
  7659. }
  7660. inline ::google::protobuf::int32 EnumValueDescriptorProto::number() const {
  7661. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.number)
  7662. return number_;
  7663. }
  7664. inline void EnumValueDescriptorProto::set_number(::google::protobuf::int32 value) {
  7665. set_has_number();
  7666. number_ = value;
  7667. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueDescriptorProto.number)
  7668. }
  7669. // optional .google.protobuf.EnumValueOptions options = 3;
  7670. inline bool EnumValueDescriptorProto::has_options() const {
  7671. return (_has_bits_[0] & 0x00000002u) != 0;
  7672. }
  7673. inline void EnumValueDescriptorProto::set_has_options() {
  7674. _has_bits_[0] |= 0x00000002u;
  7675. }
  7676. inline void EnumValueDescriptorProto::clear_has_options() {
  7677. _has_bits_[0] &= ~0x00000002u;
  7678. }
  7679. inline void EnumValueDescriptorProto::clear_options() {
  7680. if (options_ != NULL) options_->Clear();
  7681. clear_has_options();
  7682. }
  7683. inline const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::_internal_options() const {
  7684. return *options_;
  7685. }
  7686. inline const ::google::protobuf::EnumValueOptions& EnumValueDescriptorProto::options() const {
  7687. const ::google::protobuf::EnumValueOptions* p = options_;
  7688. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueDescriptorProto.options)
  7689. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::EnumValueOptions*>(
  7690. &::google::protobuf::_EnumValueOptions_default_instance_);
  7691. }
  7692. inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::release_options() {
  7693. // @@protoc_insertion_point(field_release:google.protobuf.EnumValueDescriptorProto.options)
  7694. clear_has_options();
  7695. ::google::protobuf::EnumValueOptions* temp = options_;
  7696. if (GetArenaNoVirtual() != NULL) {
  7697. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  7698. }
  7699. options_ = NULL;
  7700. return temp;
  7701. }
  7702. inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::unsafe_arena_release_options() {
  7703. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumValueDescriptorProto.options)
  7704. clear_has_options();
  7705. ::google::protobuf::EnumValueOptions* temp = options_;
  7706. options_ = NULL;
  7707. return temp;
  7708. }
  7709. inline ::google::protobuf::EnumValueOptions* EnumValueDescriptorProto::mutable_options() {
  7710. set_has_options();
  7711. if (options_ == NULL) {
  7712. auto* p = CreateMaybeMessage<::google::protobuf::EnumValueOptions>(GetArenaNoVirtual());
  7713. options_ = p;
  7714. }
  7715. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueDescriptorProto.options)
  7716. return options_;
  7717. }
  7718. inline void EnumValueDescriptorProto::set_allocated_options(::google::protobuf::EnumValueOptions* options) {
  7719. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  7720. if (message_arena == NULL) {
  7721. delete options_;
  7722. }
  7723. if (options) {
  7724. ::google::protobuf::Arena* submessage_arena =
  7725. ::google::protobuf::Arena::GetArena(options);
  7726. if (message_arena != submessage_arena) {
  7727. options = ::google::protobuf::internal::GetOwnedMessage(
  7728. message_arena, options, submessage_arena);
  7729. }
  7730. set_has_options();
  7731. } else {
  7732. clear_has_options();
  7733. }
  7734. options_ = options;
  7735. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValueDescriptorProto.options)
  7736. }
  7737. // -------------------------------------------------------------------
  7738. // ServiceDescriptorProto
  7739. // optional string name = 1;
  7740. inline bool ServiceDescriptorProto::has_name() const {
  7741. return (_has_bits_[0] & 0x00000001u) != 0;
  7742. }
  7743. inline void ServiceDescriptorProto::set_has_name() {
  7744. _has_bits_[0] |= 0x00000001u;
  7745. }
  7746. inline void ServiceDescriptorProto::clear_has_name() {
  7747. _has_bits_[0] &= ~0x00000001u;
  7748. }
  7749. inline void ServiceDescriptorProto::clear_name() {
  7750. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7751. clear_has_name();
  7752. }
  7753. inline const ::std::string& ServiceDescriptorProto::name() const {
  7754. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.name)
  7755. return name_.Get();
  7756. }
  7757. inline void ServiceDescriptorProto::set_name(const ::std::string& value) {
  7758. set_has_name();
  7759. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7760. // @@protoc_insertion_point(field_set:google.protobuf.ServiceDescriptorProto.name)
  7761. }
  7762. #if LANG_CXX11
  7763. inline void ServiceDescriptorProto::set_name(::std::string&& value) {
  7764. set_has_name();
  7765. name_.Set(
  7766. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7767. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.ServiceDescriptorProto.name)
  7768. }
  7769. #endif
  7770. inline void ServiceDescriptorProto::set_name(const char* value) {
  7771. GOOGLE_DCHECK(value != NULL);
  7772. set_has_name();
  7773. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7774. GetArenaNoVirtual());
  7775. // @@protoc_insertion_point(field_set_char:google.protobuf.ServiceDescriptorProto.name)
  7776. }
  7777. inline void ServiceDescriptorProto::set_name(const char* value,
  7778. size_t size) {
  7779. set_has_name();
  7780. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7781. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7782. // @@protoc_insertion_point(field_set_pointer:google.protobuf.ServiceDescriptorProto.name)
  7783. }
  7784. inline ::std::string* ServiceDescriptorProto::mutable_name() {
  7785. set_has_name();
  7786. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.name)
  7787. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7788. }
  7789. inline ::std::string* ServiceDescriptorProto::release_name() {
  7790. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.name)
  7791. if (!has_name()) {
  7792. return NULL;
  7793. }
  7794. clear_has_name();
  7795. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7796. }
  7797. inline void ServiceDescriptorProto::set_allocated_name(::std::string* name) {
  7798. if (name != NULL) {
  7799. set_has_name();
  7800. } else {
  7801. clear_has_name();
  7802. }
  7803. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  7804. GetArenaNoVirtual());
  7805. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  7806. }
  7807. inline ::std::string* ServiceDescriptorProto::unsafe_arena_release_name() {
  7808. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.ServiceDescriptorProto.name)
  7809. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7810. clear_has_name();
  7811. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7812. GetArenaNoVirtual());
  7813. }
  7814. inline void ServiceDescriptorProto::unsafe_arena_set_allocated_name(
  7815. ::std::string* name) {
  7816. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7817. if (name != NULL) {
  7818. set_has_name();
  7819. } else {
  7820. clear_has_name();
  7821. }
  7822. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7823. name, GetArenaNoVirtual());
  7824. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.ServiceDescriptorProto.name)
  7825. }
  7826. // repeated .google.protobuf.MethodDescriptorProto method = 2;
  7827. inline int ServiceDescriptorProto::method_size() const {
  7828. return method_.size();
  7829. }
  7830. inline void ServiceDescriptorProto::clear_method() {
  7831. method_.Clear();
  7832. }
  7833. inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::mutable_method(int index) {
  7834. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.method)
  7835. return method_.Mutable(index);
  7836. }
  7837. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >*
  7838. ServiceDescriptorProto::mutable_method() {
  7839. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceDescriptorProto.method)
  7840. return &method_;
  7841. }
  7842. inline const ::google::protobuf::MethodDescriptorProto& ServiceDescriptorProto::method(int index) const {
  7843. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.method)
  7844. return method_.Get(index);
  7845. }
  7846. inline ::google::protobuf::MethodDescriptorProto* ServiceDescriptorProto::add_method() {
  7847. // @@protoc_insertion_point(field_add:google.protobuf.ServiceDescriptorProto.method)
  7848. return method_.Add();
  7849. }
  7850. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::MethodDescriptorProto >&
  7851. ServiceDescriptorProto::method() const {
  7852. // @@protoc_insertion_point(field_list:google.protobuf.ServiceDescriptorProto.method)
  7853. return method_;
  7854. }
  7855. // optional .google.protobuf.ServiceOptions options = 3;
  7856. inline bool ServiceDescriptorProto::has_options() const {
  7857. return (_has_bits_[0] & 0x00000002u) != 0;
  7858. }
  7859. inline void ServiceDescriptorProto::set_has_options() {
  7860. _has_bits_[0] |= 0x00000002u;
  7861. }
  7862. inline void ServiceDescriptorProto::clear_has_options() {
  7863. _has_bits_[0] &= ~0x00000002u;
  7864. }
  7865. inline void ServiceDescriptorProto::clear_options() {
  7866. if (options_ != NULL) options_->Clear();
  7867. clear_has_options();
  7868. }
  7869. inline const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::_internal_options() const {
  7870. return *options_;
  7871. }
  7872. inline const ::google::protobuf::ServiceOptions& ServiceDescriptorProto::options() const {
  7873. const ::google::protobuf::ServiceOptions* p = options_;
  7874. // @@protoc_insertion_point(field_get:google.protobuf.ServiceDescriptorProto.options)
  7875. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::ServiceOptions*>(
  7876. &::google::protobuf::_ServiceOptions_default_instance_);
  7877. }
  7878. inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::release_options() {
  7879. // @@protoc_insertion_point(field_release:google.protobuf.ServiceDescriptorProto.options)
  7880. clear_has_options();
  7881. ::google::protobuf::ServiceOptions* temp = options_;
  7882. if (GetArenaNoVirtual() != NULL) {
  7883. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  7884. }
  7885. options_ = NULL;
  7886. return temp;
  7887. }
  7888. inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::unsafe_arena_release_options() {
  7889. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.ServiceDescriptorProto.options)
  7890. clear_has_options();
  7891. ::google::protobuf::ServiceOptions* temp = options_;
  7892. options_ = NULL;
  7893. return temp;
  7894. }
  7895. inline ::google::protobuf::ServiceOptions* ServiceDescriptorProto::mutable_options() {
  7896. set_has_options();
  7897. if (options_ == NULL) {
  7898. auto* p = CreateMaybeMessage<::google::protobuf::ServiceOptions>(GetArenaNoVirtual());
  7899. options_ = p;
  7900. }
  7901. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceDescriptorProto.options)
  7902. return options_;
  7903. }
  7904. inline void ServiceDescriptorProto::set_allocated_options(::google::protobuf::ServiceOptions* options) {
  7905. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  7906. if (message_arena == NULL) {
  7907. delete options_;
  7908. }
  7909. if (options) {
  7910. ::google::protobuf::Arena* submessage_arena =
  7911. ::google::protobuf::Arena::GetArena(options);
  7912. if (message_arena != submessage_arena) {
  7913. options = ::google::protobuf::internal::GetOwnedMessage(
  7914. message_arena, options, submessage_arena);
  7915. }
  7916. set_has_options();
  7917. } else {
  7918. clear_has_options();
  7919. }
  7920. options_ = options;
  7921. // @@protoc_insertion_point(field_set_allocated:google.protobuf.ServiceDescriptorProto.options)
  7922. }
  7923. // -------------------------------------------------------------------
  7924. // MethodDescriptorProto
  7925. // optional string name = 1;
  7926. inline bool MethodDescriptorProto::has_name() const {
  7927. return (_has_bits_[0] & 0x00000001u) != 0;
  7928. }
  7929. inline void MethodDescriptorProto::set_has_name() {
  7930. _has_bits_[0] |= 0x00000001u;
  7931. }
  7932. inline void MethodDescriptorProto::clear_has_name() {
  7933. _has_bits_[0] &= ~0x00000001u;
  7934. }
  7935. inline void MethodDescriptorProto::clear_name() {
  7936. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7937. clear_has_name();
  7938. }
  7939. inline const ::std::string& MethodDescriptorProto::name() const {
  7940. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.name)
  7941. return name_.Get();
  7942. }
  7943. inline void MethodDescriptorProto::set_name(const ::std::string& value) {
  7944. set_has_name();
  7945. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  7946. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.name)
  7947. }
  7948. #if LANG_CXX11
  7949. inline void MethodDescriptorProto::set_name(::std::string&& value) {
  7950. set_has_name();
  7951. name_.Set(
  7952. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  7953. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.name)
  7954. }
  7955. #endif
  7956. inline void MethodDescriptorProto::set_name(const char* value) {
  7957. GOOGLE_DCHECK(value != NULL);
  7958. set_has_name();
  7959. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  7960. GetArenaNoVirtual());
  7961. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.name)
  7962. }
  7963. inline void MethodDescriptorProto::set_name(const char* value,
  7964. size_t size) {
  7965. set_has_name();
  7966. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  7967. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  7968. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.name)
  7969. }
  7970. inline ::std::string* MethodDescriptorProto::mutable_name() {
  7971. set_has_name();
  7972. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.name)
  7973. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7974. }
  7975. inline ::std::string* MethodDescriptorProto::release_name() {
  7976. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.name)
  7977. if (!has_name()) {
  7978. return NULL;
  7979. }
  7980. clear_has_name();
  7981. return name_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  7982. }
  7983. inline void MethodDescriptorProto::set_allocated_name(::std::string* name) {
  7984. if (name != NULL) {
  7985. set_has_name();
  7986. } else {
  7987. clear_has_name();
  7988. }
  7989. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  7990. GetArenaNoVirtual());
  7991. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.name)
  7992. }
  7993. inline ::std::string* MethodDescriptorProto::unsafe_arena_release_name() {
  7994. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.MethodDescriptorProto.name)
  7995. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  7996. clear_has_name();
  7997. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  7998. GetArenaNoVirtual());
  7999. }
  8000. inline void MethodDescriptorProto::unsafe_arena_set_allocated_name(
  8001. ::std::string* name) {
  8002. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8003. if (name != NULL) {
  8004. set_has_name();
  8005. } else {
  8006. clear_has_name();
  8007. }
  8008. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8009. name, GetArenaNoVirtual());
  8010. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.name)
  8011. }
  8012. // optional string input_type = 2;
  8013. inline bool MethodDescriptorProto::has_input_type() const {
  8014. return (_has_bits_[0] & 0x00000002u) != 0;
  8015. }
  8016. inline void MethodDescriptorProto::set_has_input_type() {
  8017. _has_bits_[0] |= 0x00000002u;
  8018. }
  8019. inline void MethodDescriptorProto::clear_has_input_type() {
  8020. _has_bits_[0] &= ~0x00000002u;
  8021. }
  8022. inline void MethodDescriptorProto::clear_input_type() {
  8023. input_type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8024. clear_has_input_type();
  8025. }
  8026. inline const ::std::string& MethodDescriptorProto::input_type() const {
  8027. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.input_type)
  8028. return input_type_.Get();
  8029. }
  8030. inline void MethodDescriptorProto::set_input_type(const ::std::string& value) {
  8031. set_has_input_type();
  8032. input_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8033. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.input_type)
  8034. }
  8035. #if LANG_CXX11
  8036. inline void MethodDescriptorProto::set_input_type(::std::string&& value) {
  8037. set_has_input_type();
  8038. input_type_.Set(
  8039. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8040. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.input_type)
  8041. }
  8042. #endif
  8043. inline void MethodDescriptorProto::set_input_type(const char* value) {
  8044. GOOGLE_DCHECK(value != NULL);
  8045. set_has_input_type();
  8046. input_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8047. GetArenaNoVirtual());
  8048. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.input_type)
  8049. }
  8050. inline void MethodDescriptorProto::set_input_type(const char* value,
  8051. size_t size) {
  8052. set_has_input_type();
  8053. input_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8054. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8055. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.input_type)
  8056. }
  8057. inline ::std::string* MethodDescriptorProto::mutable_input_type() {
  8058. set_has_input_type();
  8059. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.input_type)
  8060. return input_type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8061. }
  8062. inline ::std::string* MethodDescriptorProto::release_input_type() {
  8063. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.input_type)
  8064. if (!has_input_type()) {
  8065. return NULL;
  8066. }
  8067. clear_has_input_type();
  8068. return input_type_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8069. }
  8070. inline void MethodDescriptorProto::set_allocated_input_type(::std::string* input_type) {
  8071. if (input_type != NULL) {
  8072. set_has_input_type();
  8073. } else {
  8074. clear_has_input_type();
  8075. }
  8076. input_type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_type,
  8077. GetArenaNoVirtual());
  8078. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  8079. }
  8080. inline ::std::string* MethodDescriptorProto::unsafe_arena_release_input_type() {
  8081. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.MethodDescriptorProto.input_type)
  8082. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8083. clear_has_input_type();
  8084. return input_type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8085. GetArenaNoVirtual());
  8086. }
  8087. inline void MethodDescriptorProto::unsafe_arena_set_allocated_input_type(
  8088. ::std::string* input_type) {
  8089. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8090. if (input_type != NULL) {
  8091. set_has_input_type();
  8092. } else {
  8093. clear_has_input_type();
  8094. }
  8095. input_type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8096. input_type, GetArenaNoVirtual());
  8097. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.input_type)
  8098. }
  8099. // optional string output_type = 3;
  8100. inline bool MethodDescriptorProto::has_output_type() const {
  8101. return (_has_bits_[0] & 0x00000004u) != 0;
  8102. }
  8103. inline void MethodDescriptorProto::set_has_output_type() {
  8104. _has_bits_[0] |= 0x00000004u;
  8105. }
  8106. inline void MethodDescriptorProto::clear_has_output_type() {
  8107. _has_bits_[0] &= ~0x00000004u;
  8108. }
  8109. inline void MethodDescriptorProto::clear_output_type() {
  8110. output_type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8111. clear_has_output_type();
  8112. }
  8113. inline const ::std::string& MethodDescriptorProto::output_type() const {
  8114. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.output_type)
  8115. return output_type_.Get();
  8116. }
  8117. inline void MethodDescriptorProto::set_output_type(const ::std::string& value) {
  8118. set_has_output_type();
  8119. output_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8120. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.output_type)
  8121. }
  8122. #if LANG_CXX11
  8123. inline void MethodDescriptorProto::set_output_type(::std::string&& value) {
  8124. set_has_output_type();
  8125. output_type_.Set(
  8126. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8127. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.MethodDescriptorProto.output_type)
  8128. }
  8129. #endif
  8130. inline void MethodDescriptorProto::set_output_type(const char* value) {
  8131. GOOGLE_DCHECK(value != NULL);
  8132. set_has_output_type();
  8133. output_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8134. GetArenaNoVirtual());
  8135. // @@protoc_insertion_point(field_set_char:google.protobuf.MethodDescriptorProto.output_type)
  8136. }
  8137. inline void MethodDescriptorProto::set_output_type(const char* value,
  8138. size_t size) {
  8139. set_has_output_type();
  8140. output_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8141. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8142. // @@protoc_insertion_point(field_set_pointer:google.protobuf.MethodDescriptorProto.output_type)
  8143. }
  8144. inline ::std::string* MethodDescriptorProto::mutable_output_type() {
  8145. set_has_output_type();
  8146. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.output_type)
  8147. return output_type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8148. }
  8149. inline ::std::string* MethodDescriptorProto::release_output_type() {
  8150. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.output_type)
  8151. if (!has_output_type()) {
  8152. return NULL;
  8153. }
  8154. clear_has_output_type();
  8155. return output_type_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8156. }
  8157. inline void MethodDescriptorProto::set_allocated_output_type(::std::string* output_type) {
  8158. if (output_type != NULL) {
  8159. set_has_output_type();
  8160. } else {
  8161. clear_has_output_type();
  8162. }
  8163. output_type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_type,
  8164. GetArenaNoVirtual());
  8165. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  8166. }
  8167. inline ::std::string* MethodDescriptorProto::unsafe_arena_release_output_type() {
  8168. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.MethodDescriptorProto.output_type)
  8169. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8170. clear_has_output_type();
  8171. return output_type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8172. GetArenaNoVirtual());
  8173. }
  8174. inline void MethodDescriptorProto::unsafe_arena_set_allocated_output_type(
  8175. ::std::string* output_type) {
  8176. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8177. if (output_type != NULL) {
  8178. set_has_output_type();
  8179. } else {
  8180. clear_has_output_type();
  8181. }
  8182. output_type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8183. output_type, GetArenaNoVirtual());
  8184. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.MethodDescriptorProto.output_type)
  8185. }
  8186. // optional .google.protobuf.MethodOptions options = 4;
  8187. inline bool MethodDescriptorProto::has_options() const {
  8188. return (_has_bits_[0] & 0x00000008u) != 0;
  8189. }
  8190. inline void MethodDescriptorProto::set_has_options() {
  8191. _has_bits_[0] |= 0x00000008u;
  8192. }
  8193. inline void MethodDescriptorProto::clear_has_options() {
  8194. _has_bits_[0] &= ~0x00000008u;
  8195. }
  8196. inline void MethodDescriptorProto::clear_options() {
  8197. if (options_ != NULL) options_->Clear();
  8198. clear_has_options();
  8199. }
  8200. inline const ::google::protobuf::MethodOptions& MethodDescriptorProto::_internal_options() const {
  8201. return *options_;
  8202. }
  8203. inline const ::google::protobuf::MethodOptions& MethodDescriptorProto::options() const {
  8204. const ::google::protobuf::MethodOptions* p = options_;
  8205. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.options)
  8206. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::MethodOptions*>(
  8207. &::google::protobuf::_MethodOptions_default_instance_);
  8208. }
  8209. inline ::google::protobuf::MethodOptions* MethodDescriptorProto::release_options() {
  8210. // @@protoc_insertion_point(field_release:google.protobuf.MethodDescriptorProto.options)
  8211. clear_has_options();
  8212. ::google::protobuf::MethodOptions* temp = options_;
  8213. if (GetArenaNoVirtual() != NULL) {
  8214. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  8215. }
  8216. options_ = NULL;
  8217. return temp;
  8218. }
  8219. inline ::google::protobuf::MethodOptions* MethodDescriptorProto::unsafe_arena_release_options() {
  8220. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.MethodDescriptorProto.options)
  8221. clear_has_options();
  8222. ::google::protobuf::MethodOptions* temp = options_;
  8223. options_ = NULL;
  8224. return temp;
  8225. }
  8226. inline ::google::protobuf::MethodOptions* MethodDescriptorProto::mutable_options() {
  8227. set_has_options();
  8228. if (options_ == NULL) {
  8229. auto* p = CreateMaybeMessage<::google::protobuf::MethodOptions>(GetArenaNoVirtual());
  8230. options_ = p;
  8231. }
  8232. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodDescriptorProto.options)
  8233. return options_;
  8234. }
  8235. inline void MethodDescriptorProto::set_allocated_options(::google::protobuf::MethodOptions* options) {
  8236. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  8237. if (message_arena == NULL) {
  8238. delete options_;
  8239. }
  8240. if (options) {
  8241. ::google::protobuf::Arena* submessage_arena =
  8242. ::google::protobuf::Arena::GetArena(options);
  8243. if (message_arena != submessage_arena) {
  8244. options = ::google::protobuf::internal::GetOwnedMessage(
  8245. message_arena, options, submessage_arena);
  8246. }
  8247. set_has_options();
  8248. } else {
  8249. clear_has_options();
  8250. }
  8251. options_ = options;
  8252. // @@protoc_insertion_point(field_set_allocated:google.protobuf.MethodDescriptorProto.options)
  8253. }
  8254. // optional bool client_streaming = 5 [default = false];
  8255. inline bool MethodDescriptorProto::has_client_streaming() const {
  8256. return (_has_bits_[0] & 0x00000010u) != 0;
  8257. }
  8258. inline void MethodDescriptorProto::set_has_client_streaming() {
  8259. _has_bits_[0] |= 0x00000010u;
  8260. }
  8261. inline void MethodDescriptorProto::clear_has_client_streaming() {
  8262. _has_bits_[0] &= ~0x00000010u;
  8263. }
  8264. inline void MethodDescriptorProto::clear_client_streaming() {
  8265. client_streaming_ = false;
  8266. clear_has_client_streaming();
  8267. }
  8268. inline bool MethodDescriptorProto::client_streaming() const {
  8269. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.client_streaming)
  8270. return client_streaming_;
  8271. }
  8272. inline void MethodDescriptorProto::set_client_streaming(bool value) {
  8273. set_has_client_streaming();
  8274. client_streaming_ = value;
  8275. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.client_streaming)
  8276. }
  8277. // optional bool server_streaming = 6 [default = false];
  8278. inline bool MethodDescriptorProto::has_server_streaming() const {
  8279. return (_has_bits_[0] & 0x00000020u) != 0;
  8280. }
  8281. inline void MethodDescriptorProto::set_has_server_streaming() {
  8282. _has_bits_[0] |= 0x00000020u;
  8283. }
  8284. inline void MethodDescriptorProto::clear_has_server_streaming() {
  8285. _has_bits_[0] &= ~0x00000020u;
  8286. }
  8287. inline void MethodDescriptorProto::clear_server_streaming() {
  8288. server_streaming_ = false;
  8289. clear_has_server_streaming();
  8290. }
  8291. inline bool MethodDescriptorProto::server_streaming() const {
  8292. // @@protoc_insertion_point(field_get:google.protobuf.MethodDescriptorProto.server_streaming)
  8293. return server_streaming_;
  8294. }
  8295. inline void MethodDescriptorProto::set_server_streaming(bool value) {
  8296. set_has_server_streaming();
  8297. server_streaming_ = value;
  8298. // @@protoc_insertion_point(field_set:google.protobuf.MethodDescriptorProto.server_streaming)
  8299. }
  8300. // -------------------------------------------------------------------
  8301. // FileOptions
  8302. // optional string java_package = 1;
  8303. inline bool FileOptions::has_java_package() const {
  8304. return (_has_bits_[0] & 0x00000001u) != 0;
  8305. }
  8306. inline void FileOptions::set_has_java_package() {
  8307. _has_bits_[0] |= 0x00000001u;
  8308. }
  8309. inline void FileOptions::clear_has_java_package() {
  8310. _has_bits_[0] &= ~0x00000001u;
  8311. }
  8312. inline void FileOptions::clear_java_package() {
  8313. java_package_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8314. clear_has_java_package();
  8315. }
  8316. inline const ::std::string& FileOptions::java_package() const {
  8317. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_package)
  8318. return java_package_.Get();
  8319. }
  8320. inline void FileOptions::set_java_package(const ::std::string& value) {
  8321. set_has_java_package();
  8322. java_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8323. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_package)
  8324. }
  8325. #if LANG_CXX11
  8326. inline void FileOptions::set_java_package(::std::string&& value) {
  8327. set_has_java_package();
  8328. java_package_.Set(
  8329. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8330. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.java_package)
  8331. }
  8332. #endif
  8333. inline void FileOptions::set_java_package(const char* value) {
  8334. GOOGLE_DCHECK(value != NULL);
  8335. set_has_java_package();
  8336. java_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8337. GetArenaNoVirtual());
  8338. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_package)
  8339. }
  8340. inline void FileOptions::set_java_package(const char* value,
  8341. size_t size) {
  8342. set_has_java_package();
  8343. java_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8344. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8345. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_package)
  8346. }
  8347. inline ::std::string* FileOptions::mutable_java_package() {
  8348. set_has_java_package();
  8349. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_package)
  8350. return java_package_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8351. }
  8352. inline ::std::string* FileOptions::release_java_package() {
  8353. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_package)
  8354. if (!has_java_package()) {
  8355. return NULL;
  8356. }
  8357. clear_has_java_package();
  8358. return java_package_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8359. }
  8360. inline void FileOptions::set_allocated_java_package(::std::string* java_package) {
  8361. if (java_package != NULL) {
  8362. set_has_java_package();
  8363. } else {
  8364. clear_has_java_package();
  8365. }
  8366. java_package_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_package,
  8367. GetArenaNoVirtual());
  8368. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_package)
  8369. }
  8370. inline ::std::string* FileOptions::unsafe_arena_release_java_package() {
  8371. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.java_package)
  8372. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8373. clear_has_java_package();
  8374. return java_package_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8375. GetArenaNoVirtual());
  8376. }
  8377. inline void FileOptions::unsafe_arena_set_allocated_java_package(
  8378. ::std::string* java_package) {
  8379. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8380. if (java_package != NULL) {
  8381. set_has_java_package();
  8382. } else {
  8383. clear_has_java_package();
  8384. }
  8385. java_package_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8386. java_package, GetArenaNoVirtual());
  8387. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.java_package)
  8388. }
  8389. // optional string java_outer_classname = 8;
  8390. inline bool FileOptions::has_java_outer_classname() const {
  8391. return (_has_bits_[0] & 0x00000002u) != 0;
  8392. }
  8393. inline void FileOptions::set_has_java_outer_classname() {
  8394. _has_bits_[0] |= 0x00000002u;
  8395. }
  8396. inline void FileOptions::clear_has_java_outer_classname() {
  8397. _has_bits_[0] &= ~0x00000002u;
  8398. }
  8399. inline void FileOptions::clear_java_outer_classname() {
  8400. java_outer_classname_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8401. clear_has_java_outer_classname();
  8402. }
  8403. inline const ::std::string& FileOptions::java_outer_classname() const {
  8404. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_outer_classname)
  8405. return java_outer_classname_.Get();
  8406. }
  8407. inline void FileOptions::set_java_outer_classname(const ::std::string& value) {
  8408. set_has_java_outer_classname();
  8409. java_outer_classname_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8410. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_outer_classname)
  8411. }
  8412. #if LANG_CXX11
  8413. inline void FileOptions::set_java_outer_classname(::std::string&& value) {
  8414. set_has_java_outer_classname();
  8415. java_outer_classname_.Set(
  8416. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8417. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.java_outer_classname)
  8418. }
  8419. #endif
  8420. inline void FileOptions::set_java_outer_classname(const char* value) {
  8421. GOOGLE_DCHECK(value != NULL);
  8422. set_has_java_outer_classname();
  8423. java_outer_classname_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8424. GetArenaNoVirtual());
  8425. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.java_outer_classname)
  8426. }
  8427. inline void FileOptions::set_java_outer_classname(const char* value,
  8428. size_t size) {
  8429. set_has_java_outer_classname();
  8430. java_outer_classname_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8431. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8432. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.java_outer_classname)
  8433. }
  8434. inline ::std::string* FileOptions::mutable_java_outer_classname() {
  8435. set_has_java_outer_classname();
  8436. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.java_outer_classname)
  8437. return java_outer_classname_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8438. }
  8439. inline ::std::string* FileOptions::release_java_outer_classname() {
  8440. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.java_outer_classname)
  8441. if (!has_java_outer_classname()) {
  8442. return NULL;
  8443. }
  8444. clear_has_java_outer_classname();
  8445. return java_outer_classname_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8446. }
  8447. inline void FileOptions::set_allocated_java_outer_classname(::std::string* java_outer_classname) {
  8448. if (java_outer_classname != NULL) {
  8449. set_has_java_outer_classname();
  8450. } else {
  8451. clear_has_java_outer_classname();
  8452. }
  8453. java_outer_classname_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), java_outer_classname,
  8454. GetArenaNoVirtual());
  8455. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  8456. }
  8457. inline ::std::string* FileOptions::unsafe_arena_release_java_outer_classname() {
  8458. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.java_outer_classname)
  8459. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8460. clear_has_java_outer_classname();
  8461. return java_outer_classname_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8462. GetArenaNoVirtual());
  8463. }
  8464. inline void FileOptions::unsafe_arena_set_allocated_java_outer_classname(
  8465. ::std::string* java_outer_classname) {
  8466. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8467. if (java_outer_classname != NULL) {
  8468. set_has_java_outer_classname();
  8469. } else {
  8470. clear_has_java_outer_classname();
  8471. }
  8472. java_outer_classname_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8473. java_outer_classname, GetArenaNoVirtual());
  8474. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.java_outer_classname)
  8475. }
  8476. // optional bool java_multiple_files = 10 [default = false];
  8477. inline bool FileOptions::has_java_multiple_files() const {
  8478. return (_has_bits_[0] & 0x00000400u) != 0;
  8479. }
  8480. inline void FileOptions::set_has_java_multiple_files() {
  8481. _has_bits_[0] |= 0x00000400u;
  8482. }
  8483. inline void FileOptions::clear_has_java_multiple_files() {
  8484. _has_bits_[0] &= ~0x00000400u;
  8485. }
  8486. inline void FileOptions::clear_java_multiple_files() {
  8487. java_multiple_files_ = false;
  8488. clear_has_java_multiple_files();
  8489. }
  8490. inline bool FileOptions::java_multiple_files() const {
  8491. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_multiple_files)
  8492. return java_multiple_files_;
  8493. }
  8494. inline void FileOptions::set_java_multiple_files(bool value) {
  8495. set_has_java_multiple_files();
  8496. java_multiple_files_ = value;
  8497. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_multiple_files)
  8498. }
  8499. // optional bool java_generate_equals_and_hash = 20 [deprecated = true];
  8500. inline bool FileOptions::has_java_generate_equals_and_hash() const {
  8501. return (_has_bits_[0] & 0x00000800u) != 0;
  8502. }
  8503. inline void FileOptions::set_has_java_generate_equals_and_hash() {
  8504. _has_bits_[0] |= 0x00000800u;
  8505. }
  8506. inline void FileOptions::clear_has_java_generate_equals_and_hash() {
  8507. _has_bits_[0] &= ~0x00000800u;
  8508. }
  8509. inline void FileOptions::clear_java_generate_equals_and_hash() {
  8510. java_generate_equals_and_hash_ = false;
  8511. clear_has_java_generate_equals_and_hash();
  8512. }
  8513. inline bool FileOptions::java_generate_equals_and_hash() const {
  8514. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generate_equals_and_hash)
  8515. return java_generate_equals_and_hash_;
  8516. }
  8517. inline void FileOptions::set_java_generate_equals_and_hash(bool value) {
  8518. set_has_java_generate_equals_and_hash();
  8519. java_generate_equals_and_hash_ = value;
  8520. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generate_equals_and_hash)
  8521. }
  8522. // optional bool java_string_check_utf8 = 27 [default = false];
  8523. inline bool FileOptions::has_java_string_check_utf8() const {
  8524. return (_has_bits_[0] & 0x00001000u) != 0;
  8525. }
  8526. inline void FileOptions::set_has_java_string_check_utf8() {
  8527. _has_bits_[0] |= 0x00001000u;
  8528. }
  8529. inline void FileOptions::clear_has_java_string_check_utf8() {
  8530. _has_bits_[0] &= ~0x00001000u;
  8531. }
  8532. inline void FileOptions::clear_java_string_check_utf8() {
  8533. java_string_check_utf8_ = false;
  8534. clear_has_java_string_check_utf8();
  8535. }
  8536. inline bool FileOptions::java_string_check_utf8() const {
  8537. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_string_check_utf8)
  8538. return java_string_check_utf8_;
  8539. }
  8540. inline void FileOptions::set_java_string_check_utf8(bool value) {
  8541. set_has_java_string_check_utf8();
  8542. java_string_check_utf8_ = value;
  8543. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_string_check_utf8)
  8544. }
  8545. // optional .google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
  8546. inline bool FileOptions::has_optimize_for() const {
  8547. return (_has_bits_[0] & 0x00080000u) != 0;
  8548. }
  8549. inline void FileOptions::set_has_optimize_for() {
  8550. _has_bits_[0] |= 0x00080000u;
  8551. }
  8552. inline void FileOptions::clear_has_optimize_for() {
  8553. _has_bits_[0] &= ~0x00080000u;
  8554. }
  8555. inline void FileOptions::clear_optimize_for() {
  8556. optimize_for_ = 1;
  8557. clear_has_optimize_for();
  8558. }
  8559. inline ::google::protobuf::FileOptions_OptimizeMode FileOptions::optimize_for() const {
  8560. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.optimize_for)
  8561. return static_cast< ::google::protobuf::FileOptions_OptimizeMode >(optimize_for_);
  8562. }
  8563. inline void FileOptions::set_optimize_for(::google::protobuf::FileOptions_OptimizeMode value) {
  8564. assert(::google::protobuf::FileOptions_OptimizeMode_IsValid(value));
  8565. set_has_optimize_for();
  8566. optimize_for_ = value;
  8567. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.optimize_for)
  8568. }
  8569. // optional string go_package = 11;
  8570. inline bool FileOptions::has_go_package() const {
  8571. return (_has_bits_[0] & 0x00000004u) != 0;
  8572. }
  8573. inline void FileOptions::set_has_go_package() {
  8574. _has_bits_[0] |= 0x00000004u;
  8575. }
  8576. inline void FileOptions::clear_has_go_package() {
  8577. _has_bits_[0] &= ~0x00000004u;
  8578. }
  8579. inline void FileOptions::clear_go_package() {
  8580. go_package_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8581. clear_has_go_package();
  8582. }
  8583. inline const ::std::string& FileOptions::go_package() const {
  8584. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.go_package)
  8585. return go_package_.Get();
  8586. }
  8587. inline void FileOptions::set_go_package(const ::std::string& value) {
  8588. set_has_go_package();
  8589. go_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8590. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.go_package)
  8591. }
  8592. #if LANG_CXX11
  8593. inline void FileOptions::set_go_package(::std::string&& value) {
  8594. set_has_go_package();
  8595. go_package_.Set(
  8596. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8597. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.go_package)
  8598. }
  8599. #endif
  8600. inline void FileOptions::set_go_package(const char* value) {
  8601. GOOGLE_DCHECK(value != NULL);
  8602. set_has_go_package();
  8603. go_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8604. GetArenaNoVirtual());
  8605. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.go_package)
  8606. }
  8607. inline void FileOptions::set_go_package(const char* value,
  8608. size_t size) {
  8609. set_has_go_package();
  8610. go_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8611. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8612. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.go_package)
  8613. }
  8614. inline ::std::string* FileOptions::mutable_go_package() {
  8615. set_has_go_package();
  8616. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.go_package)
  8617. return go_package_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8618. }
  8619. inline ::std::string* FileOptions::release_go_package() {
  8620. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.go_package)
  8621. if (!has_go_package()) {
  8622. return NULL;
  8623. }
  8624. clear_has_go_package();
  8625. return go_package_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8626. }
  8627. inline void FileOptions::set_allocated_go_package(::std::string* go_package) {
  8628. if (go_package != NULL) {
  8629. set_has_go_package();
  8630. } else {
  8631. clear_has_go_package();
  8632. }
  8633. go_package_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), go_package,
  8634. GetArenaNoVirtual());
  8635. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.go_package)
  8636. }
  8637. inline ::std::string* FileOptions::unsafe_arena_release_go_package() {
  8638. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.go_package)
  8639. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8640. clear_has_go_package();
  8641. return go_package_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8642. GetArenaNoVirtual());
  8643. }
  8644. inline void FileOptions::unsafe_arena_set_allocated_go_package(
  8645. ::std::string* go_package) {
  8646. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8647. if (go_package != NULL) {
  8648. set_has_go_package();
  8649. } else {
  8650. clear_has_go_package();
  8651. }
  8652. go_package_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8653. go_package, GetArenaNoVirtual());
  8654. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.go_package)
  8655. }
  8656. // optional bool cc_generic_services = 16 [default = false];
  8657. inline bool FileOptions::has_cc_generic_services() const {
  8658. return (_has_bits_[0] & 0x00002000u) != 0;
  8659. }
  8660. inline void FileOptions::set_has_cc_generic_services() {
  8661. _has_bits_[0] |= 0x00002000u;
  8662. }
  8663. inline void FileOptions::clear_has_cc_generic_services() {
  8664. _has_bits_[0] &= ~0x00002000u;
  8665. }
  8666. inline void FileOptions::clear_cc_generic_services() {
  8667. cc_generic_services_ = false;
  8668. clear_has_cc_generic_services();
  8669. }
  8670. inline bool FileOptions::cc_generic_services() const {
  8671. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_generic_services)
  8672. return cc_generic_services_;
  8673. }
  8674. inline void FileOptions::set_cc_generic_services(bool value) {
  8675. set_has_cc_generic_services();
  8676. cc_generic_services_ = value;
  8677. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_generic_services)
  8678. }
  8679. // optional bool java_generic_services = 17 [default = false];
  8680. inline bool FileOptions::has_java_generic_services() const {
  8681. return (_has_bits_[0] & 0x00004000u) != 0;
  8682. }
  8683. inline void FileOptions::set_has_java_generic_services() {
  8684. _has_bits_[0] |= 0x00004000u;
  8685. }
  8686. inline void FileOptions::clear_has_java_generic_services() {
  8687. _has_bits_[0] &= ~0x00004000u;
  8688. }
  8689. inline void FileOptions::clear_java_generic_services() {
  8690. java_generic_services_ = false;
  8691. clear_has_java_generic_services();
  8692. }
  8693. inline bool FileOptions::java_generic_services() const {
  8694. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.java_generic_services)
  8695. return java_generic_services_;
  8696. }
  8697. inline void FileOptions::set_java_generic_services(bool value) {
  8698. set_has_java_generic_services();
  8699. java_generic_services_ = value;
  8700. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.java_generic_services)
  8701. }
  8702. // optional bool py_generic_services = 18 [default = false];
  8703. inline bool FileOptions::has_py_generic_services() const {
  8704. return (_has_bits_[0] & 0x00008000u) != 0;
  8705. }
  8706. inline void FileOptions::set_has_py_generic_services() {
  8707. _has_bits_[0] |= 0x00008000u;
  8708. }
  8709. inline void FileOptions::clear_has_py_generic_services() {
  8710. _has_bits_[0] &= ~0x00008000u;
  8711. }
  8712. inline void FileOptions::clear_py_generic_services() {
  8713. py_generic_services_ = false;
  8714. clear_has_py_generic_services();
  8715. }
  8716. inline bool FileOptions::py_generic_services() const {
  8717. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.py_generic_services)
  8718. return py_generic_services_;
  8719. }
  8720. inline void FileOptions::set_py_generic_services(bool value) {
  8721. set_has_py_generic_services();
  8722. py_generic_services_ = value;
  8723. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.py_generic_services)
  8724. }
  8725. // optional bool php_generic_services = 42 [default = false];
  8726. inline bool FileOptions::has_php_generic_services() const {
  8727. return (_has_bits_[0] & 0x00010000u) != 0;
  8728. }
  8729. inline void FileOptions::set_has_php_generic_services() {
  8730. _has_bits_[0] |= 0x00010000u;
  8731. }
  8732. inline void FileOptions::clear_has_php_generic_services() {
  8733. _has_bits_[0] &= ~0x00010000u;
  8734. }
  8735. inline void FileOptions::clear_php_generic_services() {
  8736. php_generic_services_ = false;
  8737. clear_has_php_generic_services();
  8738. }
  8739. inline bool FileOptions::php_generic_services() const {
  8740. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_generic_services)
  8741. return php_generic_services_;
  8742. }
  8743. inline void FileOptions::set_php_generic_services(bool value) {
  8744. set_has_php_generic_services();
  8745. php_generic_services_ = value;
  8746. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_generic_services)
  8747. }
  8748. // optional bool deprecated = 23 [default = false];
  8749. inline bool FileOptions::has_deprecated() const {
  8750. return (_has_bits_[0] & 0x00020000u) != 0;
  8751. }
  8752. inline void FileOptions::set_has_deprecated() {
  8753. _has_bits_[0] |= 0x00020000u;
  8754. }
  8755. inline void FileOptions::clear_has_deprecated() {
  8756. _has_bits_[0] &= ~0x00020000u;
  8757. }
  8758. inline void FileOptions::clear_deprecated() {
  8759. deprecated_ = false;
  8760. clear_has_deprecated();
  8761. }
  8762. inline bool FileOptions::deprecated() const {
  8763. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.deprecated)
  8764. return deprecated_;
  8765. }
  8766. inline void FileOptions::set_deprecated(bool value) {
  8767. set_has_deprecated();
  8768. deprecated_ = value;
  8769. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.deprecated)
  8770. }
  8771. // optional bool cc_enable_arenas = 31 [default = false];
  8772. inline bool FileOptions::has_cc_enable_arenas() const {
  8773. return (_has_bits_[0] & 0x00040000u) != 0;
  8774. }
  8775. inline void FileOptions::set_has_cc_enable_arenas() {
  8776. _has_bits_[0] |= 0x00040000u;
  8777. }
  8778. inline void FileOptions::clear_has_cc_enable_arenas() {
  8779. _has_bits_[0] &= ~0x00040000u;
  8780. }
  8781. inline void FileOptions::clear_cc_enable_arenas() {
  8782. cc_enable_arenas_ = false;
  8783. clear_has_cc_enable_arenas();
  8784. }
  8785. inline bool FileOptions::cc_enable_arenas() const {
  8786. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.cc_enable_arenas)
  8787. return cc_enable_arenas_;
  8788. }
  8789. inline void FileOptions::set_cc_enable_arenas(bool value) {
  8790. set_has_cc_enable_arenas();
  8791. cc_enable_arenas_ = value;
  8792. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.cc_enable_arenas)
  8793. }
  8794. // optional string objc_class_prefix = 36;
  8795. inline bool FileOptions::has_objc_class_prefix() const {
  8796. return (_has_bits_[0] & 0x00000008u) != 0;
  8797. }
  8798. inline void FileOptions::set_has_objc_class_prefix() {
  8799. _has_bits_[0] |= 0x00000008u;
  8800. }
  8801. inline void FileOptions::clear_has_objc_class_prefix() {
  8802. _has_bits_[0] &= ~0x00000008u;
  8803. }
  8804. inline void FileOptions::clear_objc_class_prefix() {
  8805. objc_class_prefix_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8806. clear_has_objc_class_prefix();
  8807. }
  8808. inline const ::std::string& FileOptions::objc_class_prefix() const {
  8809. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.objc_class_prefix)
  8810. return objc_class_prefix_.Get();
  8811. }
  8812. inline void FileOptions::set_objc_class_prefix(const ::std::string& value) {
  8813. set_has_objc_class_prefix();
  8814. objc_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8815. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.objc_class_prefix)
  8816. }
  8817. #if LANG_CXX11
  8818. inline void FileOptions::set_objc_class_prefix(::std::string&& value) {
  8819. set_has_objc_class_prefix();
  8820. objc_class_prefix_.Set(
  8821. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8822. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.objc_class_prefix)
  8823. }
  8824. #endif
  8825. inline void FileOptions::set_objc_class_prefix(const char* value) {
  8826. GOOGLE_DCHECK(value != NULL);
  8827. set_has_objc_class_prefix();
  8828. objc_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8829. GetArenaNoVirtual());
  8830. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.objc_class_prefix)
  8831. }
  8832. inline void FileOptions::set_objc_class_prefix(const char* value,
  8833. size_t size) {
  8834. set_has_objc_class_prefix();
  8835. objc_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8836. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8837. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.objc_class_prefix)
  8838. }
  8839. inline ::std::string* FileOptions::mutable_objc_class_prefix() {
  8840. set_has_objc_class_prefix();
  8841. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.objc_class_prefix)
  8842. return objc_class_prefix_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8843. }
  8844. inline ::std::string* FileOptions::release_objc_class_prefix() {
  8845. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.objc_class_prefix)
  8846. if (!has_objc_class_prefix()) {
  8847. return NULL;
  8848. }
  8849. clear_has_objc_class_prefix();
  8850. return objc_class_prefix_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8851. }
  8852. inline void FileOptions::set_allocated_objc_class_prefix(::std::string* objc_class_prefix) {
  8853. if (objc_class_prefix != NULL) {
  8854. set_has_objc_class_prefix();
  8855. } else {
  8856. clear_has_objc_class_prefix();
  8857. }
  8858. objc_class_prefix_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), objc_class_prefix,
  8859. GetArenaNoVirtual());
  8860. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
  8861. }
  8862. inline ::std::string* FileOptions::unsafe_arena_release_objc_class_prefix() {
  8863. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.objc_class_prefix)
  8864. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8865. clear_has_objc_class_prefix();
  8866. return objc_class_prefix_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8867. GetArenaNoVirtual());
  8868. }
  8869. inline void FileOptions::unsafe_arena_set_allocated_objc_class_prefix(
  8870. ::std::string* objc_class_prefix) {
  8871. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8872. if (objc_class_prefix != NULL) {
  8873. set_has_objc_class_prefix();
  8874. } else {
  8875. clear_has_objc_class_prefix();
  8876. }
  8877. objc_class_prefix_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8878. objc_class_prefix, GetArenaNoVirtual());
  8879. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.objc_class_prefix)
  8880. }
  8881. // optional string csharp_namespace = 37;
  8882. inline bool FileOptions::has_csharp_namespace() const {
  8883. return (_has_bits_[0] & 0x00000010u) != 0;
  8884. }
  8885. inline void FileOptions::set_has_csharp_namespace() {
  8886. _has_bits_[0] |= 0x00000010u;
  8887. }
  8888. inline void FileOptions::clear_has_csharp_namespace() {
  8889. _has_bits_[0] &= ~0x00000010u;
  8890. }
  8891. inline void FileOptions::clear_csharp_namespace() {
  8892. csharp_namespace_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8893. clear_has_csharp_namespace();
  8894. }
  8895. inline const ::std::string& FileOptions::csharp_namespace() const {
  8896. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.csharp_namespace)
  8897. return csharp_namespace_.Get();
  8898. }
  8899. inline void FileOptions::set_csharp_namespace(const ::std::string& value) {
  8900. set_has_csharp_namespace();
  8901. csharp_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8902. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.csharp_namespace)
  8903. }
  8904. #if LANG_CXX11
  8905. inline void FileOptions::set_csharp_namespace(::std::string&& value) {
  8906. set_has_csharp_namespace();
  8907. csharp_namespace_.Set(
  8908. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8909. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.csharp_namespace)
  8910. }
  8911. #endif
  8912. inline void FileOptions::set_csharp_namespace(const char* value) {
  8913. GOOGLE_DCHECK(value != NULL);
  8914. set_has_csharp_namespace();
  8915. csharp_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  8916. GetArenaNoVirtual());
  8917. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.csharp_namespace)
  8918. }
  8919. inline void FileOptions::set_csharp_namespace(const char* value,
  8920. size_t size) {
  8921. set_has_csharp_namespace();
  8922. csharp_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  8923. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  8924. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.csharp_namespace)
  8925. }
  8926. inline ::std::string* FileOptions::mutable_csharp_namespace() {
  8927. set_has_csharp_namespace();
  8928. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.csharp_namespace)
  8929. return csharp_namespace_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8930. }
  8931. inline ::std::string* FileOptions::release_csharp_namespace() {
  8932. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.csharp_namespace)
  8933. if (!has_csharp_namespace()) {
  8934. return NULL;
  8935. }
  8936. clear_has_csharp_namespace();
  8937. return csharp_namespace_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8938. }
  8939. inline void FileOptions::set_allocated_csharp_namespace(::std::string* csharp_namespace) {
  8940. if (csharp_namespace != NULL) {
  8941. set_has_csharp_namespace();
  8942. } else {
  8943. clear_has_csharp_namespace();
  8944. }
  8945. csharp_namespace_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), csharp_namespace,
  8946. GetArenaNoVirtual());
  8947. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.csharp_namespace)
  8948. }
  8949. inline ::std::string* FileOptions::unsafe_arena_release_csharp_namespace() {
  8950. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.csharp_namespace)
  8951. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8952. clear_has_csharp_namespace();
  8953. return csharp_namespace_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8954. GetArenaNoVirtual());
  8955. }
  8956. inline void FileOptions::unsafe_arena_set_allocated_csharp_namespace(
  8957. ::std::string* csharp_namespace) {
  8958. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  8959. if (csharp_namespace != NULL) {
  8960. set_has_csharp_namespace();
  8961. } else {
  8962. clear_has_csharp_namespace();
  8963. }
  8964. csharp_namespace_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  8965. csharp_namespace, GetArenaNoVirtual());
  8966. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.csharp_namespace)
  8967. }
  8968. // optional string swift_prefix = 39;
  8969. inline bool FileOptions::has_swift_prefix() const {
  8970. return (_has_bits_[0] & 0x00000020u) != 0;
  8971. }
  8972. inline void FileOptions::set_has_swift_prefix() {
  8973. _has_bits_[0] |= 0x00000020u;
  8974. }
  8975. inline void FileOptions::clear_has_swift_prefix() {
  8976. _has_bits_[0] &= ~0x00000020u;
  8977. }
  8978. inline void FileOptions::clear_swift_prefix() {
  8979. swift_prefix_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  8980. clear_has_swift_prefix();
  8981. }
  8982. inline const ::std::string& FileOptions::swift_prefix() const {
  8983. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.swift_prefix)
  8984. return swift_prefix_.Get();
  8985. }
  8986. inline void FileOptions::set_swift_prefix(const ::std::string& value) {
  8987. set_has_swift_prefix();
  8988. swift_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  8989. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.swift_prefix)
  8990. }
  8991. #if LANG_CXX11
  8992. inline void FileOptions::set_swift_prefix(::std::string&& value) {
  8993. set_has_swift_prefix();
  8994. swift_prefix_.Set(
  8995. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  8996. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.swift_prefix)
  8997. }
  8998. #endif
  8999. inline void FileOptions::set_swift_prefix(const char* value) {
  9000. GOOGLE_DCHECK(value != NULL);
  9001. set_has_swift_prefix();
  9002. swift_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9003. GetArenaNoVirtual());
  9004. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.swift_prefix)
  9005. }
  9006. inline void FileOptions::set_swift_prefix(const char* value,
  9007. size_t size) {
  9008. set_has_swift_prefix();
  9009. swift_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9010. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9011. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.swift_prefix)
  9012. }
  9013. inline ::std::string* FileOptions::mutable_swift_prefix() {
  9014. set_has_swift_prefix();
  9015. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.swift_prefix)
  9016. return swift_prefix_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9017. }
  9018. inline ::std::string* FileOptions::release_swift_prefix() {
  9019. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.swift_prefix)
  9020. if (!has_swift_prefix()) {
  9021. return NULL;
  9022. }
  9023. clear_has_swift_prefix();
  9024. return swift_prefix_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9025. }
  9026. inline void FileOptions::set_allocated_swift_prefix(::std::string* swift_prefix) {
  9027. if (swift_prefix != NULL) {
  9028. set_has_swift_prefix();
  9029. } else {
  9030. clear_has_swift_prefix();
  9031. }
  9032. swift_prefix_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), swift_prefix,
  9033. GetArenaNoVirtual());
  9034. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.swift_prefix)
  9035. }
  9036. inline ::std::string* FileOptions::unsafe_arena_release_swift_prefix() {
  9037. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.swift_prefix)
  9038. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9039. clear_has_swift_prefix();
  9040. return swift_prefix_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9041. GetArenaNoVirtual());
  9042. }
  9043. inline void FileOptions::unsafe_arena_set_allocated_swift_prefix(
  9044. ::std::string* swift_prefix) {
  9045. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9046. if (swift_prefix != NULL) {
  9047. set_has_swift_prefix();
  9048. } else {
  9049. clear_has_swift_prefix();
  9050. }
  9051. swift_prefix_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9052. swift_prefix, GetArenaNoVirtual());
  9053. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.swift_prefix)
  9054. }
  9055. // optional string php_class_prefix = 40;
  9056. inline bool FileOptions::has_php_class_prefix() const {
  9057. return (_has_bits_[0] & 0x00000040u) != 0;
  9058. }
  9059. inline void FileOptions::set_has_php_class_prefix() {
  9060. _has_bits_[0] |= 0x00000040u;
  9061. }
  9062. inline void FileOptions::clear_has_php_class_prefix() {
  9063. _has_bits_[0] &= ~0x00000040u;
  9064. }
  9065. inline void FileOptions::clear_php_class_prefix() {
  9066. php_class_prefix_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9067. clear_has_php_class_prefix();
  9068. }
  9069. inline const ::std::string& FileOptions::php_class_prefix() const {
  9070. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_class_prefix)
  9071. return php_class_prefix_.Get();
  9072. }
  9073. inline void FileOptions::set_php_class_prefix(const ::std::string& value) {
  9074. set_has_php_class_prefix();
  9075. php_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9076. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_class_prefix)
  9077. }
  9078. #if LANG_CXX11
  9079. inline void FileOptions::set_php_class_prefix(::std::string&& value) {
  9080. set_has_php_class_prefix();
  9081. php_class_prefix_.Set(
  9082. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9083. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.php_class_prefix)
  9084. }
  9085. #endif
  9086. inline void FileOptions::set_php_class_prefix(const char* value) {
  9087. GOOGLE_DCHECK(value != NULL);
  9088. set_has_php_class_prefix();
  9089. php_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9090. GetArenaNoVirtual());
  9091. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.php_class_prefix)
  9092. }
  9093. inline void FileOptions::set_php_class_prefix(const char* value,
  9094. size_t size) {
  9095. set_has_php_class_prefix();
  9096. php_class_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9097. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9098. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.php_class_prefix)
  9099. }
  9100. inline ::std::string* FileOptions::mutable_php_class_prefix() {
  9101. set_has_php_class_prefix();
  9102. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_class_prefix)
  9103. return php_class_prefix_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9104. }
  9105. inline ::std::string* FileOptions::release_php_class_prefix() {
  9106. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_class_prefix)
  9107. if (!has_php_class_prefix()) {
  9108. return NULL;
  9109. }
  9110. clear_has_php_class_prefix();
  9111. return php_class_prefix_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9112. }
  9113. inline void FileOptions::set_allocated_php_class_prefix(::std::string* php_class_prefix) {
  9114. if (php_class_prefix != NULL) {
  9115. set_has_php_class_prefix();
  9116. } else {
  9117. clear_has_php_class_prefix();
  9118. }
  9119. php_class_prefix_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), php_class_prefix,
  9120. GetArenaNoVirtual());
  9121. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_class_prefix)
  9122. }
  9123. inline ::std::string* FileOptions::unsafe_arena_release_php_class_prefix() {
  9124. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.php_class_prefix)
  9125. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9126. clear_has_php_class_prefix();
  9127. return php_class_prefix_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9128. GetArenaNoVirtual());
  9129. }
  9130. inline void FileOptions::unsafe_arena_set_allocated_php_class_prefix(
  9131. ::std::string* php_class_prefix) {
  9132. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9133. if (php_class_prefix != NULL) {
  9134. set_has_php_class_prefix();
  9135. } else {
  9136. clear_has_php_class_prefix();
  9137. }
  9138. php_class_prefix_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9139. php_class_prefix, GetArenaNoVirtual());
  9140. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_class_prefix)
  9141. }
  9142. // optional string php_namespace = 41;
  9143. inline bool FileOptions::has_php_namespace() const {
  9144. return (_has_bits_[0] & 0x00000080u) != 0;
  9145. }
  9146. inline void FileOptions::set_has_php_namespace() {
  9147. _has_bits_[0] |= 0x00000080u;
  9148. }
  9149. inline void FileOptions::clear_has_php_namespace() {
  9150. _has_bits_[0] &= ~0x00000080u;
  9151. }
  9152. inline void FileOptions::clear_php_namespace() {
  9153. php_namespace_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9154. clear_has_php_namespace();
  9155. }
  9156. inline const ::std::string& FileOptions::php_namespace() const {
  9157. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_namespace)
  9158. return php_namespace_.Get();
  9159. }
  9160. inline void FileOptions::set_php_namespace(const ::std::string& value) {
  9161. set_has_php_namespace();
  9162. php_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9163. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_namespace)
  9164. }
  9165. #if LANG_CXX11
  9166. inline void FileOptions::set_php_namespace(::std::string&& value) {
  9167. set_has_php_namespace();
  9168. php_namespace_.Set(
  9169. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9170. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.php_namespace)
  9171. }
  9172. #endif
  9173. inline void FileOptions::set_php_namespace(const char* value) {
  9174. GOOGLE_DCHECK(value != NULL);
  9175. set_has_php_namespace();
  9176. php_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9177. GetArenaNoVirtual());
  9178. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.php_namespace)
  9179. }
  9180. inline void FileOptions::set_php_namespace(const char* value,
  9181. size_t size) {
  9182. set_has_php_namespace();
  9183. php_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9184. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9185. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.php_namespace)
  9186. }
  9187. inline ::std::string* FileOptions::mutable_php_namespace() {
  9188. set_has_php_namespace();
  9189. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_namespace)
  9190. return php_namespace_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9191. }
  9192. inline ::std::string* FileOptions::release_php_namespace() {
  9193. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_namespace)
  9194. if (!has_php_namespace()) {
  9195. return NULL;
  9196. }
  9197. clear_has_php_namespace();
  9198. return php_namespace_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9199. }
  9200. inline void FileOptions::set_allocated_php_namespace(::std::string* php_namespace) {
  9201. if (php_namespace != NULL) {
  9202. set_has_php_namespace();
  9203. } else {
  9204. clear_has_php_namespace();
  9205. }
  9206. php_namespace_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), php_namespace,
  9207. GetArenaNoVirtual());
  9208. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_namespace)
  9209. }
  9210. inline ::std::string* FileOptions::unsafe_arena_release_php_namespace() {
  9211. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.php_namespace)
  9212. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9213. clear_has_php_namespace();
  9214. return php_namespace_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9215. GetArenaNoVirtual());
  9216. }
  9217. inline void FileOptions::unsafe_arena_set_allocated_php_namespace(
  9218. ::std::string* php_namespace) {
  9219. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9220. if (php_namespace != NULL) {
  9221. set_has_php_namespace();
  9222. } else {
  9223. clear_has_php_namespace();
  9224. }
  9225. php_namespace_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9226. php_namespace, GetArenaNoVirtual());
  9227. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_namespace)
  9228. }
  9229. // optional string php_metadata_namespace = 44;
  9230. inline bool FileOptions::has_php_metadata_namespace() const {
  9231. return (_has_bits_[0] & 0x00000100u) != 0;
  9232. }
  9233. inline void FileOptions::set_has_php_metadata_namespace() {
  9234. _has_bits_[0] |= 0x00000100u;
  9235. }
  9236. inline void FileOptions::clear_has_php_metadata_namespace() {
  9237. _has_bits_[0] &= ~0x00000100u;
  9238. }
  9239. inline void FileOptions::clear_php_metadata_namespace() {
  9240. php_metadata_namespace_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9241. clear_has_php_metadata_namespace();
  9242. }
  9243. inline const ::std::string& FileOptions::php_metadata_namespace() const {
  9244. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.php_metadata_namespace)
  9245. return php_metadata_namespace_.Get();
  9246. }
  9247. inline void FileOptions::set_php_metadata_namespace(const ::std::string& value) {
  9248. set_has_php_metadata_namespace();
  9249. php_metadata_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9250. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.php_metadata_namespace)
  9251. }
  9252. #if LANG_CXX11
  9253. inline void FileOptions::set_php_metadata_namespace(::std::string&& value) {
  9254. set_has_php_metadata_namespace();
  9255. php_metadata_namespace_.Set(
  9256. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9257. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.php_metadata_namespace)
  9258. }
  9259. #endif
  9260. inline void FileOptions::set_php_metadata_namespace(const char* value) {
  9261. GOOGLE_DCHECK(value != NULL);
  9262. set_has_php_metadata_namespace();
  9263. php_metadata_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9264. GetArenaNoVirtual());
  9265. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.php_metadata_namespace)
  9266. }
  9267. inline void FileOptions::set_php_metadata_namespace(const char* value,
  9268. size_t size) {
  9269. set_has_php_metadata_namespace();
  9270. php_metadata_namespace_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9271. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9272. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.php_metadata_namespace)
  9273. }
  9274. inline ::std::string* FileOptions::mutable_php_metadata_namespace() {
  9275. set_has_php_metadata_namespace();
  9276. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.php_metadata_namespace)
  9277. return php_metadata_namespace_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9278. }
  9279. inline ::std::string* FileOptions::release_php_metadata_namespace() {
  9280. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.php_metadata_namespace)
  9281. if (!has_php_metadata_namespace()) {
  9282. return NULL;
  9283. }
  9284. clear_has_php_metadata_namespace();
  9285. return php_metadata_namespace_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9286. }
  9287. inline void FileOptions::set_allocated_php_metadata_namespace(::std::string* php_metadata_namespace) {
  9288. if (php_metadata_namespace != NULL) {
  9289. set_has_php_metadata_namespace();
  9290. } else {
  9291. clear_has_php_metadata_namespace();
  9292. }
  9293. php_metadata_namespace_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), php_metadata_namespace,
  9294. GetArenaNoVirtual());
  9295. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
  9296. }
  9297. inline ::std::string* FileOptions::unsafe_arena_release_php_metadata_namespace() {
  9298. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.php_metadata_namespace)
  9299. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9300. clear_has_php_metadata_namespace();
  9301. return php_metadata_namespace_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9302. GetArenaNoVirtual());
  9303. }
  9304. inline void FileOptions::unsafe_arena_set_allocated_php_metadata_namespace(
  9305. ::std::string* php_metadata_namespace) {
  9306. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9307. if (php_metadata_namespace != NULL) {
  9308. set_has_php_metadata_namespace();
  9309. } else {
  9310. clear_has_php_metadata_namespace();
  9311. }
  9312. php_metadata_namespace_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9313. php_metadata_namespace, GetArenaNoVirtual());
  9314. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.php_metadata_namespace)
  9315. }
  9316. // optional string ruby_package = 45;
  9317. inline bool FileOptions::has_ruby_package() const {
  9318. return (_has_bits_[0] & 0x00000200u) != 0;
  9319. }
  9320. inline void FileOptions::set_has_ruby_package() {
  9321. _has_bits_[0] |= 0x00000200u;
  9322. }
  9323. inline void FileOptions::clear_has_ruby_package() {
  9324. _has_bits_[0] &= ~0x00000200u;
  9325. }
  9326. inline void FileOptions::clear_ruby_package() {
  9327. ruby_package_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9328. clear_has_ruby_package();
  9329. }
  9330. inline const ::std::string& FileOptions::ruby_package() const {
  9331. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.ruby_package)
  9332. return ruby_package_.Get();
  9333. }
  9334. inline void FileOptions::set_ruby_package(const ::std::string& value) {
  9335. set_has_ruby_package();
  9336. ruby_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  9337. // @@protoc_insertion_point(field_set:google.protobuf.FileOptions.ruby_package)
  9338. }
  9339. #if LANG_CXX11
  9340. inline void FileOptions::set_ruby_package(::std::string&& value) {
  9341. set_has_ruby_package();
  9342. ruby_package_.Set(
  9343. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  9344. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.FileOptions.ruby_package)
  9345. }
  9346. #endif
  9347. inline void FileOptions::set_ruby_package(const char* value) {
  9348. GOOGLE_DCHECK(value != NULL);
  9349. set_has_ruby_package();
  9350. ruby_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  9351. GetArenaNoVirtual());
  9352. // @@protoc_insertion_point(field_set_char:google.protobuf.FileOptions.ruby_package)
  9353. }
  9354. inline void FileOptions::set_ruby_package(const char* value,
  9355. size_t size) {
  9356. set_has_ruby_package();
  9357. ruby_package_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  9358. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  9359. // @@protoc_insertion_point(field_set_pointer:google.protobuf.FileOptions.ruby_package)
  9360. }
  9361. inline ::std::string* FileOptions::mutable_ruby_package() {
  9362. set_has_ruby_package();
  9363. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.ruby_package)
  9364. return ruby_package_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9365. }
  9366. inline ::std::string* FileOptions::release_ruby_package() {
  9367. // @@protoc_insertion_point(field_release:google.protobuf.FileOptions.ruby_package)
  9368. if (!has_ruby_package()) {
  9369. return NULL;
  9370. }
  9371. clear_has_ruby_package();
  9372. return ruby_package_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  9373. }
  9374. inline void FileOptions::set_allocated_ruby_package(::std::string* ruby_package) {
  9375. if (ruby_package != NULL) {
  9376. set_has_ruby_package();
  9377. } else {
  9378. clear_has_ruby_package();
  9379. }
  9380. ruby_package_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ruby_package,
  9381. GetArenaNoVirtual());
  9382. // @@protoc_insertion_point(field_set_allocated:google.protobuf.FileOptions.ruby_package)
  9383. }
  9384. inline ::std::string* FileOptions::unsafe_arena_release_ruby_package() {
  9385. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.FileOptions.ruby_package)
  9386. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9387. clear_has_ruby_package();
  9388. return ruby_package_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9389. GetArenaNoVirtual());
  9390. }
  9391. inline void FileOptions::unsafe_arena_set_allocated_ruby_package(
  9392. ::std::string* ruby_package) {
  9393. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  9394. if (ruby_package != NULL) {
  9395. set_has_ruby_package();
  9396. } else {
  9397. clear_has_ruby_package();
  9398. }
  9399. ruby_package_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  9400. ruby_package, GetArenaNoVirtual());
  9401. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.FileOptions.ruby_package)
  9402. }
  9403. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9404. inline int FileOptions::uninterpreted_option_size() const {
  9405. return uninterpreted_option_.size();
  9406. }
  9407. inline void FileOptions::clear_uninterpreted_option() {
  9408. uninterpreted_option_.Clear();
  9409. }
  9410. inline ::google::protobuf::UninterpretedOption* FileOptions::mutable_uninterpreted_option(int index) {
  9411. // @@protoc_insertion_point(field_mutable:google.protobuf.FileOptions.uninterpreted_option)
  9412. return uninterpreted_option_.Mutable(index);
  9413. }
  9414. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9415. FileOptions::mutable_uninterpreted_option() {
  9416. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FileOptions.uninterpreted_option)
  9417. return &uninterpreted_option_;
  9418. }
  9419. inline const ::google::protobuf::UninterpretedOption& FileOptions::uninterpreted_option(int index) const {
  9420. // @@protoc_insertion_point(field_get:google.protobuf.FileOptions.uninterpreted_option)
  9421. return uninterpreted_option_.Get(index);
  9422. }
  9423. inline ::google::protobuf::UninterpretedOption* FileOptions::add_uninterpreted_option() {
  9424. // @@protoc_insertion_point(field_add:google.protobuf.FileOptions.uninterpreted_option)
  9425. return uninterpreted_option_.Add();
  9426. }
  9427. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9428. FileOptions::uninterpreted_option() const {
  9429. // @@protoc_insertion_point(field_list:google.protobuf.FileOptions.uninterpreted_option)
  9430. return uninterpreted_option_;
  9431. }
  9432. // -------------------------------------------------------------------
  9433. // MessageOptions
  9434. // optional bool message_set_wire_format = 1 [default = false];
  9435. inline bool MessageOptions::has_message_set_wire_format() const {
  9436. return (_has_bits_[0] & 0x00000001u) != 0;
  9437. }
  9438. inline void MessageOptions::set_has_message_set_wire_format() {
  9439. _has_bits_[0] |= 0x00000001u;
  9440. }
  9441. inline void MessageOptions::clear_has_message_set_wire_format() {
  9442. _has_bits_[0] &= ~0x00000001u;
  9443. }
  9444. inline void MessageOptions::clear_message_set_wire_format() {
  9445. message_set_wire_format_ = false;
  9446. clear_has_message_set_wire_format();
  9447. }
  9448. inline bool MessageOptions::message_set_wire_format() const {
  9449. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.message_set_wire_format)
  9450. return message_set_wire_format_;
  9451. }
  9452. inline void MessageOptions::set_message_set_wire_format(bool value) {
  9453. set_has_message_set_wire_format();
  9454. message_set_wire_format_ = value;
  9455. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.message_set_wire_format)
  9456. }
  9457. // optional bool no_standard_descriptor_accessor = 2 [default = false];
  9458. inline bool MessageOptions::has_no_standard_descriptor_accessor() const {
  9459. return (_has_bits_[0] & 0x00000002u) != 0;
  9460. }
  9461. inline void MessageOptions::set_has_no_standard_descriptor_accessor() {
  9462. _has_bits_[0] |= 0x00000002u;
  9463. }
  9464. inline void MessageOptions::clear_has_no_standard_descriptor_accessor() {
  9465. _has_bits_[0] &= ~0x00000002u;
  9466. }
  9467. inline void MessageOptions::clear_no_standard_descriptor_accessor() {
  9468. no_standard_descriptor_accessor_ = false;
  9469. clear_has_no_standard_descriptor_accessor();
  9470. }
  9471. inline bool MessageOptions::no_standard_descriptor_accessor() const {
  9472. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  9473. return no_standard_descriptor_accessor_;
  9474. }
  9475. inline void MessageOptions::set_no_standard_descriptor_accessor(bool value) {
  9476. set_has_no_standard_descriptor_accessor();
  9477. no_standard_descriptor_accessor_ = value;
  9478. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.no_standard_descriptor_accessor)
  9479. }
  9480. // optional bool deprecated = 3 [default = false];
  9481. inline bool MessageOptions::has_deprecated() const {
  9482. return (_has_bits_[0] & 0x00000004u) != 0;
  9483. }
  9484. inline void MessageOptions::set_has_deprecated() {
  9485. _has_bits_[0] |= 0x00000004u;
  9486. }
  9487. inline void MessageOptions::clear_has_deprecated() {
  9488. _has_bits_[0] &= ~0x00000004u;
  9489. }
  9490. inline void MessageOptions::clear_deprecated() {
  9491. deprecated_ = false;
  9492. clear_has_deprecated();
  9493. }
  9494. inline bool MessageOptions::deprecated() const {
  9495. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.deprecated)
  9496. return deprecated_;
  9497. }
  9498. inline void MessageOptions::set_deprecated(bool value) {
  9499. set_has_deprecated();
  9500. deprecated_ = value;
  9501. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.deprecated)
  9502. }
  9503. // optional bool map_entry = 7;
  9504. inline bool MessageOptions::has_map_entry() const {
  9505. return (_has_bits_[0] & 0x00000008u) != 0;
  9506. }
  9507. inline void MessageOptions::set_has_map_entry() {
  9508. _has_bits_[0] |= 0x00000008u;
  9509. }
  9510. inline void MessageOptions::clear_has_map_entry() {
  9511. _has_bits_[0] &= ~0x00000008u;
  9512. }
  9513. inline void MessageOptions::clear_map_entry() {
  9514. map_entry_ = false;
  9515. clear_has_map_entry();
  9516. }
  9517. inline bool MessageOptions::map_entry() const {
  9518. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.map_entry)
  9519. return map_entry_;
  9520. }
  9521. inline void MessageOptions::set_map_entry(bool value) {
  9522. set_has_map_entry();
  9523. map_entry_ = value;
  9524. // @@protoc_insertion_point(field_set:google.protobuf.MessageOptions.map_entry)
  9525. }
  9526. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9527. inline int MessageOptions::uninterpreted_option_size() const {
  9528. return uninterpreted_option_.size();
  9529. }
  9530. inline void MessageOptions::clear_uninterpreted_option() {
  9531. uninterpreted_option_.Clear();
  9532. }
  9533. inline ::google::protobuf::UninterpretedOption* MessageOptions::mutable_uninterpreted_option(int index) {
  9534. // @@protoc_insertion_point(field_mutable:google.protobuf.MessageOptions.uninterpreted_option)
  9535. return uninterpreted_option_.Mutable(index);
  9536. }
  9537. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9538. MessageOptions::mutable_uninterpreted_option() {
  9539. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MessageOptions.uninterpreted_option)
  9540. return &uninterpreted_option_;
  9541. }
  9542. inline const ::google::protobuf::UninterpretedOption& MessageOptions::uninterpreted_option(int index) const {
  9543. // @@protoc_insertion_point(field_get:google.protobuf.MessageOptions.uninterpreted_option)
  9544. return uninterpreted_option_.Get(index);
  9545. }
  9546. inline ::google::protobuf::UninterpretedOption* MessageOptions::add_uninterpreted_option() {
  9547. // @@protoc_insertion_point(field_add:google.protobuf.MessageOptions.uninterpreted_option)
  9548. return uninterpreted_option_.Add();
  9549. }
  9550. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9551. MessageOptions::uninterpreted_option() const {
  9552. // @@protoc_insertion_point(field_list:google.protobuf.MessageOptions.uninterpreted_option)
  9553. return uninterpreted_option_;
  9554. }
  9555. // -------------------------------------------------------------------
  9556. // FieldOptions
  9557. // optional .google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
  9558. inline bool FieldOptions::has_ctype() const {
  9559. return (_has_bits_[0] & 0x00000001u) != 0;
  9560. }
  9561. inline void FieldOptions::set_has_ctype() {
  9562. _has_bits_[0] |= 0x00000001u;
  9563. }
  9564. inline void FieldOptions::clear_has_ctype() {
  9565. _has_bits_[0] &= ~0x00000001u;
  9566. }
  9567. inline void FieldOptions::clear_ctype() {
  9568. ctype_ = 0;
  9569. clear_has_ctype();
  9570. }
  9571. inline ::google::protobuf::FieldOptions_CType FieldOptions::ctype() const {
  9572. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.ctype)
  9573. return static_cast< ::google::protobuf::FieldOptions_CType >(ctype_);
  9574. }
  9575. inline void FieldOptions::set_ctype(::google::protobuf::FieldOptions_CType value) {
  9576. assert(::google::protobuf::FieldOptions_CType_IsValid(value));
  9577. set_has_ctype();
  9578. ctype_ = value;
  9579. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.ctype)
  9580. }
  9581. // optional bool packed = 2;
  9582. inline bool FieldOptions::has_packed() const {
  9583. return (_has_bits_[0] & 0x00000002u) != 0;
  9584. }
  9585. inline void FieldOptions::set_has_packed() {
  9586. _has_bits_[0] |= 0x00000002u;
  9587. }
  9588. inline void FieldOptions::clear_has_packed() {
  9589. _has_bits_[0] &= ~0x00000002u;
  9590. }
  9591. inline void FieldOptions::clear_packed() {
  9592. packed_ = false;
  9593. clear_has_packed();
  9594. }
  9595. inline bool FieldOptions::packed() const {
  9596. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.packed)
  9597. return packed_;
  9598. }
  9599. inline void FieldOptions::set_packed(bool value) {
  9600. set_has_packed();
  9601. packed_ = value;
  9602. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.packed)
  9603. }
  9604. // optional .google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
  9605. inline bool FieldOptions::has_jstype() const {
  9606. return (_has_bits_[0] & 0x00000020u) != 0;
  9607. }
  9608. inline void FieldOptions::set_has_jstype() {
  9609. _has_bits_[0] |= 0x00000020u;
  9610. }
  9611. inline void FieldOptions::clear_has_jstype() {
  9612. _has_bits_[0] &= ~0x00000020u;
  9613. }
  9614. inline void FieldOptions::clear_jstype() {
  9615. jstype_ = 0;
  9616. clear_has_jstype();
  9617. }
  9618. inline ::google::protobuf::FieldOptions_JSType FieldOptions::jstype() const {
  9619. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.jstype)
  9620. return static_cast< ::google::protobuf::FieldOptions_JSType >(jstype_);
  9621. }
  9622. inline void FieldOptions::set_jstype(::google::protobuf::FieldOptions_JSType value) {
  9623. assert(::google::protobuf::FieldOptions_JSType_IsValid(value));
  9624. set_has_jstype();
  9625. jstype_ = value;
  9626. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.jstype)
  9627. }
  9628. // optional bool lazy = 5 [default = false];
  9629. inline bool FieldOptions::has_lazy() const {
  9630. return (_has_bits_[0] & 0x00000004u) != 0;
  9631. }
  9632. inline void FieldOptions::set_has_lazy() {
  9633. _has_bits_[0] |= 0x00000004u;
  9634. }
  9635. inline void FieldOptions::clear_has_lazy() {
  9636. _has_bits_[0] &= ~0x00000004u;
  9637. }
  9638. inline void FieldOptions::clear_lazy() {
  9639. lazy_ = false;
  9640. clear_has_lazy();
  9641. }
  9642. inline bool FieldOptions::lazy() const {
  9643. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.lazy)
  9644. return lazy_;
  9645. }
  9646. inline void FieldOptions::set_lazy(bool value) {
  9647. set_has_lazy();
  9648. lazy_ = value;
  9649. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.lazy)
  9650. }
  9651. // optional bool deprecated = 3 [default = false];
  9652. inline bool FieldOptions::has_deprecated() const {
  9653. return (_has_bits_[0] & 0x00000008u) != 0;
  9654. }
  9655. inline void FieldOptions::set_has_deprecated() {
  9656. _has_bits_[0] |= 0x00000008u;
  9657. }
  9658. inline void FieldOptions::clear_has_deprecated() {
  9659. _has_bits_[0] &= ~0x00000008u;
  9660. }
  9661. inline void FieldOptions::clear_deprecated() {
  9662. deprecated_ = false;
  9663. clear_has_deprecated();
  9664. }
  9665. inline bool FieldOptions::deprecated() const {
  9666. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.deprecated)
  9667. return deprecated_;
  9668. }
  9669. inline void FieldOptions::set_deprecated(bool value) {
  9670. set_has_deprecated();
  9671. deprecated_ = value;
  9672. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.deprecated)
  9673. }
  9674. // optional bool weak = 10 [default = false];
  9675. inline bool FieldOptions::has_weak() const {
  9676. return (_has_bits_[0] & 0x00000010u) != 0;
  9677. }
  9678. inline void FieldOptions::set_has_weak() {
  9679. _has_bits_[0] |= 0x00000010u;
  9680. }
  9681. inline void FieldOptions::clear_has_weak() {
  9682. _has_bits_[0] &= ~0x00000010u;
  9683. }
  9684. inline void FieldOptions::clear_weak() {
  9685. weak_ = false;
  9686. clear_has_weak();
  9687. }
  9688. inline bool FieldOptions::weak() const {
  9689. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.weak)
  9690. return weak_;
  9691. }
  9692. inline void FieldOptions::set_weak(bool value) {
  9693. set_has_weak();
  9694. weak_ = value;
  9695. // @@protoc_insertion_point(field_set:google.protobuf.FieldOptions.weak)
  9696. }
  9697. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9698. inline int FieldOptions::uninterpreted_option_size() const {
  9699. return uninterpreted_option_.size();
  9700. }
  9701. inline void FieldOptions::clear_uninterpreted_option() {
  9702. uninterpreted_option_.Clear();
  9703. }
  9704. inline ::google::protobuf::UninterpretedOption* FieldOptions::mutable_uninterpreted_option(int index) {
  9705. // @@protoc_insertion_point(field_mutable:google.protobuf.FieldOptions.uninterpreted_option)
  9706. return uninterpreted_option_.Mutable(index);
  9707. }
  9708. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9709. FieldOptions::mutable_uninterpreted_option() {
  9710. // @@protoc_insertion_point(field_mutable_list:google.protobuf.FieldOptions.uninterpreted_option)
  9711. return &uninterpreted_option_;
  9712. }
  9713. inline const ::google::protobuf::UninterpretedOption& FieldOptions::uninterpreted_option(int index) const {
  9714. // @@protoc_insertion_point(field_get:google.protobuf.FieldOptions.uninterpreted_option)
  9715. return uninterpreted_option_.Get(index);
  9716. }
  9717. inline ::google::protobuf::UninterpretedOption* FieldOptions::add_uninterpreted_option() {
  9718. // @@protoc_insertion_point(field_add:google.protobuf.FieldOptions.uninterpreted_option)
  9719. return uninterpreted_option_.Add();
  9720. }
  9721. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9722. FieldOptions::uninterpreted_option() const {
  9723. // @@protoc_insertion_point(field_list:google.protobuf.FieldOptions.uninterpreted_option)
  9724. return uninterpreted_option_;
  9725. }
  9726. // -------------------------------------------------------------------
  9727. // OneofOptions
  9728. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9729. inline int OneofOptions::uninterpreted_option_size() const {
  9730. return uninterpreted_option_.size();
  9731. }
  9732. inline void OneofOptions::clear_uninterpreted_option() {
  9733. uninterpreted_option_.Clear();
  9734. }
  9735. inline ::google::protobuf::UninterpretedOption* OneofOptions::mutable_uninterpreted_option(int index) {
  9736. // @@protoc_insertion_point(field_mutable:google.protobuf.OneofOptions.uninterpreted_option)
  9737. return uninterpreted_option_.Mutable(index);
  9738. }
  9739. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9740. OneofOptions::mutable_uninterpreted_option() {
  9741. // @@protoc_insertion_point(field_mutable_list:google.protobuf.OneofOptions.uninterpreted_option)
  9742. return &uninterpreted_option_;
  9743. }
  9744. inline const ::google::protobuf::UninterpretedOption& OneofOptions::uninterpreted_option(int index) const {
  9745. // @@protoc_insertion_point(field_get:google.protobuf.OneofOptions.uninterpreted_option)
  9746. return uninterpreted_option_.Get(index);
  9747. }
  9748. inline ::google::protobuf::UninterpretedOption* OneofOptions::add_uninterpreted_option() {
  9749. // @@protoc_insertion_point(field_add:google.protobuf.OneofOptions.uninterpreted_option)
  9750. return uninterpreted_option_.Add();
  9751. }
  9752. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9753. OneofOptions::uninterpreted_option() const {
  9754. // @@protoc_insertion_point(field_list:google.protobuf.OneofOptions.uninterpreted_option)
  9755. return uninterpreted_option_;
  9756. }
  9757. // -------------------------------------------------------------------
  9758. // EnumOptions
  9759. // optional bool allow_alias = 2;
  9760. inline bool EnumOptions::has_allow_alias() const {
  9761. return (_has_bits_[0] & 0x00000001u) != 0;
  9762. }
  9763. inline void EnumOptions::set_has_allow_alias() {
  9764. _has_bits_[0] |= 0x00000001u;
  9765. }
  9766. inline void EnumOptions::clear_has_allow_alias() {
  9767. _has_bits_[0] &= ~0x00000001u;
  9768. }
  9769. inline void EnumOptions::clear_allow_alias() {
  9770. allow_alias_ = false;
  9771. clear_has_allow_alias();
  9772. }
  9773. inline bool EnumOptions::allow_alias() const {
  9774. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.allow_alias)
  9775. return allow_alias_;
  9776. }
  9777. inline void EnumOptions::set_allow_alias(bool value) {
  9778. set_has_allow_alias();
  9779. allow_alias_ = value;
  9780. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.allow_alias)
  9781. }
  9782. // optional bool deprecated = 3 [default = false];
  9783. inline bool EnumOptions::has_deprecated() const {
  9784. return (_has_bits_[0] & 0x00000002u) != 0;
  9785. }
  9786. inline void EnumOptions::set_has_deprecated() {
  9787. _has_bits_[0] |= 0x00000002u;
  9788. }
  9789. inline void EnumOptions::clear_has_deprecated() {
  9790. _has_bits_[0] &= ~0x00000002u;
  9791. }
  9792. inline void EnumOptions::clear_deprecated() {
  9793. deprecated_ = false;
  9794. clear_has_deprecated();
  9795. }
  9796. inline bool EnumOptions::deprecated() const {
  9797. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.deprecated)
  9798. return deprecated_;
  9799. }
  9800. inline void EnumOptions::set_deprecated(bool value) {
  9801. set_has_deprecated();
  9802. deprecated_ = value;
  9803. // @@protoc_insertion_point(field_set:google.protobuf.EnumOptions.deprecated)
  9804. }
  9805. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9806. inline int EnumOptions::uninterpreted_option_size() const {
  9807. return uninterpreted_option_.size();
  9808. }
  9809. inline void EnumOptions::clear_uninterpreted_option() {
  9810. uninterpreted_option_.Clear();
  9811. }
  9812. inline ::google::protobuf::UninterpretedOption* EnumOptions::mutable_uninterpreted_option(int index) {
  9813. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumOptions.uninterpreted_option)
  9814. return uninterpreted_option_.Mutable(index);
  9815. }
  9816. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9817. EnumOptions::mutable_uninterpreted_option() {
  9818. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumOptions.uninterpreted_option)
  9819. return &uninterpreted_option_;
  9820. }
  9821. inline const ::google::protobuf::UninterpretedOption& EnumOptions::uninterpreted_option(int index) const {
  9822. // @@protoc_insertion_point(field_get:google.protobuf.EnumOptions.uninterpreted_option)
  9823. return uninterpreted_option_.Get(index);
  9824. }
  9825. inline ::google::protobuf::UninterpretedOption* EnumOptions::add_uninterpreted_option() {
  9826. // @@protoc_insertion_point(field_add:google.protobuf.EnumOptions.uninterpreted_option)
  9827. return uninterpreted_option_.Add();
  9828. }
  9829. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9830. EnumOptions::uninterpreted_option() const {
  9831. // @@protoc_insertion_point(field_list:google.protobuf.EnumOptions.uninterpreted_option)
  9832. return uninterpreted_option_;
  9833. }
  9834. // -------------------------------------------------------------------
  9835. // EnumValueOptions
  9836. // optional bool deprecated = 1 [default = false];
  9837. inline bool EnumValueOptions::has_deprecated() const {
  9838. return (_has_bits_[0] & 0x00000001u) != 0;
  9839. }
  9840. inline void EnumValueOptions::set_has_deprecated() {
  9841. _has_bits_[0] |= 0x00000001u;
  9842. }
  9843. inline void EnumValueOptions::clear_has_deprecated() {
  9844. _has_bits_[0] &= ~0x00000001u;
  9845. }
  9846. inline void EnumValueOptions::clear_deprecated() {
  9847. deprecated_ = false;
  9848. clear_has_deprecated();
  9849. }
  9850. inline bool EnumValueOptions::deprecated() const {
  9851. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.deprecated)
  9852. return deprecated_;
  9853. }
  9854. inline void EnumValueOptions::set_deprecated(bool value) {
  9855. set_has_deprecated();
  9856. deprecated_ = value;
  9857. // @@protoc_insertion_point(field_set:google.protobuf.EnumValueOptions.deprecated)
  9858. }
  9859. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9860. inline int EnumValueOptions::uninterpreted_option_size() const {
  9861. return uninterpreted_option_.size();
  9862. }
  9863. inline void EnumValueOptions::clear_uninterpreted_option() {
  9864. uninterpreted_option_.Clear();
  9865. }
  9866. inline ::google::protobuf::UninterpretedOption* EnumValueOptions::mutable_uninterpreted_option(int index) {
  9867. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValueOptions.uninterpreted_option)
  9868. return uninterpreted_option_.Mutable(index);
  9869. }
  9870. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9871. EnumValueOptions::mutable_uninterpreted_option() {
  9872. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  9873. return &uninterpreted_option_;
  9874. }
  9875. inline const ::google::protobuf::UninterpretedOption& EnumValueOptions::uninterpreted_option(int index) const {
  9876. // @@protoc_insertion_point(field_get:google.protobuf.EnumValueOptions.uninterpreted_option)
  9877. return uninterpreted_option_.Get(index);
  9878. }
  9879. inline ::google::protobuf::UninterpretedOption* EnumValueOptions::add_uninterpreted_option() {
  9880. // @@protoc_insertion_point(field_add:google.protobuf.EnumValueOptions.uninterpreted_option)
  9881. return uninterpreted_option_.Add();
  9882. }
  9883. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9884. EnumValueOptions::uninterpreted_option() const {
  9885. // @@protoc_insertion_point(field_list:google.protobuf.EnumValueOptions.uninterpreted_option)
  9886. return uninterpreted_option_;
  9887. }
  9888. // -------------------------------------------------------------------
  9889. // ServiceOptions
  9890. // optional bool deprecated = 33 [default = false];
  9891. inline bool ServiceOptions::has_deprecated() const {
  9892. return (_has_bits_[0] & 0x00000001u) != 0;
  9893. }
  9894. inline void ServiceOptions::set_has_deprecated() {
  9895. _has_bits_[0] |= 0x00000001u;
  9896. }
  9897. inline void ServiceOptions::clear_has_deprecated() {
  9898. _has_bits_[0] &= ~0x00000001u;
  9899. }
  9900. inline void ServiceOptions::clear_deprecated() {
  9901. deprecated_ = false;
  9902. clear_has_deprecated();
  9903. }
  9904. inline bool ServiceOptions::deprecated() const {
  9905. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.deprecated)
  9906. return deprecated_;
  9907. }
  9908. inline void ServiceOptions::set_deprecated(bool value) {
  9909. set_has_deprecated();
  9910. deprecated_ = value;
  9911. // @@protoc_insertion_point(field_set:google.protobuf.ServiceOptions.deprecated)
  9912. }
  9913. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9914. inline int ServiceOptions::uninterpreted_option_size() const {
  9915. return uninterpreted_option_.size();
  9916. }
  9917. inline void ServiceOptions::clear_uninterpreted_option() {
  9918. uninterpreted_option_.Clear();
  9919. }
  9920. inline ::google::protobuf::UninterpretedOption* ServiceOptions::mutable_uninterpreted_option(int index) {
  9921. // @@protoc_insertion_point(field_mutable:google.protobuf.ServiceOptions.uninterpreted_option)
  9922. return uninterpreted_option_.Mutable(index);
  9923. }
  9924. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  9925. ServiceOptions::mutable_uninterpreted_option() {
  9926. // @@protoc_insertion_point(field_mutable_list:google.protobuf.ServiceOptions.uninterpreted_option)
  9927. return &uninterpreted_option_;
  9928. }
  9929. inline const ::google::protobuf::UninterpretedOption& ServiceOptions::uninterpreted_option(int index) const {
  9930. // @@protoc_insertion_point(field_get:google.protobuf.ServiceOptions.uninterpreted_option)
  9931. return uninterpreted_option_.Get(index);
  9932. }
  9933. inline ::google::protobuf::UninterpretedOption* ServiceOptions::add_uninterpreted_option() {
  9934. // @@protoc_insertion_point(field_add:google.protobuf.ServiceOptions.uninterpreted_option)
  9935. return uninterpreted_option_.Add();
  9936. }
  9937. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  9938. ServiceOptions::uninterpreted_option() const {
  9939. // @@protoc_insertion_point(field_list:google.protobuf.ServiceOptions.uninterpreted_option)
  9940. return uninterpreted_option_;
  9941. }
  9942. // -------------------------------------------------------------------
  9943. // MethodOptions
  9944. // optional bool deprecated = 33 [default = false];
  9945. inline bool MethodOptions::has_deprecated() const {
  9946. return (_has_bits_[0] & 0x00000001u) != 0;
  9947. }
  9948. inline void MethodOptions::set_has_deprecated() {
  9949. _has_bits_[0] |= 0x00000001u;
  9950. }
  9951. inline void MethodOptions::clear_has_deprecated() {
  9952. _has_bits_[0] &= ~0x00000001u;
  9953. }
  9954. inline void MethodOptions::clear_deprecated() {
  9955. deprecated_ = false;
  9956. clear_has_deprecated();
  9957. }
  9958. inline bool MethodOptions::deprecated() const {
  9959. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.deprecated)
  9960. return deprecated_;
  9961. }
  9962. inline void MethodOptions::set_deprecated(bool value) {
  9963. set_has_deprecated();
  9964. deprecated_ = value;
  9965. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.deprecated)
  9966. }
  9967. // optional .google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
  9968. inline bool MethodOptions::has_idempotency_level() const {
  9969. return (_has_bits_[0] & 0x00000002u) != 0;
  9970. }
  9971. inline void MethodOptions::set_has_idempotency_level() {
  9972. _has_bits_[0] |= 0x00000002u;
  9973. }
  9974. inline void MethodOptions::clear_has_idempotency_level() {
  9975. _has_bits_[0] &= ~0x00000002u;
  9976. }
  9977. inline void MethodOptions::clear_idempotency_level() {
  9978. idempotency_level_ = 0;
  9979. clear_has_idempotency_level();
  9980. }
  9981. inline ::google::protobuf::MethodOptions_IdempotencyLevel MethodOptions::idempotency_level() const {
  9982. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.idempotency_level)
  9983. return static_cast< ::google::protobuf::MethodOptions_IdempotencyLevel >(idempotency_level_);
  9984. }
  9985. inline void MethodOptions::set_idempotency_level(::google::protobuf::MethodOptions_IdempotencyLevel value) {
  9986. assert(::google::protobuf::MethodOptions_IdempotencyLevel_IsValid(value));
  9987. set_has_idempotency_level();
  9988. idempotency_level_ = value;
  9989. // @@protoc_insertion_point(field_set:google.protobuf.MethodOptions.idempotency_level)
  9990. }
  9991. // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
  9992. inline int MethodOptions::uninterpreted_option_size() const {
  9993. return uninterpreted_option_.size();
  9994. }
  9995. inline void MethodOptions::clear_uninterpreted_option() {
  9996. uninterpreted_option_.Clear();
  9997. }
  9998. inline ::google::protobuf::UninterpretedOption* MethodOptions::mutable_uninterpreted_option(int index) {
  9999. // @@protoc_insertion_point(field_mutable:google.protobuf.MethodOptions.uninterpreted_option)
  10000. return uninterpreted_option_.Mutable(index);
  10001. }
  10002. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >*
  10003. MethodOptions::mutable_uninterpreted_option() {
  10004. // @@protoc_insertion_point(field_mutable_list:google.protobuf.MethodOptions.uninterpreted_option)
  10005. return &uninterpreted_option_;
  10006. }
  10007. inline const ::google::protobuf::UninterpretedOption& MethodOptions::uninterpreted_option(int index) const {
  10008. // @@protoc_insertion_point(field_get:google.protobuf.MethodOptions.uninterpreted_option)
  10009. return uninterpreted_option_.Get(index);
  10010. }
  10011. inline ::google::protobuf::UninterpretedOption* MethodOptions::add_uninterpreted_option() {
  10012. // @@protoc_insertion_point(field_add:google.protobuf.MethodOptions.uninterpreted_option)
  10013. return uninterpreted_option_.Add();
  10014. }
  10015. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption >&
  10016. MethodOptions::uninterpreted_option() const {
  10017. // @@protoc_insertion_point(field_list:google.protobuf.MethodOptions.uninterpreted_option)
  10018. return uninterpreted_option_;
  10019. }
  10020. // -------------------------------------------------------------------
  10021. // UninterpretedOption_NamePart
  10022. // required string name_part = 1;
  10023. inline bool UninterpretedOption_NamePart::has_name_part() const {
  10024. return (_has_bits_[0] & 0x00000001u) != 0;
  10025. }
  10026. inline void UninterpretedOption_NamePart::set_has_name_part() {
  10027. _has_bits_[0] |= 0x00000001u;
  10028. }
  10029. inline void UninterpretedOption_NamePart::clear_has_name_part() {
  10030. _has_bits_[0] &= ~0x00000001u;
  10031. }
  10032. inline void UninterpretedOption_NamePart::clear_name_part() {
  10033. name_part_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10034. clear_has_name_part();
  10035. }
  10036. inline const ::std::string& UninterpretedOption_NamePart::name_part() const {
  10037. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.name_part)
  10038. return name_part_.Get();
  10039. }
  10040. inline void UninterpretedOption_NamePart::set_name_part(const ::std::string& value) {
  10041. set_has_name_part();
  10042. name_part_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10043. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.name_part)
  10044. }
  10045. #if LANG_CXX11
  10046. inline void UninterpretedOption_NamePart::set_name_part(::std::string&& value) {
  10047. set_has_name_part();
  10048. name_part_.Set(
  10049. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10050. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.NamePart.name_part)
  10051. }
  10052. #endif
  10053. inline void UninterpretedOption_NamePart::set_name_part(const char* value) {
  10054. GOOGLE_DCHECK(value != NULL);
  10055. set_has_name_part();
  10056. name_part_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10057. GetArenaNoVirtual());
  10058. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.NamePart.name_part)
  10059. }
  10060. inline void UninterpretedOption_NamePart::set_name_part(const char* value,
  10061. size_t size) {
  10062. set_has_name_part();
  10063. name_part_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10064. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10065. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.NamePart.name_part)
  10066. }
  10067. inline ::std::string* UninterpretedOption_NamePart::mutable_name_part() {
  10068. set_has_name_part();
  10069. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.NamePart.name_part)
  10070. return name_part_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10071. }
  10072. inline ::std::string* UninterpretedOption_NamePart::release_name_part() {
  10073. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.NamePart.name_part)
  10074. if (!has_name_part()) {
  10075. return NULL;
  10076. }
  10077. clear_has_name_part();
  10078. return name_part_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10079. }
  10080. inline void UninterpretedOption_NamePart::set_allocated_name_part(::std::string* name_part) {
  10081. if (name_part != NULL) {
  10082. set_has_name_part();
  10083. } else {
  10084. clear_has_name_part();
  10085. }
  10086. name_part_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name_part,
  10087. GetArenaNoVirtual());
  10088. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  10089. }
  10090. inline ::std::string* UninterpretedOption_NamePart::unsafe_arena_release_name_part() {
  10091. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.NamePart.name_part)
  10092. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10093. clear_has_name_part();
  10094. return name_part_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10095. GetArenaNoVirtual());
  10096. }
  10097. inline void UninterpretedOption_NamePart::unsafe_arena_set_allocated_name_part(
  10098. ::std::string* name_part) {
  10099. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10100. if (name_part != NULL) {
  10101. set_has_name_part();
  10102. } else {
  10103. clear_has_name_part();
  10104. }
  10105. name_part_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10106. name_part, GetArenaNoVirtual());
  10107. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.NamePart.name_part)
  10108. }
  10109. // required bool is_extension = 2;
  10110. inline bool UninterpretedOption_NamePart::has_is_extension() const {
  10111. return (_has_bits_[0] & 0x00000002u) != 0;
  10112. }
  10113. inline void UninterpretedOption_NamePart::set_has_is_extension() {
  10114. _has_bits_[0] |= 0x00000002u;
  10115. }
  10116. inline void UninterpretedOption_NamePart::clear_has_is_extension() {
  10117. _has_bits_[0] &= ~0x00000002u;
  10118. }
  10119. inline void UninterpretedOption_NamePart::clear_is_extension() {
  10120. is_extension_ = false;
  10121. clear_has_is_extension();
  10122. }
  10123. inline bool UninterpretedOption_NamePart::is_extension() const {
  10124. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.NamePart.is_extension)
  10125. return is_extension_;
  10126. }
  10127. inline void UninterpretedOption_NamePart::set_is_extension(bool value) {
  10128. set_has_is_extension();
  10129. is_extension_ = value;
  10130. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.NamePart.is_extension)
  10131. }
  10132. // -------------------------------------------------------------------
  10133. // UninterpretedOption
  10134. // repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
  10135. inline int UninterpretedOption::name_size() const {
  10136. return name_.size();
  10137. }
  10138. inline void UninterpretedOption::clear_name() {
  10139. name_.Clear();
  10140. }
  10141. inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::mutable_name(int index) {
  10142. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.name)
  10143. return name_.Mutable(index);
  10144. }
  10145. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >*
  10146. UninterpretedOption::mutable_name() {
  10147. // @@protoc_insertion_point(field_mutable_list:google.protobuf.UninterpretedOption.name)
  10148. return &name_;
  10149. }
  10150. inline const ::google::protobuf::UninterpretedOption_NamePart& UninterpretedOption::name(int index) const {
  10151. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.name)
  10152. return name_.Get(index);
  10153. }
  10154. inline ::google::protobuf::UninterpretedOption_NamePart* UninterpretedOption::add_name() {
  10155. // @@protoc_insertion_point(field_add:google.protobuf.UninterpretedOption.name)
  10156. return name_.Add();
  10157. }
  10158. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::UninterpretedOption_NamePart >&
  10159. UninterpretedOption::name() const {
  10160. // @@protoc_insertion_point(field_list:google.protobuf.UninterpretedOption.name)
  10161. return name_;
  10162. }
  10163. // optional string identifier_value = 3;
  10164. inline bool UninterpretedOption::has_identifier_value() const {
  10165. return (_has_bits_[0] & 0x00000001u) != 0;
  10166. }
  10167. inline void UninterpretedOption::set_has_identifier_value() {
  10168. _has_bits_[0] |= 0x00000001u;
  10169. }
  10170. inline void UninterpretedOption::clear_has_identifier_value() {
  10171. _has_bits_[0] &= ~0x00000001u;
  10172. }
  10173. inline void UninterpretedOption::clear_identifier_value() {
  10174. identifier_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10175. clear_has_identifier_value();
  10176. }
  10177. inline const ::std::string& UninterpretedOption::identifier_value() const {
  10178. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.identifier_value)
  10179. return identifier_value_.Get();
  10180. }
  10181. inline void UninterpretedOption::set_identifier_value(const ::std::string& value) {
  10182. set_has_identifier_value();
  10183. identifier_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10184. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.identifier_value)
  10185. }
  10186. #if LANG_CXX11
  10187. inline void UninterpretedOption::set_identifier_value(::std::string&& value) {
  10188. set_has_identifier_value();
  10189. identifier_value_.Set(
  10190. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10191. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.identifier_value)
  10192. }
  10193. #endif
  10194. inline void UninterpretedOption::set_identifier_value(const char* value) {
  10195. GOOGLE_DCHECK(value != NULL);
  10196. set_has_identifier_value();
  10197. identifier_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10198. GetArenaNoVirtual());
  10199. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.identifier_value)
  10200. }
  10201. inline void UninterpretedOption::set_identifier_value(const char* value,
  10202. size_t size) {
  10203. set_has_identifier_value();
  10204. identifier_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10205. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10206. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.identifier_value)
  10207. }
  10208. inline ::std::string* UninterpretedOption::mutable_identifier_value() {
  10209. set_has_identifier_value();
  10210. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.identifier_value)
  10211. return identifier_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10212. }
  10213. inline ::std::string* UninterpretedOption::release_identifier_value() {
  10214. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.identifier_value)
  10215. if (!has_identifier_value()) {
  10216. return NULL;
  10217. }
  10218. clear_has_identifier_value();
  10219. return identifier_value_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10220. }
  10221. inline void UninterpretedOption::set_allocated_identifier_value(::std::string* identifier_value) {
  10222. if (identifier_value != NULL) {
  10223. set_has_identifier_value();
  10224. } else {
  10225. clear_has_identifier_value();
  10226. }
  10227. identifier_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), identifier_value,
  10228. GetArenaNoVirtual());
  10229. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  10230. }
  10231. inline ::std::string* UninterpretedOption::unsafe_arena_release_identifier_value() {
  10232. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.identifier_value)
  10233. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10234. clear_has_identifier_value();
  10235. return identifier_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10236. GetArenaNoVirtual());
  10237. }
  10238. inline void UninterpretedOption::unsafe_arena_set_allocated_identifier_value(
  10239. ::std::string* identifier_value) {
  10240. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10241. if (identifier_value != NULL) {
  10242. set_has_identifier_value();
  10243. } else {
  10244. clear_has_identifier_value();
  10245. }
  10246. identifier_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10247. identifier_value, GetArenaNoVirtual());
  10248. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.identifier_value)
  10249. }
  10250. // optional uint64 positive_int_value = 4;
  10251. inline bool UninterpretedOption::has_positive_int_value() const {
  10252. return (_has_bits_[0] & 0x00000008u) != 0;
  10253. }
  10254. inline void UninterpretedOption::set_has_positive_int_value() {
  10255. _has_bits_[0] |= 0x00000008u;
  10256. }
  10257. inline void UninterpretedOption::clear_has_positive_int_value() {
  10258. _has_bits_[0] &= ~0x00000008u;
  10259. }
  10260. inline void UninterpretedOption::clear_positive_int_value() {
  10261. positive_int_value_ = GOOGLE_ULONGLONG(0);
  10262. clear_has_positive_int_value();
  10263. }
  10264. inline ::google::protobuf::uint64 UninterpretedOption::positive_int_value() const {
  10265. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.positive_int_value)
  10266. return positive_int_value_;
  10267. }
  10268. inline void UninterpretedOption::set_positive_int_value(::google::protobuf::uint64 value) {
  10269. set_has_positive_int_value();
  10270. positive_int_value_ = value;
  10271. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.positive_int_value)
  10272. }
  10273. // optional int64 negative_int_value = 5;
  10274. inline bool UninterpretedOption::has_negative_int_value() const {
  10275. return (_has_bits_[0] & 0x00000010u) != 0;
  10276. }
  10277. inline void UninterpretedOption::set_has_negative_int_value() {
  10278. _has_bits_[0] |= 0x00000010u;
  10279. }
  10280. inline void UninterpretedOption::clear_has_negative_int_value() {
  10281. _has_bits_[0] &= ~0x00000010u;
  10282. }
  10283. inline void UninterpretedOption::clear_negative_int_value() {
  10284. negative_int_value_ = GOOGLE_LONGLONG(0);
  10285. clear_has_negative_int_value();
  10286. }
  10287. inline ::google::protobuf::int64 UninterpretedOption::negative_int_value() const {
  10288. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.negative_int_value)
  10289. return negative_int_value_;
  10290. }
  10291. inline void UninterpretedOption::set_negative_int_value(::google::protobuf::int64 value) {
  10292. set_has_negative_int_value();
  10293. negative_int_value_ = value;
  10294. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.negative_int_value)
  10295. }
  10296. // optional double double_value = 6;
  10297. inline bool UninterpretedOption::has_double_value() const {
  10298. return (_has_bits_[0] & 0x00000020u) != 0;
  10299. }
  10300. inline void UninterpretedOption::set_has_double_value() {
  10301. _has_bits_[0] |= 0x00000020u;
  10302. }
  10303. inline void UninterpretedOption::clear_has_double_value() {
  10304. _has_bits_[0] &= ~0x00000020u;
  10305. }
  10306. inline void UninterpretedOption::clear_double_value() {
  10307. double_value_ = 0;
  10308. clear_has_double_value();
  10309. }
  10310. inline double UninterpretedOption::double_value() const {
  10311. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.double_value)
  10312. return double_value_;
  10313. }
  10314. inline void UninterpretedOption::set_double_value(double value) {
  10315. set_has_double_value();
  10316. double_value_ = value;
  10317. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.double_value)
  10318. }
  10319. // optional bytes string_value = 7;
  10320. inline bool UninterpretedOption::has_string_value() const {
  10321. return (_has_bits_[0] & 0x00000002u) != 0;
  10322. }
  10323. inline void UninterpretedOption::set_has_string_value() {
  10324. _has_bits_[0] |= 0x00000002u;
  10325. }
  10326. inline void UninterpretedOption::clear_has_string_value() {
  10327. _has_bits_[0] &= ~0x00000002u;
  10328. }
  10329. inline void UninterpretedOption::clear_string_value() {
  10330. string_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10331. clear_has_string_value();
  10332. }
  10333. inline const ::std::string& UninterpretedOption::string_value() const {
  10334. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.string_value)
  10335. return string_value_.Get();
  10336. }
  10337. inline void UninterpretedOption::set_string_value(const ::std::string& value) {
  10338. set_has_string_value();
  10339. string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10340. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.string_value)
  10341. }
  10342. #if LANG_CXX11
  10343. inline void UninterpretedOption::set_string_value(::std::string&& value) {
  10344. set_has_string_value();
  10345. string_value_.Set(
  10346. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10347. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.string_value)
  10348. }
  10349. #endif
  10350. inline void UninterpretedOption::set_string_value(const char* value) {
  10351. GOOGLE_DCHECK(value != NULL);
  10352. set_has_string_value();
  10353. string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10354. GetArenaNoVirtual());
  10355. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.string_value)
  10356. }
  10357. inline void UninterpretedOption::set_string_value(const void* value,
  10358. size_t size) {
  10359. set_has_string_value();
  10360. string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10361. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10362. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.string_value)
  10363. }
  10364. inline ::std::string* UninterpretedOption::mutable_string_value() {
  10365. set_has_string_value();
  10366. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.string_value)
  10367. return string_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10368. }
  10369. inline ::std::string* UninterpretedOption::release_string_value() {
  10370. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.string_value)
  10371. if (!has_string_value()) {
  10372. return NULL;
  10373. }
  10374. clear_has_string_value();
  10375. return string_value_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10376. }
  10377. inline void UninterpretedOption::set_allocated_string_value(::std::string* string_value) {
  10378. if (string_value != NULL) {
  10379. set_has_string_value();
  10380. } else {
  10381. clear_has_string_value();
  10382. }
  10383. string_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value,
  10384. GetArenaNoVirtual());
  10385. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.string_value)
  10386. }
  10387. inline ::std::string* UninterpretedOption::unsafe_arena_release_string_value() {
  10388. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.string_value)
  10389. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10390. clear_has_string_value();
  10391. return string_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10392. GetArenaNoVirtual());
  10393. }
  10394. inline void UninterpretedOption::unsafe_arena_set_allocated_string_value(
  10395. ::std::string* string_value) {
  10396. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10397. if (string_value != NULL) {
  10398. set_has_string_value();
  10399. } else {
  10400. clear_has_string_value();
  10401. }
  10402. string_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10403. string_value, GetArenaNoVirtual());
  10404. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.string_value)
  10405. }
  10406. // optional string aggregate_value = 8;
  10407. inline bool UninterpretedOption::has_aggregate_value() const {
  10408. return (_has_bits_[0] & 0x00000004u) != 0;
  10409. }
  10410. inline void UninterpretedOption::set_has_aggregate_value() {
  10411. _has_bits_[0] |= 0x00000004u;
  10412. }
  10413. inline void UninterpretedOption::clear_has_aggregate_value() {
  10414. _has_bits_[0] &= ~0x00000004u;
  10415. }
  10416. inline void UninterpretedOption::clear_aggregate_value() {
  10417. aggregate_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10418. clear_has_aggregate_value();
  10419. }
  10420. inline const ::std::string& UninterpretedOption::aggregate_value() const {
  10421. // @@protoc_insertion_point(field_get:google.protobuf.UninterpretedOption.aggregate_value)
  10422. return aggregate_value_.Get();
  10423. }
  10424. inline void UninterpretedOption::set_aggregate_value(const ::std::string& value) {
  10425. set_has_aggregate_value();
  10426. aggregate_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10427. // @@protoc_insertion_point(field_set:google.protobuf.UninterpretedOption.aggregate_value)
  10428. }
  10429. #if LANG_CXX11
  10430. inline void UninterpretedOption::set_aggregate_value(::std::string&& value) {
  10431. set_has_aggregate_value();
  10432. aggregate_value_.Set(
  10433. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10434. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.UninterpretedOption.aggregate_value)
  10435. }
  10436. #endif
  10437. inline void UninterpretedOption::set_aggregate_value(const char* value) {
  10438. GOOGLE_DCHECK(value != NULL);
  10439. set_has_aggregate_value();
  10440. aggregate_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10441. GetArenaNoVirtual());
  10442. // @@protoc_insertion_point(field_set_char:google.protobuf.UninterpretedOption.aggregate_value)
  10443. }
  10444. inline void UninterpretedOption::set_aggregate_value(const char* value,
  10445. size_t size) {
  10446. set_has_aggregate_value();
  10447. aggregate_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10448. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10449. // @@protoc_insertion_point(field_set_pointer:google.protobuf.UninterpretedOption.aggregate_value)
  10450. }
  10451. inline ::std::string* UninterpretedOption::mutable_aggregate_value() {
  10452. set_has_aggregate_value();
  10453. // @@protoc_insertion_point(field_mutable:google.protobuf.UninterpretedOption.aggregate_value)
  10454. return aggregate_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10455. }
  10456. inline ::std::string* UninterpretedOption::release_aggregate_value() {
  10457. // @@protoc_insertion_point(field_release:google.protobuf.UninterpretedOption.aggregate_value)
  10458. if (!has_aggregate_value()) {
  10459. return NULL;
  10460. }
  10461. clear_has_aggregate_value();
  10462. return aggregate_value_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10463. }
  10464. inline void UninterpretedOption::set_allocated_aggregate_value(::std::string* aggregate_value) {
  10465. if (aggregate_value != NULL) {
  10466. set_has_aggregate_value();
  10467. } else {
  10468. clear_has_aggregate_value();
  10469. }
  10470. aggregate_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), aggregate_value,
  10471. GetArenaNoVirtual());
  10472. // @@protoc_insertion_point(field_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  10473. }
  10474. inline ::std::string* UninterpretedOption::unsafe_arena_release_aggregate_value() {
  10475. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.UninterpretedOption.aggregate_value)
  10476. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10477. clear_has_aggregate_value();
  10478. return aggregate_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10479. GetArenaNoVirtual());
  10480. }
  10481. inline void UninterpretedOption::unsafe_arena_set_allocated_aggregate_value(
  10482. ::std::string* aggregate_value) {
  10483. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10484. if (aggregate_value != NULL) {
  10485. set_has_aggregate_value();
  10486. } else {
  10487. clear_has_aggregate_value();
  10488. }
  10489. aggregate_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10490. aggregate_value, GetArenaNoVirtual());
  10491. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.UninterpretedOption.aggregate_value)
  10492. }
  10493. // -------------------------------------------------------------------
  10494. // SourceCodeInfo_Location
  10495. // repeated int32 path = 1 [packed = true];
  10496. inline int SourceCodeInfo_Location::path_size() const {
  10497. return path_.size();
  10498. }
  10499. inline void SourceCodeInfo_Location::clear_path() {
  10500. path_.Clear();
  10501. }
  10502. inline ::google::protobuf::int32 SourceCodeInfo_Location::path(int index) const {
  10503. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.path)
  10504. return path_.Get(index);
  10505. }
  10506. inline void SourceCodeInfo_Location::set_path(int index, ::google::protobuf::int32 value) {
  10507. path_.Set(index, value);
  10508. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.path)
  10509. }
  10510. inline void SourceCodeInfo_Location::add_path(::google::protobuf::int32 value) {
  10511. path_.Add(value);
  10512. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.path)
  10513. }
  10514. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  10515. SourceCodeInfo_Location::path() const {
  10516. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.path)
  10517. return path_;
  10518. }
  10519. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  10520. SourceCodeInfo_Location::mutable_path() {
  10521. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.path)
  10522. return &path_;
  10523. }
  10524. // repeated int32 span = 2 [packed = true];
  10525. inline int SourceCodeInfo_Location::span_size() const {
  10526. return span_.size();
  10527. }
  10528. inline void SourceCodeInfo_Location::clear_span() {
  10529. span_.Clear();
  10530. }
  10531. inline ::google::protobuf::int32 SourceCodeInfo_Location::span(int index) const {
  10532. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.span)
  10533. return span_.Get(index);
  10534. }
  10535. inline void SourceCodeInfo_Location::set_span(int index, ::google::protobuf::int32 value) {
  10536. span_.Set(index, value);
  10537. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.span)
  10538. }
  10539. inline void SourceCodeInfo_Location::add_span(::google::protobuf::int32 value) {
  10540. span_.Add(value);
  10541. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.span)
  10542. }
  10543. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  10544. SourceCodeInfo_Location::span() const {
  10545. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.span)
  10546. return span_;
  10547. }
  10548. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  10549. SourceCodeInfo_Location::mutable_span() {
  10550. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.span)
  10551. return &span_;
  10552. }
  10553. // optional string leading_comments = 3;
  10554. inline bool SourceCodeInfo_Location::has_leading_comments() const {
  10555. return (_has_bits_[0] & 0x00000001u) != 0;
  10556. }
  10557. inline void SourceCodeInfo_Location::set_has_leading_comments() {
  10558. _has_bits_[0] |= 0x00000001u;
  10559. }
  10560. inline void SourceCodeInfo_Location::clear_has_leading_comments() {
  10561. _has_bits_[0] &= ~0x00000001u;
  10562. }
  10563. inline void SourceCodeInfo_Location::clear_leading_comments() {
  10564. leading_comments_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10565. clear_has_leading_comments();
  10566. }
  10567. inline const ::std::string& SourceCodeInfo_Location::leading_comments() const {
  10568. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10569. return leading_comments_.Get();
  10570. }
  10571. inline void SourceCodeInfo_Location::set_leading_comments(const ::std::string& value) {
  10572. set_has_leading_comments();
  10573. leading_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10574. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10575. }
  10576. #if LANG_CXX11
  10577. inline void SourceCodeInfo_Location::set_leading_comments(::std::string&& value) {
  10578. set_has_leading_comments();
  10579. leading_comments_.Set(
  10580. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10581. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10582. }
  10583. #endif
  10584. inline void SourceCodeInfo_Location::set_leading_comments(const char* value) {
  10585. GOOGLE_DCHECK(value != NULL);
  10586. set_has_leading_comments();
  10587. leading_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10588. GetArenaNoVirtual());
  10589. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10590. }
  10591. inline void SourceCodeInfo_Location::set_leading_comments(const char* value,
  10592. size_t size) {
  10593. set_has_leading_comments();
  10594. leading_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10595. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10596. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10597. }
  10598. inline ::std::string* SourceCodeInfo_Location::mutable_leading_comments() {
  10599. set_has_leading_comments();
  10600. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10601. return leading_comments_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10602. }
  10603. inline ::std::string* SourceCodeInfo_Location::release_leading_comments() {
  10604. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10605. if (!has_leading_comments()) {
  10606. return NULL;
  10607. }
  10608. clear_has_leading_comments();
  10609. return leading_comments_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10610. }
  10611. inline void SourceCodeInfo_Location::set_allocated_leading_comments(::std::string* leading_comments) {
  10612. if (leading_comments != NULL) {
  10613. set_has_leading_comments();
  10614. } else {
  10615. clear_has_leading_comments();
  10616. }
  10617. leading_comments_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), leading_comments,
  10618. GetArenaNoVirtual());
  10619. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10620. }
  10621. inline ::std::string* SourceCodeInfo_Location::unsafe_arena_release_leading_comments() {
  10622. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10623. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10624. clear_has_leading_comments();
  10625. return leading_comments_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10626. GetArenaNoVirtual());
  10627. }
  10628. inline void SourceCodeInfo_Location::unsafe_arena_set_allocated_leading_comments(
  10629. ::std::string* leading_comments) {
  10630. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10631. if (leading_comments != NULL) {
  10632. set_has_leading_comments();
  10633. } else {
  10634. clear_has_leading_comments();
  10635. }
  10636. leading_comments_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10637. leading_comments, GetArenaNoVirtual());
  10638. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.SourceCodeInfo.Location.leading_comments)
  10639. }
  10640. // optional string trailing_comments = 4;
  10641. inline bool SourceCodeInfo_Location::has_trailing_comments() const {
  10642. return (_has_bits_[0] & 0x00000002u) != 0;
  10643. }
  10644. inline void SourceCodeInfo_Location::set_has_trailing_comments() {
  10645. _has_bits_[0] |= 0x00000002u;
  10646. }
  10647. inline void SourceCodeInfo_Location::clear_has_trailing_comments() {
  10648. _has_bits_[0] &= ~0x00000002u;
  10649. }
  10650. inline void SourceCodeInfo_Location::clear_trailing_comments() {
  10651. trailing_comments_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10652. clear_has_trailing_comments();
  10653. }
  10654. inline const ::std::string& SourceCodeInfo_Location::trailing_comments() const {
  10655. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10656. return trailing_comments_.Get();
  10657. }
  10658. inline void SourceCodeInfo_Location::set_trailing_comments(const ::std::string& value) {
  10659. set_has_trailing_comments();
  10660. trailing_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10661. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10662. }
  10663. #if LANG_CXX11
  10664. inline void SourceCodeInfo_Location::set_trailing_comments(::std::string&& value) {
  10665. set_has_trailing_comments();
  10666. trailing_comments_.Set(
  10667. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10668. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10669. }
  10670. #endif
  10671. inline void SourceCodeInfo_Location::set_trailing_comments(const char* value) {
  10672. GOOGLE_DCHECK(value != NULL);
  10673. set_has_trailing_comments();
  10674. trailing_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10675. GetArenaNoVirtual());
  10676. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10677. }
  10678. inline void SourceCodeInfo_Location::set_trailing_comments(const char* value,
  10679. size_t size) {
  10680. set_has_trailing_comments();
  10681. trailing_comments_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10682. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10683. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10684. }
  10685. inline ::std::string* SourceCodeInfo_Location::mutable_trailing_comments() {
  10686. set_has_trailing_comments();
  10687. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10688. return trailing_comments_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10689. }
  10690. inline ::std::string* SourceCodeInfo_Location::release_trailing_comments() {
  10691. // @@protoc_insertion_point(field_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10692. if (!has_trailing_comments()) {
  10693. return NULL;
  10694. }
  10695. clear_has_trailing_comments();
  10696. return trailing_comments_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10697. }
  10698. inline void SourceCodeInfo_Location::set_allocated_trailing_comments(::std::string* trailing_comments) {
  10699. if (trailing_comments != NULL) {
  10700. set_has_trailing_comments();
  10701. } else {
  10702. clear_has_trailing_comments();
  10703. }
  10704. trailing_comments_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), trailing_comments,
  10705. GetArenaNoVirtual());
  10706. // @@protoc_insertion_point(field_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10707. }
  10708. inline ::std::string* SourceCodeInfo_Location::unsafe_arena_release_trailing_comments() {
  10709. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10710. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10711. clear_has_trailing_comments();
  10712. return trailing_comments_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10713. GetArenaNoVirtual());
  10714. }
  10715. inline void SourceCodeInfo_Location::unsafe_arena_set_allocated_trailing_comments(
  10716. ::std::string* trailing_comments) {
  10717. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10718. if (trailing_comments != NULL) {
  10719. set_has_trailing_comments();
  10720. } else {
  10721. clear_has_trailing_comments();
  10722. }
  10723. trailing_comments_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10724. trailing_comments, GetArenaNoVirtual());
  10725. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.SourceCodeInfo.Location.trailing_comments)
  10726. }
  10727. // repeated string leading_detached_comments = 6;
  10728. inline int SourceCodeInfo_Location::leading_detached_comments_size() const {
  10729. return leading_detached_comments_.size();
  10730. }
  10731. inline void SourceCodeInfo_Location::clear_leading_detached_comments() {
  10732. leading_detached_comments_.Clear();
  10733. }
  10734. inline const ::std::string& SourceCodeInfo_Location::leading_detached_comments(int index) const {
  10735. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10736. return leading_detached_comments_.Get(index);
  10737. }
  10738. inline ::std::string* SourceCodeInfo_Location::mutable_leading_detached_comments(int index) {
  10739. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10740. return leading_detached_comments_.Mutable(index);
  10741. }
  10742. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const ::std::string& value) {
  10743. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10744. leading_detached_comments_.Mutable(index)->assign(value);
  10745. }
  10746. #if LANG_CXX11
  10747. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, ::std::string&& value) {
  10748. // @@protoc_insertion_point(field_set:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10749. leading_detached_comments_.Mutable(index)->assign(std::move(value));
  10750. }
  10751. #endif
  10752. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value) {
  10753. GOOGLE_DCHECK(value != NULL);
  10754. leading_detached_comments_.Mutable(index)->assign(value);
  10755. // @@protoc_insertion_point(field_set_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10756. }
  10757. inline void SourceCodeInfo_Location::set_leading_detached_comments(int index, const char* value, size_t size) {
  10758. leading_detached_comments_.Mutable(index)->assign(
  10759. reinterpret_cast<const char*>(value), size);
  10760. // @@protoc_insertion_point(field_set_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10761. }
  10762. inline ::std::string* SourceCodeInfo_Location::add_leading_detached_comments() {
  10763. // @@protoc_insertion_point(field_add_mutable:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10764. return leading_detached_comments_.Add();
  10765. }
  10766. inline void SourceCodeInfo_Location::add_leading_detached_comments(const ::std::string& value) {
  10767. leading_detached_comments_.Add()->assign(value);
  10768. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10769. }
  10770. #if LANG_CXX11
  10771. inline void SourceCodeInfo_Location::add_leading_detached_comments(::std::string&& value) {
  10772. leading_detached_comments_.Add(std::move(value));
  10773. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10774. }
  10775. #endif
  10776. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value) {
  10777. GOOGLE_DCHECK(value != NULL);
  10778. leading_detached_comments_.Add()->assign(value);
  10779. // @@protoc_insertion_point(field_add_char:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10780. }
  10781. inline void SourceCodeInfo_Location::add_leading_detached_comments(const char* value, size_t size) {
  10782. leading_detached_comments_.Add()->assign(reinterpret_cast<const char*>(value), size);
  10783. // @@protoc_insertion_point(field_add_pointer:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10784. }
  10785. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  10786. SourceCodeInfo_Location::leading_detached_comments() const {
  10787. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10788. return leading_detached_comments_;
  10789. }
  10790. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  10791. SourceCodeInfo_Location::mutable_leading_detached_comments() {
  10792. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.Location.leading_detached_comments)
  10793. return &leading_detached_comments_;
  10794. }
  10795. // -------------------------------------------------------------------
  10796. // SourceCodeInfo
  10797. // repeated .google.protobuf.SourceCodeInfo.Location location = 1;
  10798. inline int SourceCodeInfo::location_size() const {
  10799. return location_.size();
  10800. }
  10801. inline void SourceCodeInfo::clear_location() {
  10802. location_.Clear();
  10803. }
  10804. inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::mutable_location(int index) {
  10805. // @@protoc_insertion_point(field_mutable:google.protobuf.SourceCodeInfo.location)
  10806. return location_.Mutable(index);
  10807. }
  10808. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >*
  10809. SourceCodeInfo::mutable_location() {
  10810. // @@protoc_insertion_point(field_mutable_list:google.protobuf.SourceCodeInfo.location)
  10811. return &location_;
  10812. }
  10813. inline const ::google::protobuf::SourceCodeInfo_Location& SourceCodeInfo::location(int index) const {
  10814. // @@protoc_insertion_point(field_get:google.protobuf.SourceCodeInfo.location)
  10815. return location_.Get(index);
  10816. }
  10817. inline ::google::protobuf::SourceCodeInfo_Location* SourceCodeInfo::add_location() {
  10818. // @@protoc_insertion_point(field_add:google.protobuf.SourceCodeInfo.location)
  10819. return location_.Add();
  10820. }
  10821. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::SourceCodeInfo_Location >&
  10822. SourceCodeInfo::location() const {
  10823. // @@protoc_insertion_point(field_list:google.protobuf.SourceCodeInfo.location)
  10824. return location_;
  10825. }
  10826. // -------------------------------------------------------------------
  10827. // GeneratedCodeInfo_Annotation
  10828. // repeated int32 path = 1 [packed = true];
  10829. inline int GeneratedCodeInfo_Annotation::path_size() const {
  10830. return path_.size();
  10831. }
  10832. inline void GeneratedCodeInfo_Annotation::clear_path() {
  10833. path_.Clear();
  10834. }
  10835. inline ::google::protobuf::int32 GeneratedCodeInfo_Annotation::path(int index) const {
  10836. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.path)
  10837. return path_.Get(index);
  10838. }
  10839. inline void GeneratedCodeInfo_Annotation::set_path(int index, ::google::protobuf::int32 value) {
  10840. path_.Set(index, value);
  10841. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.path)
  10842. }
  10843. inline void GeneratedCodeInfo_Annotation::add_path(::google::protobuf::int32 value) {
  10844. path_.Add(value);
  10845. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.Annotation.path)
  10846. }
  10847. inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
  10848. GeneratedCodeInfo_Annotation::path() const {
  10849. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  10850. return path_;
  10851. }
  10852. inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
  10853. GeneratedCodeInfo_Annotation::mutable_path() {
  10854. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.Annotation.path)
  10855. return &path_;
  10856. }
  10857. // optional string source_file = 2;
  10858. inline bool GeneratedCodeInfo_Annotation::has_source_file() const {
  10859. return (_has_bits_[0] & 0x00000001u) != 0;
  10860. }
  10861. inline void GeneratedCodeInfo_Annotation::set_has_source_file() {
  10862. _has_bits_[0] |= 0x00000001u;
  10863. }
  10864. inline void GeneratedCodeInfo_Annotation::clear_has_source_file() {
  10865. _has_bits_[0] &= ~0x00000001u;
  10866. }
  10867. inline void GeneratedCodeInfo_Annotation::clear_source_file() {
  10868. source_file_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10869. clear_has_source_file();
  10870. }
  10871. inline const ::std::string& GeneratedCodeInfo_Annotation::source_file() const {
  10872. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10873. return source_file_.Get();
  10874. }
  10875. inline void GeneratedCodeInfo_Annotation::set_source_file(const ::std::string& value) {
  10876. set_has_source_file();
  10877. source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  10878. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10879. }
  10880. #if LANG_CXX11
  10881. inline void GeneratedCodeInfo_Annotation::set_source_file(::std::string&& value) {
  10882. set_has_source_file();
  10883. source_file_.Set(
  10884. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  10885. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10886. }
  10887. #endif
  10888. inline void GeneratedCodeInfo_Annotation::set_source_file(const char* value) {
  10889. GOOGLE_DCHECK(value != NULL);
  10890. set_has_source_file();
  10891. source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  10892. GetArenaNoVirtual());
  10893. // @@protoc_insertion_point(field_set_char:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10894. }
  10895. inline void GeneratedCodeInfo_Annotation::set_source_file(const char* value,
  10896. size_t size) {
  10897. set_has_source_file();
  10898. source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  10899. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  10900. // @@protoc_insertion_point(field_set_pointer:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10901. }
  10902. inline ::std::string* GeneratedCodeInfo_Annotation::mutable_source_file() {
  10903. set_has_source_file();
  10904. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10905. return source_file_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10906. }
  10907. inline ::std::string* GeneratedCodeInfo_Annotation::release_source_file() {
  10908. // @@protoc_insertion_point(field_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10909. if (!has_source_file()) {
  10910. return NULL;
  10911. }
  10912. clear_has_source_file();
  10913. return source_file_.ReleaseNonDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  10914. }
  10915. inline void GeneratedCodeInfo_Annotation::set_allocated_source_file(::std::string* source_file) {
  10916. if (source_file != NULL) {
  10917. set_has_source_file();
  10918. } else {
  10919. clear_has_source_file();
  10920. }
  10921. source_file_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_file,
  10922. GetArenaNoVirtual());
  10923. // @@protoc_insertion_point(field_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10924. }
  10925. inline ::std::string* GeneratedCodeInfo_Annotation::unsafe_arena_release_source_file() {
  10926. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10927. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10928. clear_has_source_file();
  10929. return source_file_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10930. GetArenaNoVirtual());
  10931. }
  10932. inline void GeneratedCodeInfo_Annotation::unsafe_arena_set_allocated_source_file(
  10933. ::std::string* source_file) {
  10934. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  10935. if (source_file != NULL) {
  10936. set_has_source_file();
  10937. } else {
  10938. clear_has_source_file();
  10939. }
  10940. source_file_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  10941. source_file, GetArenaNoVirtual());
  10942. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.GeneratedCodeInfo.Annotation.source_file)
  10943. }
  10944. // optional int32 begin = 3;
  10945. inline bool GeneratedCodeInfo_Annotation::has_begin() const {
  10946. return (_has_bits_[0] & 0x00000002u) != 0;
  10947. }
  10948. inline void GeneratedCodeInfo_Annotation::set_has_begin() {
  10949. _has_bits_[0] |= 0x00000002u;
  10950. }
  10951. inline void GeneratedCodeInfo_Annotation::clear_has_begin() {
  10952. _has_bits_[0] &= ~0x00000002u;
  10953. }
  10954. inline void GeneratedCodeInfo_Annotation::clear_begin() {
  10955. begin_ = 0;
  10956. clear_has_begin();
  10957. }
  10958. inline ::google::protobuf::int32 GeneratedCodeInfo_Annotation::begin() const {
  10959. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  10960. return begin_;
  10961. }
  10962. inline void GeneratedCodeInfo_Annotation::set_begin(::google::protobuf::int32 value) {
  10963. set_has_begin();
  10964. begin_ = value;
  10965. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.begin)
  10966. }
  10967. // optional int32 end = 4;
  10968. inline bool GeneratedCodeInfo_Annotation::has_end() const {
  10969. return (_has_bits_[0] & 0x00000004u) != 0;
  10970. }
  10971. inline void GeneratedCodeInfo_Annotation::set_has_end() {
  10972. _has_bits_[0] |= 0x00000004u;
  10973. }
  10974. inline void GeneratedCodeInfo_Annotation::clear_has_end() {
  10975. _has_bits_[0] &= ~0x00000004u;
  10976. }
  10977. inline void GeneratedCodeInfo_Annotation::clear_end() {
  10978. end_ = 0;
  10979. clear_has_end();
  10980. }
  10981. inline ::google::protobuf::int32 GeneratedCodeInfo_Annotation::end() const {
  10982. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.Annotation.end)
  10983. return end_;
  10984. }
  10985. inline void GeneratedCodeInfo_Annotation::set_end(::google::protobuf::int32 value) {
  10986. set_has_end();
  10987. end_ = value;
  10988. // @@protoc_insertion_point(field_set:google.protobuf.GeneratedCodeInfo.Annotation.end)
  10989. }
  10990. // -------------------------------------------------------------------
  10991. // GeneratedCodeInfo
  10992. // repeated .google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
  10993. inline int GeneratedCodeInfo::annotation_size() const {
  10994. return annotation_.size();
  10995. }
  10996. inline void GeneratedCodeInfo::clear_annotation() {
  10997. annotation_.Clear();
  10998. }
  10999. inline ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::mutable_annotation(int index) {
  11000. // @@protoc_insertion_point(field_mutable:google.protobuf.GeneratedCodeInfo.annotation)
  11001. return annotation_.Mutable(index);
  11002. }
  11003. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >*
  11004. GeneratedCodeInfo::mutable_annotation() {
  11005. // @@protoc_insertion_point(field_mutable_list:google.protobuf.GeneratedCodeInfo.annotation)
  11006. return &annotation_;
  11007. }
  11008. inline const ::google::protobuf::GeneratedCodeInfo_Annotation& GeneratedCodeInfo::annotation(int index) const {
  11009. // @@protoc_insertion_point(field_get:google.protobuf.GeneratedCodeInfo.annotation)
  11010. return annotation_.Get(index);
  11011. }
  11012. inline ::google::protobuf::GeneratedCodeInfo_Annotation* GeneratedCodeInfo::add_annotation() {
  11013. // @@protoc_insertion_point(field_add:google.protobuf.GeneratedCodeInfo.annotation)
  11014. return annotation_.Add();
  11015. }
  11016. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::GeneratedCodeInfo_Annotation >&
  11017. GeneratedCodeInfo::annotation() const {
  11018. // @@protoc_insertion_point(field_list:google.protobuf.GeneratedCodeInfo.annotation)
  11019. return annotation_;
  11020. }
  11021. #ifdef __GNUC__
  11022. #pragma GCC diagnostic pop
  11023. #endif // __GNUC__
  11024. // -------------------------------------------------------------------
  11025. // -------------------------------------------------------------------
  11026. // -------------------------------------------------------------------
  11027. // -------------------------------------------------------------------
  11028. // -------------------------------------------------------------------
  11029. // -------------------------------------------------------------------
  11030. // -------------------------------------------------------------------
  11031. // -------------------------------------------------------------------
  11032. // -------------------------------------------------------------------
  11033. // -------------------------------------------------------------------
  11034. // -------------------------------------------------------------------
  11035. // -------------------------------------------------------------------
  11036. // -------------------------------------------------------------------
  11037. // -------------------------------------------------------------------
  11038. // -------------------------------------------------------------------
  11039. // -------------------------------------------------------------------
  11040. // -------------------------------------------------------------------
  11041. // -------------------------------------------------------------------
  11042. // -------------------------------------------------------------------
  11043. // -------------------------------------------------------------------
  11044. // -------------------------------------------------------------------
  11045. // -------------------------------------------------------------------
  11046. // -------------------------------------------------------------------
  11047. // -------------------------------------------------------------------
  11048. // -------------------------------------------------------------------
  11049. // -------------------------------------------------------------------
  11050. // @@protoc_insertion_point(namespace_scope)
  11051. } // namespace protobuf
  11052. } // namespace google
  11053. namespace google {
  11054. namespace protobuf {
  11055. template <> struct is_proto_enum< ::google::protobuf::FieldDescriptorProto_Type> : ::std::true_type {};
  11056. template <>
  11057. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Type>() {
  11058. return ::google::protobuf::FieldDescriptorProto_Type_descriptor();
  11059. }
  11060. template <> struct is_proto_enum< ::google::protobuf::FieldDescriptorProto_Label> : ::std::true_type {};
  11061. template <>
  11062. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldDescriptorProto_Label>() {
  11063. return ::google::protobuf::FieldDescriptorProto_Label_descriptor();
  11064. }
  11065. template <> struct is_proto_enum< ::google::protobuf::FileOptions_OptimizeMode> : ::std::true_type {};
  11066. template <>
  11067. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FileOptions_OptimizeMode>() {
  11068. return ::google::protobuf::FileOptions_OptimizeMode_descriptor();
  11069. }
  11070. template <> struct is_proto_enum< ::google::protobuf::FieldOptions_CType> : ::std::true_type {};
  11071. template <>
  11072. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldOptions_CType>() {
  11073. return ::google::protobuf::FieldOptions_CType_descriptor();
  11074. }
  11075. template <> struct is_proto_enum< ::google::protobuf::FieldOptions_JSType> : ::std::true_type {};
  11076. template <>
  11077. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::FieldOptions_JSType>() {
  11078. return ::google::protobuf::FieldOptions_JSType_descriptor();
  11079. }
  11080. template <> struct is_proto_enum< ::google::protobuf::MethodOptions_IdempotencyLevel> : ::std::true_type {};
  11081. template <>
  11082. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::MethodOptions_IdempotencyLevel>() {
  11083. return ::google::protobuf::MethodOptions_IdempotencyLevel_descriptor();
  11084. }
  11085. } // namespace protobuf
  11086. } // namespace google
  11087. // @@protoc_insertion_point(global_scope)
  11088. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2fdescriptor_2eproto